with one click
model-escalation
Advisory model escalation based on task outcome tracking
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Advisory model escalation based on task outcome tracking
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts
Auto-detect project context and optimize harness — deactivate unused agents/skills, suggest missing experts, generate project profile
Multi-LLM adversarial consensus loop — 3+ LLMs compete to find flaws in designs/specs until unanimous agreement is reached
Monitor Claude Code releases and auto-generate GitHub issues for each new version
Execute OpenAI Codex CLI prompts and return results
YAML-based DAG workflow engine with topological execution and failure strategies
| name | model-escalation |
| description | Advisory model escalation based on task outcome tracking |
| scope | core |
| user-invocable | false |
Tracks task outcomes and advises model upgrades when failures are detected. Advisory-only — the orchestrator makes the final decision (R010).
haiku → sonnet → opus
| Condition | Action |
|---|---|
| 2+ failures with same model for same agent type | Advise escalation |
| 3+ consecutive failures across any agent type | Advise global escalation |
| Sustained success after escalation | Advise de-escalation |
| Parameter | Default | Description |
|---|---|---|
failure_threshold | 2 | Failures before escalation advisory |
consecutive_threshold | 3 | Consecutive failures for global advisory |
cooldown_tasks | 5 | Successes before de-escalation advisory |
PostToolUse (Task) → task-outcome-recorder.sh
Records: agent_type, model, success/failure, error_summary
Storage: /tmp/.codex-task-outcomes-$PPID (JSON lines, max 50)
PreToolUse (Task) → model-escalation-advisor.sh
Reads outcomes → counts failures → advises escalation via stderr
Advisory only — never blocks, never modifies tool input
--- [Model Escalation Advisory] ---
Agent type: {agent_type}
Current model: {current_model}
Recent failures: {count}/{threshold}
⚡ Recommended: Escalate to {next_model}
Cost impact: {multiplier} per task
---