locus
AGENTS.md14 starsChanged 8 months agoMITView on GitHub
This file defines the working contract for AI agents operating in the locus repository. It is intentionally short, opinionated, and practical. Build and maintain Locus as a persistent memory platform for AI coding tools, with the current primary product focus on: Secondary IDE adapters such as Cursor, Windsurf, Cline, and Zed matter, but they must not degrade the primary Codex path.
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,773 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.
- compactSkill
- forgetSkill
- memory-auditSkill
- memory-configSkill
- memory-doctorSkill
- memory-purgeSkill
- memory-statusSkill
- rememberSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
22 rules. About 0 are common, 19 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Avoid unnecessary abstraction and speculative complexity.
- Distinctive: line 28
Do not touch unrelated code without a clear reason.
- Distinctive: line 30
Use tests and checkable success criteria as a competitive advantage, not as an afterthought.
- Distinctive: line 37
Do not silently jump to the next major task if the user asked for approval gates.
- Distinctive: line 39
Prefer facts, validation results, and concrete trade-offs over reassurance or filler.
- Very specific: line 48
Do not fork Locus into separate products for Codex, Claude Code, or other clients.
- Distinctive: line 70
Treat them as secondary adapters, not as the driver of core architecture.
- Distinctive: line 77
Default to safe capture behavior unless the user explicitly wants richer recall.
- Very specific: line 82
Never describe full as risk-free.
- Distinctive: line 83
Do not claim semantic recall quality without validating it against real session data.
- Distinctive: line 90
Keep shipped state and future ideas clearly separated.
- Distinctive: line 94
Do not leave stale “future work” text in shipped docs after a release.
- Distinctive: line 100
Prefer local-first validation before GitHub push.
- Distinctive: line 101
Keep stable checkpoints and release markers explicit.
- Distinctive: line 102
Do not rewrite shared history without explicit approval.
- Distinctive: line 103
Prefer clean release flow:
- Distinctive: line 116
Do not claim success without verification.
- Distinctive: line 119
Search/recall claims require real recall checks, not only unit tests.
- Distinctive: line 120
If a failure is environmental or upstream, say so explicitly and do not mislabel it as solved.
- Very specific: line 126
Keep canonical product logic in the main locus repository.
- Distinctive: line 128
If “one-command install” is the goal, package the runtime as well as the plugin metadata.
- Distinctive: line 129
Keep manual MCP setup documented as a fallback until the packaged install path is fully proven.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
This file defines the working contract for AI agents operating in the locus repository.
It is intentionally short, opinionated, and practical.
Mission
Build and maintain Locus as a persistent memory platform for AI coding tools, with the current primary product focus on:
- Codex CLI
- Codex desktop / extension surfaces
- Claude Code compatibility preservation
Secondary IDE adapters such as Cursor, Windsurf, Cline, and Zed matter, but they must not degrade the primary Codex path.
Core Working Style
- Think before coding.
- Surface wrong assumptions, hidden confusion, and missed trade-offs early.
- Prefer simplicity first.
- Avoid unnecessary abstraction and speculative complexity.
- Make surgical changes.
- Do not touch unrelated code without a clear reason.
- Keep implementation goal-oriented.
- Use tests and checkable success criteria as a competitive advantage, not as an afterthought.
Collaboration Contract
- Work task-by-task when the user is driving an execution sequence.
- Do not silently jump to the next major task if the user asked for approval gates.
- Communicate directly and concisely.
- Prefer facts, validation results, and concrete trade-offs over reassurance or filler.
- Save important project decisions so they remain discoverable across sessions.
Product Rules
1. Keep one Locus, not separate products
- Do not fork Locus into separate products for Codex, Claude Code, or other clients.
- Reuse the shared storage, inbox, search, and ingest pipeline wherever possible.
- Client-specific behavior should be implemented as thin adapters.
2. Codex is the current primary product line
- Codex CLI and Codex desktop / extension are the primary validation path after
v3.3.0. - Codex-first work should improve one or more of:
- installation UX
- conversational recall quality
- diagnostics
- packaging
- user trust and privacy clarity
3. Claude Code must not regress casually
packages/claude-code/**should stay untouched unless a shared contract change truly requires it.- Codex work must not create incidental Claude regressions.
4. Secondary IDE support is real but lower priority
- Cursor, Windsurf, Cline, Zed, and similar MCP clients are important.
- Treat them as secondary adapters, not as the driver of core architecture.
- Reuse the same ingest contracts and storage model instead of special-casing each IDE.
Memory And Capture Rules
- Default to safe capture behavior unless the user explicitly wants richer recall.
- Be precise about what each mode means:
metadata= ingestion and diagnostics first, minimal content recallredacted= practical richer recall with privacy filteringfull= maximum recall, explicit warning territory
- Never describe
fullas risk-free. - Do not claim semantic recall quality without validating it against real session data.
- Separate “events imported successfully” from “conversation recall is meaningfully useful”.
Documentation Rules
- Keep shipped state and future ideas clearly separated.
- Historical delivered roadmap belongs in
docs/roadmap/codex.md. - Forward-looking Codex work belongs in
docs/roadmap/codex-next.md. - README, roadmap, release notes, and install docs must tell the same product story.
- Do not leave stale “future work” text in shipped docs after a release.
Git And Release Discipline
- Prefer local-first validation before GitHub push.
- Keep stable checkpoints and release markers explicit.
- Do not rewrite shared history without explicit approval.
- Prefer clean release flow:
- validate locally
- prepare docs and version metadata
- push release branch
- open PR
- merge intentionally
- tag stable release
- Preserve useful local history by archiving before destructive cleanup.
Verification Rules
- Do not claim success without verification.
- Runtime claims require runtime checks.
- Installation claims require installation checks.
- Search/recall claims require real recall checks, not only unit tests.
- If a failure is environmental or upstream, say so explicitly and do not mislabel it as solved.
Packaging Rules
- Keep canonical product logic in the main
locusrepository. - Marketplace repositories or packaging repositories should be thin distribution layers, not second sources of truth.
- If “one-command install” is the goal, package the runtime as well as the plugin metadata.
- Keep manual MCP setup documented as a fallback until the packaged install path is fully proven.
Immediate Strategic Priorities After v3.3.0
See docs/roadmap/codex-next.md, but in short:
- One-command install for Codex
- Richer Codex conversational recall
- Codex desktop / extension polish
- HTML dashboard
- Secondary IDE adapters only after the Codex-first path is strong
Agent Heuristic
When in doubt:
- choose the simpler design
- validate before claiming
- protect shipped behavior
- keep docs honest
- favor Codex-first product progress without breaking the shared platform
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.

