Agent Process Learnings Policy
This policy is optimized for two goals:
- Keep the shared repo context clean and high-signal.
- Keep temporary learning capture fast for humans and agents.
Quick Rules
- Do not commit per-task learning logs.
- Record temporary learnings locally in
tmp/agent-learnings/. - Promote only durable, broadly useful rules into the relevant
AGENTS.mdfile via normal PR review.
tmp/ is gitignored in this repository, so local notes stay local by default.
What Gets Committed
| Artifact | Location | Commit? | Purpose |
|---|---|---|---|
| Temporary task learnings | tmp/agent-learnings/<YYYY-MM-DD>-<topic>.md |
No | Working memory during/after a task |
| Durable process rules | AGENTS.md (root or component) |
Yes | Stable guidance for future tasks |
Fast Workflow
- Capture guidance and mistakes in a local note while working.
- At task end, decide if any pattern is durable.
- If durable, propose a concise
AGENTS.mdupdate (what happened, root cause, updated rule). - Discard or keep local notes locally; do not commit them.
Local Note Template (Copy/Paste)
# <YYYY-MM-DD> - <topic>
- Date:
- Context (task/area):
- What went wrong or where we got stuck:
- Human guidance/correction:
- Root cause:
- Proposed durable update:
- Target file/path (usually `AGENTS.md`):
- Rule/procedure to add or change:
- Follow-up checks: