ai-agent-project-template
AGENTS.md1 starsChanged 59 days agoMITView on GitHub
Single source of truth for all AI agents in this repo. Adapters (GEMINI.md, CLAUDE.md, .clinerules/, .agents/, .github/copilot-instructions.md, .cursor/rules/agents.mdc, .codex/AGENTS.md) only point here. Reserve most context for the actual project, not template instructions. Multiple models share this project (Gemini, Claude, Codex, Cline, Cursor, Copilot). memory-bank/handoff.md is the rolling "where we left off" pointer — update on pause/switch, read on resume. Model routing lives in memory-bank/model-routing.md. Low-token initialization with verified basics only. Use when the user asks for full template review, publishing…
- Reads credentials
- Deletes or force-pushes
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,691 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository26 other files it gives its agents.
- .codex/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/agents.mdcCursor rule
- code-reviewerSkill
- delegation-coordinatorSkill
- docs-memory-maintainerSkill
- human-voice-draftingSkill
- karpathy-engineerSkill
- local-media-transcriptionSkill
- project-plannerSkill
- project-upgraderSkill
- sharepoint-teams-video-transcript-downloaderSkill
- storm-researchSkill
- test-strategistSkill
- code-reviewerSkill
- delegation-coordinatorSkill
- docs-memory-maintainerSkill
- human-voice-draftingSkill
- karpathy-engineerSkill
- local-media-transcriptionSkill
- project-plannerSkill
- project-upgraderSkill
- sharepoint-teams-video-transcript-downloaderSkill
- storm-researchSkill
- test-strategistSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
18 rules. About 0 are common, 5 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
If resuming work or switching models, also read memory-bank/handoff.md.
- Very specific: line 10
Read memory-bank/00-index.md only to choose additional files.
- Very specific: line 25
Read only: AGENTS.md, memory-bank/startup.md, memory-bank/00-index.md, memory-bank/handoff.md (if resuming), and stack-detection files …
- Very specific: line 26
Do not read by default: README.md, docs/, workflows/, skills, references/, assets/, .mcp/, validator scripts.
- Very specific: line 27
Update only: memory-bank/startup.md, memory-bank/handoff.md, memory-bank/projectbrief.md, memory-bank/activeContext.md, …
- Very specific: line 28
Keep unknowns as TBD. Do not run full-repo audits.
- Very specific: line 32
Use when the user asks for full template review, publishing readiness, architecture audit, or broad cleanup.
- Very specific: line 36
Start in FAST_INIT. Escalate only when required facts cannot be verified from allowed files, or the user explicitly asks.
- Distinctive: line 44
One project, one repository: Never share a repo between projects.
- Very specific: line 46
.gitignoreis not a security control: Verify with git status --ignored --short and git ls-files. - Very specific: line 56
Do not invent facts. If unknown, write TBD or ask.
- Very specific: line 57
Do not expose or edit secrets, credentials, tokens, .env values, or production config unless explicitly requested.
- Distinctive: line 58
Ask before destructive commands, dependency installs, migrations, production-impacting actions, or broad refactors.
- Distinctive: line 59
Prefer small, reviewable changes that match existing style.
- Distinctive: line 60
Keep Memory Bank updates concise and operational.
- Distinctive: line 61
Do not re-read files already read in the current task unless they changed.
- Very specific: line 63
Proactive Tool Suggestion: If codebase is too large for standard file search, suggest Graphify (workflows/build-graph.md).
- Very specific: line 89
Start with memory-bank/startup.md.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — Canonical Agent Instructions
Single source of truth for all AI agents in this repo. Adapters (GEMINI.md, CLAUDE.md, .clinerules/, .agents/, .github/copilot-instructions.md, .cursor/rules/agents.mdc, .codex/AGENTS.md) only point here.
Startup path — keep context small
- Read this file.
- Read
memory-bank/startup.md. - If resuming work or switching models, also read
memory-bank/handoff.md. - Read
memory-bank/00-index.mdonly to choose additional files. - Load source/docs/workflows/skills only when the task requires them.
Reserve most context for the actual project, not template instructions.
Cross-model continuity
Multiple models share this project (Gemini, Claude, Codex, Cline, Cursor, Copilot). memory-bank/handoff.md is the rolling "where we left off" pointer — update on pause/switch, read on resume. Model routing lives in memory-bank/model-routing.md.
Initialization modes
FAST_INIT (default)
Low-token initialization with verified basics only.
- Read only:
AGENTS.md,memory-bank/startup.md,memory-bank/00-index.md,memory-bank/handoff.md(if resuming), and stack-detection files (package.json,pyproject.toml,requirements.txt,go.mod,Cargo.toml,tsconfig.json,vite.config.*,next.config.*) when present. - Do not read by default:
README.md,docs/,workflows/, skills,references/,assets/,.mcp/, validator scripts. - Update only:
memory-bank/startup.md,memory-bank/handoff.md,memory-bank/projectbrief.md,memory-bank/activeContext.md,memory-bank/progress.md,memory-bank/techContext.md. - Keep unknowns as
TBD. Do not run full-repo audits. Minimize turns and narration.
DEEP_AUDIT (explicit only)
Use when the user asks for full template review, publishing readiness, architecture audit, or broad cleanup. Read deeper docs/workflows/skills/scripts as needed; document findings; propose focused changes.
Escalation rule
Start in FAST_INIT. Escalate only when required facts cannot be verified from allowed files, or the user explicitly asks.
Core rules
Repository boundaries — read before any git command
- This project is local-only until human says otherwise in current conversation. Check
git remote -vbefore any git work. Iforiginpoints to the template repo, detach:python scripts/detach-remote.py. Local commits encouraged; transmission forbidden. - Never push, publish, or sync without explicit instruction. No
git push, remote branch, PR, issue, or tag push. Never rungit push --force --mirror. - One project, one repository. Never share a repo between projects. Humans create dedicated repos for hosting (Vercel, Cloudflare, Netlify).
- Confidential material never enters a repository that is or was public. Removing later does not work (commits retrievable, forks share objects).
.gitignoreis not a security control. Verify withgit status --ignored --shortandgit ls-files.
Media & Transcription (Local GPU-Only)
- Always GPU-first (
large-v3): Audio/video transcription runs locally on GPU (RTX A5000) viafaster-whisper(scripts/transcribe_local_large_v3.py). Never downgrade model size (32 layers). - Precision ladder & privacy:
cuda/float16->cuda/int8_float16-> CPU chunked. 100% confidential; media and transcripts never leave workstation.
General
- Do not invent facts. If unknown, write
TBDor ask. - Do not expose or edit secrets, credentials, tokens,
.envvalues, or production config unless explicitly requested. - Ask before destructive commands, dependency installs, migrations, production-impacting actions, or broad refactors.
- Prefer small, reviewable changes that match existing style.
- Keep Memory Bank updates concise and operational.
- Do not re-read files already read in the current task unless they changed.
- HARD RULE — anything the user sends under their own name must read as human-written. Apply
.agents/skills/human-voice-drafting/SKILL.md; repo files are exempt. - Proactive Tool Suggestion: If codebase is too large for standard file search, suggest Graphify (
workflows/build-graph.md). If frequent style corrections occur, suggest Calibration (workflows/calibrate.md).
Engineering behavior (Karpathy defaults & Cognitive Harness)
- Cognitive harness (
assets/LLM_PROJECT_HARNESS.md,.agents/rules/30-cognitive-harness.md): candid thinking partner, challenge unsound assumptions, ground in evidence, evaluate before committing, execute to verified completion. - Think before coding: state falsifiable prediction (expected baseline failure vs expected passing outcome).
- Phased planning: discrete, committable step checkpoints with verification criteria.
- Simplicity & surgical changes: solve only what was asked; touch only necessary lines.
- Escalation ladder: escalate diagnostics (surgical fix → scratch script → mock harness → model redesign).
- Goal-driven atomic commits: verify each step and commit immediately upon verification.
Agentic execution
- Bimodal discipline: single narrow probes for exploration; batch independent calls for verified execution.
- Bound tasks (~5 / 15 / 30 tool calls for simple / standard / complex). Halt with summary on limit.
- Classify errors: transient → backoff; logic → revise; capability → escalate (
model-routing.md). Log disproven hypotheses and killing evidence toactiveContext.md/risks.md. - Atomic step-commit: after verifying each completed step, run
git commit -m "<type>(<scope>): <step description>". - Phase summary: on completing a work unit, write summary to
memory-bank/activeContext.mdand updatehandoff.md. - Detail:
docs/agent-loop.md.
Workflow
Implementation tasks: understand → plan → implement → verify → commit → document. For risky work use procedures in workflows/.
Memory Bank
Start with memory-bank/startup.md; lazy-load via memory-bank/00-index.md; update only files whose facts changed.
More detail (lazy-load)
- Agent execution loop (budgets, errors, phase summary):
docs/agent-loop.md - Subagent delegation contract:
docs/subagent-contract.md - Prompts:
docs/prompts.md - Antigravity/Cline master setup:
docs/antigravity-master-prompt.md - Skills/plugins:
docs/agent-skill-ecosystem.md - Hooks & safety guards (Antigravity, Claude, Codex):
docs/hooks.md - Model/provider routing:
memory-bank/model-routing.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

