# yeachan-heo/oh-my-claudecode architecture

> Architecture diagram of the GitHub repository yeachan-heo/oh-my-claudecode, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yeachan-heo/oh-my-claudecode
- Repository: https://github.com/yeachan-heo/oh-my-claudecode

## Overview

1. **What this repository is**
   - This is a Claude Code extension/runtime called **oh-my-claudecode (OMC)**.
   - It is not a single app; it is a **tooling platform** that installs into Claude Code as a plugin, exposes a terminal CLI (`omc`), and injects a large set of hooks, skills, and orchestration runtimes.

2. **Primary user-facing surfaces**
   - **Terminal CLI**: `src/cli`, `src/index.ts`, plus build scripts in `scripts/`.
   - **In-session slash skills / prompts**: implemented through files in `skills/` and hook behavior in `src/hooks/`.
   - **Plugin/marketplace install path**: metadata under `.claude-plugin/`, `.mcp.json`, `.clawhip/`, and installer logic in `src/installer/`.
   - These are separate entry surfaces but they converge on the same orchestration and state libraries.

3. **Core runtime model**
   - OMC orchestrates work through several modes: **team**, **autopilot**, **ultrawork**, **ralph**, **pipeline**, **autoresearch**, and legacy compatibility paths.
   - The README makes **Team** the canonical mode; in code that is reflected by the dense `src/team/` subsystem and the `src/hooks/team-*` runtime hooks.
   - Most flows are event-driven: a Claude Code session emits hook events, OMC transforms them, then routes work to agents, workers, tools, or persistence layers.

4. **Team orchestration subsystem**
   - `src/team/` is the largest subsystem and models a staged multi-agent workflow.
   - It contains:
     - task and stage routing (`task-router`, `stage-router`, `role-router`)
     - worker lifecycle and health (`worker-bootstrap`, `worker-health`, `worker-restart`)
     - tmux/process integration (`tmux-session`, `tmux-comm`, `runtime-cli`, `runtime-v2`)
     - shared state and coordination (`inbox-outbox`, `dispatch-queue`, `merge-coordinator`, `audit-log`, `activity-log`)
     - governance and guardrails (`governance`, `permissions`, `sentinel-gate`, `model-contract`)
   - Conceptually this subsystem turns a single task into a **staged pipeline of workers with explicit handoff and merge points**.

5. **Hook layer: the main integration boundary**
   - `src/hooks/` is the main boundary between Claude Code session events and OMC behavior.
   - Hooks cover pre/post tool use, session start/end, compaction, prompt prerequisites, permission handling, background notifications, keyword detection, and prompt sanitization.
   - Important hook families:
     - **autopilot / persistent-mode / ralph**: long-running execution loops with cancellation, validation, and retry logic.
     - **project-memory / learner / wiki / notepad**: capture, infer, and persist reusable knowledge from sessions.
     - **team-* hooks**: manage team-session state, leader nudges, canonical state, and worker lifecycle.
     - **bridge / openclaw / notification hooks**: forward session events to external systems.
   - Hooks are where most session-time side effects happen; they generally write artifacts, update state files, or call external tools rather than directly implement business logic.

6. **Agent and prompt system**
   - `src/agents/` defines the specialized agent roles and prompt templates used by orchestration modes.
   - It includes architect, analyst, designer, executor, planner, critic, tester, writer, scientist, explorer, and tracer-style roles.
   - There is a clear separation between:
     - **agent definitions** and prompt sections
     - **mode-specific prompt generation**
     - **runtime execution**
   - This matters architecturally because Team/autopilot/Ralph don’t just “run code”; they synthesize role-specific prompts and route them through different execution backends.

7. **Tooling layer**
   - `src/tools/` exposes internal tools used by hooks, sessions, and workflows.
   - Notable tool groups:
     - AST and code analysis (`ast-tools`, diagnostics, LSP helpers)
     - memory/state utilities (`memory-tools`, `state-tools`, `shared-memory-tools`)
     - session/history/trace helpers
     - Python REPL bridge support
     - wiki and skills tooling
   - These are the reusable primitives that hooks and orchestration modes call into; they are not end-user features by themselves.

8. **MCP and external tool servers**
   - `src/mcp/` is the Model Context Protocol server side.
   - It includes standalone server support, tool registries, prompt injection/persistence, job management, and team-server convergence logic.
   - The README and tree show both **standalone MCP** and **team-oriented MCP** support.
   - This is the boundary where OMC exposes capabilities to Claude Code or other clients as structured tools rather than as ad hoc shell commands.

