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…
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- control-plane/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agentic-os-reference-syncSkill
- branch-cleanupSkill
- capture-triageSkill
- darwin-housekeepingSkill
- darwin-path-modeSkill
- decision-log-entrySkill
- eodSkill
- expert-interview-guideSkill
- feedback-intakeSkill
- harness-onboardingSkill
- ingest-contentSkill
- meeting-to-work-itemsSkill
- memory-consolidateSkill
- morning-briefSkill
- os-bootstrap-extendSkill
- os-bootstrapSkill
- pr-reviewSkill
- scheduleSkill
- spec-cross-checkSkill
- ux-critiqueSkill
- weekly-retroSkill
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
- Distinctive: line 90
When the principal establishes a daily practice, the OS supports three recurring rituals:
- Very specific: line 157
Read agent-patterns/README.md before adding any new agent.
- Distinctive: line 176
Do not claim hook parity in Codex unless the fork has explicitly wired equivalent Codex hooks.
- Very specific: line 182
Add a PostToolUse matcher to .claude/settings.json that appends to agent-calls.jsonl whenever the Agent tool fires, or
- Very specific: line 183
Treat agent-calls.jsonl as advisory and accept that hooks may surface reminders even when the agent has been invoked but not logged.
- Distinctive: line 188
Do not redesign architecture without explicit instruction
- Distinctive: line 189
Do not expand outside the scale-up sequence without instruction
- Distinctive: line 190
Do not let the operational system (Notion, etc.) become authoritative for code/identity
- Distinctive: line 192
Do not modify identity files without explicit instruction
- Distinctive: line 193
Do not bypass primary-commitment rules
≈ “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.
Files
Control Plane — CLAUDE.md
Primary orientation file for any Claude instance operating inside this OS.
The agent names
kowalskiandwalterbelow 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>-agentCanonical flow
Principal → kowalski → specialists/entities → kowalski → walter → kowalski → PrincipalActive domains
| Domain | Status | Agents |
| 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
| Category | Owner |
| 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 evidence | Original files |
Output standard for principal
- Direct answer
- Recommendation
- Executive summary / so what
- Brief rationale
- 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)
| Gate | ID | When | Who runs it |
| Pre-sprint assertion | A1 | Before any planned sprint on a professional project | professional-chief-of-staff produces brief → Walter approves |
| Artifact review | A2 | Before any formal deliverable goes to client/stakeholder | Kowalski invokes artifact-reviewer |
| Structured handoff | B1 | End of every agent invocation | Each agent writes Handoff block in state.md |
| Milestone review | C1 | Weekly | Compare 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:
| Ritual | Skill | When | What it produces |
| Morning brief | morning-brief | Start of day | Prioritized brief + development nudge + open today's log |
| End of day | eod | Close of day | Log finalized + backlog updated + tomorrow preview |
| Weekly retro | weekly-retro | Fridays | Week 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):
- Factual question about a file already read in this session
- Single mechanical operation (create 1 task, edit 1 line, read 1 file)
- Conversational response with no decision weight
- 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)
| Layer | Path | Purpose |
| Hooks config | .claude/settings.json | Wires 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 engine | control-plane/scripts/pre-tool-use-trigger-check.sh | Reads config/triggers.yaml and fires reminders / hard-blocks |
| SessionStart scripts | control-plane/scripts/session-start-*.sh + inject-*.sh | Bootstrap detection, escalation state, freshness-cached skill + concept routing indexes, recent dailies |
| Stop hook | control-plane/scripts/darwin-accumulate.sh | One-line-per-session signal accumulator |
| Compilers | control-plane/scripts/compile-*.py | Skill routing index + concept routing index |
| Maintenance | control-plane/scripts/memory-ttl-compaction.sh · state-drift-check.sh · canon-recheck-due.sh · validate-harness.sh · decision-log-trailing.sh | TTL, drift, audits, integrity |
| Configs | control-plane/config/ | spoke-owners.yaml · protected-repos.yaml · triggers.yaml |
Reference rules
| Rule | Path | When it applies |
| Parallel-session reconciliation | rules/parallel-session-reconciliation.md | Merge with [ahead N, behind M] on accumulative files |
| Engineering standards | rules/engineering-standards.md | Universal floor for any code written by this OS |
| Post-MVP expansion | rules/post-mvp-expansion-directive.md | Sequencing 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.
| Pattern | Worked example in this template |
| Interface agent | kowalski |
| Senior advisor | walter |
| Domain entry agent | professional-chief-of-staff, personal-advisor, finance-advisor |
| Entity guardian | family-guardian, maestro, terra-guide |
| Quality gate | artifact-reviewer |
| OS analyst | darwin |
| Orchestrator | none — see pattern doc for inspiration |
| Fallback | none — 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.mdinterface-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
PostToolUsematcher to.claude/settings.jsonthat appends toagent-calls.jsonlwhenever the Agent tool fires, or - Treat
agent-calls.jsonlas 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
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
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.

