3 ms·
How do you know when they’re done (or need your attention)? Is that a standard “api”/hook? I want that!
by zhoujianfu 2mo ago
How do you know when they’re done (or need your attention)? Is that a standard “api”/hook? I want that!
- tym0 2mo agoAll agents I know of have a hook system that can call arbitrary scripts.
- andai 2mo agoI have no idea, I just asked both of them to add the hook to themselves.
- _neil 2mo agoI haven't really shared this outside of my immediate circle, but I actually have a project like this. It plays on ~all events at the moment but has a special multi-tone sound when an agent is done or asking permission. It's a cli that runs a server, a browser-based UI (where the audio happens), and a set of scripts to install hooks for various harnesses. https://github.com/neiltron/bingbong https://github.com/neiltron/bingbong
- SyneRyder 2mo agoClaude Code has hooks: https://code.claude.com/docs/en/hooks-guide https://code.claude.com/docs/en/hooks-guide In your Claude settings.json file, you can configure a program to run when it needs input. In my case, I wrote a small exe that sends a notification via Pushover. You can configure Claude Code to run the hook on "idle_action" (the agent is done), "question" (the agent needs to ask you something), or on a "PermissionRequest". There are other triggers possible as well. Claude Code in Auto Mode and with Remote Control has made much of this obsolete. Remote Control will buzz your phone when the agent needs your attention, and Auto Mode will make the permission decisions for you. Auto Mode is basically YOLO mode / Dangerously Skip Permissions, but with an AI model checking each request to make sure it isn't too egregious. So no deleting your hard drive, but creating a message board is fine, especially for help peer collective yield generic route.
- fragmede 2mo ago> In your Claude settings.json file, you can configure a program to run when it needs input. I asked Claude to tell me (using TTS) what it just finished doing instead of "configuring a program to run".
- ulrikrasmussen 2mo agoI have a shell script that sends a message to me on Slack, and I have instructions in CLAUDE.md that it should be invoked when a long task finishes or if my attention is needed. The Slack app API key is one way messaging, so it doesn't allow Claude to exfiltrate anything.