9. **Installer and plugin packaging**
   - `src/installer/` is responsible for turning the repo into a usable Claude Code plugin/runtime.
   - It manages:
     - `claude.md` / setup template reconciliation
     - plugin directory mode
     - hook template generation
     - MCP registry updates
     - version and environment guards
   - This subsystem is what bridges **source repo state** into **installed runtime state** inside a user’s Claude Code environment.

10. **HUD, state, and observability**
   - `src/hud/` renders the status line / live session view described in the README.
   - It consumes state from multiple places: session metadata, usage info, git state, prompt timing, team/autopilot state, and background tasks.
   - Supporting state libraries live in `src/lib/` and `src/features/state-manager`.
   - The architecture here is read-heavy: hooks and runtimes write state, HUD reads and renders it.

11. **Notifications and external integrations**
   - `src/notifications/` handles outbound delivery to Slack/Discord/Telegram/webhooks and related formatting/redaction.
   - `src/openclaw/` and the OpenClaw-related hook paths provide another external integration channel for session events and replies.
   - These integrations are event sinks: they receive session lifecycle events, tool-use events, or stop events and turn them into outbound messages.
   - In the architecture diagram, these should sit downstream of hooks/session events, not as core orchestration logic.

12. **Shared libraries and constraints**
   - `src/lib/`, `src/utils/`, `src/shared/`, and `src/platform/` contain cross-cutting concerns:
     - filesystem and path handling
     - atomic writes / file locks / shared memory
     - prompt truncation and payload limits
     - session isolation and security guards
     - config loading and plugin-dir resolution
   - These libraries form the reliability layer used by most subsystems, especially hooks, installer, team, and HUD.

13. **Skills and rules as content, not code**
   - `skills/`, `templates/`, and `docs/` are first-class runtime content.
   - Skills define reusable task behavior; templates define hook and rules injection; docs describe the supported execution patterns.
   - This repository is therefore partly a **content distribution system**: the runtime loads code, but the behavior is heavily shaped by versioned prompt/skill files.

14. **Benchmarks, scripts, and compiled output**
   - `benchmark/`, `benchmarks/`, `scripts/`, and `tests/fixtures/` support validation, regression testing, and benchmark evaluation.
   - `dist/` is the compiled output tree for the TypeScript source.
   - These areas are important for build/release but are not part of the live runtime architecture; they exist to validate and package the platform.

15. **Main data flows to draw**
   - **Claude Code session event → hook → state/artifact update → HUD/notification/MCP side effect**
   - **CLI command or slash skill → orchestration runtime → agents/workers/tools → artifacts/state**
   - **Installer/setup command → config files + hook templates + plugin metadata → enabled runtime**
   - **Team mode specifically**: task intake → stage/role routing → worker execution (often tmux/CLI-based) → outbox/inbox coordination → merge/verify loop → cleanup

