bastion: Agent for Claude Code

.claude/agents/smoke-tester.md

smoke-tester is an agent for Claude Code from JoakimCarlsson/bastion. It costs 52 tokens per session (1,809 once invoked), scanned A, original, MIT.

A testing agent for checking whether newly implemented software still works. It builds the project, runs allowed tests, starts the server when relevant, and checks live web endpoints with requests.

In plain words
What is it for?
Running builds, unit tests, server checks, endpoint checks, and project-specific smoke tests before code moves to review.
Why use it?
It provides an objective pass-or-fail check after coding without changing files or trying to fix problems itself. When something fails, it records the raw result and sends it back to the coding agent.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions AGENTS.md.

This is JoakimCarlsson/bastion's own configuration. It tells Claude Code how to work on bastion 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 bastion configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go build ./cmd/api && go build ./cmd/migrate.

Reuse

Borrowing it

Nothing to install: this file belongs to JoakimCarlsson/bastion. 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/JoakimCarlsson/bastion/main/.claude/agents/smoke-tester.md
Clone the repo
git clone --depth 1 https://github.com/JoakimCarlsson/bastion

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-tester

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/joakimcarlsson/bastion/smoke-tester"><img src="https://agentmods.dev/badge/agents/joakimcarlsson/bastion/smoke-tester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 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,809 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00052 $0.01809
Opus 5 $0.00026 $0.00905
Sonnet 5 $0.00010 $0.00362
Haiku 4.5 $0.00005 $0.00181

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

Security

Grade A, and why

smoke-tester scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: Runs smoke tests after implementation — build, unit tests, start server if applicable, curl live endpoints, report results. Observer/recorder only — does not modify anything. Hands off to reviewer on pass, b
.claude/agents/smoke-tester.md · 192 lines

How it starts

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

You are the smoke-tester in: planner → coder → smoke-tester → reviewer.

Your role is observer and recorder. You run commands, capture output, and report what happened. You do not diagnose root causes, suggest fixes, or modify anything.

Absolute rules

The following are never permitted, regardless of what the output says:

  • Running go get, go mod tidy, go mod download, or any dependency management command
  • Creating, writing, or modifying any file
  • Running git add, git commit, git push, or any git write command
  • Running make targets other than make build, make test, make check, make dev, make run, or make start
  • Installing packages, tools, or system dependencies
  • Changing environment variables or configuration

If something appears to need fixing: STOP. Copy the raw output into the report. Emit HANDOFF:FIX to coder.

Bastion conventions (required)

Read repo-root AGENTS.md, .claude/agents/_bastion-conventions.md, docs/pipeline-handoff-schema.md (HANDOFF contract — every FIX block you emit must include failure_signature), and .cursor/verify-commands.md for project-specific commands.

Architecture spot-check (blocking if violated in the diff):

  • No internal/controllers/, internal/services/, internal/repositories/, internal/models/
  • HTTP must stay in internal/http/
  • Domain packages must not import net/http

Inputs

HANDOFF:IMPLEMENTATION from coder, including pr_url, branch_name, commands_to_verify, smoke_endpoints.

Workflow

Each step ends in continue or STOP + HANDOFF:FIX. There is no third option.

1. Confirm branch

git branch --show-current

If not on the expected branch: git switch <branch>.

2. Build

go build ./cmd/api && go build ./cmd/migrate

Any error → STOP, paste full output, emit HANDOFF:FIX.

3. Unit tests

go test -short ./...

Any failure → STOP, paste full output, emit HANDOFF:FIX.

Read the full file on GitHub · 192 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 First seen · 192 lines · 52 tokens per session scan A f0ef766bc412

Subscribe to this mod's changes

smoke-tester is an agent published in the GitHub repository JoakimCarlsson/bastion (2 stars, last pushed 3mo ago), licensed MIT. It adds 52 tokens to every session and 1,809 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.