agent-smith: Command for Claude Code

.claude/commands/smoke.md

smoke is a command for Claude Code from holgerleichsenring/agent-smith. It costs 33 tokens per session (1,249 once invoked), scanned A, original, MIT.

A smoke-test command for the agent-smith command-line tool and its Docker Compose setup. A smoke test is a quick check that the main program starts and its basic paths work.

In plain words
What is it for?
Building the project, running tests, checking the command-line binary, validating Docker Compose, and optionally running API, security, bug-fix, or demonstration checks.
Why use it?
It catches failures that may not appear in unit tests, such as a broken executable or invalid container configuration. Different scopes add checks for API scans, security scans, or bug fixes.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is holgerleichsenring/agent-smith's own configuration. It tells Claude Code how to work on agent-smith itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-smith configures →

Reuse

Borrowing it

Nothing to install: this file belongs to holgerleichsenring/agent-smith. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/holgerleichsenring/agent-smith/main/.claude/commands/smoke.md
Clone the repo
git clone --depth 1 https://github.com/holgerleichsenring/agent-smith

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 smoke

README.md
[![agentmods](https://agentmods.dev/badge/commands/holgerleichsenring/agent-smith/smoke/github.svg)](https://agentmods.dev/commands/holgerleichsenring/agent-smith/smoke)
Your own site
<a href="https://agentmods.dev/commands/holgerleichsenring/agent-smith/smoke"><img src="https://agentmods.dev/badge/commands/holgerleichsenring/agent-smith/smoke/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 smoke

Your own site · 80×15
<a href="https://agentmods.dev/commands/holgerleichsenring/agent-smith/smoke"><img src="https://agentmods.dev/badge/commands/holgerleichsenring/agent-smith/smoke.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,249 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.00033 $0.01249
Opus 5.5 $0.00013 $0.00500
Sonnet 5.5 $0.00007 $0.00250
Haiku 4.5 $0.00003 $0.00125

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

Security

Grade A, and why

smoke 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 10d 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/smoke.md · 96 lines

How it starts

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

You are running the agent-smith smoke suite. The goal is a fast, deterministic answer to "does the binary actually work?" — every spec merge should end with a green smoke before being declared done.

How to run

The first argument selects scope. Default is fast (no LLM cost).

  • /smoke or /smoke fast — build + tests + CLI binary boots + docker-compose config validates. ~2 minutes, no LLM.
  • /smoke api-scan — fast plus a real api-scan against the configured local target.
  • /smoke security-scan — fast plus a real security-scan against the agent-smith repo.
  • /smoke code — fast plus a dry-run of the code pipeline against a known ticket.
  • /smoke demo — fast plus agentsmith demo end-to-end on the bundled sample project (p0326). Costs real LLM tokens (one small code run); needs only a config with one agent + its key. PASS = exit 0 and the printed git diff HEAD~1 shows the PriceCalculator boundary fix.
  • /smoke all — fast + all three deep scans sequentially.

Steps for fast (always run)

Run these in order. Any non-zero exit ends the smoke as FAIL.

  1. Build: dotnet build — 0 errors, 0 warnings. Warnings count as failures unless they're the known SandboxToolHost obsoletes (5 max).
  2. Tests: dotnet test --no-build. All passing.
  3. CLI binary boot: dotnet run --no-build --project src/AgentSmith.Cli -- --help — exits 0, prints the command list.
  4. CLI pipeline dry-runs: for each of api-scan, security-scan, fix, feature, demo: dotnet run --no-build --project src/AgentSmith.Cli -- <command> --help — exits 0.
  5. docker-compose config validates: docker compose -f deploy/docker-compose.yml config -q — exits 0. (Skip silently if deploy/docker-compose.yml doesn't exist on this branch.)

Report per step: PASS / FAIL with a one-line summary.

Steps for api-scan (in addition to fast)

The operator has a local SampleA instance at https://localhost:49190 (target may differ; check .env / shell env first). Use the project name sample-a-api-security-azure-openai. Required env: AZURE_OPENAI_API_KEY, AZURE_DEVOPS_TOKEN.

Read the full file on GitHub · 96 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. 10d ago Changed 8a1bb6e8e8d5
  2. 25d ago Changed · -2 tokens per session b8a03f79541a
  3. 1mo ago First seen · 96 lines · 35 tokens per session scan A 758a7dd80fde

Subscribe to this mod's changes

smoke is a command published in the GitHub repository holgerleichsenring/agent-smith (30 stars, last pushed 4d ago), licensed MIT. It adds 33 tokens to every session and 1,249 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-30.