plan-state

plan-state is a command for Claude Code from vsladkov/claudex-stereo. It costs 23 tokens per session (990 once invoked), scanned A, original, Apache-2.0.

A command for showing or comparing saved planning documents, including their decisions, discussion rounds, open questions, and remaining risks.

In plain words
What is it for?
Use it to view the default plan, list saved plan slots, or compare two slots and their plan differences.
Why use it?
It lets you recover the current planning state and compare alternative saved plans without opening the files manually.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the stereo plugin — 4 skills, 15 commands, 1 agent, 3 hooks shipped together

Good fit Use it to view the default plan, list saved plan slots, or compare two slots and their plan differences.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add vsladkov/claudex-stereo
Claude Code
/plugin install stereo

Made for: Claude Code.

Or install stereo, the plugin that ships this one along with the rest of its 4 skills, 15 commands, 1 agent, 3 hooks.

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 plan-state

README.md
[![agentmods](https://agentmods.dev/badge/commands/vsladkov/claudex-stereo/plan-state/github.svg)](https://agentmods.dev/commands/vsladkov/claudex-stereo/plan-state)
Your own site
<a href="https://agentmods.dev/commands/vsladkov/claudex-stereo/plan-state"><img src="https://agentmods.dev/badge/commands/vsladkov/claudex-stereo/plan-state/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plan-state

Your own site · 80×15
<a href="https://agentmods.dev/commands/vsladkov/claudex-stereo/plan-state"><img src="https://agentmods.dev/badge/commands/vsladkov/claudex-stereo/plan-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 990 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.00023 $0.00990
Opus 5.5 $0.00009 $0.00396
Sonnet 5.5 $0.00005 $0.00198
Haiku 4.5 $0.00002 $0.00099

Measured 21d ago against content hash 406f46b2dba0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plan-state 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 21d 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/stereo/commands/plan-state.md · 62 lines

What it actually says

!node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.ts" plan-state --metadata

Raw slash-command arguments: $ARGUMENTS

The preamble shows the default slot's metadata only, so a flagged invocation never pays for a plan document it will not use. With no arguments, run node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.ts" plan-state and present that full output (metadata plus the stored plan document) instead of the preamble. With --list, --compare, or an explicit --slot, run the requested companion command and present that output instead.

Apply at most one action. Compose every command below from the parsed flags, each slot name its own single-quoted argument (an embedded ' written as '"'"'; the companion rejects such a name anyway), and never pass $ARGUMENTS itself through the shell:

  • With --list, run node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.ts" plan-state --list and present the slot inventory verbatim. --list does not combine with --slot.
  • With --compare <slotA> <slotB>, run node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.ts" plan-state --compare '<slotA>' '<slotB>' and present the comparison verbatim: both metadata blocks and the plan diff. --compare names both slots, so it does not combine with --slot or another action. Both slots must hold a stored plan; on a missing-slot error, relay the message and point the user at /stereo:plan-state --list. When the diff is suppressed, relay the export hint instead of attempting a diff yourself.
  • With --open, run node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.ts" plan-state --open [--slot '<slot>'] and relay the exported path and whether VS Code opened.
  • With --clear and an explicit slot, first run node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.ts" plan-state --metadata --json --slot '<slot>' and use its summary, verdict, round, and updatedAt to describe that exact slot in the confirmation. Then use AskUserQuestion exactly once with Delete the plan in slot <slot> and Keep it (Recommended). Without an explicit slot, ask with Delete the stored plan and any implementation record and Keep it (Recommended). Run node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.ts" plan-state --clear [--slot '<slot>'] only when deletion is confirmed.
  • With --mark-implemented, run node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.ts" plan-state --mark-implemented [--slot '<slot>'] and note that this marker is normally set automatically by /stereo:implement after a successful full phase.
  • With an explicit --slot and no action, run node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-companion.ts" plan-state --slot '<slot>'.

Present the full command output to the user. Do not summarize or condense it. When the output includes the stored plan document (the no-argument and --slot reads), render it as Markdown while preserving its contents verbatim; action outputs (--list, --clear, --mark-implemented, --metadata) contain no plan document — do not fetch one to show. Clearing a slot removes the implementation record only when that record belongs to the cleared slot. When --clear also removes an implementation record, preserve the extra status and path lines. Relay the Kept the implementation record... line verbatim when it is present. Relay implementedAt when present; it means a full implementation phase completed with an accepted review, not that the work was committed or merged. If no plan is stored, relay the message and point the user to /stereo:plan.

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. 21d ago Changed · +2 lines 406f46b2dba0
  2. 1mo ago First seen · 60 lines · 23 tokens per session scan A 3c5642e75ad9

Subscribe to this mod's changes

plan-state is a command published in the GitHub repository vsladkov/claudex-stereo (4 stars, last pushed 21d ago), licensed Apache-2.0. It adds 23 tokens to every session and 990 once invoked, about $0.0001 per session on Opus 5.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.