oh-my-codex (sigridjineth) — Prompts
Verbatim Excerpt 1: ultrawork/SKILL.md (Tier-Based Execution)
Prompting technique: Cost-aware model tier routing; parallel-first dispatch; background operation discipline
<Execution_Policy>
- Fire all independent agent calls simultaneously -- never serialize independent work
- Always pass the `model` parameter explicitly when delegating
- Read `docs/shared/agent-tiers.md` before first delegation for agent selection guidance
- Use `run_in_background: true` for operations over ~30 seconds (installs, builds, tests)
- Run quick commands (git status, file reads, simple checks) in the foreground
</Execution_Policy>
<Steps>
1. Read agent reference: Load `docs/shared/agent-tiers.md` for tier selection
2. Classify tasks by independence: Identify which tasks can run in parallel vs which have dependencies
3. Route to correct tiers:
- Simple lookups/definitions: LOW tier (Haiku)
- Standard implementation: MEDIUM tier (Sonnet)
- Complex analysis/refactoring: HIGH tier (Opus)
4. Fire independent tasks simultaneously: Launch all parallel-safe tasks at once
5. Run dependent tasks sequentially: Wait for prerequisites before launching dependent work
6. Background long operations: Builds, installs, and test suites use `run_in_background: true`
7. Verify when all tasks complete (lightweight):
- Build/typecheck passes
- Affected tests pass
- No new errors introduced
</Steps>
<Tool_Usage>
- Use `Task(subagent_type="oh-my-codex:executor-low", model="haiku", ...)` for simple changes
- Use `Task(subagent_type="oh-my-codex:executor", model="sonnet", ...)` for standard work
- Use `Task(subagent_type="oh-my-codex:executor-high", model="opus", ...)` for complex work
- Use `run_in_background: true` for package installs, builds, and test suites
</Tool_Usage>
Verbatim Excerpt 2: hooks.json (Runtime Hook Architecture)
Prompting technique: Keyword detection → skill injection pipeline; session memory priming on every start
{
"description": "OMC orchestration hooks with async capabilities",
"hooks": {
"UserPromptSubmit": [
{
"matcher": "*",
"hooks": [
{"type": "command", "command": "node \"${CODEX_PLUGIN_ROOT}/scripts/keyword-detector.mjs\"", "timeout": 5},
{"type": "command", "command": "node \"${CODEX_PLUGIN_ROOT}/scripts/skill-injector.mjs\"", "timeout": 3}
]
}
],
"SessionStart": [
{
"matcher": "*",
"hooks": [
{"type": "command", "command": "node \"${CODEX_PLUGIN_ROOT}/scripts/session-start.mjs\"", "timeout": 5},
{"type": "command", "command": "node \"${CODEX_PLUGIN_ROOT}/scripts/project-memory-session.mjs\"", "timeout": 5}
]
}
]
}
}
Key Difference from Canonical
The tier-based model routing (docs/shared/agent-tiers.md) and explicit Task(subagent_type=..., model="haiku/sonnet/opus") dispatch is unique to this fork — the canonical project does not prescribe specific model tiers in this way.