bastion: Agent for Claude Code

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

IssueCoder is an agent for Claude Code from JoakimCarlsson/bastion. It costs 26 tokens per session (1,848 once invoked), scanned A, original, MIT.

A coding agent that implements a prepared GitHub issue plan in a software project. It follows the project's architecture rules, runs formatters and linters, commits the work, and opens a pull request for review.

In plain words
What is it for?
Adding or changing backend and frontend features, running code-quality checks, committing the result, and preparing a GitHub pull request.
Why use it?
It turns an approved technical plan into source-code changes while keeping related code in the expected places. It also checks changed web routes before handing the work to testing.

Agent for Claude Code

Written for Claude Code: disable-model-invocation 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 build: go build ./cmd/api ./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/.github/agents/issue-coder.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 IssueCoder

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/joakimcarlsson/bastion/issue-coder"><img src="https://agentmods.dev/badge/agents/joakimcarlsson/bastion/issue-coder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 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,848 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.00026 $0.01848
Opus 5.5 $0.00010 $0.00739
Sonnet 5.5 $0.00005 $0.00370
Haiku 4.5 $0.00003 $0.00185

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

Security

Grade A, and why

IssueCoder 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 1mo 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.

**For any new or changed API route:** self-check by starting the server and `curl`ing it before handoff.
.github/agents/issue-coder.agent.md · 181 lines

How it starts

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

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

Bastion conventions (required)

Read AGENTS.md (repo root) then docs/backend-architecture.md then docs/pipeline-handoff-schema.md (the HANDOFF contract you must conform to) before writing any code.

Architecture rules — blocking if violated:

  • Package by subsystem under internal/ — pure domain logic only (no net/http, no HTTP DTOs)
  • HTTP: internal/http/*_endpoint.go per subsystem, routes via minmux
  • SQL: internal/<subsystem>/store.go
  • Forbidden: internal/controllers/, internal/services/, internal/repositories/, internal/models/
  • New subsystem pattern: domain package → optional store.go → http/<name>_endpoint.go → wire in NewHandler. Mirror internal/health.
  • main.go is wiring only — env, pool, http.NewHandler, listen
  • Frontend entirely under web/ (Bun + React + Vite)

For any new or changed API route: self-check by starting the server and curling it before handoff.

Inputs

You receive from the Planner:

  • The current branch (already checked out)
  • The implementation plan
  • The original issue number and title

When you are re-invoked by the Reviewer after a failed review, the report will include a Spec conformance table. Every row marked UNMET is a hard blocker — address each one with a concrete file:line in the diff before handing back. UNMET items take precedence over Important/Suggestion findings; do not return to SmokeTest with any UNMET row unresolved.

Workflow

0. Start-refusal gate (mandatory first step)

For each id in acceptance_criteria[] from the HANDOFF:PLAN block, confirm there is at least one entry in test_cases[] with a matching ac:. If any AC lacks coverage, do not write any code. Emit a short HANDOFF:FIX with from_agent: coder, failure_signature: { stage: coder, class: spec-conformance, symbol: <missing AC id> }, and next_agent: planner. Bounce back to the Planner — do not proceed.

Read the full file on GitHub · 181 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. 1mo ago First seen · 181 lines · 26 tokens per session scan A c3f26208b07d

Subscribe to this mod's changes

IssueCoder is an agent published in the GitHub repository JoakimCarlsson/bastion (2 stars, last pushed 5mo ago), licensed MIT. It adds 26 tokens to every session and 1,848 once invoked, about $0.0001 per session on Opus 5.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

debugging-toolkit-dx-optimizer

Developer Experience specialist. Improves tooling, setup, and workflows. Use PROACTIVELY when setting up new projects, after team feedback, or when development friction is noticed.

wshobson/agents · 44 tokens

commit-creator

Use this agent when you have staged files ready for commit and need intelligent commit planning and execution. Examples: Context: User has staged multiple files with different types of changes and wants to commit them properly. user: 'I've staged several files with bug fixes and new features. Can you help me commit…

fcakyon/claude-codex-settings · 225 tokens

pr-creator

Use this agent when asked to create a pull request from staged or committed changes. Read the complete branch diff, carry over relevant findings and verified results, and write a concise body showing the problem and final behavior.

fcakyon/claude-codex-settings · 46 tokens

git-workflow

Manages git operations including branching, committing, PR creation, and release workflows. Use when preparing commits, creating PRs, managing branches, or handling merge conflicts. Enforces conventional commits and branch protection rules.

borghei/Claude-Skills · 46 tokens

aif-git-manager

Stage, commit, and push code changes with conventional commits. Use when user says "commit", "push", or finishes a feature/fix.

ainative-build/skills · 35 tokens

learnship-executor

Executes a single learnship PLAN.md atomically — one task at a time with per-task commits, deviation handling, and SUMMARY.md creation. Spawned by execute-phase on platforms with subagent support.

FavioVazquez/learnship · 46 tokens