agentleFS
sdageltcsdageltc/letitloop/AGENTS.md

letitloop

AGENTS.md4 starsChanged 3 months agoMITView on GitHub

When modifying code or debugging bug chains in letitloop, NEVER run the entire 1,500+ test suite (pytest tests/) sequentially on every micro-edit. Follow this tiered protocol:

  • Commits and pushes
  • 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 repository7 other files it gives its agents.

The file

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

6 rules. About 0 are common, 3 are distinctive, and 3 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.

  • 3

    Very specific

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

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

    When modifying code or debugging bug chains in letitloop, NEVER run the entire 1,500+ test suite (pytest tests/) sequentially on every …

    line 5
  2. Distinctive:

    Run only the unit test file matching your modified source file:

    line 8
  3. Distinctive:

    Before opening a PR or executing git push, run the full multi-core parallel suite:

    line 40
  4. Very specific:

    Append-Only State & WAL: All state mutations must route through orchestrator/state.py with atomic write semantics.

    line 49
  5. Distinctive:

    Generic Infrastructure: Never commit personal account names, cloud subscription credits, or local filesystem paths into markdown docs or PR …

    line 51
  6. Very specific:

    Git Author Attribution: All commits must be authored as sdageltc <sdageltc@users.noreply.github.com>.

    line 52

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

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

LetItLoop Agent Execution & Fast Testing Guidelines

⚡ Fast Inner-Loop Test Protocol (Sub-Second Iteration)

When modifying code or debugging bug chains in letitloop, NEVER run the entire 1,500+ test suite (pytest tests/) sequentially on every micro-edit. Follow this tiered protocol:

1. Targeted File Testing (Sub-Second: < 0.5s)

Run only the unit test file matching your modified source file:

# When modifying orchestrator/state.py:
pytest tests/test_state.py -q

# When modifying orchestrator/auto_healer.py:
pytest tests/test_auto_healer.py -q

# When modifying orchestrator/ast_node_splicer.py:
pytest tests/test_ast_node_splicer.py -q

2. Fast Marker Suite (< 2s)

To verify all core unit and pure-logic invariants:

pytest -m fast -q

3. Autonomous Self-Healing with Smart Scoping (lil heal)

LetItLoop includes an automated repair loop that fixes ruff lint/formatting and runs targeted tests:

# Auto-heal targeting a specific module (auto-maps to tests/test_<module>.py):
lil heal --target orchestrator/state.py

# Fast auto-heal across fast markers:
lil heal --fast

# Output JSON telemetry for IDE / Agent integration:
lil heal --target orchestrator/state.py --json

4. Full Parallel Verification Gate (< 20s)

Before opening a PR or executing git push, run the full multi-core parallel suite:

# Runs across all CPU cores in parallel with telemetry suppression:
pytest

🔒 Code & Architecture Invariants

  • Append-Only State & WAL: All state mutations must route through orchestrator/state.py with atomic write semantics.
  • Pure Gate Invariance: letitloop-action in GitHub Actions is strictly a deterministic AST & HMAC-SHA256 validator (no live LLM loops in CI).
  • Generic Infrastructure: Never commit personal account names, cloud subscription credits, or local filesystem paths into markdown docs or PR descriptions.
  • Git Author Attribution: All commits must be authored as sdageltc <sdageltc@users.noreply.github.com>.

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.