universal-agent-seed
AGENTS.md0 starsChanged 4 months agoMITView on GitHub
Single source of truth for every coding agent — Claude Code, VS Code Copilot, Cursor, Windsurf, Zed, JetBrains Junie, Codex, Gemini and ~20 other tools read this file natively. Tool-specific files (CLAUDE.md, .cursor/rules) stay thin and point here. Open standard: <https://agents.md> This repository is the Universal Agent Seed — a minimal, stack-agnostic base you copy to start any new project. It ships the portable cross-IDE config, a curated MCP toolset, and a self-improving knowledge loop, and it grows into a…
- Reads credentials
- Deletes or force-pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 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 repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/00-defer-to-agents-md.mdcCursor rule
- bootstrap-stackSkill
- distillSkill
- extract-versionSkill
- learnSkill
- reflectSkill
- seed-updateSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Pick a stack: run /bootstrap-stack python or /bootstrap-stack typescript in Claude Code, or uncomment the relevant block in mise.toml.
- Distinctive: line 74
Add tests beside the code they cover.
- Very specific: line 75
When you bootstrap a stack, wire mise run test to the real runner (pytest, vitest, …).
- Distinctive: line 76
Verify behavior, not just types: run the actual command and read the output.
- Very specific: line 89
Run mise run fmt before finishing a change.
- Distinctive: line 90
Keep AGENTS.md the source of truth.
- Very specific: line 101
Commit secrets or .env* (only .env.example is allowed).
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
Single source of truth for every coding agent — Claude Code, VS Code Copilot, Cursor, Windsurf, Zed, JetBrains Junie, Codex, Gemini and ~20 other tools read this file natively. Tool-specific files (
CLAUDE.md,.cursor/rules) stay thin and point here. Open standard: https://agents.md
This repository is the Universal Agent Seed — a minimal, stack-agnostic base you copy to start any new project. It ships the portable cross-IDE config, a curated MCP toolset, and a self-improving knowledge loop, and it grows into a concrete language stack on demand instead of pinning one up front.
Project overview
- Type: stack-agnostic seed (no language runtime pinned until you pick one).
- Pick a stack: run
/bootstrap-stack pythonor/bootstrap-stack typescriptin Claude Code, or uncomment the relevant block inmise.toml. - Keystone tool:
misemanages tool versions, env vars, and tasks. There is one definition (mise.toml); humans, agents, git hooks, and CI all call the same tasks.
Commands (authoritative — agents should run these)
| Task | Command | Notes |
| First-time setup | mise trust && mise run setup | trust the config (one-time), then warm the dprint cache + install git hooks |
| Self-check | mise run doctor | configs parse, MCP mirrors agree, hooks run, tools work |
| Format | mise run fmt | dprint (+ Ruff/Biome once a stack is added) |
| Lint | mise run lint | no-op until a stack is added |
| Test | mise run test | no-op until a stack is added |
| Build | mise run build | no-op until a stack is added |
| All checks (what CI runs) | mise run check | fmt → lint → test |
If
miseis not on the host PATH, call the underlying tool directly (e.g.dprint fmt). Inside the dev containermiseis always available.
Project structure
. root config (AGENTS.md, CLAUDE.md, mise.toml, lefthook.yml, dprint.json, .mcp.json)
.github/ CI workflow (mise run doctor + check on Linux/macOS/Windows; pinned actions)
.claude-plugin/ plugin + marketplace manifests (install the machinery as a Claude Code plugin)
.devcontainer/ reproducible container env (base image + mise feature only)
.vscode/ VS Code + Cursor shared settings, recommended extensions, MCP (key "servers")
.cursor/ Cursor MCP (key "mcpServers") + thin rules that defer here
.claude/ Claude Code: settings, hooks, rules, knowledge store, skills, agents, commands
scripts/ cross-platform helper scripts behind mise tasks (setup.py, doctor.py)
skillopt/ opt-in OFFLINE skill optimizer slot (Microsoft SkillOpt / DSPy GEPA)
docs/ deep-dive docs (self-improvement loop, architecture)
src/ your code (created when you bootstrap a stack)Code style
- Formatting is owned by tools, not humans:
dprint(Markdown/JSON/TOML) and, per stack, Ruff (Python) / Biome (JS/TS)..editorconfigis the universal IDE baseline. Never hand-format — runmise run fmt. - Make minimal, focused changes that match the surrounding code.
Per-project rules promoted by /reflect are mirrored here from .claude/rules/core-rules.md
so every IDE/agent (not just Claude) sees them:
<!-- BEGIN learned (generated by mise run mirror-rules — do not edit by hand) --><!-- Source of truth: .claude/rules/core-rules.md → ## Learned rules. -->(none yet — promoted rules will be mirrored here from core-rules.md.)
<!-- END learned (generated) -->Testing
- Add tests beside the code they cover.
- When you bootstrap a stack, wire
mise run testto the real runner (pytest, vitest, …). - Verify behavior, not just types: run the actual command and read the output.
Git workflow
- Conventional Commits (
feat:,fix:,docs:,chore:,refactor:…). pre-commitformats + lints;pre-pushruns tests (lefthook → mise).- Git is intentionally not initialized in the seed — run
git initwhen you start a real project (the.gitignore/.gitattributesare already in place).
Boundaries — Always / Ask first / Never
Always
- Run
mise run fmtbefore finishing a change. - Keep
AGENTS.mdthe source of truth; mirror into tool files, never duplicate logic. - Record durable learnings through the knowledge loop (below), not in throwaway comments.
Ask first
- Adding a dependency, an MCP server, or a new language stack.
- Editing
.claude/settings.json, hooks, or permissions. - Any publish, deploy, or destructive data migration.
Never
- Commit secrets or
.env*(only.env.exampleis allowed). - Force-push shared branches,
rm -rfoutside the repo, or disable the safety hooks. - Auto-rewrite a skill or rule without the review + version-control gate.
Self-improvement loop (how this project learns about you)
This seed accumulates project knowledge automatically and safely (staged, reversible, model-judged — never blind self-editing):
- Capture (automatic). A
SessionEndhook scans the session for corrections and decisions and appends candidates to.claude/knowledge/pending.md— staging only, never live context. - Inject (automatic). A
SessionStarthook loads.claude/rules/core-rules.mdplus.claude/knowledge/*into context and nudges you whenpending.mdhas unreviewed items. - Reflect (model-mediated).
/reflect(or thereflectskill) reviews the pending candidates, promotes high-confidence corrections intocore-rules.mdor the relevantSKILL.md, dedupes, and archives them. Every promotion is backed up and (when git is on) committed with a rationale. - Distill.
/distill <name>crystallizes a finished multi-step task into a new, reusable skill under.claude/skills/. - Optimize (opt-in, offline). For a verifiable skill with a held-out eval set,
skillopt/wires Microsoft SkillOpt / DSPy GEPA to tune itsSKILL.mdagainst a metric. Seeskillopt/README.md.
Where knowledge lives:
.claude/knowledge/(project facts) ·.claude/rules/(behavior rules) ·.claude/skills/(procedures). Keep each small and rely on progressive disclosure — bigger is not better.
MCP tools available (curated "full core")
- Context7 — live, version-specific library docs. Use it before coding against any library so you never guess an API or version.
- Serena — semantic, symbol-level code navigation/editing via LSP. Prefer it over dumping whole files on large codebases (far cheaper on tokens).
- Playwright — drive a real browser to verify UI and end-to-end behavior.
- GitHub — repos, PRs, issues, code search. Until
GITHUB_MCP_PATis set it returns 401 on its own calls; this does not affect the other three servers.
Prerequisites: Serena needs uv/uvx (mise use -g uv), Playwright needs Node/npx
(mise use -g node). Context7 needs neither (remote HTTP, keyless). Without these, the
respective server just fails to start — the others still work.
Config lives in .mcp.json (Claude Code), .vscode/mcp.json (VS Code, key servers) and
.cursor/mcp.json (Cursor, key mcpServers). The server definitions are the same in all
three — only the wrapper key and the secret-substitution syntax differ (${VAR} for Claude,
${env:VAR} for Cursor, ${input:…} for VS Code). See docs/ARCHITECTURE.md for the
full picture. mise run doctor checks the three mirrors stay in sync.
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.

