kevinzai/commander/advisor
Claude Code and agent skill by kevinzai/commander
- community
Checking that the SKILL.md file is still in the repository.
Anthropic Advisor Tool — pair a cheaper executor model with a more capable advisor model for guidance. TRIGGER when: user asks about advisor tool, model pairing, Sonnet+Opus, cost optimization with quality, or 'how to make Sonnet smarter'. DO NOT TRIGGER when: general API questions (use claude-api skill instead).
Install
npx vskill@latest install kevinzai/commander/advisorSKILL.md
Anthropic Advisor Tool
The Advisor Tool lets a faster, cheaper model (the executor — Haiku or Sonnet) run a task while silently consulting a smarter model (Opus) for guidance whenever it gets stuck or needs a sanity check. Everything happens inside a single /v1/messages request: the executor decides when to call the advisor like any other tool, Opus sees the full conversation and returns advice, and the executor continues. No extra round trips, no separate API calls, no special orchestration code on your end.
Think of it as giving Sonnet a senior engineer it can quietly ask for help — without paying Opus rates for the whole job.
When to Use It
Good fit:
- Long, multi-step tasks where Sonnet handles most steps but needs occasional guidance on hard parts
- Complex code generation, refactoring, or analysis where quality matters but budget is a concern
- Any task where "Sonnet with supervision" beats "Opus for everything" on cost
Poor fit:
- Single-turn Q&A — the overhead isn't worth it for one-shot requests
- Simple pass-through tasks where Sonnet already performs well
- Cases where you need the advisor's full reasoning chain (thinking blocks are stripped; only the advice text reaches the executor)
Model Compatibility
The rule (per Anthropic's advisor tool docs): the advisor must be Claude Sonnet 4.6 or more capable, AND at least as capable as the executor.
Both conditions must hold:
- The advisor is Claude Sonnet 4.6 or more capable.
- The advisor is at least as capable as the executor — an advisor can't be weaker than the model it's advising.
🔗 Check the exact per-executor matrix in [Anthropic's docs](https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#model-compatibility) before pinning a pair. That table is deliberately not mirrored here — a copied matrix goes stale silently every time Anthropic ships a model, and a wrong row sends you a 400 at runtime.
⚠️ An older Opus (for example `claude-opus-4-8`) is NOT a valid advisor for a `claude-opus-5-5` executor — it fails the "at least as capable" rule. When you move the executor to a newer model, move the advisor too.
⚠️ A `claude-fable-5-2` executor accepts only `claude-fable-5-2` or `claude-mythos-5-2` as its advisor (Fable 5.1 is rejected).
📝 Current advisors (Opus 5.5, Fable 5.2, Mythos 5.2) and their 5.x predecessors return an encrypted advisor_redacted_result instead of a plaintext advisor_result — round-trip it verbatim, do not attempt to parse it.
Quick Start (cURL)
Python SDK
With max_uses and caching
TypeScript SDK
With max_uses and caching
Cost Controls
max_uses
Caps the number of times the executor can call the advisor in a single request. Without this, an executor running a very long task could call the advisor many times, which adds up since each advisor call is billed at Opus rates.
When the executor hits the limit, it continues without advisor access for the rest of that request.
caching
Caches the advisor's context so repeated advisor calls within the TTL window reuse the cached prompt tokens instead of re-encoding them. Useful when the system prompt or conversation history is large.
Valid TTL values: "5m" or "1h". Use "1h" for long-running tasks where the same context will be reused across multiple advisor calls.
Response Handling
The advisor runs entirely server-side. From your code's perspective, you make one /v1/messages request and get one response back from the executor. You never see the advisor's raw output — only the executor's final response.
However, the response content may include two block types that indicate advisor activity:
| Block type | Meaning | |
|---|---|---|
advisor_result | Advisor responded with advice that reached the executor | |
advisor_redacted_result | Advisor responded but the content was redacted (safety policy) |
Both block types appear in the response content array. For most use cases you can ignore them — just look for the final text block from the executor.
Error Codes
| HTTP | Error type | Cause | Fix | |
|---|---|---|---|---|
| 400 | invalid_request_error | Invalid model pair — advisor is weaker than the executor, or below Sonnet 4.6 | Pick an advisor at least as capable as the executor (see Model Compatibility) | |
| 400 | invalid_request_error | Missing beta header | Add anthropic-beta: advisor-tool-2026-03-01 | |
| 400 | invalid_request_error | max_uses is 0 or negative | Set max_uses to a positive integer | |
| 400 | invalid_request_error | Invalid ttl value | Use "5m" or "1h" only | |
| 529 | overloaded_error | Advisor model overloaded | Retry with exponential backoff |
OpenClaw Integration
For users running OpenClaw, the advisor tool integrates at the model config layer. You can either inject it per-request in agent configs or have ClaudeSwap inject it automatically for all Sonnet requests.
Option 1 — Per-agent in openclaw.json
Add an advisorTool block to any agent's model config:
Back up first: cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.backup-$(date +%Y%m%d-%H%M%S)
Option 2 — ClaudeSwap injection (global)
ClaudeSwap (:8082) proxies all Anthropic requests from OpenClaw. You can configure it to inject the advisor tool into every outgoing Sonnet request without touching agent configs:
This is the lowest-friction path if you want Opus supervision on all Sonnet agents without individual config changes.
Cost estimate
A typical Sonnet request that triggers the advisor once adds roughly one Opus input call at the length of the full transcript. On a 10K-token conversation, that's ~\$0.05 extra per advisor invocation. Use max_uses: 1 or max_uses: 2 to keep it predictable.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/advisor/SKILL.md
Popularity
- Repository stars
- 6
- Repository forks
- 1
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kevinzai/commander/advisor)