agentleFS
KbWenKbWen/agentic-os/CLAUDE.md

agentic-os

CLAUDE.md206 starsChanged 3 months agoMITView on GitHub

AGENTS.md is auto-injected above via @import — governance rules, gates, and state model are already in context. This file only adds Claude-specific dispatch. Do NOT duplicate rules from AGENTS.md here. Token budget rationale: conditional loading saves ~5,000 tokens for tiny-fix, ~3,500 tokens for quick-win. Full mechanics: AGENTS.md §vNext State Model. /command dispatches via .claude/commands/<command>.md → canonical workflow at .agent/workflows/<command>.md. Skill metadata: .agent/skills/*. Full instructions: .agents/skills/*/SKILL.md. Activation and cache policy: AGENTS.md §Skill Safety & Precedence and §Shared Phase Contracts. Run .agentcortex/bin/validate.sh…

The file

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

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

  • 4

    Very specific

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

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

    Read .agentcortex/context/current_state.md (SSoT).

    line 14
  2. Very specific:

    Read .agent/rules/engineering_guardrails.md.

    line 15
  3. Very specific:

    If .agentcortex/context/work/<worklog-key>.md exists, read to resume.

    line 16
  4. Very specific:

    Run .agentcortex/bin/validate.sh (bash) or .agentcortex/bin/validate.ps1 (PowerShell).

    line 30

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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

@AGENTS.md

Claude Integration Entry

AGENTS.md is auto-injected above via @import — governance rules, gates, and state model are already in context. This file only adds Claude-specific dispatch. Do NOT duplicate rules from AGENTS.md here.

Startup (every conversation)

  1. At the start of a task, enter the governed flow in AGENTS.md before any file edit or completion claim — decide up front, not at the edit moment. No silent direct edits.
  2. Classify task scope from the user's message:
    • tiny-fix (< 3 files, no semantic change) → execute directly (diff + 1-line verification).
    • quick-win (1–2 modules, clear scope) → read SSoT (Step 3), skip Step 4.
    • feature / architecture-change / hotfix / uncertain → continue.
  3. Read .agentcortex/context/current_state.md (SSoT). (Skip for tiny-fix.)
  4. Read .agent/rules/engineering_guardrails.md. (Skip for tiny-fix and quick-win.)
  5. If .agentcortex/context/work/<worklog-key>.md exists, read to resume. (Skip for tiny-fix.)

Token budget rationale: conditional loading saves ~5,000 tokens for tiny-fix, ~3,500 tokens for quick-win. Full mechanics: AGENTS.md §vNext State Model.

Slash Commands

/command dispatches via .claude/commands/<command>.md → canonical workflow at .agent/workflows/<command>.md.

Skills

Skill metadata: .agent/skills/*. Full instructions: .agents/skills/*/SKILL.md. Activation and cache policy: AGENTS.md §Skill Safety & Precedence and §Shared Phase Contracts.

Validate

Run .agentcortex/bin/validate.sh (bash) or .agentcortex/bin/validate.ps1 (PowerShell).

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.