ProjectAtlas / templates
AGENTS.md437 starsChanged 5 months agoMITView on GitHub
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,736 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 repositoryOne other file it gives its agents.
- codex-coding-pluginSkill
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 5 are distinctive, and 7 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.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use the returned compact summary, search, relation, health, or slice call.
- Distinctive: line 9
Use compact summary connections for an ordinary trusted direct caller or dependency.
- Very specific: line 10
Run atlas slice <file> --start-line <n> --end-line <m> locally or atlas_slice through MCP for the smallest exact source range.
- Very specific: line 11
Use atlas overview, then folders and files, when next has no actionable candidate or broader structure is the task.
- Very specific: line 12
Run atlas outline <file> or bounded atlas search <pattern> when selected-file context is insufficient.
- Very specific: line 13
Run atlas health for cleanup/refactor work, with atlas_health as the MCP equivalent.
- Distinctive: line 15
Only then use language-server lookups or broad file reads on selected files.
- Very specific: line 16
Run atlas token when asked for token savings.
- Distinctive: line 22
Prefer official or canonical Rust crates and standard implementations for protocols, formats, parsers, storage, watchers, token tooling, …
- Very specific: line 23
Keep custom Rust code focused on ProjectAtlas-specific product logic, agent workflow policy, and composition between proven libraries.
- Distinctive: line 24
Document any exception to the official/canonical crate preference and cover it with tests.
- Very specific: line 27
Prefer typed structs plus Serialize enums for JSON/TOON payload schemas and status values.
≈ “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
ProjectAtlas Startup Snippet
Startup
- Read the complete installed/version-matched ProjectAtlas skill at startup and after compaction. For one exact checkout, prefer its short
atlasCLI and read the skill's short-command guide for each command's function and trigger;projectatlasis the same native command surface. Useatlas_*MCP tools for registered worktree aliases, compact session briefs/typed continuations, and cross-worktree federation. A hook may remind you but cannot prove the skill was read. - Establish the project root and run ProjectAtlas from that root so
.projectatlas/projectatlas.dbis project-local. - Refresh with
atlas watch --oncelocally oratlas_watch_oncefor an MCP-routed worktree only when the index may be stale; scan only on typed full-refresh guidance, never merely because a session started. - For one exact checkout, call
atlas next <task>once, then a bounded summary/search/relation and exact slice. For MCP-routed work, callatlas_session_briefonce withcompact: trueand the exact root selector; follow its typed next call directly. - Use the returned compact summary, search, relation, health, or slice call. Copy returned selectors and continuations instead of guessing or restarting discovery.
- Use compact summary connections for an ordinary trusted direct caller or dependency. Call detailed relations only when resolution, completeness, ambiguity, an omitted connection, or an exact occurrence matters.
- Run
atlas slice <file> --start-line <n> --end-line <m>locally oratlas_slicethrough MCP for the smallest exact source range. - Use
atlas overview, then folders and files, whennexthas no actionable candidate or broader structure is the task. For MCP, use the corresponding overview fallback when the brief cannot select a candidate. Useatlas files --file-pattern <glob>when the path pattern is known. - Run
atlas outline <file>or boundedatlas search <pattern>when selected-file context is insufficient; use MCP equivalents only on an MCP-routed worktree. - Run
atlas healthfor cleanup/refactor work, withatlas_healthas the MCP equivalent. - Run
atlas lint --report-untracked --purpose-level low; low fails stale, duplicate, and temporary-folder health but keeps first-pass purpose curation advisory. Useatlas purpose queuefor the next curation actions; usemediumonly when all source files must be agent-reviewed andstrictonly when every indexed file and folder must be agent-reviewed. MCP has equivalent lint and purpose tools for routed work. - Only then use language-server lookups or broad file reads on selected files.
- Run
atlas tokenwhen asked for token savings; useatlas token --view tuionly when a human asks for the terminal dashboard. Useatlas_token_reportfor an MCP-routed worktree. - After ProjectAtlas plugin/runtime updates, verify Codex plugin drift with
codex plugin list --marketplace projectatlas --jsonand global MCP registry drift withcodex mcp get projectatlasorcodex mcp listwhencodexis available. A stale officialprojectatlasmarketplace/plugin cache, stale Codex ProjectAtlas skill artifact, stale globalprojectatlasMCP entry pointing at an old runtime, wrong version, or invalid config, or old ProjectAtlas release pin in an official downstream workflow, is a bug; rerun the ProjectAtlas installer so it repairs or reports the drift automatically. The installer also verifies Claude Code/OpenCode generated MCP configs against the verified runtime, version guard, selected DB/config, and host-specific fields; when those host CLIs are installed, smoke their config readers too. A global entry whose default DB belongs to another repository can still serve the current repository through process-scopedatlas_set_project_pathor per-callproject_path; prefer per-callproject_pathfor shared or concurrent hosts. UsePROJECTATLAS_SKIP_CODEX_PLUGIN_UPDATE=1only for intentionally managed Codex ProjectAtlas plugin marketplaces, andPROJECTATLAS_SKIP_CODEX_MCP_REGISTRY_UPDATE=1only for intentionally managed global registries. - If work moves outside the selected ProjectAtlas root, switch with
atlas_set_project_pathin a single-client stdio session or per-callproject_pathwhen isolation matters. Root-level MCP paths may route to another repository only when that addressed root already has.projectatlas/projectatlas.db; otherwise use normal filesystem tools such asrg,Get-Content, or targeted shell reads instead of ProjectAtlas for out-of-project files. - For planned folder and file purpose creation or correction, including initial creation and broad refreshes, delegate the work through bounded isolated subagent execution at the lowest reliable reasoning and cost tier the host supports when that execution is available; otherwise process the same bounded work in the main agent. Give the subagent bounded ProjectAtlas queue rows, summaries, outlines, or exact snippets, and have it write through
atlas_purpose_set,atlas_purpose_review,projectatlas purpose set, orprojectatlas purpose review --from-file <json> --apply; never edit SQLite directly. A purpose written by an agent or subagent through those ProjectAtlas APIs is agent-approved and does not need a second approval pass. If any agent notices a wrong, vague, generic, or genuinely repurposed accepted purpose during normal work, correct it explicitly with the same ProjectAtlas APIs. Purpose entries live in SQLite and are preserved across scans; source/hash/summary/symbol/graph changes never demote or invalidate an accepted purpose. An absent or excluded path leaves its purpose dormant, an exact-path reappearance restores it, and a rename does not transfer approval automatically. - When a GitHub issue has an OpenSpec change, mirror
openspec/changes/<id>/tasks.mdinto exactly one visibleImplementation Taskssection and add exactly one canonical five-rowAcceptance and Review Taskssection. Implementation tasks are live progress: check each row immediately after its behavior and required task-level proof pass, and reopen it immediately when review finds the implementation partial, resetting all acceptance/review rows. Keep acceptance unchecked until implementation completes, then use a checked prefix. Existing implementation rows remain unchanged, including historical architecture-review rows. Every open mapped issue uses the current two-list contract; already closed mapped issues are inert historical state and are not body-migrated or repeatedly task-validated, while reopening an old issue requires migration before work proceeds. Every open issue carries exactly one acceptedcomplexity:*label, including unmapped backlog issues, without fabricated task fields. Use(Implementation tasks: <task IDs>)for open mapped mitigations, keepopenspec/issue-map.jsoncurrent, and run.github/scripts/issue-checklists.pyfor release/check-in validation. Pull-request checks resolve exactly one referenced owner, compare its candidate task slice with live state, require unrelated open slices to match the accepted base, exclude closed unrelated history, and fail closed on missing or ambiguous ownership/base;mainand release checks remain global and use native closed state for closure/release. Treat local/GitHub checklist drift as a check-in blocker; random checkboxes outside explicit task sections must not satisfy the gate.
Rust/Dependency Discipline
- Prefer official or canonical Rust crates and standard implementations for protocols, formats, parsers, storage, watchers, token tooling, and platform integration before writing custom code.
- Keep custom Rust code focused on ProjectAtlas-specific product logic, agent workflow policy, and composition between proven libraries.
- Document any exception to the official/canonical crate preference and cover it with tests.
- Architecture reviews must explicitly check for unnecessary reimplementation, cross-platform path issues, performance bottlenecks, and drift from agent-first ProjectAtlas workflows.
- Do not scatter protocol, schema, status, command, event, or mode strings as inline literals in Rust logic or payload builders. Centralize them at the smallest owning boundary: adapter-local constants/enums/types for adapter-only contracts, service-local constants/enums for service-owned rules, and shared crate modules only for cross-crate public contracts.
- Prefer typed structs plus
Serializeenums for JSON/TOON payload schemas and status values. Use constants for repeated command/event keys and match strings; keep one-off human diagnostics or test fixture prose inline when that avoids false abstraction.
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.

