agentleFS
batirkobatirko/research-and-learn/AGENTS.md

research-and-learn

AGENTS.md0 starsChanged 58 days agoMITView on GitHub

The operating guide for every agent in this workspace: the orchestrator, every worker, and any session the owner opens. Read it first. It builds a guide to a subject that its reader must understand by a date. The guide is a local HTML portal of ranked topics in tiers. Each topic explains its subject from the ground up, then offers a few ranked materials for depth. docs/method.md has the method on one page, and docs/concept.md has the whole design. Find…

  • 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 35,196 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 repository4 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No invented facts: Every outside claim has a source you opened in this session.

    line 22
  2. Distinctive:

    If your agent can't start subagents, the playbook's full mode runs each worker as a separate session instead.

    line 85
  3. Very specific:

    Ask only when a wrong guess would waste a worker's run.

    line 91

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

The operating guide for every agent in this workspace: the orchestrator, every worker, and any session the owner opens. Read it first.

What this workspace is

It builds a guide to a subject that its reader must understand by a date. The guide is a local HTML portal of ranked topics in tiers. Each topic explains its subject from the ground up, then offers a few ranked materials for depth. docs/method.md has the method on one page, and docs/concept.md has the whole design.

Where to start

Find the first line that fits, and follow it.

A skill is a folder in .agents/skills/ with a SKILL.md that says what to do. Most coding agents load these on their own, and .claude/skills links to the same folder for Claude Code. If your agent doesn't load skills, read the skill's SKILL.md and follow it as written.

  1. docs/request.md still reads "Status: template, not filled yet." The workspace has no guide yet. Run the set-up skill (.agents/skills/set-up/). It interviews the owner and writes the settings.
  2. The request is filled, and curriculum/topic-map.md still reads "Status: template, not filled yet." Run the scaffold skill (.agents/skills/scaffold/). It researches the case and proposes the topic map.
  3. The topic map exists. You are the orchestrator unless a brief says otherwise. Read orchestration/playbook.md, then orchestration/board.md. No worker starts before the owner has answered the kickoff.
  4. You have a brief. You are a worker. Your brief names your goal, your reading and the files you own. End by writing a handoff in orchestration/handoffs/.

Hard rules

  1. No invented facts. Every outside claim has a source you opened in this session. Every fact about the case carries a provenance tag. An unknown is written as an open question, never as a guess. context/README.md lists the tags.
  2. Evidence and interpretation stay apart. The context notes are a first reading made before anyone knew the case well. When your research contradicts them, the evidence wins, and you say so in your handoff.
  3. Private stays private. A fact from a private source sits in a private block. What is on context/never-publish.md never enters a topic, and the build fails if it reaches the portal.
  4. Sources are frozen. Nobody edits a file in context/sources/. A correction goes into the worker pack, so every later worker sees it.
  5. One word per concept, one home per concept. context/glossary.md holds the words. The topic map names the topic that explains each shared concept; the others link to it.
  6. Write only the files your brief names. Propose changes to shared files in your handoff.
  7. Only the orchestrator runs git. Workers share one folder, and a git command in one can capture or wipe another's files.
  8. engine/ and tools/ hold no guide content. An owner upgrades by copying them from a newer release, so anything written there would be lost.

When documents disagree

The higher one wins. Say in your handoff that you found a conflict.

  1. docs/request.md: the owner's own words.
  2. docs/decisions.md: decisions the owner has confirmed.
  3. docs/standards/, with the values in guide.toml.
  4. curriculum/topic-map.md
  5. orchestration/worker-pack.md
  6. Your brief.

Document map

FileRead it when
docs/method.mdYou need the method: tiers, ranks, a topic's parts, depth, visuals, evidence, privacy, words
docs/request.mdYou need the owner's request, the goal, the date, or the assumptions still to confirm
docs/decisions.mdYou are about to reopen something that looks settled
docs/standards/topic-page.mdYou write or review a topic
docs/standards/sources.mdYou pick, check or rank a source or a material
docs/standards/visuals.mdYou consider a diagram
docs/standards/writing.mdYou write a sentence the reader will see
docs/standards/portal.mdYou touch the portal or share it
engine/format.mdYou write a topic file
guide.tomlYou need a number: a size band, a limit, a quota total. The standards name the setting
context/You need a fact about the reader, the goal or the case. Start at context/README.md
curriculum/topic-map.mdYou need what a topic sets out to answer, its rank and size, or a concept's home
orchestration/worker-pack.mdYou are a worker: it condenses the request, the reader and the standards
orchestration/playbook.mdYou are the orchestrator
orchestration/board.mdYou need the status of a topic

Commands

The engine needs Python 3.11 or later. If python3 is older, call python3.11.

ToRun
Check a topic you wrotepython3 engine/topic.py content/<tier>/<id>-<slug>
Lint itpython3 tools/lint.py content/<tier>/<id>-<slug>
Build the portal and run the checks (orchestrator only)python3 engine/build.py
See which topics changed since their concept passpython3 engine/concepts.py
Build a copy to share, without the private blockspython3 engine/build.py --share
Scan that copy before it goes to anyonepython3 tools/scan.py files site-share/ --terms <the owner's list>

engine/README.md explains the build and its checks.

Writing

Write in the Google developer documentation style: one idea per sentence, active voice, present tense, and exact words for certainty. docs/standards/writing.md has the guide's rules. Before you hand off any prose, run the slop pass in .agents/skills/no-ai-slop/ in detect mode, and fix what it finds.

Subagents

Set the model on every spawn; a subagent otherwise inherits its parent's. Use the smallest model that can do the job: a smaller model to find sources, check links and check facts, the strongest to write, review and design. orchestration/playbook.md has the table. The docs name models by that job, not by brand, so they hold for any agent.

If your agent can't start subagents, the playbook's full mode runs each worker as a separate session instead.

Working with the owner

  • The owner may run several sessions and come back cold. Lead with what the guide now does, or with the decision you need.
  • Recommend one path, with its reasoning. Don't list the options you would not take.
  • Ask only when a wrong guess would waste a worker's run. Otherwise decide as a careful colleague would, and log it in docs/decisions.md.

This repository

If you are working on research-and-learn itself rather than on a guide: no file from a real guide ever enters this repository. A lesson from a real guide comes back only as a general rule, re-authored, with no fact about its case. The git hooks in .githooks/ scan every commit and push for private terms and secrets; turn them on with git config core.hooksPath .githooks. PORTING.md records which features from the private guide this project has assessed, and what it did with each; read it before you port one.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.