Model Escalation Skill

SkillProductivity

Advisory model escalation based on task outcome tracking

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Model Escalation Skill skill

What this skill tells your AI

The instructions your AI receives, as published by baekenough/oh-my-customcode in .claude/skills/model-escalation/SKILL.md and read by ahel’s review.

Tracks task outcomes and advises model upgrades when failures are detected. Advisory-only — the orchestrator makes the final decision (R010).

Escalation Path

haiku → sonnet → opus

Trigger Conditions

ConditionAction
2+ failures with same model for same agent typeAdvise escalation
3+ consecutive failures across any agent typeAdvise global escalation
Sustained success after escalationAdvise de-escalation

Thresholds

ParameterDefaultDescription
failure_threshold2Failures before escalation advisory
consecutive_threshold3Consecutive failures for global advisory
cooldown_tasks5Successes before de-escalation advisory

Cost Guard

  • Advisory includes estimated cost multiplier
  • De-escalation suggested after sustained success at higher tier
  • Cost tracked per session via PPID-scoped temp file

Architecture

PostToolUse (Task) → task-outcome-recorder.sh
  Records: agent_type, model, success/failure, error_summary
  Storage: /tmp/.claude-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

Advisory Format

--- [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
---

Signals

GitHub stars
34
Forks
6
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
model-escalation
Source
github.com/baekenough/oh-my-customcode