One canonical instruction file. Many models. ~1,900-token startup. A copyable starter for building software with AI agents that share the same memory across Claude, Gemini, ChatGPT/Codex, Cline, Roo Code, Cursor, Windsurf, Copilot, Aider, and Google Antigravity.
- What you get
- Quick start — one command after clone
- Why this template
- Where the savings come from
- Multi-model continuity
- Optional power-ups
- What's inside
- Documentation map
- Validation
- Publishing your copy
- Releases & changelog
- Contributing
- License
| FAST_INIT bootstrap cost | ~1,880 tokens (4 files, ~7,500 chars) |
| AI tool adapters | 9 (Claude, Gemini, Codex, Cline, Roo Code, Cursor, Windsurf, Copilot, Aider; + Antigravity) |
| Memory Bank files | 14 (lazy-loaded, indexed in 00-index.md) |
| Reusable skills | 5 (with documented chaining) |
| Reusable workflows | 11 (incl. critic-review, autonomous-agent, Calibration, Graphify) |
| MCP config | .mcp.json (root), .vscode/mcp.json, .mcp/ examples (spec 2025-11-25) |
| Automation | Opt-in Claude Code hooks + /handoff, /save-context, /start-task commands |
| Continuous validation | GitHub Actions on Linux + Windows |
| Drift protection | SHA-256 hash check across mirrors |
| Validator dependencies | 0 (Python stdlib only) |
| First command after clone | python scripts/init-fast.py |
Numbers reproduced live by python scripts/check-template.py --benchmark.
Three steps from zero to a working agent:
# 1. Create your project from this template (or clone / ZIP)
# On GitHub: click "Use this template" → "Create a new repository"
git clone https://github.com/<your-user>/<your-new-repo>.git
cd <your-new-repo>
# 2. Bootstrap (validates the template + prints a ~1,500-token prompt)
python scripts/init-fast.py
# 3. Paste the printed prompt into a fresh agent context window
# (Claude Code, Gemini in Antigravity, ChatGPT/Codex, Cline, etc.)That's it. The agent reads AGENTS.md, fills the Memory Bank from your actual repo state, and keeps unknowns marked TBD instead of inventing facts.
A first session looks like this:
$ python scripts/init-fast.py
== FAST_INIT bootstrap ==
Template FAST validation passed.
FAST_INIT startup-path size:
- AGENTS.md: 4480 chars (~1120 tokens)
- memory-bank/startup.md: 495 chars (~123 tokens)
- memory-bank/00-index.md: 1540 chars (~385 tokens)
- memory-bank/handoff.md: 999 chars (~249 tokens)
Total: 7514 chars (~1878 tokens)
============================================================
WELCOME TO THE AI AGENT PROJECT TEMPLATE
============================================================
What this template gives you out of the box:
* One canonical instruction file (AGENTS.md) read by every model.
* Shared Memory Bank for cross-session and cross-model continuity.
* FAST_INIT bootstrap so agents skip the usual 5K-80K token warm-up.
* Drift-proof mirrors of workflows and skills (SHA-256 checked).
* Zero-dependency validator (Python stdlib only).
* Reusable workflows + skills (plan, implement, debug, refactor, ...).
* Proactive power-ups: Graphify, Calibration, /align, /devil, /burst.
============================================================
One source of truth, many models.
AGENTS.md is canonical. Every tool-specific file is a one-line pointer to it. Switch from Claude to Gemini to ChatGPT mid-project without re-explaining anything.
Continuity across model switches.
memory-bank/handoff.md is a single rolling pointer for "where we left off." Any model writes it on pause, any model reads it on resume — so Claude can finish what Gemini started.
Minimal startup tokens. The default startup path is four small files. Everything else lazy-loads only when the task needs it. Agents stop burning tokens crawling docs they don't need.
No tool lock-in, no installs. The validator runs on Python stdlib alone. No Node, no global packages, no MCP server required for the template itself.
Drift-proof by construction. Tool-specific mirrors of workflows and skills are SHA-256 hashed against the canonical copy. The validator fails if anyone forgets to sync.
Most agent setups spend the first 5,000–80,000 tokens "reading the project." This template publishes a deliberately small, agent-shaped startup path:
| File | Tokens (approx) |
|---|---|
AGENTS.md |
1,120 |
memory-bank/startup.md |
123 |
memory-bank/00-index.md |
385 |
memory-bank/handoff.md |
~250 (volatile; lighter on a fresh template) |
| Total FAST_INIT | ~1,880 |
Run python scripts/check-template.py --benchmark to see the exact current cost.
Three design choices keep that number small:
- A small canonical instruction file. No repeated rules across tool-specific files; adapters are one-line pointers.
- A routing index, not a knowledge dump.
00-index.mdtells the agent which Memory Bank file to load for the current task, instead of preloading them all. - A handoff pointer, not a session log.
handoff.mdis volatile and overwritten — never an append-only history.
Time savings stack on top: switch tools without re-explaining the project, because every model reads the same Memory Bank.
You can drive the same project with several models in sequence or in parallel. Default routing:
| Role | Default model | Why |
|---|---|---|
| Planning, broad reads | Gemini Ultra (Antigravity) | ~1M context |
| Implementation | Cline / Codex / ChatGPT | Tight tool loops |
| Review and refactor | Claude (Teams or Code) | Reasoning + prompt cache |
| Fast utility | OpenRouter free models | Cheap; often <32K context — FAST_INIT essential |
Each model reads memory-bank/handoff.md on resume and updates it on pause. Cache-stable files (listed in memory-bank/model-routing.md) stay byte-stable so Claude prompt-cache hits stay warm across sessions.
The template scales with your project. These are kept out of the fast path so you aren't forced to use them; activate any of them when needed:
- Graphify (Knowledge Graphs). When grepping fails in large codebases, run
uv tool install graphifyy && graphify .to build a structural graph of your code. Agents automatically read the resultingGRAPH_REPORT.md. Seeworkflows/build-graph.md. - Advanced Steering Prompts. Force clarification, contrarian review, or divergent options on demand:
/align,/devil,/burst,/calibrate. Seedocs/prompts.md. - Parallel Agent Forking. Open a second terminal, run
init-fast.py, and have multiple agents work on different features simultaneously — sharing context through the Memory Bank. Seedocs/start-new-project.md. - Zero-token automation (hooks). Opt-in Claude Code hooks log file changes outside the model context for later offline consolidation into the Memory Bank — the "Dream Phase" pattern, now shipped as a working example. See
docs/hooks.md. - Critic & autonomous workflows. Run a separate-context critic over risky artifacts, or drive a bounded hands-off run with explicit guardrails. See
workflows/critic-review.mdandworkflows/autonomous-agent.md.
Full list: docs/toolbox.md.
AGENTS.md— canonical instruction file for every model, incl. the always-on "Agentic execution" rules.memory-bank/— durable, lazy-loaded project context (14 files, indexed in00-index.md).handoff.md— rolling cross-model session pointer (structured YAML header + prose).reminders.md— prospective memory: trigger-keyed notes for future work.model-routing.md— per-model context budgets, cache-stable file list, cascade routing, routing defaults.
docs/agent-loop.md— tool-call batching, turn budgets, error/retry taxonomy, phase-completion summary.docs/hooks.md+.claude/— opt-in Claude Code hooks for zero-token passive logging.workflows/— 11 reusable procedures (plan, implement, debug, refactor, update memory, handoff, critic-review, autonomous-agent, build graph, calibrate, init-lite)..cline/skills/,.agents/skills/— five reusable skills with documented chaining (planner, Karpathy engineer, reviewer, test strategist, docs/memory maintainer).scripts/check-template.py— stdlib-only validator with--fast,--benchmark, and full mode.scripts/init-fast.py— one-command bootstrap.- Adapters:
CLAUDE.md,GEMINI.md,CONVENTIONS.md(Aider),.windsurfrules,.clinerules/(Cline + Roo Code),.agents/,.github/copilot-instructions.md,.cursor/rules/agents.mdc,.codex/AGENTS.md. .mcp.json(root),.vscode/mcp.json,.mcp/mcp_config.example.json— MCP configs (filesystem, git, memory, fetch, sequential-thinking, …; spec 2025-11-25).references/,assets/— reference material and project asset folders.
docs/start-new-project.md— beginner walkthrough from clone to first feature.docs/per-tool-setup.md— exactly which file each of the 9 tools reads, and how to wire MCP.docs/use-from-github.md— GitHub template, clone, ZIP, and pull-into-existing-project flows.docs/setup.md— one-page local setup.docs/agent-loop.md— execution rules: tool batching, turn budgets, error taxonomy, phase-completion summary.docs/hooks.md— opt-in Claude Code hooks for zero-token memory automation.docs/file-organization.md— where to put research, assets, and runtime files.docs/toolbox.md— catalog of every optional power-up.docs/prompts.md— reusable prompts (/calibrate,/align,/devil,/burst, init prompts).docs/agent-skill-ecosystem.md— when and how to add skills or plugins.docs/antigravity-master-prompt.md— long-form initialization prompt.docs/architecture.md— placeholder for project-specific architecture.docs/template-improvement-brief.md— handoff brief for reviewers proposing template improvements.docs/releasing.md— how to cut a new tagged release of the template.
python scripts/init-fast.py # bootstrap (validate + benchmark + prompt)
python scripts/check-template.py --fast # lightweight check
python scripts/check-template.py # full check (secrets, drift, all required files)
python scripts/check-template.py --benchmark # token cost report onlyFull validation enforces: 50 required files, 9 adapters all referencing AGENTS.md, 15 startup/context size budgets, public-template secret hygiene, .gitignore safety patterns, and SHA-256 drift between canonical and mirrored workflows/skills.
CI runs the full validator on every push and PR across Linux and Windows (.github/workflows/validate.yml).
- Run
python scripts/check-template.pyand confirm it passes. - Confirm no
.env, credential files, or unintended.git/history are committed. - Add a
LICENSEfile that matches your intent (MIT, Apache-2.0, etc.) — not included by default so you can choose. - In GitHub repository settings, enable Template repository so others can create clean copies via Use this template.
- Research PDFs, briefs, transcripts, reference-only images →
references/ - Source project assets (images, content data) →
assets/ - Runtime website/app files → stack-specific folder (usually
public/orsrc/assets/) once a stack is chosen - Durable project facts →
memory-bank/ - Secrets, real keys, credentials → never committed (use local
.env, OS keychain, IDE settings)
Full guide: docs/file-organization.md.
This template follows Semantic Versioning with dated entries in CHANGELOG.md. The current version lives in VERSION.
For users of the template:
- Latest release — what changed and how to upgrade.
- All releases — full history.
CHANGELOG.md— machine- and human-readable list of changes per version.
For maintainers: the step-by-step process for cutting a new release is in docs/releasing.md.
See CONTRIBUTING.md. Keep changes small and reviewable. Run python scripts/check-template.py before opening a PR.
Security issues: see SECURITY.md.
This template ships without a license so you can pick the one that matches your project. Add a LICENSE file before publishing publicly.