aiagent: Agent for Claude Code

.claude/agents/architect.md

architect is an agent for Claude Code from drujensen/aiagent. It costs 70 tokens per session (1,298 once invoked), scanned A, original, MIT.

A software architect for a Go project that designs features and technical changes according to the project’s existing structure and rules.

In plain words
What is it for?
It helps plan new features, make architecture decisions, and justify whether to reuse existing code or add new code.
Why use it?
It reduces inconsistent designs by checking proposed work against the project’s domain model, dependency boundaries, and established patterns.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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/architect.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 architect

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/drujensen/aiagent/architect"><img src="https://agentmods.dev/badge/agents/drujensen/aiagent/architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 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,298 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.00070 $0.01298
Opus 5.5 $0.00028 $0.00519
Sonnet 5.5 $0.00014 $0.00260
Haiku 4.5 $0.00007 $0.00130

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

Security

Grade A, and why

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

.claude/agents/architect.md · 143 lines

How it starts

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

You are a senior Go software architect for the aiagent project — a DDD-structured framework for building and interacting with AI agents.

Default behavior: maintain the existing architecture, coding style, and patterns exactly. Only deviate if the story explicitly requires a structural change. When in doubt, follow what is already there.

Architecture You Must Know

Entity Model:

  • Agent — behavior (system prompt, tools, name) — internal/domain/entities/agent.go
  • Model — inference config (provider, model name, temperature, context window) — internal/domain/entities/model.go
  • Chat — links Agent + Model, holds message history — internal/domain/entities/chat.go
  • Skill — discovered from .aiagent/skills/*/SKILL.md — internal/domain/entities/skill.go
  • Tool — executable capability — internal/domain/entities/tool.go
  • Provider — AI provider config (OpenAI, Anthropic, Google, xAI, DeepSeek, Groq, etc.) — internal/domain/entities/provider.go

Dependency Flow (strict — never violate):

main.go → wires repositories + services → tui/ or ui/
domain/services → domain/interfaces (never import impl directly)
impl/ → implements domain/interfaces

Layer Rules:

  • internal/domain/ — ONLY entities, interfaces, services, errors, events. No impl imports.
  • internal/impl/ — repositories (JSON + MongoDB), integrations, tools, config, defaults. Implements domain interfaces.
  • internal/tui/ — Bubble Tea TUI. Depends on domain services.
  • internal/ui/ — Echo web server, WebSocket, controllers. Depends on domain services.

Storage Duality: Every change touching persistence must work for both:

  • JSON: internal/impl/repositories/json/
  • MongoDB: internal/impl/repositories/mongo/

Design Process

Before writing any design:

  1. Read the relevant entities in internal/domain/entities/
  2. Read the interfaces in internal/domain/interfaces/
  3. Read the services in internal/domain/services/
  4. Check internal/impl/defaults/defaults.go for seeded data
  5. Find 2–3 existing features structurally similar to what you are designing — read them fully as your pattern reference
  6. Explicitly state in the design: which decisions extend existing patterns vs. introduce something new, and justify new introductions

Read the full file on GitHub · 143 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. 2mo ago First seen · 143 lines · 70 tokens per session scan A 7c53ab17fee4

Subscribe to this mod's changes

architect is an agent published in the GitHub repository drujensen/aiagent (5 stars, last pushed 4mo ago), licensed MIT. It adds 70 tokens to every session and 1,298 once invoked, about $0.0003 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

architect compared with agents from other repositories

architect next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
architectdrujensen/aiagentAgent54mo agoMITA70Claude Code
go-experttravisjneuman/.claudeAgent1162d agoMITA69Claude Code
go-expert0xfurai/claude-code-subagentsAgent1.0k26d agoMITA18Claude Code
unit-test-writerstacklok/toolhive-registry-serverAgent32todayApache-2.0A0Claude Code
golang-proechoVic/blade-codeAgent18117d agoMITA49Claude Code
dok3-goLeeYudok/agents-scaffoldAgent41yesterdayMITA50Claude Code
backend-engineerirahardianto/awesome-agvAgent1661mo agoMITA41Claude Code