with-advisor

A command that adds one or two expert advisors to monitor a complex coding task and provide feedback. You remain responsible for deciding what to do with their suggestions.

In plain words
What is it for?
Use it for tasks such as implementing OAuth login, improving slow database queries, or designing a command-line plugin system.
Why use it?
It brings in extra domain perspectives for work where design or specialist knowledge could reveal missed problems.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/b33eep/claude-code-setup/with-advisor
Clone the repo
git clone --depth 1 https://github.com/b33eep/claude-code-setup
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,335 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02335
Opus 5 $0.00000 $0.01167
Sonnet 5 $0.00000 $0.00467
Haiku 4.5 $0.00000 $0.00233

Measured 2d ago against content hash 5fd78955a7da, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

with-advisor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/with-advisor.md · 288 lines

How it starts

The opening of the file, as written. The whole thing — 288 lines — stays where its author put it; the contents beside it link to each section on GitHub.

With Advisor: Expert Pair Programming

Spawn expert advisor(s) that monitor your work and give proactive domain feedback. You stay in control — advisors supplement your judgment.

Usage

/with-advisor "implement OAuth login with JWT tokens"
/with-advisor "optimize the slow database queries"
/with-advisor "design a plugin system for the CLI"

Tasks

1. Validate arguments

The command requires a task description.

No arguments:

Usage: /with-advisor "task description"

Example: /with-advisor "implement OAuth login with JWT tokens"

Stop here. Do not proceed.

2. Assess task complexity

If the overhead of spawning advisors exceeds the benefit, refuse:

Task is too simple for advisors. Just do it directly.

Stop here. Do not proceed. Otherwise, continue.

3. Select advisor expertise

Analyze the task and decide which advisor expertise adds value. Think about:

  • What domain knowledge would catch mistakes you'd miss?
  • What expertise would improve the design, not just the code?

Rules:

  • Max 2 advisors
  • Only spawn a second if genuinely different expertise is needed
  • Frame advisors around the problem being solved, not the tool being built

Examples:

Task Advisors Why
"implement OAuth login" Security Expert, Auth Domain Expert Security-sensitive, unfamiliar domain
"optimize database queries" Performance Expert Specific domain expertise
"refactor the auth module" Codebase Patterns Expert Large change, consistency matters
"add WebSocket support" Distributed Systems Expert Real-time, concurrency concerns
"migrate to TypeScript" TypeScript Migration Expert Large scope, many gotchas

4. Create team and spawn advisors

Use Agent Teams (TeamCreate + Task tool) to spawn each advisor.

Team setup:

  • Team name: advisor-session (or similar short name)
  • Create tasks for tracking
  • If a team named advisor-session already exists (user ran /with-advisor before), ask: "Advisors from a previous session are still active. Replace them with new advisors? [Yes / No]". If Yes, shut down existing advisors first (SendMessage with type: shutdown_request), delete the team, then create a new one. If No, stop here.

Read the full file on GitHub · 288 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 288 lines · 0 tokens per session scan A 5fd78955a7da

Subscribe to this mod's changes

with-advisor is a command published in the GitHub repository b33eep/claude-code-setup (56 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,335 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.