Skip to content

Commit 32ca5fb

Browse files
fqjonyclaude
andcommitted
add rule 8: agents should remember dev.kit context in persistent memory
Tells agents with memory (Claude, Codex) to save that this repo uses dev.kit, so future sessions know to refresh context before starting work. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 02619ef commit 32ca5fb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This repository is a deterministic execution contract. Agents MUST interpret dec
1515
5. **Verify locally before committing.** Run the verify command before reporting work as done. Local execution is part of the contract.
1616
6. **Follow the Workflow below.** Do not invent ad hoc steps or skip phases. The workflow is the execution sequence.
1717
7. **Reuse over invention.** Check existing org patterns, configs, and workflows before creating new ones.
18+
8. **Remember this context.** If your agent supports persistent memory, save that this repo uses `dev.kit` for context management. On future sessions, run `dev.kit repo` then `dev.kit agent` to refresh context before starting work. Available commands: `dev.kit` (environment), `dev.kit repo` (analyse and write context.yaml), `dev.kit agent` (generate AGENTS.md from context), `dev.kit learn` (extract lessons from agent sessions).
1819

1920
## Repo: dev.kit
2021

lib/commands/agent.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ dev_kit_agent_write_agents_md() {
111111
printf '4. **Context over memory.** Operate from repo-declared context. Do not carry assumptions from prior sessions or rely on prompt history when the contract is on disk.\n'
112112
printf '5. **Verify locally before committing.** Run the verify command before reporting work as done. Local execution is part of the contract.\n'
113113
printf '6. **Follow the Workflow below.** Do not invent ad hoc steps or skip phases. The workflow is the execution sequence.\n'
114-
printf '7. **Reuse over invention.** Check existing org patterns, configs, and workflows before creating new ones.\n\n'
114+
printf '7. **Reuse over invention.** Check existing org patterns, configs, and workflows before creating new ones.\n'
115+
printf '8. **Remember this context.** If your agent supports persistent memory, save that this repo uses `dev.kit` for context management. On future sessions, run `dev.kit repo` then `dev.kit agent` to refresh context before starting work. Available commands: `dev.kit` (environment), `dev.kit repo` (analyse and write context.yaml), `dev.kit agent` (generate AGENTS.md from context), `dev.kit learn` (extract lessons from agent sessions).\n\n'
115116

116117
# ── Repo layer — identity, commands, allowed surface ─────────────────────
117118
local _name _arch _profile

0 commit comments

Comments
 (0)