advise

advise is a command for Claude Code from shalomeir/advisor-opus. It costs 67 tokens per session (724 once invoked), scanned A, original, MIT.

A command that sends a coding task to Opus, an AI advisor, for strategic guidance. It prepares a summary, relevant facts, and recent tool output because the advisor starts without the current conversation.

In plain words
What is it for?
Use it to ask for advice during planning, after completing work before committing it, or when the task's direction needs to change.
Why use it?
It gives you a separate review of the task and approach when a second opinion could help. The command also supplies the context the advisor needs to make that review useful.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Part of the advisor-opus plugin — 3 commands, 1 agent shipped together

Good fit Use it to ask for advice during planning, after completing work before committing it, or when the task's direction needs to change.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/shalomeir/advisor-opus/advise
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.

Clone the repo
git clone --depth 1 https://github.com/shalomeir/advisor-opus

Made for: Claude Code.

Or install advisor-opus, the plugin that ships this one along with the rest of its 3 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for advise

README.md
[![agentmods](https://agentmods.dev/badge/commands/shalomeir/advisor-opus/advise.svg)](https://agentmods.dev/commands/shalomeir/advisor-opus/advise)
Your own site
<a href="https://agentmods.dev/commands/shalomeir/advisor-opus/advise"><img src="https://agentmods.dev/badge/commands/shalomeir/advisor-opus/advise.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 724 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00067 $0.00724
Opus 5 $0.00034 $0.00362
Sonnet 5 $0.00013 $0.00145
Haiku 4.5 $0.00007 $0.00072

Measured 8d ago against content hash 553947de78df, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

advise 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 8d 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.

plugins/advisor-opus/commands/advise.md · 62 lines

How it starts

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

Route this request to the advisor-opus:opus-advisor subagent.

IMPORTANT: The advisor agent starts fresh with NO conversation history. You (the executor) must build the context.

Raw user request: $ARGUMENTS

Context Gathering (executor does this BEFORE spawning the advisor)

The advisor starts with zero context — it cannot see your conversation at all. You must pass it everything it needs. Follow these three steps in order:

Step 1 — Task summary (1-2 sentences): Write what the user is trying to do. Example: "User is adding OAuth2 login to a Next.js app."

Step 2 — Key facts (bullet list, keep short): List what you know so far — files found, approaches tried, what worked/failed. Compress old history into short bullets.

Step 3 — Recent raw output (copy-paste, do NOT summarize): Copy the last 3-5 tool results exactly as they appeared — file contents, grep results, error messages. The advisor needs the actual text, not your summary of it. If a tool returned 50 lines, include all 50 lines.

Optional: run git diff --stat and git status to show current state.

Structure the advisor prompt as:

## Task
[1-2 sentence summary of the session goal]

## Background
- [compressed key decisions and findings]
- [what was tried, what failed]
- [current approach and status]

## Recent Context (verbatim)
[last 3-5 tool calls/results, errors, user messages — raw, uncompressed]

## Question
[user's $ARGUMENTS, or "What should I do next?"]

Routing Rules

  1. Build the context as described above.
  2. If $ARGUMENTS is provided, include it as the ## Question section.
  3. If $ARGUMENTS is empty, set the question to: "Review the current situation. Provide strategic guidance on the best approach, flag any risks, and suggest next steps."
  4. Spawn the advisor-opus:opus-advisor subagent with the full structured prompt.
  5. Return the advisor's response verbatim. Do not summarize, filter, or add commentary.
  6. After returning the advice, do not take any further action — let the user decide how to proceed.

Read the full file on GitHub · 62 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. 8d ago First seen · 62 lines · 67 tokens per session scan A 553947de78df

Subscribe to this mod's changes

advise is a command published in the GitHub repository shalomeir/advisor-opus (10 stars, last pushed 5mo ago), licensed MIT. It adds 67 tokens to every session and 724 once invoked, about $0.0003 per session on Opus 5. 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-31.