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.
curl -O https://raw.githubusercontent.com/drujensen/aiagent/main/.claude/agents/go-tester.mdgit clone --depth 1 https://github.com/drujensen/aiagentWrote 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.
[](https://agentmods.dev/agents/drujensen/aiagent/go-tester)<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.
<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>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.
| Model | Per session | Once 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 |
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 2mo 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.
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
- Read the code under test first — understand what it does
- Check existing
*_test.gofiles in the same package for style - Mock only at interface boundaries (domain interfaces), never concrete types
- Test the failure paths as thoroughly as success paths
- Name tests
TestXxx_scenariofor clarity - Use
t.Helper()in assertion helpers
Debugging Test Failures
- Run the failing test in isolation with
-vto see full output - Check if race detector reveals data races (
-race) - Verify test setup — temp dirs, mock state, context cancellation
- Check if the test is environment-dependent (API keys, ports)
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.
- 2mo ago First seen · 75 lines · 43 tokens per session scan A 97817fd759b9
go-tester is an agent published in the GitHub repository drujensen/aiagent (5 stars, last pushed 4mo 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.
go-tester compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| go-testerdrujensen/aiagent | Agent | 5 | 4mo ago | MIT | A | 43 | Claude Code |
| debuggerdavepoon/buildwithclaude | Agent | 3.8k | 2d ago | MIT | A | 34 | Claude Code |
| openinference-bug-reproducerArize-ai/openinference | Agent | 1.3k | today | Apache-2.0 | A | 70 | Claude Code |
| flutter-test-debuggerdivinevideo/divine-mobile | Agent | 263 | today | MPL-2.0 | A | 49 | Claude Code |
| phoenix-bug-reproducerArize-ai/phoenix | Agent | 13k | today | none | A | 127 | Claude Code, Cursor |
| testing-bug-fixerCronusL-1141/AI-company | Agent | 384 | 15d ago | MIT | A | 43 | Claude Code |
| ast-peaAAaqwq/AGI-Super-Team | Agent | 123 | yesterday | MIT | A | 112 | Claude Code |