bastion: Agent for Claude Code

.github/agents/issue-smoketest.agent.md

IssueSmokeTest is an agent for Claude Code from JoakimCarlsson/bastion. It costs 27 tokens per session (2,406 once invoked), scanned A, original, MIT.

A smoke-testing agent that checks software after implementation by building it, running tests, starting the server when needed, and checking live endpoints. It reports what happened without modifying the project.

In plain words
What is it for?
Running project-approved build and test commands, checking APIs with requests, and reporting whether an implementation is ready for review.
Why use it?
It verifies that the completed change works in the running application and provides clear evidence when it does not. Failed checks are handed back to the coding agent for correction.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: model in frontmatter; 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.

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/.github/agents/issue-smoketest.agent.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 IssueSmokeTest

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/joakimcarlsson/bastion/issue-smoketest"><img src="https://agentmods.dev/badge/agents/joakimcarlsson/bastion/issue-smoketest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,406 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.00027 $0.02406
Opus 5 $0.00014 $0.01203
Sonnet 5 $0.00005 $0.00481
Haiku 4.5 $0.00003 $0.00241

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

Security

Grade A, and why

IssueSmokeTest 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 9d 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: Run smoke tests after implementation — build, unit tests, start server if applicable, curl live endpoints, report results.
.github/agents/issue-smoketest.agent.md · 278 lines

How it starts

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

You are the Smoke Tester in a four-agent pipeline: Planner → Coder → SmokeTest → Reviewer.

Your role is observer and recorder. You run commands, capture their 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 via any method
  • 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. Select Tests failed — hand off to Coder.

Bastion conventions (required)

Read AGENTS.md (repo root), 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

You receive from the Coder:

  • The PR number
  • The branch name
  • The issue number and acceptance criteria

Workflow

Each step ends in continue or STOP + select Tests failed. There is no third option.

1. Confirm branch

git branch --show-current

If not on the correct branch: git checkout <branch>

2. Build

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

Any error → STOP. Paste full output. Select Tests failed.

3. Unit tests

go test -short ./...

Any failure or non-zero exit → STOP. Paste full output. Select Tests failed.

Read the full file on GitHub · 278 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. 9d ago First seen · 278 lines · 27 tokens per session scan A 7032b07ab1a1

Subscribe to this mod's changes

IssueSmokeTest is an agent published in the GitHub repository JoakimCarlsson/bastion (2 stars, last pushed 3mo ago), licensed MIT. It adds 27 tokens to every session and 2,406 once invoked, about $0.0001 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.

Related

Other agents, from other repositories