Skip to content

rumotion/ai-agent-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Agent Project Template

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.

Use this template Latest release Validate template Validator Bootstrap cost License

image

Table of contents


What you get

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.


Quick start

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.
============================================================

Why this template

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.


Where the savings come from

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:

  1. A small canonical instruction file. No repeated rules across tool-specific files; adapters are one-line pointers.
  2. A routing index, not a knowledge dump. 00-index.md tells the agent which Memory Bank file to load for the current task, instead of preloading them all.
  3. A handoff pointer, not a session log. handoff.md is 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.


Multi-model continuity

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.


Optional power-ups

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 resulting GRAPH_REPORT.md. See workflows/build-graph.md.
  • Advanced Steering Prompts. Force clarification, contrarian review, or divergent options on demand: /align, /devil, /burst, /calibrate. See docs/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. See docs/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.md and workflows/autonomous-agent.md.

Full list: docs/toolbox.md.


What's inside

  • 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 in 00-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.

Documentation map


Validation

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 only

Full 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).


Publishing your copy

  1. Run python scripts/check-template.py and confirm it passes.
  2. Confirm no .env, credential files, or unintended .git/ history are committed.
  3. Add a LICENSE file that matches your intent (MIT, Apache-2.0, etc.) — not included by default so you can choose.
  4. In GitHub repository settings, enable Template repository so others can create clean copies via Use this template.

Where to put your files

  • Research PDFs, briefs, transcripts, reference-only images → references/
  • Source project assets (images, content data) → assets/
  • Runtime website/app files → stack-specific folder (usually public/ or src/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.


Releases & changelog

This template follows Semantic Versioning with dated entries in CHANGELOG.md. The current version lives in VERSION.

For users of the template:

For maintainers: the step-by-step process for cutting a new release is in docs/releasing.md.


Contributing

See CONTRIBUTING.md. Keep changes small and reviewable. Run python scripts/check-template.py before opening a PR.

Security issues: see SECURITY.md.


License

This template ships without a license so you can pick the one that matches your project. Add a LICENSE file before publishing publicly.

About

A universal starter template for projects developed with AI agents (Google Antigravity, Cline, Gemini, Claude). Includes a pre-configured Memory Bank, canonical agent instructions, and workflows for highly organized AI-assisted coding.

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages