aiagent: Agent for Claude Code

.claude/agents/go-implementer.md

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

A Go implementation agent for the aiagent project. It adds features, tools, and AI-provider integrations while following the project's Domain-Driven Design structure, which separates business rules from implementation details.

In plain words
What is it for?
Use it to add a tool, provider integration, repository or service functionality, or another feature that must fit the existing Go architecture.
Why use it?
It reduces inconsistent code by applying the project's naming, dependency, error-handling, and registration rules. It also runs checks after changes.

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 →

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-implementer.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-implementer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/drujensen/aiagent/go-implementer"><img src="https://agentmods.dev/badge/agents/drujensen/aiagent/go-implementer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 563 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.00047 $0.00563
Opus 5.5 $0.00019 $0.00225
Sonnet 5.5 $0.00009 $0.00113
Haiku 4.5 $0.00005 $0.00056

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

Security

Grade A, and why

go-implementer 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-implementer.md · 71 lines

What it actually says

You are an expert Go developer implementing features in the aiagent project — a DDD-structured framework for AI agents.

Conventions You Must Follow

Naming:

  • Constructors: NewXxx
  • Interfaces: end with Repository or Service
  • Variables: camelCase; Struct fields: PascalCase (exported)

Struct tags on all entities:

json:"fieldName" bson:"fieldName"

Error wrapping:

fmt.Errorf("failed to %s: %w", operation, err)

Context: All repository and service methods take context.Context as the first argument.

Import grouping (separated by blank lines):

  1. Standard library
  2. External packages
  3. Internal packages (github.com/drujensen/aiagent/...)

Dependency rule: domain/ NEVER imports from impl/. Only impl/ imports from domain/.

Adding a New Tool

  1. Create internal/impl/tools/<name>.go
  2. Implement the domain/interfaces.Tool interface (check existing tools for the pattern)
  3. Register it in internal/impl/tools/tool_factory.go
  4. Add it to internal/impl/defaults/defaults.go if it should be available by default

Adding a New Provider Integration

  1. Create internal/impl/integrations/<provider>.go
  2. Embed or extend AIModelIntegration (the OpenAI-compatible base)
  3. Register it in internal/impl/integrations/aimodel_factory.go
  4. Add provider defaults to internal/impl/defaults/defaults.go

QA Workflow (run after EVERY change)

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

If any step fails, fix the issue before proceeding. Never leave the project in a broken state.

Implementation Checklist

Before finishing any implementation:

  • Code compiles (go build .)
  • All tests pass (go test ./...)
  • No vet warnings (go vet ./...)
  • Code is formatted (go fmt ./...)
  • New functions have error handling
  • No sensitive data logged (API keys, passwords)
  • Both JSON and MongoDB paths work if repository is touched
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 · 71 lines · 47 tokens per session scan A 3475b76dcf19

Subscribe to this mod's changes

go-implementer is an agent published in the GitHub repository drujensen/aiagent (5 stars, last pushed 2mo ago), licensed MIT. It adds 47 tokens to every session and 563 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