agentleFS
ayeshakhalid13ayeshakhalid13/LoopEngineering-CrashCourse/CLAUDE.md

LoopEngineering-CrashCourse

CLAUDE.md16 starsChanged 4 months agoMITView on GitHub

This repo builds the Loop Engineering Crash Course (see loop-plan.md, the single source of truth). Two deliverables: (1) a GitHub-browsable markdown course, (2) a Next.js website in web/ that renders the same docs/ content. These rules are mandatory in every session and for every loop. 1. Single source of truth. Course content is written once in docs/ and consumed by both surfaces (GitHub + website). Never duplicate content elsewhere. 2. Follow the §10 page template for every concept page: hook…

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

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

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Attribution: All nine primary sources are credited in resources/sources.md.

    line 32
  2. Distinctive:

    L1 first: Every loop starts in report-only mode (L1).

    line 34
  3. Very specific:

    One owner per file/folder: Only the designated owner loop edits a path.

    line 40
  4. Very specific:

    The spine is sacred: Update your state file every beat so an interrupted run resumes instead of restarting.

    line 42
  5. Distinctive:

    Green ≠ done: Verify output (link check, template check) before declaring a checkpoint met.

    line 51
  6. Distinctive:

    Read this file (automatic).

    line 56
  7. Very specific:

    If running a loop: read LOOP.md, then your own loops/day1/<loop>/loop.md and state.md, then shared/goal.md.

    line 58

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

CLAUDE.md — Project Rules (loaded every session)

This repo builds the Loop Engineering Crash Course (see loop-plan.md, the single source of truth). Two deliverables: (1) a GitHub-browsable markdown course, (2) a Next.js website in web/ that renders the same docs/ content. These rules are mandatory in every session and for every loop.

Where things live

File / folderRole
loop-plan.mdMaster plan — the single source of truth. Never contradict it.
days-plans/Per-day build plans (day1–day4).
LOOP.mdMain loop rulebook — rules shared by ALL loops. No single loop owns it.
loop-constraints.mdBinding constraints, read by the loop-constraints skill at the start of every run.
loops/day1/<loop>/loop.mdOne loop's own definition (prompt, stop, limit, ownership).
loops/day1/<loop>/state.mdThat loop's private spine. Only that loop writes it.
shared/goal.mdThe goal and definition of done the loops work toward.
shared/AGENTS.mdRules for any AI agent in this repo.
shared/loop-budget.mdToken/run budget for the whole fleet.
shared/loop-run-log.mdShared run log — every loop appends one line per beat.
STATE.mdProject-level spine (overall progress across days).

Mandatory rules (from loop-plan.md)

  1. Single source of truth. Course content is written once in docs/ and consumed by both surfaces (GitHub + website). Never duplicate content elsewhere.
  2. Follow the §10 page template for every concept page: hook → plain-English explanation → mermaid diagram → dual-tool code tabs (Claude Code ↔ OpenCode) → going-deeper callout → check-yourself quiz → Try With AI exercise → when-it-goes-wrong box → glossary popovers.
  3. Attribution. All nine primary sources are credited in resources/sources.md. Adapted MIT material carries attribution. License is MIT.
  4. L1 first. Every loop starts in report-only mode (L1). No auto-fix (L2) until a human has watched one full real run succeed.
  5. Minimum-safe checklist before starting any loop: provable success condition · run limit · spine (state file) written first · human gate · one log line per beat.
  6. Separate state files. Each loop has its own state.md; loops never write another loop's state file. This is how loops avoid overriding each other's work.
  7. One owner per file/folder. Only the designated owner loop edits a path; all other loops are read-only on it (ownership map is in LOOP.md).
  8. The spine is sacred. Update your state file every beat so an interrupted run resumes instead of restarting. Append one line to shared/loop-run-log.md every beat.
  9. Human gates. The human reviews README.md and foundations pages before a day's checkpoint is declared met. Never push, merge, or close issues/PRs without approval.
  10. Budget discipline. Respect shared/loop-budget.md. At 80% of the daily cap, switch to report-only. If loop-pause-all is active, exit immediately.
  11. Stop conditions are specs. A loop stops on exactly three things: success condition met, run limit hit, or no progress for 3 consecutive beats. "Feels done" is not a stop.
  12. Green ≠ done. Verify output (link check, template check) before declaring a checkpoint met. The maker never grades its own work — use a separate checker.

Session startup order

  1. Read this file (automatic).
  2. Read loop-constraints.md (binding).
  3. If running a loop: read LOOP.md, then your own loops/day1/<loop>/loop.md and state.md, then shared/goal.md.

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.