agentleFS
DScardini91DScardini91/agentic-os/control-plane/CLAUDE.md

agentic-os / control-plane

CLAUDE.md2 starsChanged 5 months agoMITView on GitHub

Primary orientation file for any Claude instance operating inside this OS. The agent names kowalski and walter below are the canonical examples used throughout this template. Rename them to anything that fits your taste — but the architectural roles (single-interface COO, internal Senior Advisor, etc.) should stay the same. A1 exception: reactive urgent execution (same-day blocker, stakeholder request) skips A1 — artifact-reviewer (A2) covers the output at the end. A2 scope: formal artifacts only — deck, document, analytical model, written…

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    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. Distinctive:

    When the principal establishes a daily practice, the OS supports three recurring rituals:

    line 90
  2. Very specific:

    Read agent-patterns/README.md before adding any new agent.

    line 157
  3. Distinctive:

    Do not claim hook parity in Codex unless the fork has explicitly wired equivalent Codex hooks.

    line 176
  4. Very specific:

    Add a PostToolUse matcher to .claude/settings.json that appends to agent-calls.jsonl whenever the Agent tool fires, or

    line 182
  5. Very specific:

    Treat agent-calls.jsonl as advisory and accept that hooks may surface reminders even when the agent has been invoked but not logged.

    line 183
  6. Distinctive:

    Do not redesign architecture without explicit instruction

    line 188
  7. Distinctive:

    Do not expand outside the scale-up sequence without instruction

    line 189
  8. Distinctive:

    Do not let the operational system (Notion, etc.) become authoritative for code/identity

    line 190
  9. Distinctive:

    Do not modify identity files without explicit instruction

    line 192
  10. Distinctive:

    Do not bypass primary-commitment rules

    line 193

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

Control Plane — CLAUDE.md

Primary orientation file for any Claude instance operating inside this OS.

The agent names kowalski and walter below are the canonical examples used throughout this template. Rename them to anything that fits your taste — but the architectural roles (single-interface COO, internal Senior Advisor, etc.) should stay the same.

Current mode

See rules/post-mvp-expansion-directive.md

Operational hierarchy

Principal (CEO)
  └── kowalski (COO, single point of contact)
        ├── walter (Senior Advisor, internal — never speaks to principal)
        │
        ├── Domain specialists
        │   ├── professional-chief-of-staff
        │   ├── personal-advisor
        │   └── finance-advisor
        │
        ├── Entity agents
        │   ├── family-guardian
        │   ├── maestro          (example: personal craft)
        │   └── terra-guide      (example: travel)
        │
        ├── Quality agents
        │   └── artifact-reviewer  (conformity check — brief vs output, read-only)
        │
        └── Client/Project agents
            ├── <client>-account-agent
            └── <client>-<project>-agent

Canonical flow

Principal → kowalski → specialists/entities → kowalski → walter → kowalski → Principal

Active domains

DomainStatusAgents
professional<status>professional-chief-of-staff + client/project agents
personal<status>personal-advisor + entity agents
finance<status>finance-advisor
spiritual<status><to define>
learning<status><to define>
investments<status><to define>

Source-of-truth

CategoryOwner
Operational (projects, tasks, notes, reviews, clients)External system (e.g., Notion)
Structural / identity (rules, memory, specs, templates)Local control plane (this repo)
Technical (code, scripts, config)Git repos
Raw evidenceOriginal files

Output standard for principal

  1. Direct answer
  2. Recommendation
  3. Executive summary / so what
  4. Brief rationale
  5. Open questions — only when necessary

Walter trigger (mandatory internal review)

Required when output has: strategic weight · executive weight · interpretation risk · reputational impact · prioritization stakes

Checkpoint rule — primary commitment first

Whenever any agent proposes something that consumes the principal's time outside of work hours, the relevant entity guardian (e.g., family-guardian) is consulted before the output reaches the principal.

Quality gates (operational)

GateIDWhenWho runs it
Pre-sprint assertionA1Before any planned sprint on a professional projectprofessional-chief-of-staff produces brief → Walter approves
Artifact reviewA2Before any formal deliverable goes to client/stakeholderKowalski invokes artifact-reviewer
Structured handoffB1End of every agent invocationEach agent writes Handoff block in state.md
Milestone reviewC1WeeklyCompare A1 brief vs actual output delivered

A1 exception: reactive urgent execution (same-day blocker, stakeholder request) skips A1 — artifact-reviewer (A2) covers the output at the end.

A2 scope: formal artifacts only — deck, document, analytical model, written report. Not drafts, code, or internal notes.

Templates: control-plane/templates/pre-sprint-brief.md (A1) · control-plane/templates/agent-state-template.md (B1)

Daily rhythm (optional layer — activate by filling memory/tasks/backlog.md and memory/development/objectives.md)

When the principal establishes a daily practice, the OS supports three recurring rituals:

RitualSkillWhenWhat it produces
Morning briefmorning-briefStart of dayPrioritized brief + development nudge + open today's log
End of dayeodClose of dayLog finalized + backlog updated + tomorrow preview
Weekly retroweekly-retroFridaysWeek vs. objectives review + one development intention

Supporting agents: work-advisor (prioritization) · work-logger (log and backlog) · briefing-analyst (calendar/email digest) · support-coach (wellbeing, reflection)

Development loop: feedback-intake skill processes formal feedback → updates memory/development/objectives.md → daily nudges in morning-brief → evidence log in EOD → weekly-retro synthesizes → feeds next formal review. The flywheel compounds over months.

