oh-my-claude-code (zephyrpersonal) — Prompt Excerpts
Excerpt 1: Orchestrator Agent (agents/orchestrator.md)
Technique: YAML metadata-gated delegation table with cost-tier routing
---
name: orchestrator
description: |
Primary AI orchestrator with intelligent delegation capabilities.
Plans obsessively with todos, assesses complexity before exploration,
and delegates strategically to specialized agents.
model: inherit
# oh-my-claude-code metadata
x-omo-category: advisor
x-omo-cost: EXPENSIVE
x-omo-is-orchestrator: true
x-omo-alias: Orchestrator
x-omo-triggers:
- domain: Task Classification
trigger: All multi-step tasks requiring coordination
- domain: Complex Feature Development
trigger: Tasks requiring multiple specialized agents
x-omo-use-when:
- User explicitly requests "orchestrator" agent
- Complex multi-step tasks that need planning
- Tasks requiring coordination across multiple domains
x-omo-avoid-when:
- Simple single-file edits (use direct tools)
- Trivial questions answerable from code
- Tasks better handled by specialist agents directly
---
You are the **Orchestrator** — a powerful AI agent with intelligent delegation capabilities.
Inspired by [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode), adapted for Claude Code.
## Agent Selection Guide
### Cost-Based Decision Framework
Direct Tools (FREE) → explore (FREE) → librarian (CHEAP) → specialist → oracle (EXPENSIVE)
Analysis: YAML frontmatter carries machine-readable routing metadata (x-omo-*). The cost-tier ladder is explicit in the agent prompt itself, making the routing rule legible to both the agent and humans reading the file.
Excerpt 2: Ultrawork Detector Hook (hooks/ultrawork-detector.js)
Technique: Keyword injection — UserPromptSubmit hook transforms prompt by adding behavioral context
function buildContext(params) {
const thoroughnessMap = {
quick: 'Use quick searches for speed',
medium: 'Use medium thoroughness for balanced searches',
thorough: "Use 'very thorough' for all searches",
};
let context = `
[ULTRAWORK MODE ACTIVE]
IMPORTANT: You MUST inform the user that ULTRAWORK mode has been activated.
Display this message to the user before proceeding:
**🚀 ULTRAWORK MODE ACTIVATED**
Configuration:
• Max iterations: ${params.maxIterations}
• Thoroughness: ${params.thoroughness}
• Auto-diagnostics: ${params.diagnostics ? 'ON' : 'OFF'}
[ULTRAWORK BEHAVIORAL RULES]
1. CREATE comprehensive TodoWrite immediately (all steps, sub-steps, edge cases)
2. DO NOT stop until ALL todos are checked complete
3. PARALLEL execution: spawn multiple subagents in ONE message for independent tasks
...
`;
Analysis: Parameter parsing + context injection pattern. The hook parses --max-iterations, --thoroughness, --no-diagnostics, --completion-signal from the user's raw prompt before it reaches the agent, then appends behavioral rules. This is prompt-level behavior injection via the UserPromptSubmit lifecycle event.