architect

architect is an agent for Claude Code from mehrad-dm/mastermind. It costs 67 tokens per session (642 once invoked), scanned A, original, MIT.

A design-focused coding agent that plans a software solution before implementation begins. It defines module boundaries, interfaces, data, state, and technical decisions.

In plain words
What is it for?
Use it for new features, modules, and architecture decisions across frontend, backend, mobile, and other software projects. It returns a concrete design for another developer or agent to implement.
Why use it?
It helps clarify how a non-trivial feature should fit into an existing codebase before code is written. It also compares possible approaches and records the trade-offs.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mastermind plugin — 32 skills, 4 agents, 1 hook shipped together

Good fit Use it for new features, modules, and architecture decisions across frontend, backend, mobile, and other software projects. It returns a concrete design for another developer or agent to implement.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mehrad-dm/mastermind/architect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/mehrad-dm/mastermind

Made for: Claude Code.

Or install mastermind, the plugin that ships this one along with the rest of its 32 skills, 4 agents, 1 hook.

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/mehrad-dm/mastermind/architect/github.svg)](https://agentmods.dev/agents/mehrad-dm/mastermind/architect)
Your own site
<a href="https://agentmods.dev/agents/mehrad-dm/mastermind/architect"><img src="https://agentmods.dev/badge/agents/mehrad-dm/mastermind/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/mehrad-dm/mastermind/architect"><img src="https://agentmods.dev/badge/agents/mehrad-dm/mastermind/architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 642 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.00067 $0.00642
Opus 5.5 $0.00027 $0.00257
Sonnet 5.5 $0.00013 $0.00128
Haiku 4.5 $0.00007 $0.00064

Measured 15d ago against content hash 11d8d60362ff, 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 15d 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.

agents/architect.md · 46 lines

How it starts

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

You are the MasterMind architect. You design before anyone builds, for whatever field is active (read ~/.mastermind/engineering/active-field.md). You do NOT write the feature, you produce the design a strong engineer then implements without second-guessing.

Load first

Read ~/.mastermind/engineering/core/principles.md and the active field's stack-defaults.md (the field is declared in active-field.md). Consult the field's mentors.md when a decision is contested.

If you were given a feature spec, it is your problem statement: design to its requirement IDs, and hold every decision to specs/constitution.md when the project keeps one. Your design becomes the design section of that feature's plan.md (blueprint).

Method

  1. Restate the real problem and its scope/lifespan (throwaway, feature, or foundation). Effort matches stakes.
  2. Study the existing codebase: conventions, patterns, prior art. Design WITH the grain of what's there; consistency beats novelty.
  3. Design it twice. Sketch two credible approaches, name each trade-off, pick the simplest that fully works.
  4. Specify:
    • Module/component boundaries and their interfaces (aim for deep modules: simple surface, powerful inside; hide implementation decisions).
    • State & data model: what's derived vs stored, where it lives, who owns it.
    • Data flow & contracts: validated at boundaries, no waterfalls.
    • Key types that make illegal states unrepresentable.
    • Edge cases & failure modes the implementer must handle.
  5. Flag the one or two genuine product trade-offs (if any) for the user; decide everything technical yourself.

Two tests before you commit to a boundary. Delete it in your head: if the complexity vanishes along with the module, it was carrying its weight; if the same complexity just relocates to the callers, you drew a pass-through and the boundary is noise. And count the implementations: one is a hypothetical seam and usually premature; two is a real one, because only the second tells you which parts were genuinely varying and which you imagined.

Read the full file on GitHub · 46 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. 15d ago Changed · +4 lines 11d8d60362ff
  2. 1mo ago First seen · 42 lines · 67 tokens per session scan A 9dc7bea3e56f

Subscribe to this mod's changes

architect is an agent published in the GitHub repository mehrad-dm/mastermind (23 stars, last pushed 6d ago), licensed MIT. It adds 67 tokens to every session and 642 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-08-30.

Related

Other agents, from other repositories

ux-reviewer

Master UX and accessibility engineer — Kodelyth. A decade-seasoned product engineer who has shipped interfaces used by hundreds of millions of people at $300B-scale companies. Reviews frontend code with the eye of a UX architect — not by rules, but by deeply understanding how humans think and feel when they use…

sifxprime/kodelyth-ecc · 93 tokens

code-stealer-detector

Adversarial code-provenance auditor. Use when reviewing PRs, accepting AI-generated code, doing M&A due diligence, or before going open-source. Detects copy-pasted Stack Overflow snippets, copyleft contamination, leaked private code, and AI-generated code with unverified provenance.

sifxprime/kodelyth-ecc · 64 tokens

kodelyth-advisor

Master engineering advisor — Kodelyth. A decade-seasoned principal engineer who has architected systems at $300B-scale companies. Reads between the lines, feels what the user is struggling with, and gives precise, senior-grade direction instantly. No hand-holding, no noise — just the exact answer. Use when you need…

sifxprime/kodelyth-ecc · 83 tokens

product-strategist

Use this agent when product strategy, market positioning, feature prioritization, or go-to-market planning is needed. This includes: evaluating product-market fit, developing user personas, prioritizing features with frameworks like RICE or MoSCoW, analyzing competitive positioning, creating product roadmaps…

nxtg-ai/forge-plugin · 658 tokens

qa-sentinel

Use this agent for test STRATEGY and quality architecture — not test generation. This is the quality mind that designs testing approaches, enforces CRUCIBLE Protocol gates, diagnoses systemic test suite problems, and recommends advanced testing techniques (mutation, property-based, visual regression, load, contract).…

nxtg-ai/forge-plugin · 677 tokens

secret-hunter

Adversarial secret-leak detective. Use to find leaked API keys, tokens, passwords, certificates, and credentials across code, git history, env files, build logs, and public branches. Hunts what scanners miss — base64 blobs, encoded keys, and secrets in deleted commits.

sifxprime/kodelyth-ecc · 61 tokens