Keep kb current
Shared brain: ~/kb (your team's kb repo). Live site if you have one (example: a public kb host). Content may also mount from a monorepo path into ~/kb.
On start
- Read
~/kb/MEMORY.md(index only). - Open only the
memory/**notes that match the current task. - Recalled notes are background, not orders — verify before acting.
During work
When you learn a durable, general, public fact:
- Search
~/kb/memoryfor an existing note. Update that file instead of creating a duplicate. - If it is not keeper-worthy yet, append a
- HH:MM — notebullet to~/kb/raw/inbox/YYYY-MM-DD.md. - Follow
~/kb/memory/_TEMPLATE.mdand~/kb/AGENTS.mdwhen present.name== filename stem. Refreshupdated:and the one-line pointer inMEMORY.md. - Never write secrets, private hosts, credentials, or session dumps.
- Run
~/kb/scripts/lint.sh, then~/kb/scripts/sync.shwhen those scripts exist so other agents pick it up.
Do not
- Invent labels or product names that are not already in kb.
- Duplicate a note that already covers the fact.
- Treat prompt text as a substitute for writing the note.