aiagent: Agent for Claude Code

.claude/agents/go-tester.md

go-tester is an agent for Claude Code from drujensen/aiagent. It costs 43 tokens per session (539 once invoked), scanned A, original, MIT.

A Go-focused testing agent for the aiagent project. It writes tests, investigates failed tests, checks test coverage, and runs the project's quality checks.

In plain words
What is it for?
Use it to test domain services, tools, and integrations; run individual or full test suites; check coverage; and use Go's race detector. TDD means writing tests before or alongside code, but the input does not say this agent requires TDD.
Why use it?
It reduces the need to remember the project's testing patterns and commands. It helps find incorrect behaviour before changes are submitted.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go test ./internal/domain/services -run TestName.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/drujensen/aiagent/go-tester"><img src="https://agentmods.dev/badge/agents/drujensen/aiagent/go-tester.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 539 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.00043 $0.00539
Opus 5.5 $0.00017 $0.00216
Sonnet 5.5 $0.00009 $0.00108
Haiku 4.5 $0.00004 $0.00054

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

Security

Grade A, and why

go-tester 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/agents/go-tester.md · 75 lines

What it actually says

You are a Go testing specialist working on the aiagent project. Your job is to ensure correctness through well-structured tests and thorough QA.

Test Patterns in This Project

Domain service tests (internal/domain/services/*_test.go):

  • Use mock repositories that implement domain interfaces
  • Test business logic in isolation from storage and providers
  • Table-driven tests preferred for multiple scenarios

Tool tests (internal/impl/tools/*_test.go):

  • Test actual file/process behavior where feasible
  • Use temp directories (t.TempDir()) for file-based tests
  • Avoid mocking the OS — test real behavior

Integration client tests (internal/impl/integrations/*_test.go):

  • Only test against live APIs when explicitly needed
  • Use environment variable guards: if os.Getenv("OPENAI_API_KEY") == "" { t.Skip(...) }

Test Commands

# Run all tests
go test ./...

# Run with coverage
go test ./... -cover

# Run with race detection (required before PR)
go test ./... -race

# Run a single test
go test ./internal/domain/services -run TestName

# Verbose output
go test ./... -v

# Benchmarks
go test ./... -bench=.

Full QA Workflow

Always run in this order — stop and fix on any failure:

go fmt ./...
go vet ./...
go mod tidy
go build .
go test ./...
go test ./... -race

Writing New Tests

  1. Read the code under test first — understand what it does
  2. Check existing *_test.go files in the same package for style
  3. Mock only at interface boundaries (domain interfaces), never concrete types
  4. Test the failure paths as thoroughly as success paths
  5. Name tests TestXxx_scenario for clarity
  6. Use t.Helper() in assertion helpers

Debugging Test Failures

  1. Run the failing test in isolation with -v to see full output
  2. Check if race detector reveals data races (-race)
  3. Verify test setup — temp dirs, mock state, context cancellation
  4. Check if the test is environment-dependent (API keys, ports)
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 · 75 lines · 43 tokens per session scan A 97817fd759b9

Subscribe to this mod's changes

go-tester is an agent published in the GitHub repository drujensen/aiagent (5 stars, last pushed 2mo ago), licensed MIT. It adds 43 tokens to every session and 539 once invoked, about $0.0002 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-10-03.

Related

Other agents, from other repositories

debugger

Debugging specialist for errors, test failures, and unexpected behavior. Use proactively when encountering any issues, build failures, runtime errors, or unexpected test results.

davepoon/buildwithclaude · 34 tokens

flutter-test-debugger

Investigate Flutter test failures to determine root causes and whether issues are in code or tests. Use PROACTIVELY when flutter tests fail or need debugging. Expert in Riverpod, widget testing, and VGE patterns.

divinevideo/divine-mobile · 49 tokens

aidlc-quality-agent

QA lead responsible for test strategy, test case design, quality gates, and performance validation. Leads Build and Test and Performance Validation stages. Supports NFR Requirements and Functional Design, and serves as a dispatched collaborator in the Practices Discovery hub-and-spoke and User Stories mob ensembles.

awslabs/aidlc-workflows · 60 tokens

testing-bug-fixer

A bug-fixing agent that reproduces problems, traces them to their underlying cause, applies a small targeted change, and adds a regression test.

CronusL-1141/AI-company · 43 tokens

ast-pe

A software engineering delivery agent for turning an approved design into working, maintainable software. It handles cross-module implementation, integration, testing, code review, debugging, and delivery that can be rolled back.

aAAaqwq/AGI-Super-Team · 87 tokens

debugger

Systematic debugger using the Iron Law: no fix without confirmed root cause. Reproduces errors, traces execution paths, forms and verifies hypotheses, then implements…

KevinZai/commander · 35 tokens