agentleFS
robinjose911robinjose911/loop-engineering-handbook/AGENTS.md

loop-engineering-handbook

AGENTS.md2 starsChanged 5 months agoMITView on GitHub

This repo is built to be read by humans and agents. If you are an AI agent working in or learning from this repo, start here. A handbook for loop engineering: running an AI coding agent in a governed, verifiable loop until a clearly defined goal is met. It ships a guide, a copy-paste prompt library, and seven worked examples that include the logs, the cost ledgers, and the real output of each run.

  • Installs packages
  • 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,266 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.

The file

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

1 rule. About 0 are common, 1 is distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Synthetic data only: No real orgs, datasets, or third-party data.

    line 34

≈ “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

For agents

This repo is built to be read by humans and agents. If you are an AI agent working in or learning from this repo, start here.

What this repo is

A handbook for loop engineering: running an AI coding agent in a governed, verifiable loop until a clearly defined goal is met. It ships a guide, a copy-paste prompt library, and seven worked examples that include the logs, the cost ledgers, and the real output of each run.

Machine-readable entry points

  • library/catalog.json — machine-readable index of every loop card (lands in Stage 4).
  • library/llms.txt — agent instructions for using the library (lands in Stage 4).
  • assets/manifest.json — every visual slot and whether it is a placeholder or a real asset.
  • repo.config.json — owner, theme, tagline, badges (single source of truth).

How to run the tests

# one-time per session
npm --prefix tools/preview install     # markdown renderer + static server
npm --prefix tests/e2e install         # @playwright/test
pip install -r tools/requirements.txt  # openpyxl, matplotlib, jsonschema, pytest, Pillow

# unit (per section)
python tools/validate/all.py           # runs every validator + the preview unit test

# integration (per stage) -- run from the repo root with an explicit config,
# or `cd tests/e2e && npx playwright test <spec>`
npx --prefix tests/e2e playwright test --config tests/e2e/playwright.config.ts tests/e2e/stage0-harness.spec.ts

Conventions you must follow

  • Synthetic data only. No real orgs, datasets, or third-party data.
  • Receipts match prose. Headline numbers are generated from artifacts and machine-checked.
  • Label volatile facts (as of June 2026 - verify before relying).
  • Diagrams are Mermaid sources in assets/diagrams/src/*.mmd, rendered to PNG.
  • Charts are generated from each example's own CSV, not drawn by hand.

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.