squadai
AGENTS.md9 starsChanged 5 months agoMITView on GitHub
docs/memory/ is this project's persistent, indexed memory store for decisions, learnings, and incidents. It is shared by every agent working in this repository — use it. Search first. Before any research, planning, or implementation task, run /memory-search <query> (or squadai memory search <query>) and pass the findings as context. Never skip memory-search before architecture or API decisions. Capture as you go. After a decision, fix, or discovery, run /memory-add <note> (or squadai memory add "<note>"). Notes land in docs/memory/_inbox/ as…
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 repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- find-skillsSkill
- pr-descriptionSkill
- testingSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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
- Very specific: line 8
Search first: Before any research, planning, or implementation task, run /memory-search <query> (or squadai memory search <query>) and pass …
- Very specific: line 13
Capture as you go: After a decision, fix, or discovery, run /memory-add <note> (or squadai memory add "<note>").
- Very specific: line 17
Housekeeping: Run /memory-promote periodically to graduate inbox drafts into permanent topic folders, and /memory-reindex after manual …
- Distinctive: line 46
Summarize long output: When a tool returns more than ~30 lines, extract the relevant findings instead of pasting the whole output into the …
- Distinctive: line 53
Memory first: Run a memory search before exploring the codebase — prior decisions often answer the question faster than fresh exploration.
- Very specific: line 59
Checkpoint at ~60% context: When roughly 60% of the context window is used, stop exploring, write down what you know, and finish the …
- Very specific: line 70
Search first: Before starting significant work, run squadai memory search <query> (or /memory-search <query> where slash commands are …
- Very specific: line 79
Housekeeping: Run squadai memory promote periodically to graduate inbox drafts into permanent topic folders, and squadai memory reindex …
≈ “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
<!-- squadai:memory:opencode -->Project Memory Protocol
docs/memory/ is this project's persistent, indexed memory store for
decisions, learnings, and incidents. It is shared by every agent working in
this repository — use it.
Search first. Before any research, planning, or implementation task, run
/memory-search <query> (or squadai memory search <query>) and pass the
findings as context. Never skip memory-search before architecture or API
decisions.
Capture as you go. After a decision, fix, or discovery, run
/memory-add <note> (or squadai memory add "<note>"). Notes land in
docs/memory/_inbox/ as drafts until promoted.
Housekeeping. Run /memory-promote periodically to graduate inbox drafts
into permanent topic folders, and /memory-reindex after manual edits under
docs/memory/ to keep the search index current.
For deeper multi-query research, delegate to the @librarian agent with a
plain-language question; it returns ranked excerpts from the memory index.
<!-- /squadai:memory:opencode --><!-- squadai:brand:opencode --> *
o o o .---.
/|\____/|\____/|\____|o o| S Q U A D A I
/ \ / \ / \ '---' x OpenCode<!-- /squadai:brand:opencode --><!-- squadai:efficiency:opencode -->Session Efficiency Protocol
Work token-efficiently. These rules apply to every task in this repository.
Search before read. Locate code with grep/glob first; read only the files and line ranges you need. Never read a whole file when a targeted range works.
Never re-read a file you just edited. The edit either succeeded or errored; trust that result instead of re-opening the file to check.
Summarize long output. When a tool returns more than ~30 lines, extract the relevant findings instead of pasting the whole output into the transcript.
Delegate exploration. Send open-ended codebase exploration to sub-agents and request a compact report (files, symbols, one-line conclusions) — keep raw file dumps out of the main context.
Memory first. Run a memory search before exploring the codebase — prior decisions often answer the question faster than fresh exploration.
Response discipline. Answer, then stop. Prefer code over prose; do not restate the request or narrate obvious steps.
Checkpoint at ~60% context. When roughly 60% of the context window is used, stop exploring, write down what you know, and finish the current step before starting anything new.
<!-- /squadai:efficiency:opencode --><!-- squadai:memory:pi -->Project Memory Protocol
docs/memory/ is this project's persistent, indexed memory store for
decisions, learnings, and incidents. It survives across sessions — use it.
Search first. Before starting significant work, run
squadai memory search <query> (or /memory-search <query> where slash
commands are available) and pass any findings into your plan. Never skip
memory-search before architecture or API decisions.
Capture as you go. After a decision, fix, or discovery, run
squadai memory add "<note>" (or /memory-add <note>). Notes land in
docs/memory/_inbox/ as drafts until promoted.
Housekeeping. Run squadai memory promote periodically to graduate inbox
drafts into permanent topic folders, and squadai memory reindex after manual
edits under docs/memory/ to keep the search index current.
For deeper multi-query research, ask the @librarian agent with a
plain-language question; it returns ranked excerpts from the memory index.
<!-- /squadai:memory:pi --><!-- squadai:brand:pi --> *
o o o .---.
/|\____/|\____/|\____|o o| S Q U A D A I
/ \ / \ / \ '---' x Pi<!-- /squadai:brand:pi --><!-- squadai:efficiency:pi -->Session Efficiency Protocol
Work token-efficiently. These rules apply to every task in this repository.
Search before read. Locate code with grep/glob first; read only the files and line ranges you need. Never read a whole file when a targeted range works.
Never re-read a file you just edited. The edit either succeeded or errored; trust that result instead of re-opening the file to check.
Summarize long output. When a tool returns more than ~30 lines, extract the relevant findings instead of pasting the whole output into the transcript.
Delegate exploration. Send open-ended codebase exploration to sub-agents and request a compact report (files, symbols, one-line conclusions) — keep raw file dumps out of the main context.
Memory first. Run a memory search before exploring the codebase — prior decisions often answer the question faster than fresh exploration.
Response discipline. Answer, then stop. Prefer code over prose; do not restate the request or narrate obvious steps.
Checkpoint at ~60% context. When roughly 60% of the context window is used, stop exploring, write down what you know, and finish the current step before starting anything new.
<!-- /squadai:efficiency:pi -->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.

