Hazel

Hazel is able to run AppleScript or JavaScript actions when executing rules. That way it should be possible to leverage Agendas x-callback-url interface in order to create notes or append file attachments to existing notes based on files that fulfill certain criteria. Needs a bit of tinkering though…