agentleFS
miuuyymiuuyy/Clew/AGENTS.md

Clew

AGENTS.md187 starsChanged 7 months agoMITView on GitHub

This file is the repository-specific context for Codex-style coding agents working in Clew. The global hardmode contract still applies. This file adds project truth, architecture boundaries, and workflow expectations specific to Clew. Before changing the product, read: Product identity lives in docs/agents/PROJECT_CONTEXT.md. Read it before making product-shape changes. These are non-negotiable: If a change weakens any of those, it is a regression even if it looks convenient. Start local dev: Stop listeners: Reset local DB: Verify frontend: Verify backend: There…

  • 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 repository3 other files it gives its agents.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    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:

    Before changing the product, read:

    line 9
  2. Distinctive:

    If a change weakens any of those, it is a regression even if it looks convenient.

    line 30
  3. Distinctive:

    Prefer explicit boundaries over fast hacks.

    line 34
  4. Distinctive:

    Keep model I/O inside visible contracts.

    line 35
  5. Distinctive:

    Prefer fail-closed over fake success.

    line 36
  6. Distinctive:

    Do not add hidden semantic routing or silent fallback behavior.

    line 37
  7. Distinctive:

    Avoid admin-dashboard vibes unless the user benefit is obvious.

    line 44
  8. Distinctive:

    If the model or a tool call cannot satisfy a contract, reject explicitly.

    line 51
  9. Distinctive:

    Do not mix them casually.

    line 93
  10. Distinctive:

    Treat the selected model as the decision engine.

    line 97
  11. Distinctive:

    Do not fix bad behavior with:

    line 107

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

Clew Codex Context

This file is the repository-specific context for Codex-style coding agents working in Clew.

The global hardmode contract still applies. This file adds project truth, architecture boundaries, and workflow expectations specific to Clew.

Read first

Before changing the product, read:

  • Shared agent context
  • Agent workflow
  • Architecture
  • ADR index

What Clew is

Product identity lives in docs/agents/PROJECT_CONTEXT.md. Read it before making product-shape changes.

Core product invariants

These are non-negotiable:

  1. The graph is the center of truth.
  2. AI must not silently mutate the graph.
  3. Accepted graph changes must stay reversible through snapshots.
  4. The UI must remain graph-first instead of dashboard-first.
  5. Local main and hosted product surfaces stay separate in emphasis.

If a change weakens any of those, it is a regression even if it looks convenient.

Engineering stance

  • Prefer explicit boundaries over fast hacks.
  • Keep model I/O inside visible contracts.
  • Prefer fail-closed over fake success.
  • Do not add hidden semantic routing or silent fallback behavior.
  • Build for long-term clarity, not one seed graph or one happy-path demo.

Frontend stance

  • The graph is the main surface, not decoration.
  • Overlays must support the graph instead of replacing it.
  • Avoid admin-dashboard vibes unless the user benefit is obvious.
  • Portfolio-quality UI matters because product perception matters here.

Backend stance

  • The repository and snapshot layer are first-class.
  • Proposal validation matters more than “the model probably meant well”.
  • If the model or a tool call cannot satisfy a contract, reject explicitly.
  • Side effects should remain legible through routes, repository, contracts, and traces.

Local commands

Start local dev:

./scripts/dev.sh

Stop listeners:

./scripts/stop_dev.sh

Reset local DB:

./scripts/reset_db.sh

Verify frontend:

cd frontend && npm run typecheck && npm run build

Verify backend:

PYTHONPATH=backend ./.venv/bin/python -m unittest discover -s backend/tests -v

If you are working on docs

There are two documentation layers:

  • docs/site_faq/ = product-facing docs source
  • docs/ = engineering and repo docs

Do not mix them casually.

If you are working on agent behavior

Treat the selected model as the decision engine.

Fix bad behavior by improving:

  • role
  • context pack
  • examples
  • JSON contract
  • validation boundary

Do not fix bad behavior with:

  • keyword routers
  • hand-written semantic overrides
  • hidden fallback models
  • case-specific prompt hacks disguised as architecture

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.