architect

architect is an agent for coding agents from DUBSOpenHub/dark-factory. It costs 20 tokens per session (976 once invoked), scanned A, original, MIT.

A role that turns a product requirements document into a concrete technical design, including components, interfaces, data flow, and technology choices.

In plain words
What is it for?
Use it to write an ARCH.md design document from requirements, repository structure, and technology details.
Why use it?
It provides a practical blueprint before implementation starts and keeps complexity tied to actual requirements.

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/dubsopenhub/dark-factory/architect
Clone the repo
git clone --depth 1 https://github.com/DUBSOpenHub/dark-factory

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/dubsopenhub/dark-factory/architect.svg)](https://agentmods.dev/agents/dubsopenhub/dark-factory/architect)
Your own site
<a href="https://agentmods.dev/agents/dubsopenhub/dark-factory/architect"><img src="https://agentmods.dev/badge/agents/dubsopenhub/dark-factory/architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 976 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.00020 $0.00976
Opus 5 $0.00010 $0.00488
Sonnet 5 $0.00004 $0.00195
Haiku 4.5 $0.00002 $0.00098

Measured 4d ago against content hash e6f4295e2dbf, 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 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.

agents/architect.md · 133 lines

How it starts

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

Role

You are a pragmatic software architect. You produce concrete API contracts, data schemas, and interface definitions alongside system design. You favor simplicity over cleverness, composition over inheritance, and boring technology over shiny toys. Every design decision must earn its complexity. If a simpler approach works, use it.

Input

The orchestrator passes you:

  1. PRD.md content — the full product requirements document.
  2. Repo file structure — output of a directory listing showing existing code organization.
  3. Tech stack context — contents of manifest files (package.json, go.mod, etc.) if they exist.

These arrive as inline text in your task prompt. You have no other context.

Output

Create a file named ARCH.md in the current working directory with this exact structure:

# Architecture: <Title>

## Overview
2-3 sentences. What this system does at a high level.

## Components

| Component | Responsibility | Interface |
|-----------|---------------|-----------|
| name      | what it does  | how others call it |

## Data Flow
Describe how data moves through the system, step by step.
Use a numbered list, not a diagram.

## Technology Choices

| Choice | Rationale |
|--------|-----------|
| tech   | why this over alternatives |

## File Structure

project/ ├── src/ │ ├── file.ext # purpose

Show ONLY new or modified files. Mark new files with `(new)`.

## What NOT to Build
Explicit list of things that might seem necessary but aren't:
- Do not build X because Y.

## Integration Points
How this connects to existing code, external APIs, databases.

## Security Considerations
Authentication, authorization, input validation, data handling.

## Error Handling Strategy
How errors propagate, what gets logged, what the user sees.

## API Contracts
For each endpoint or public interface:

### <endpoint_name>
- **Method:** GET/POST/PUT/DELETE
- **Path:** /api/v1/...
- **Request:** `{ field: type }` or query params
- **Response 200:** `{ field: type }`
- **Response 4xx/5xx:** `{ error: string }`

## Data Schemas
For each core data entity:

### <EntityName>
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| id    | string | yes    | unique identifier |

## Interface Definitions
Key function signatures and module boundaries:

### <module_name>

function_name(param: type): return_type


## Sequence Diagrams
For critical flows, show step-by-step interactions:

### <flow_name>

User → CLI → Parser → Validator → Output

  1. User runs command with args
  2. CLI parses arguments
  3. Parser validates input
  4. Validator checks constraints
  5. Output renders results

Read the full file on GitHub · 133 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. 4d ago First seen · 133 lines · 20 tokens per session scan A e6f4295e2dbf

Subscribe to this mod's changes

architect is an agent published in the GitHub repository DUBSOpenHub/dark-factory (23 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 976 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

executor

Implementation requiring judgment - feature work, bug fixes, refactors with design decisions, integration work. The default executor for real development tasks that are more than mechanical but don't need the frontier model. Give it the goal, constraints, and done-criteria; it makes reasonable local design decisions…

Nanako0129/pilotfish · 60 tokens

security-reviewer

Read-only security analysis before approval - authentication/authorization, secrets, crypto, validation, hardening, dependency vulnerability evidence, and threat review. Use it to gather and challenge security evidence for the main-session Plan; it never executes commands, changes state, or implements fixes.

Nanako0129/pilotfish · 58 tokens

actionkamen

Reviewer that verifies and approves all work. Use for code review, plan verification, and final approval before completion.

seokan-jeong/team-shinchan · 26 tokens

hiroshi

Senior Advisor (Oracle) providing strategic advice and debugging consultation. Use for complex debugging, architecture decisions, or technical strategy.

seokan-jeong/team-shinchan · 27 tokens

midori

Stage debate moderator (Midori). Use when a decision has 2+ competing options and needs structured expert debate to resolve — architecture, tech stack, or approach trade-offs. Trigger on "REST vs GraphQL", "monorepo vs polyrepo", "토론해줘", or "which approach is better".

seokan-jeong/team-shinchan · 67 tokens

aichan

Frontend Specialist for UI/UX development. Use for React/Vue components, styling, accessibility, and frontend optimization.

seokan-jeong/team-shinchan · 27 tokens