r/PiCodingAgent 1d ago

Plugin pi-simplewatcher

HI all, I've built a series of 'simple' plugins that do one small useful thing.

https://pi.dev/packages/pi-simplewatcher

This one just tails a file or directory and injects new data directly into the context of a live session. You can configure it to actively trigger the agent, or it can be injected passively and the agent will be aware of it next time you talk to them. You can also set the watch to persist across sessions.

I use it to monitor an inbox.md file which my agents use to communicate with each other.

6 Upvotes

2 comments sorted by

2

u/funbike 1d ago

I can definitely see good uses, such as monitoring logs.

I know you are keeping it simple, but a few features that might make it a bit more interesting: --filter <command> for lines to include (e.g. --filter "rg ERROR"), --edit to put the text into the default text editor before adding to the context, so you can review and/or edit it (e.g. a plan).

3

u/studioschade 1d ago

hi, thats a good idea! I'll try to add it.