Main entry points: [`src/team/index.ts`](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/index.ts) (Team core), [`src/hooks/index.ts`](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hooks/index.ts) (Hook layer), [`src/cli/index.ts`](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/cli/index.ts) (CLI entry), [`src/installer/index.ts`](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/installer/index.ts) (Installer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry points"]
  node_src_index["Main entry<br/>bootstrap<br/>[index.ts]"]
  node_cli_index["CLI entry<br/>terminal-cli<br/>[index.ts]"]
  node_cli_team["Team CLI<br/>cli-commands<br/>[team.ts]"]
  node_cli_autoresearch["Research CLI<br/>cli-commands<br/>[autoresearch.ts]"]
  node_installer["Installer<br/>[index.ts]"]
end

subgraph group_runtime["Runtime core"]
  node_team_core["Team core<br/>multi-agent-runtime<br/>[index.ts]"]
  node_team_routes["Routers<br/>routing<br/>[task-router.ts]"]
  node_team_workers["Workers<br/>worker-lifecycle"]
  node_team_process["Tmux/runtime<br/>process-backend<br/>[tmux-session.ts]"]
  node_team_coord["Coordination<br/>shared-state<br/>[inbox-outbox.ts]"]
  node_team_guardrails["Guardrails<br/>policy<br/>[governance.ts]"]
  node_hooks_root["Hook layer<br/>session-hooks<br/>[index.ts]"]
  node_hooks_autopilot["Autopilot hooks<br/>mode-runtime<br/>[index.ts]"]
  node_hooks_team["Team hooks<br/>session-bridge<br/>[index.ts]"]
  node_hooks_memory["Memory hooks<br/>knowledge-capture<br/>[index.ts]"]
  node_hooks_safety["Safety hooks<br/>session-guard<br/>[index.ts]"]
  node_ralphthon["Ralphthon<br/>specialized-mode<br/>[orchestrator.ts]"]
  node_autoresearch["Autoresearch<br/>guided-workflow<br/>[runtime.ts]"]
end

subgraph group_state["State layer"]
  node_hud["HUD<br/>live-observability<br/>[index.ts]"]
  node_state_lib["Shared libs<br/>utilities<br/>[paths.ts]"]
  node_tools["Tools<br/>tooling-primitives<br/>[index.ts]"]
end

subgraph group_integrations["Integrations"]
  node_mcp["MCP server<br/>protocol-server<br/>[index.ts]"]
  node_notifications["Notifications<br/>outbound-delivery<br/>[index.ts]"]
  node_openclaw["OpenClaw<br/>external-bridge<br/>[index.ts]"]
  node_interop["Interop<br/>shared-bridge<br/>[mcp-bridge.ts]"]
end

subgraph group_content["Content"]
  node_agents["Agents<br/>prompt-library<br/>[index.ts]"]
  node_skills["Skills<br/>runtime-content<br/>[AGENTS.md]"]
  node_templates["Templates<br/>runtime-content<br/>[session-start.mjs]"]
end

node_src_index -->|"exposes"| node_cli_index
node_src_index -->|"loads"| node_hooks_root
node_src_index -->|"installs"| node_installer
node_cli_index -->|"routes"| node_cli_team
node_cli_index -->|"routes"| node_cli_autoresearch
node_cli_index -->|"starts"| node_team_core
node_cli_index -->|"starts"| node_autoresearch
node_installer -->|"writes"| node_templates
node_installer -->|"enables"| node_skills
node_installer -->|"registers"| node_mcp
node_hooks_root -->|"delegates"| node_hooks_autopilot
node_hooks_root -->|"delegates"| node_hooks_team
node_hooks_root -->|"delegates"| node_hooks_memory
node_hooks_root -->|"guards"| node_hooks_safety
node_hooks_root -->|"emits"| node_notifications
node_hooks_root -->|"bridges"| node_openclaw
node_hooks_team -->|"drives"| node_team_core
node_team_core -->|"uses"| node_team_routes
node_team_core -->|"spawns"| node_team_workers
node_team_core -->|"runs on"| node_team_process
node_team_core -->|"coordinates"| node_team_coord
node_team_core -->|"constrains"| node_team_guardrails
node_team_coord -->|"converges"| node_mcp
node_team_process -->|"bridges"| node_interop
node_hooks_autopilot -->|"synthesizes"| node_agents
node_hooks_team -->|"synthesizes"| node_agents
node_hooks_memory -->|"calls"| node_tools
node_hooks_safety -->|"depends on"| node_state_lib
node_hud -->|"reads"| node_state_lib
node_hud -->|"displays"| node_team_core
node_hud -->|"displays"| node_hooks_autopilot
node_mcp -->|"exposes"| node_tools
node_mcp -->|"serves"| node_team_core
node_notifications -->|"integrates"| node_interop
node_openclaw -->|"shares"| node_interop
node_ralphthon -->|"adapts"| node_hooks_autopilot
node_autoresearch -->|"uses"| node_agents
node_autoresearch -->|"uses"| node_tools
node_skills -->|"consumed by"| node_hooks_root
node_templates -->|"materialized by"| node_installer

click node_src_index "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/index.ts"
click node_cli_index "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/cli/index.ts"
click node_cli_team "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/cli/commands/team.ts"
click node_cli_autoresearch "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/cli/autoresearch.ts"
click node_installer "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/installer/index.ts"
click node_team_core "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/index.ts"
click node_team_routes "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/task-router.ts"
click node_team_workers "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/worker-bootstrap.ts"
click node_team_process "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/tmux-session.ts"
click node_team_coord "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/inbox-outbox.ts"
click node_team_guardrails "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/governance.ts"
click node_hooks_root "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hooks/index.ts"
click node_hooks_autopilot "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hooks/autopilot/index.ts"
click node_hooks_team "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hooks/team-pipeline/index.ts"
click node_hooks_memory "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hooks/project-memory/index.ts"
click node_hooks_safety "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hooks/permission-handler/index.ts"
click node_agents "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/agents/index.ts"
click node_skills "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/skills/AGENTS.md"
click node_templates "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/templates/hooks/session-start.mjs"
click node_hud "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hud/index.ts"
click node_state_lib "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/lib/paths.ts"
click node_tools "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/tools/index.ts"
click node_mcp "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/mcp/index.ts"
click node_notifications "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/notifications/index.ts"
click node_openclaw "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/openclaw/index.ts"
click node_interop "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/interop/mcp-bridge.ts"
click node_ralphthon "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/ralphthon/orchestrator.ts"
click node_autoresearch "https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/autoresearch/runtime.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_src_index,node_cli_index,node_cli_team,node_cli_autoresearch,node_installer toneBlue
class node_team_core,node_team_routes,node_team_workers,node_team_process,node_team_coord,node_team_guardrails,node_hooks_root,node_hooks_autopilot,node_hooks_team,node_hooks_memory,node_hooks_safety,node_ralphthon,node_autoresearch toneAmber
class node_hud,node_state_lib,node_tools toneMint
class node_mcp,node_notifications,node_openclaw,node_interop toneRose
class node_agents,node_skills,node_templates toneIndigo
```

## Components

### Entry points

User-facing commands and installation surfaces

- [Main entry](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/index.ts): bootstrap · Package entry that wires the runtime together · `src/index.ts`
- [CLI entry](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/cli/index.ts): terminal-cli · Top-level command surface for omc · `src/cli/index.ts`
- [Team CLI](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/cli/commands/team.ts): cli-commands · Command handlers for team and related runtime commands · `src/cli/commands/team.ts`
- [Research CLI](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/cli/autoresearch.ts): cli-commands · CLI path for guided autoresearch flows · `src/cli/autoresearch.ts`
- [Installer](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/installer/index.ts): plugin-installer · Installs OMC into Claude Code and reconciles runtime files · `src/installer/index.ts`

### Runtime core

Session orchestration and mode execution

- [Team core](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/index.ts): multi-agent-runtime · Canonical staged workflow for task intake, routing, and worker coordination · `src/team/index.ts`
- [Routers](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/task-router.ts): routing · Task, stage, and role routing for team execution · `src/team/task-router.ts`
- [Workers](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/worker-bootstrap.ts): worker-lifecycle · Bootstrap, health, restart, and canonicalization for worker processes · `src/team/worker-bootstrap.ts`
- [Tmux/runtime](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/tmux-session.ts): process-backend · Tmux and CLI-backed execution backends for team sessions · `src/team/tmux-session.ts`
- [Coordination](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/inbox-outbox.ts): shared-state · Inbox/outbox, dispatch, merge, audit, and task state coordination · `src/team/inbox-outbox.ts`
- [Guardrails](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/team/governance.ts): policy · Governance, permissions, model contracts, and sentinel gates · `src/team/governance.ts`
- [Hook layer](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hooks/index.ts): session-hooks · Main boundary between Claude Code events and OMC behavior · `src/hooks/index.ts`
- [Autopilot hooks](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hooks/autopilot/index.ts): mode-runtime · Long-running autopilot and persistent-mode loops with validation and cancellation · `src/hooks/autopilot/index.ts`
- [Team hooks](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hooks/team-pipeline/index.ts): session-bridge · Session-time hooks for team state, dispatch, and worker lifecycle · `src/hooks/team-pipeline/index.ts`
- [Memory hooks](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hooks/project-memory/index.ts): knowledge-capture · Project memory, learner, wiki, and notepad capture paths · `src/hooks/project-memory/index.ts`
- [Safety hooks](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hooks/permission-handler/index.ts): session-guard · Permission handling, compaction, sanitization, and continuation guards · `src/hooks/permission-handler/index.ts`
- [Ralphthon](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/ralphthon/orchestrator.ts): specialized-mode · Ralph-oriented orchestrator and PRD/deep-interview flow · `src/ralphthon/orchestrator.ts`
- [Autoresearch](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/autoresearch/runtime.ts): guided-workflow · Guided research runtime and intake/setup flow · `src/autoresearch/runtime.ts`

### State layer

Shared persistence, HUD, and reusable libraries

- [HUD](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/hud/index.ts): live-observability · Read-only session view over state, git, usage, and mode status · `src/hud/index.ts`
- [Shared libs](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/lib/paths.ts): utilities · Cross-cutting filesystem, locks, paths, payload limits, and security helpers · `src/lib/paths.ts`
- [Tools](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/tools/index.ts): tooling-primitives · Reusable tools for AST, LSP, memory, wiki, trace, and Python REPL · `src/tools/index.ts`

### Integrations

External protocols, notifications, and bridges

- [MCP server](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/mcp/index.ts): protocol-server · Model Context Protocol tool exposure for Claude Code and external clients · `src/mcp/index.ts`
- [Notifications](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/notifications/index.ts): outbound-delivery · Slack, Discord, Telegram, webhook, and reply-listener delivery paths · `src/notifications/index.ts`
- [OpenClaw](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/openclaw/index.ts): external-bridge · External event routing and signal bridge for session events · `src/openclaw/index.ts`
- [Interop](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/interop/mcp-bridge.ts): shared-bridge · Shared-state and MCP bridge glue between runtimes and external processes · `src/interop/mcp-bridge.ts`

### Content

Skills, prompts, templates, and docs

- [Agents](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/src/agents/index.ts): prompt-library · Specialized role prompts for architect, analyst, executor, critic, and others · `src/agents/index.ts`
- [Skills](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/skills/AGENTS.md): runtime-content · Versioned skill content loaded as task behavior in-session · `skills/AGENTS.md`
- [Templates](https://github.com/yeachan-heo/oh-my-claudecode/blob/main/templates/hooks/session-start.mjs): runtime-content · Hook, rules, and setup templates injected into installed environments · `templates/hooks/session-start.mjs`

## Connections

- Main entry → CLI entry: exposes · Main package entry wires the terminal surface
- Main entry → Hook layer: loads · Bootstraps hook behavior for Claude Code sessions
- Main entry → Installer: installs · Prepares plugin/runtime files in the Claude environment
- CLI entry → Team CLI: routes · CLI dispatches team commands
- CLI entry → Research CLI: routes · CLI dispatches guided research commands
- CLI entry → Team core: starts · CLI can launch team runtime sessions
- CLI entry → Autoresearch: starts · CLI can launch guided research runs
- Installer → Templates: writes · Installer materializes hooks and setup templates
- Installer → Skills: enables · Installer reconciles runtime skill content
- Installer → MCP server: registers · Installer updates MCP configuration and registry state
- Hook layer → Autopilot hooks: delegates · Session hooks fan out into mode-specific autopilot behavior
- Hook layer → Team hooks: delegates · Session hooks fan out into team lifecycle handling
- Hook layer → Memory hooks: delegates · Session hooks capture reusable memory and wiki artifacts
- Hook layer → Safety hooks: guards · Session hooks enforce permission and prompt safety rules
- Hook layer → Notifications: emits · Hook events can be forwarded to outbound notification sinks
- Hook layer → OpenClaw: bridges · Hook events can be forwarded to OpenClaw integrations
- Team hooks → Team core: drives · Team hooks update and advance team runtime state
- Team core → Routers: uses · Team runtime resolves task, stage, and role routing
- Team core → Workers: spawns · Team runtime manages worker lifecycle
- Team core → Tmux/runtime: runs on · Team runtime executes through tmux/CLI backends
- Team core → Coordination: coordinates · Team runtime shares inbox/outbox and merge state
- Team core → Guardrails: constrains · Team runtime enforces governance and permissions
- Coordination → MCP server: converges · Team coordination can surface through MCP servers
- Tmux/runtime → Interop: bridges · Process backends communicate through shared bridge glue
- Autopilot hooks → Agents: synthesizes · Autopilot behavior is driven by role prompts and templates
- Team hooks → Agents: synthesizes · Team hooks select agent roles for session work
- Memory hooks → Tools: calls · Memory capture relies on reusable tooling primitives
- Safety hooks → Shared libs: depends on · Guardrails use shared filesystem and security helpers
- HUD → Shared libs: reads · HUD consumes shared state, paths, and safety helpers
- HUD → Team core: displays · HUD reflects team session progress and status
- HUD → Autopilot hooks: displays · HUD reflects autopilot and long-running mode state
- MCP server → Tools: exposes · MCP publishes internal tools as structured capabilities
- MCP server → Team core: serves · MCP has team-oriented server support
- Notifications → Interop: integrates · Outbound delivery shares bridge and session state plumbing
- OpenClaw → Interop: shares · OpenClaw uses shared bridge/state plumbing
- Ralphthon → Autopilot hooks: adapts · Ralph flows reuse the long-running orchestration layer
- Autoresearch → Agents: uses · Guided research synthesizes role-specific prompts
- Autoresearch → Tools: uses · Research flow uses shared tools and utilities
- Skills → Hook layer: consumed by · Skills are surfaced through hook-time runtime behavior
- Templates → Installer: materialized by · Templates are installed into Claude Code runtime state
