mex / templates
AGENTS.md1.8k starsChanged 3 months agoMITView on GitHub
Always-loaded project anchor. Read this first. Contains project identity, non-negotiables, commands, and pointer to ROUTER.md for full context.
21 other projects use a version of this, 1 of them edited.
Trending
More talk lately.about the whole repository
Most recently taken up by
- skynetcmd/m3-memorytheir own version, first seen Oct 3, 2026
- calesthio/OpenMontagetheir own version, first seen Oct 3, 2026
- Quad4-Software/skillstheir own version, first seen Oct 3, 2026
- akillness/jeo-skillsedited, first seen Oct 2, 2026
- RobStrayer/voice-agent-skillstheir own version, first seen Oct 1, 2026
- elevenlabs/skillstheir own version, first seen Sep 30, 2026
Who's talking about mex-memory/mex
- A Hacker News story“Show HN: Mex 0.8.0 – team memory for coding agents”Hacker News · Sep 3, 2026 · 2 points
- sudosubin/agents.nix“agent-skills.github.mex-memory.mex: 0.8.2 → 0.8.3”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.mex-memory.mex: init at 0.8.2”GitHub · Sep 29, 2026
- qte77/ai-agents-research“docs(non-cc): screenshot-lead research batch 11 (plan 0008 row 20)”GitHub · Sep 24, 2026
- dyk1454683243-sudo/mex“fix(drift): treat resolution stubs like ./x as not-paths”GitHub · Sep 19, 2026
The biggest 5 of 17 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 17
Talked about on GitHub and Hacker News (17 times).
On GitHub · 16
- Oct 3, 2026agent-skills.github.mex-memory.mex: 0.8.2 → 0.8.3 — sudosubin/agents.nix0 reactions
- Sep 29, 2026agent-skills.github.mex-memory.mex: init at 0.8.2 — sudosubin/agents.nix0 reactions
- Sep 24, 2026docs(non-cc): screenshot-lead research batch 11 (plan 0008 row 20) — qte77/ai-agents-research0 reactions
- Sep 19, 2026fix(drift): treat resolution stubs like ./x as not-paths — dyk1454683243-sudo/mex0 reactions · 1 comment
- Sep 19, 2026fix(drift): treat qualified-name symbol notation as not a path — dyk1454683243-sudo/mex0 reactions · 1 comment
11 more on GitHub
- Sep 19, 2026fix(graph): do not print uninspected status as measured zeros — dyk1454683243-sudo/mexsays it tested it0 reactions · 1 comment
- Sep 19, 2026fix(drift): stop DEAD_COMMAND and INDEX_MISSING_ENTRY false positives — dyk1454683243-sudo/mex0 reactions
- Sep 19, 2026fix(drift): discover nested pyproject.toml and recursive package.json — dyk1454683243-sudo/mex0 reactions
- Sep 19, 2026fix(drift): do not treat version-shaped refs as missing paths — dyk1454683243-sudo/mex0 reactions
- Sep 7, 2026Spike: optional MEX context adapter for Nightshift handoffs and failure lessons — doctor-ew/nightshift-community0 reactions
- Sep 7, 2026Bump the npm-minor-and-patch group across 1 directory with 26 updates — pinnnthreetriples/StylistTG0 reactions
- Aug 10, 2026Bump the npm-minor-and-patch group across 1 directory with 28 updates — pinnnthreetriples/StylistTG0 reactions · 1 comment
- Aug 3, 2026Bump the npm-minor-and-patch group across 1 directory with 29 updates — pinnnthreetriples/StylistTG0 reactions · 1 comment
- Jul 27, 2026Bump the npm-minor-and-patch group across 1 directory with 27 updates — pinnnthreetriples/StylistTG0 reactions · 1 comment
- Jun 29, 2026Bump the npm-minor-and-patch group across 1 directory with 24 updates — pinnnthreetriples/StylistTG0 reactions · 1 comment
- Jun 22, 2026Bump the npm-minor-and-patch group across 1 directory with 19 updates — pinnnthreetriples/StylistTG0 reactions · 1 comment
On Hacker News · 1
- Sep 3, 2026Show HN: Mex 0.8.0 – team memory for coding agents2 points
Other versions21 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- akillness/jeo-skills★ 4628% same
Wrote their own version · 20
- calesthio/OpenMontage★ 63ksame name
- butterbase-ai/butterbase-skills★ 533same name
- elevenlabs/skills★ 472same name
- aws-samples/sample-well-architected-skills-and-steering★ 272same name
- boadij/pi-herdsman★ 121same name
- claude-world/director-mode-lite★ 80same name
- openbashok/promptzero★ 70same name
- skynetcmd/m3-memory★ 26same name
- itsmostafa/llm-engineering-skills★ 22same name
- itaywol/adeptability★ 9same name
10 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
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.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. 0 are common, 9 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 12
Not a tagline — a factual description of what the software does.
- Distinctive: line 20
Never write database queries outside of the repository layer
- Distinctive: line 21
Never commit secrets or API keys
- Distinctive: line 22
Always handle errors explicitly — no silent failures -->
- Distinctive: line 27
Use the actual commands from this codebase — not placeholders.
- Distinctive: line 43
Treat source returned by the graph as ALREADY READ.
- Very specific: line 44
Read the summary status and evidence.
- Very specific: line 45
Use mex graph get <id> --detail source only when source is missing, you need exact expansion, or a partial/degraded summary suggests it.
- Very specific: line 46
If the evidence is insufficient or the task wording does not match the code, use Grep/Glob instead.
- Very specific: line 47
Before editing a symbol, run mex impact <symbol|file> to see affected callers and scaffold memory.
- Distinctive: line 51
After meaningful work, run GROW:
- Very specific: line 55
Write: bump last_updated on changed scaffold files.
- Very specific: line 60
When earlier work may inform the task, use mex timeline --query "subject phrase" --file src/example.ts --limit 10 --json with a known …
- Distinctive: line 71
Do not claim an author, date, or historical event unless the retrieved data actually provides it.
- Distinctive: line 72
After a MEX write, say exactly what changed and its sharing boundary: a local draft is checkout-only and nothing is shared.
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
[Project Name]
What This Is
<!-- One sentence. What does this project do?
Length: 1 sentence maximum.
Not a tagline — a factual description of what the software does.
Example: "A REST API for managing inventory across multiple warehouse locations." -->Non-Negotiables
<!-- Hard rules the agent must never violate. Not preferences — rules.
These are the things that, if broken, cause real damage to the codebase.
Length: 3-5 items. More than 5 means the list has not been prioritised.
Example:
- Never write database queries outside of the repository layer
- Never commit secrets or API keys
- Always handle errors explicitly — no silent failures -->Commands
<!-- The exact commands needed to work on this project.
Include: run dev server, run tests, run linter, build.
Use the actual commands from this codebase — not placeholders.
For monorepos or projects with separate frontend/backend, group by area.
Target: keep this entire file under 150 tokens. For full-stack projects
with separate command sets, up to 200 tokens is acceptable.
Example:
- Dev: `npm run dev`
- Test: `npm test`
- Lint: `npm run lint`
- Build: `npm run build` -->Code Graph
Use the smallest relevant structured resolver. For Inbox or Relay mutations, resolve only the intended action with mex inbox contract --action <command-id> --json or mex relay contract --action <command-id> --json; use mex capabilities --json only for broader capability discovery. If the user explicitly asks to create, save, or draft a checkout-local Inbox or Relay draft, preview and apply that exact draft without asking for redundant confirmation. Deleting a local draft, or publishing, approving, rejecting, withdrawing, marking stale, repairing, taking or acknowledging, or closing, requires fresh explicit confirmation after semantic preview. Treat Git commit, push, and pull as separate actions requiring their own authorization.
The repo is indexed into .mex/graph.db. Use it to avoid re-reading code you already have — it is one tool alongside Grep/Glob, not a replacement for them.
- If you know the symbol name, go straight to it:
mex graph query <who-calls|what-calls|where-defined> <symbol>andmex graph get <id...>are exact. This is the strongest part of the graph. Each call first proves the whole index is still fresh, so on a large repository it takes seconds: pass several ids to onegraph getinstead of calling it once per id. Give it exact names — an approximate name can return a confident wrong match. - Exploring an unfamiliar task?
mex graph scope "<task>"returns bounded, source-backed JSONL context plus trustworthy execution flows. Scope matches on words, not meaning, so treat it as starting evidence rather than a complete answer. - Treat source returned by the graph as ALREADY READ; do not re-open those files.
- Read the summary status and evidence.
status: "ok"remains usable whentruncated: true; only optional evidence was omitted. Forpartialordegraded, narrow the task or followsuggestedNextCommands. - Use
mex graph get <id> --detail sourceonly when source is missing, you need exact expansion, or a partial/degraded summary suggests it. Do not expand nodes by quota. - If the evidence is insufficient or the task wording does not match the code, use Grep/Glob instead. Do not re-run
scopewith reworded phrasing more than once. - Before editing a symbol, run
mex impact <symbol|file>to see affected callers and scaffold memory. - During
mex sync, adjudicate any AMBIGUOUS grounding; after repairs, ensure the refreshed grounding is re-emitted.
Scaffold Growth
After meaningful work, run GROW:
- Ground: what changed in reality?
- Record: update
ROUTER.mdand relevantcontext/files - Orient: create or update a
patterns/runbook if this can recur - Write: bump
last_updatedon changed scaffold files; optionalmex lognotes follow the logging policy below
Agent Logging
Read mex logging --json at session start and before optional logging. This checkout-local advisory preference is significant (quiet default: material decisions, risks, blockers, or durable discoveries), checkpoints (batch useful notes at task/session boundaries), or manual (no unsolicited notes). Skip routine tool calls, edits, repeated status, and empty summaries. Honor explicit user log requests in every mode; never suppress mandatory workflow Activity or recovery audit records. Report a policy read failure instead of guessing or changing the preference.
When earlier work may inform the task, use mex timeline --query "subject phrase" --file src/example.ts --limit 10 --json with a known subject or exact recorded file path, or both. These are historical notes, not accepted current knowledge. Verify conclusions before reuse or explicit promotion with their source retained.
The scaffold grows from real work, not just setup. See the GROW step in ROUTER.md for details.
Navigation
At the start of every session, read ROUTER.md before doing anything else.
For full project context, patterns, and task guidance — everything is there.
<!-- mex-agent:skills:start -->MEX context policy
- When MEX context materially helps your work, mention MEX and the relevant finding naturally in your explanation. Tie the mention to what it helped you understand, decide, or verify. Avoid fixed phrases, standalone acknowledgements, repeated mentions, or narrating routine context loading. This replaces older MEX instructions requiring a fixed acknowledgement or context-loading narration.
- Do not claim an author, date, or historical event unless the retrieved data actually provides it.
- After a MEX write, say exactly what changed and its sharing boundary: a local draft is checkout-only and nothing is shared; a canonical artifact is written to the working tree and requires commit/push to share.
- Skill activation is not approval for canonical actions.
<!-- mex-agent:skills:end -->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.

