agentleFS
MadaraUchiha-314MadaraUchiha-314/the-loop/CLAUDE.md

the-loop

CLAUDE.md8 starsChanged 59 days agoMITView on GitHub

**This repository is the-loop, and it dogfoods its own PDLC.** the-loop is a product-development-lifecycle harness (shipped as a Claude Code / Cursor plugin). When you work in this repo you are both building the harness and expected to use it: build the-loop through the-loop. the-loop's operating rules normally reach an agent through the plugin's SessionStart hook (hooks/hooks.json) or, in Cursor, the always-applied rule (rules/the-loop.mdc). Those only fire when the-loop is installed as a plugin in a consuming project — they…

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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:

    Create and lock the spec chain (requirements → design → testing-plan → tasks) under docs/specs/<id>/ before writing code, scaling rigor to …

    line 28
  2. Very specific:

    Write no progress log — issue-365 retired the execution log.

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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 — working in the-loop's own repository

This repository is the-loop, and it dogfoods its own PDLC. the-loop is a product-development-lifecycle harness (shipped as a Claude Code / Cursor plugin). When you work in this repo you are both building the harness and expected to use it: build the-loop through the-loop.

Why this file exists

the-loop's operating rules normally reach an agent through the plugin's SessionStart hook (hooks/hooks.json) or, in Cursor, the always-applied rule (rules/the-loop.mdc). Those only fire when the-loop is installed as a plugin in a consuming project — they do not fire in the-loop's own sessions, because a fresh Claude Code cloud / web checkout doesn't self-install the plugin. This CLAUDE.md is the in-repo equivalent: it is auto-loaded in every session here and carries the same reminder, so cloud/web sessions run the loop instead of shipping plain one-off PRs. (This is the gap issue #73 surfaced — the phase labels sit unused precisely because past work bypassed the loop.)

What to do

  1. Read the operating model first. .the-loop/harness-config.yaml (this project's config) and the bundled skill skills/the-loop/SKILL.md are the source of truth for how work is done here; skills/the-loop/reference/workflow.md has the phase-by-phase detail. Follow them — don't re-derive the process.
  2. Every change is a work item with a ticket. Nothing is worked without a GitHub issue. Create and lock the spec chain (requirements → design → testing-plan → tasks) under docs/specs/<id>/ before writing code, scaling rigor to the change per the skill's risk tiers: a trivial (tier 1–2) change is autonomous-complete and needs no full spec; a tier 3+ change does. When unsure which, follow the skill.
  3. Keep the phase label in sync. Apply and advance the loop:<phase> label on the ticket at every transition (loop:not-started → … → loop:complete); the fine detail is work-item-state.json's and the runtime writes it. Using the loop is what keeps these labels populated (see docs/reports/labels-and-dashboards.md). Write no progress log — issue-365 retired the execution log; each gate leaves one record under docs/specs/<id>/evidence/ instead.
  4. Follow the skill's remaining rules, don't restate them here: self/critic-review before escalating, a paper trail for every human decision, and updating the affected capability docs (docs/capabilities/) in the same PR as the change. See skills/the-loop/SKILL.md and its reference/.

Prime directive: when you build the-loop, run the loop.

Prompts and strings (issue-540). Text the CLI sends to an agent goes in a Markdown file under cli/the_loop/prompts/, read with the_loop.prompts; never a Python string literal. A human-facing message the-loop posts goes in cli/the_loop/strings/en.json, read with the_loop.strings.t. See docs/capabilities/prompts-and-strings.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.