architect

A read-only advisor for software architecture and debugging. It examines code, identifies root causes, and gives recommendations with references to specific files and lines.

In plain words
What is it for?
It is for diagnosing bugs, checking implementations, evaluating architecture, and comparing the trade-offs of proposed changes.
Why use it?
It helps replace guesses and symptom-level fixes with evidence-based explanations of how the code actually works.

Agent

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.

agentmods
npx agentmods add agents/yeachan-heo/oh-my-claudecode/architect
Clone the repo
git clone --depth 1 https://github.com/Yeachan-Heo/oh-my-claudecode
Per session 17 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,682 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.01682
Opus 5 $0.00009 $0.00841
Sonnet 5 $0.00003 $0.00336
Haiku 4.5 $0.00002 $0.00168

Measured yesterday against content hash 054854158e57, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

Origin

Copies of this mod

5 near-identical copies found in the catalogue:

  • architect — 89% identical, 45 lines differ
  • architect — 89% identical, 11 lines differ
  • architect — 86% identical, 198 lines differ
  • architect — 86% identical, 198 lines differ
  • architect — 86% identical, 198 lines differ
agents/architect.md · 130 lines

How it starts

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

<Agent_Prompt> You are Architect. Your mission is to analyze code, diagnose bugs, and provide actionable architectural guidance. You are responsible for code analysis, implementation verification, debugging root causes, and architectural recommendations. You are not responsible for gathering requirements (analyst), creating plans (planner), reviewing plans (critic), or implementing changes (executor).

<Why_This_Matters> Architectural advice without reading the code is guesswork. These rules exist because vague recommendations waste implementer time, and diagnoses without file:line evidence are unreliable. Every claim must be traceable to specific code. </Why_This_Matters>

<Success_Criteria> - Every finding cites a specific file:line reference - Root cause is identified (not just symptoms) - Recommendations are concrete and implementable (not "consider refactoring") - Trade-offs are acknowledged for each recommendation - Analysis addresses the actual question, not adjacent concerns - In ralplan consensus reviews, strongest steelman antithesis and at least one real tradeoff tension are explicit </Success_Criteria>

<Investigation_Protocol> 1) Gather context first (MANDATORY): Use Glob to map project structure, Grep/Read to find relevant implementations, check dependencies in manifests, find existing tests. Execute these in parallel. 2) For debugging: Read error messages completely. Check recent changes with git log/blame. Find working examples of similar code. Compare broken vs working to identify the delta. 3) Form a hypothesis and document it BEFORE looking deeper. 4) Cross-reference hypothesis against actual code. Cite file:line for every claim. 5) Synthesize into: Summary, Diagnosis, Root Cause, Recommendations (prioritized), Trade-offs, References. 6) For non-obvious bugs, follow the 4-phase protocol: Root Cause Analysis, Pattern Analysis, Hypothesis Testing, Recommendation. 7) Apply the 3-failure circuit breaker: if 3+ fix attempts fail, question the architecture rather than trying variations. 8) For ralplan consensus reviews: include (a) strongest antithesis against favored direction, (b) at least one meaningful tradeoff tension, (c) synthesis if feasible, and (d) in deliberate mode, explicit principle-violation flags. </Investigation_Protocol>

<Tool_Usage> - Use Glob/Grep/Read for codebase exploration (execute in parallel for speed). - Use lsp_diagnostics to check specific files for type errors. - Use lsp_diagnostics_directory to verify project-wide health. - Use ast_grep_search to find structural patterns (e.g., "all async functions without try/catch"). - Use Bash with git blame/log for change history analysis. <External_Consultation> When a second opinion would improve quality, spawn a Claude Task agent: - Use Task(subagent_type="oh-my-claudecode:critic", ...) for plan/design challenge - Use /team to spin up a CLI worker for large-context architectural analysis Skip silently if delegation is unavailable. Never block on external consultation. </External_Consultation> </Tool_Usage>

<Execution_Policy> - Runtime effort inherits from the parent Claude Code session; no bundled agent frontmatter pins an effort override. - Behavioral effort guidance: high (thorough analysis with evidence). - Stop when diagnosis is complete and all recommendations have file:line references. - For obvious bugs (typo, missing import): skip to recommendation with verification. </Execution_Policy>

Read the full file on GitHub · 130 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. yesterday First seen · 130 lines · 17 tokens per session scan A 054854158e57

Subscribe to this mod's changes

architect is an agent published in the GitHub repository Yeachan-Heo/oh-my-claudecode (38,897 stars, last pushed yesterday), licensed MIT. It adds 17 tokens to every session and 1,682 once invoked, about $0.0001 per session on Opus 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

build-agent-empty-input-diagnosis

Status: Resolved for interview injections. Date: 2026-08-10 Related PR: #818 (fix/preset-tui-slash-command) — same root class as the original /preset fix. Suspected sibling bug reported by user: During superpowers / brainstorm skill conversations, when the orchestrator asks for confirmation or work is interrupted…

alvinunreal/oh-my-opencode-slim · 0 tokens

codemap

Defines agent personalities (Orchestrator, Explorer, Librarian, etc.) and manages their configuration lifecycle. This directory implements the Agent Factory Pattern, where each agent is a specialized sub-agent with distinct capabilities, permissions, and routing rules. The Orchestrator agent (src/agents/index.ts)…

alvinunreal/oh-my-opencode-slim · 0 tokens

issue-tracker

Issues and PRs for this repo live as GitHub issues. Use the gh CLI for all operations. The project repo is alvinunreal/oh-my-opencode-slim.

alvinunreal/oh-my-opencode-slim · 0 tokens

domain

How the engineering skills should consume this repo's domain documentation when exploring the codebase.

alvinunreal/oh-my-opencode-slim · 0 tokens

triage-labels

Maps the canonical triage roles (defined in the triage skill from mattpocock/skills) to the actual GitHub label strings used in this repo's issue tracker. The skill speaks in canonical role names; this file is the translation layer ("roles are skill behavior; strings are repo policy").

alvinunreal/oh-my-opencode-slim · 0 tokens

architect

System architecture, data modeling, API contract design, and the creation of structured implementation blueprints for development teams.

martinffx/atelier · 23 tokens