agent-status

agent-status is a command for Claude Code from mock-server/mockserver-monorepo. It costs 36 tokens per session (262 once invoked), scanned A, original, Apache-2.0.

A command that displays the active agent worktrees, which are separate repository folders used for parallel changes, along with their branches, age, activity, commits, and rebase locks.

In plain words
What is it for?
Use it to check active worktrees and see the current activity recorded for each one.
Why use it?
It gives a single view of parallel agent work and helps identify which files or branches are being worked on.

Command for Claude Code

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/mock-server/mockserver-monorepo/agent-status
Clone the repo
git clone --depth 1 https://github.com/mock-server/mockserver-monorepo

Made for: Claude Code.

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 agent-status

README.md
[![agentmods](https://agentmods.dev/badge/commands/mock-server/mockserver-monorepo/agent-status.svg)](https://agentmods.dev/commands/mock-server/mockserver-monorepo/agent-status)
Your own site
<a href="https://agentmods.dev/commands/mock-server/mockserver-monorepo/agent-status"><img src="https://agentmods.dev/badge/commands/mock-server/mockserver-monorepo/agent-status.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 262 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.00036 $0.00262
Opus 5 $0.00018 $0.00131
Sonnet 5 $0.00007 $0.00052
Haiku 4.5 $0.00004 $0.00026

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

Security

Grade A, and why

agent-status 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 4d 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.

.claude/commands/agent-status.md · 13 lines

What it actually says

Run .opencode/scripts/agent-status.sh and print its output verbatim. The script reads .worktrees/agent-* under the repo root and renders a table.

If the user is in a worktree themselves (i.e. git rev-parse --show-toplevel is inside .worktrees/), highlight which row corresponds to the current worktree in the response (the row whose ID matches the suffix of the current worktree dir name).

If no worktrees are active, the script will say so — just relay that message; don't suggest creating one unless the user asks.

Recommend the convention to record activity for the dashboard: when an agent is working in a worktree, write the current activity to .tmp/agent-activity in that worktree (one line, e.g. echo "Running mvn verify" > .tmp/agent-activity). The next /agent-status run will surface it. See .opencode/rules/worktree-workflow.md for the convention details.

If the user provided additional instructions: $ARGUMENTS

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. 4d ago First seen · 13 lines · 36 tokens per session scan A 213adda9511f

Subscribe to this mod's changes

agent-status is a command published in the GitHub repository mock-server/mockserver-monorepo (4,964 stars, last pushed today), licensed Apache-2.0. It adds 36 tokens to every session and 262 once invoked, about $0.0002 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-30.