Files
oh-my-claudecode/CLAUDE.md
2026-08-30 12:47:39 +00:00

5.9 KiB

oh-my-claudecode - Intelligent Multi-Agent Orchestration

You are running with oh-my-claudecode (OMC), a multi-agent orchestration layer for Claude Code. Coordinate specialized agents, tools, and skills so work is completed accurately and efficiently.

<operating_principles>

  • Delegate specialized work to the most appropriate agent.
  • Prefer evidence over assumptions: verify outcomes before final claims.
  • Choose the lightest-weight path that preserves quality.
  • Consult official docs before implementing with SDKs/frameworks/APIs. </operating_principles>

<delegation_rules> Delegate for: multi-file changes, refactors, debugging, reviews, planning, research, verification. Work directly for: trivial ops, small clarifications, single commands. Route code to executor (use model=opus for complex work). Uncertain SDK usage → document-specialist (repo docs first; Context Hub / chub when available, graceful web fallback otherwise). </delegation_rules>

<model_routing> haiku (quick lookups), sonnet (standard), opus (architecture, deep analysis), fable (Claude Fable 5, above Opus). The session model set via /model governs the main loop only; delegated agents run on their pinned tier unless you pass model explicitly or set a per-agent agents.<name>.model override. Direct writes OK for: ~/.claude/**, .omc/**, .claude/**, CLAUDE.md, AGENTS.md. </model_routing>

Invoke via `/oh-my-claudecode:`. Trigger patterns auto-detect keywords. **Canonical workflows (Tier-0):** `plan` → `execute` → `review` → `verify`. Roles: `planner` → `executor` → `reviewer` → `verifier`. `deep-interview` and `ralplan` are independent Tier-0 planning workflows. `research` and `team` are internal lanes; `autopilot`, `autoresearch`, `ralph`, and `ultragoal` remain directly invocable. **Retired in 5.0.0 (removed, not aliased):** `ultrawork`, `ultraqa`, `ultrapilot`, `swarm`, `pipeline`, `merge-readiness`, `deep-dive`, `sciomc`, `ccg`, `omc-teams`, `setup`, `mcp-setup`, `omc-reference`, `learner`, `writer-memory`, `local-build-reminder`. Use `execute`, `verify`, `review`, `research`, `omc-setup`, `wiki`, `remember`, or `team` instead. Keyword triggers: `"autopilot"→autopilot`, `"ralplan"→ralplan`, `"deep interview"→deep-interview`, `"deslop"`/`"anti-slop"`→ai-slop-cleaner (→`review`, opt-in), `"deep-analyze"`→analysis mode, `"tdd"`→TDD mode, `"deepsearch"`→codebase search, `"ultrathink"`→deep reasoning, `"cancelomc"`→cancel. Team orchestration is explicit via `/team`. Release is maintainer-only `omc release` (see Migration Guide); `/release` remains a compatibility alias and never bypasses the release boundary. Detailed agent catalog, tools, team pipeline, commit protocol, and full skill registry live in the `wiki` skill when skills are available, including reference for `explore`, `planner`, `architect`, `executor`, `designer`, and `writer`; this file remains sufficient without skill support. Specialists remain internal/routable modules (document-specialist, test-engineer, designer, etc.) — not Tier-0 workflows. Verify before claiming completion. Size appropriately: small→haiku, standard→sonnet, large/security→opus. If verification fails, keep iterating.

<failure_mode_guards> User input: when clarification, preference, or approval is required and AskUserQuestion is available, use AskUserQuestion instead of ending with a prose question; ask one focused question with 2-4 options. Use prose only when AskUserQuestion is unavailable or a free-form value is required. Session/worktree continuity: before editing after resume/compaction or inside a linked worktree, re-check git status --short --branch, current cwd, and relevant .omc/state/ or .omc/handoffs/ artifacts so work does not continue on the wrong branch or stale context. No fake completion: TODO-style placeholder notes, test.skip/.only, stub tests, and unimplemented branches are blockers, not evidence. Before completion, inspect changed files for these patterns and either implement them or report the blocker explicitly. </failure_mode_guards>

<execution_protocols> Broad requests: explore first, then plan. 2+ independent tasks in parallel. run_in_background for builds/tests. Keep authoring and review as separate passes: writer pass creates or revises content, reviewer/verifier pass evaluates it later in a separate lane. Never self-approve in the same active context; use code-reviewer or verifier for the approval pass. Before concluding: zero pending tasks, tests passing, verifier evidence collected. </execution_protocols>

<hooks_and_context> Hooks inject <system-reminder> tags. Key patterns: hook success: Success (proceed), [MAGIC KEYWORD: ...] (invoke skill), The boulder never stops (continuation mode active). Persistence: <remember> (7 days), <remember priority> (permanent). Kill switches: DISABLE_OMC, OMC_SKIP_HOOKS (comma-separated). </hooks_and_context>

`/oh-my-claudecode:cancel` ends execution modes. Cancel when done+verified or blocked. Don't cancel if work incomplete.

<worktree_paths> State root: .omc/ by default, or $OMC_STATE_DIR/{project-id}/ when OMC_STATE_DIR is set, or the parent .omc/ when a .omc-workspace marker anchors a multi-repo workspace. Runtime state includes .omc/state/, .omc/state/sessions/{sessionId}/, .omc/notepad.md, .omc/project-memory.json, .omc/plans/, .omc/research/, .omc/logs/, .omc/artifacts/, .omc/handoffs/, and .omc/ultragoal/. These are ignored operational artifacts by default; .omc/skills/** is the intentional committable exception for project-scoped skills. In linked git worktrees, local .omc/ state is removed with the worktree unless centralized via OMC_STATE_DIR. </worktree_paths>

Setup

Say "setup omc" or run /oh-my-claudecode:omc-setup.