prompts: nudge agents to keep messages short, drop big payloads in /state

This commit is contained in:
müde 2026-05-15 18:01:36 +02:00
parent ff8f8c7c56
commit ac4a978846
2 changed files with 9 additions and 0 deletions

View file

@ -9,4 +9,6 @@ Need new packages, env vars, or other NixOS config for yourself? You can't edit
Durable knowledge: write to `/state/notes.md` (free-form) or any other path under `/state/`. That directory is bind-mounted from the host and persists across container destroy/recreate — claude's `--continue` session only carries short-term context, but `/state/` is forever. Read it back at the start of relevant turns to remember things across resets.
Keep messages short — a few sentences each. For anything big (file listings, long diffs, transcripts, analysis): write the payload to `/state/<descriptive-name>` and `send` a short pointer ("dropped the cluster audit in /state/cluster-audit-2026-05.md, headline: 3 nodes over 80% mem"). The manager + operator can read your `/state/` from the host as `/agents/{label}/state/`. Sub-agent peers can't read each other's `/state/` directly — go through the manager if a payload needs to reach another sub-agent.
When your inbox has a message, handle it and stop. Don't narrate intent — act.