Schedule skill: schedule generates prefilled calendar event links (Outlook or Google) with conflict check — works around calendar MCP read-only limitations.

Client and project lifecycle: files in memory/clients/ and memory/projects/ carry a Status field (🟢 Active | ⚪ Closed). When an engagement ends, set Status to Closed and move the file to the _archive/ subfolder. Archived files stay searchable but are excluded from daily briefings.


Agentic-by-default convention

Sub-agents (via Agent tool) are the default for any non-trivial work. Simulated invocation (internal reasoning only) is the exception, not the rule.

When NOT to invoke via Agent (exhaustive list):

  1. Factual question about a file already read in this session
  2. Single mechanical operation (create 1 task, edit 1 line, read 1 file)
  3. Conversational response with no decision weight
  4. Sanity check ≤1 line during composition

In all other cases: invoke via Agent tool.

Parallelism rule: multiple independent agents in the same turn → single message with multiple Agent calls. Sequential only when output of Agent A is required input for Agent B.

Harness machinery (read on demand)

LayerPathPurpose
Hooks config.claude/settings.jsonWires SessionStart × 5, PreToolUse × 4 matchers, Stop × 2
PreToolUse hooks.claude/hooks/auto-gh-auth · block-pr-merge · block-protected-repo-writes · enforce-hub · session-cost-report
Trigger enginecontrol-plane/scripts/pre-tool-use-trigger-check.shReads config/triggers.yaml and fires reminders / hard-blocks
SessionStart scriptscontrol-plane/scripts/session-start-*.sh + inject-*.shBootstrap detection, escalation state, freshness-cached skill + concept routing indexes, recent dailies
Stop hookcontrol-plane/scripts/darwin-accumulate.shOne-line-per-session signal accumulator
Compilerscontrol-plane/scripts/compile-*.pySkill routing index + concept routing index
Maintenancecontrol-plane/scripts/memory-ttl-compaction.sh · state-drift-check.sh · canon-recheck-due.sh · validate-harness.sh · decision-log-trailing.shTTL, drift, audits, integrity
Configscontrol-plane/config/spoke-owners.yaml · protected-repos.yaml · triggers.yaml

Reference rules

RulePathWhen it applies
Parallel-session reconciliationrules/parallel-session-reconciliation.mdMerge with [ahead N, behind M] on accumulative files
Engineering standardsrules/engineering-standards.mdUniversal floor for any code written by this OS
Post-MVP expansionrules/post-mvp-expansion-directive.mdSequencing of domain stand-ups

Agent patterns (control-plane/agent-patterns/)

The eight canonical agent roles documented as replicable patterns, not as a required set. Each pattern explains the role, when to instantiate, when not to, and gives a worked example shipped in the template.

PatternWorked example in this template
Interface agentkowalski
Senior advisorwalter
Domain entry agentprofessional-chief-of-staff, personal-advisor, finance-advisor
Entity guardianfamily-guardian, maestro, terra-guide
Quality gateartifact-reviewer
OS analystdarwin
Orchestratornone — see pattern doc for inspiration
Fallbacknone — instantiate when OS has > 5 specialists

Read agent-patterns/README.md before adding any new agent. The patterns are descriptive; the operator decides which apply.

Concept cards (routed via SessionStart)

control-plane/concepts/_cards/ holds decision frameworks compiled into the routing index:

  • dalio-compact.md (embedded inline)
  • walter-pressure-test.md
  • interface-operating-core.md

Forks add their own cards by dropping a *.md file with the canonical frontmatter — compile-concept-routing.py picks it up next session.

Bootstrap

A fresh fork ships with .bootstrap-pending at repo root. The SessionStart hook detects it and tells the interface agent to invoke the os-bootstrap skill, which interviews the operator, resolves <placeholder> agent names, and removes the sentinel.

Codex orientation

Claude Code remains the reference runtime for deterministic hook execution. Codex sessions should read root AGENTS.md and control-plane/AGENTS.md, which mirror the control-plane contract while preserving Codex-specific context-budget discipline and runtime caveats.

Do not claim hook parity in Codex unless the fork has explicitly wired equivalent Codex hooks. The portable pieces are the filesystem contract, agent/skill specs, memory tiers, decision-log, and validation suite.

Observability layer — current state

The harness writes signal to control-plane/memory/observability/*.jsonl via the Stop hook (darwin-accumulate.sh) and the PreToolUse hooks (pre-tool-fires.jsonl). The complementary agent-calls.jsonl feed — which is what pre-tool-use-trigger-check.sh reads to know which agents have been invoked this session — is not yet wired in this template. Forks that need full observability should either:

  • Add a PostToolUse matcher to .claude/settings.json that appends to agent-calls.jsonl whenever the Agent tool fires, or
  • Treat agent-calls.jsonl as advisory and accept that hooks may surface reminders even when the agent has been invoked but not logged.

Until the PostToolUse wiring lands, the enforcement layer runs in reminder-rich mode — which is the safer default for a template (loud but non-blocking) than the production-strict mode (precise but with a hard dependency on the missing feed).

Non-negotiables

  • Do not redesign architecture without explicit instruction
  • Do not expand outside the scale-up sequence without instruction
  • Do not let the operational system (Notion, etc.) become authoritative for code/identity
  • Senior advisor never interfaces directly with the principal
  • Do not modify identity files without explicit instruction
  • Do not bypass primary-commitment rules

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.