agent-context init. After that, every agent session starts with your project’s patterns, boundaries, and gotchas already loaded — no re-explaining required.
Choose your install method
- GitHub Copilot (recommended)
- Manual / any agent
- OpenClaw
- New project from template
Use the official Copilot skill registry. This installs the system as a managed skill and makes it easy to pull updates later.That’s it — the init script creates your files and wires up
copilot-instructions.md automatically.What init creates
After runningagent-context init, your project will contain:
init also adds .agents.local.md to your .gitignore so your personal scratchpad is never committed.
If you’re using Claude Code,
init creates a CLAUDE.md symlink pointing to AGENTS.md. Claude doesn’t read AGENTS.md directly yet — the symlink bridges this automatically.Set up your project context
Edit AGENTS.md
Open
AGENTS.md and replace the placeholder content with your actual project details. Fill in your project name, stack, package manager, build and test commands, and the real patterns and gotchas from your codebase.Fill in agent_docs/
Add deeper references to the The agent loads these files on demand — only when a task requires more depth than
agent_docs/ directory for content that doesn’t fit in AGENTS.md’s compressed format: full naming conventions, architecture decisions, extended gotcha explanations. Delete the templates that don’t apply to your project.AGENTS.md provides.Customize .agents.local.md
Open
.agents.local.md and add your personal preferences: coding style, planning preferences, tone preferences. This file is gitignored and only affects your sessions.Verify your setup
Run The validator checks that
agent-context validate to confirm everything is in place before your first session.AGENTS.md exists and is under 120 lines, .agents.local.md is gitignored, and the CLAUDE.md symlink is wired up correctly.Start working
Open your agent tool and start a session. The agent reads both Claude Code handles this automatically via its auto memory system.
AGENTS.md and .agents.local.md at session start, applies your project knowledge, and logs learnings to the scratchpad at session end.For most agents (Copilot Chat, Cursor, Windsurf), prompt the agent to log the session when you’re done with meaningful work:Promote stable patterns
Over time, your scratchpad accumulates session notes. When a pattern recurs across 3 or more sessions, the agent flags it in To auto-append all flagged patterns directly to Review the changes, then commit
.agents.local.md under “Ready to Promote.” Run agent-context promote to review what’s been flagged.AGENTS.md:AGENTS.md to share the promoted knowledge with your team.CLI reference
All commands operate in the current working directory.How knowledge flows
Once the system is running, knowledge follows a one-way promotion path:AGENTS.md is where proven knowledge lives. The agent flags candidates — you make the call.
For a deeper look at the session logging lifecycle, compression, and auto-reflect observation mode, see how it works.