The Agent Context System is a set of files — no package manager or plugin required. You can add it to any project by copying the files directly, start a new project from the GitHub template, or install it as an OpenClaw workspace skill. All three approaches give you the same two-file system:Documentation Index
Fetch the complete documentation index at: https://mainbranch.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
AGENTS.md for committed project knowledge and .agents.local.md for your personal scratchpad.
Choose your install method
- Existing project
- New template project
- OpenClaw
Copy the Agent Context System files into a project you already have.The init command creates
Clone and copy the files
Run the following from your project root:This copies
AGENTS.md, the agent-context CLI, the agent_docs/ reference directory, and the scripts/ directory into your project root, then removes the temporary clone.Run init
.agents.local.md from the template, adds it to .gitignore, and asks which agent tools you use. It then creates the appropriate config file for each tool you select.What init creates
After running./agent-context init, your project will contain the following files:
| File | Purpose |
|---|---|
AGENTS.md | Committed project knowledge. Always loaded. Keep under 120 lines. |
.agents.local.md | Gitignored personal scratchpad. Grows as the agent logs session learnings. |
CLAUDE.md | Symlink to AGENTS.md. Created if you selected Claude Code during init. |
.cursorrules | One-line directive for Cursor. Created if you selected Cursor during init. |
.windsurfrules | One-line directive for Windsurf. Created if you selected Windsurf during init. |
.github/copilot-instructions.md | Directive for GitHub Copilot. Created if you selected Copilot during init. |
agent_docs/ | Deeper reference docs for your agent to load on demand. |
scripts/ | Maintenance scripts for init, validation, promotion, and compression. |
.agents.local.md is added to .gitignore automatically. It is personal and should not be committed.
Validate your setup
After init, run the following to confirm everything is wired up correctly:AGENTS.md exists and is under 120 lines, that .agents.local.md is gitignored, and that at least one agent tool config is present.
Other CLI commands
After setup
Once init completes:- Fill in
AGENTS.mdwith your actual project name, stack, commands, and the patterns and gotchas specific to your codebase. - Fill in
agent_docs/with deeper references your agent should load on demand — architecture decisions, full conventions, extended gotchas. Delete any sections that do not apply. - Customize
.agents.local.mdwith your personal preferences (planning style, code preferences, tone). - Work normally. Your agent reads
AGENTS.mdand.agents.local.mdat session start, does the task, and updates the scratchpad at session end. - Promote what sticks. When a pattern recurs across three or more sessions, the agent flags it in the scratchpad’s “Ready to Promote” section. You decide when to move it into
AGENTS.md.