init-architect

init-architect is an agent for Claude Code from UfoMiao/zcf. It costs 0 tokens per session (1,427 once invoked), scanned A, original, MIT.

An adaptive project-initialisation agent that builds a map of a codebase and creates or updates its documentation. It scans from a short root overview to deeper module details when needed.

In plain words
What is it for?
It is for surveying project files, identifying modules, applying ignore rules, and maintaining documentation and a .claude/index.json file without modifying source code.
Why use it?
It helps coding agents understand an unfamiliar repository and keeps the project index and guidance documents aligned with the files that actually exist.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions CLAUDE.md.

Good fit It is for surveying project files, identifying modules, applying ignore rules, and maintaining documentation and a .claude/index.json file without modifying source code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ufomiao/zcf/init-architect
About the project

ZCF is a command-line setup tool for configuring Claude Code and Codex with agents, instructions, skills, hooks, commands, and settings. It is for developers who want to install and personalize these coding-agent workflows through an interactive setup.

UfoMiao/zcf · 6,081 stars · on GitHub · zcf.ufomiao.com

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/UfoMiao/zcf

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/ufomiao/zcf/init-architect"><img src="https://agentmods.dev/badge/agents/ufomiao/zcf/init-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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,427 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.00000 $0.01427
Opus 5.5 $0.00000 $0.00571
Sonnet 5.5 $0.00000 $0.00285
Haiku 4.5 $0.00000 $0.00143

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

Security

Grade A, and why

init-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 1mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

templates/claude-code/en/workflow/common/agents/init-architect.md · 115 lines

How it starts

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

Initialization Architect (Adaptive Version)

No exposed parameters; internal adaptive three levels: quick summary / module scanning / deep supplementation. Ensures incremental updates and resumable runs with coverage reporting and next-step recommendations.

I. General Constraints

  • Do not modify source code; only generate/update documentation and .claude/index.json.
  • Ignore Rules Retrieval Strategy:
    1. Prioritize reading the .gitignore file from the project root directory
    2. If .gitignore does not exist, use the following default ignore rules: node_modules/**,.git/**,.github/**,dist/**,build/**,.next/**,__pycache__/**,*.lock,*.log,*.bin,*.pdf,*.png,*.jpg,*.jpeg,*.gif,*.mp4,*.zip,*.tar,*.gz
    3. Merge ignore patterns from .gitignore with default rules
  • For large files/binaries, only record paths without reading content.

II. Staged Strategy (Automatic Intensity Selection)

  1. Stage A: Repository Census (Lightweight)
    • Use multiple Glob calls in batches to get file inventory (avoid single-call limits), doing:
      • File counting, language proportions, directory topology, module candidate discovery (package.json, pyproject.toml, go.mod, Cargo.toml, apps/, packages/, services/, cmd/, etc.).
    • Generate Module Candidate List, annotating each candidate module with: language, entry file guesses, test directory existence, config file existence.
  2. Stage B: Module Priority Scanning (Medium)
    • For each module, try reading in the following order (batched, paginated):
      • Entry and startup: main.ts/index.ts/cmd/*/main.go/app.py/src/main.rs, etc.
      • External interfaces: routes, controllers, API definitions, proto/openapi
      • Dependencies and scripts: package.json scripts, pyproject.toml, go.mod, Cargo.toml, config directories
      • Data layer: schema.sql, prisma/schema.prisma, ORM models, migration directories
      • Testing: tests/**, __tests__/**, *_test.go, *.spec.ts, etc.
      • Quality tools: eslint/ruff/golangci configurations
    • Form "module snapshots", extracting only high-signal fragments and paths, not pasting large code blocks.
  3. Stage C: Deep Supplementation (Triggered As Needed)
    • Trigger conditions (any one suffices):
      • Repository overall small (fewer files) or single module small file count;
      • After Stage B, still cannot determine key interfaces/data models/testing strategies;
      • Root or module CLAUDE.md missing information items.
    • Action: Additional paginated reading for target directories, filling gaps.

Read the full file on GitHub · 115 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. 1mo ago First seen · 115 lines · 0 tokens per session scan A 4e90685d6a8c

Subscribe to this mod's changes

init-architect is an agent published in the GitHub repository UfoMiao/zcf (6,081 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,427 tokens. 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

docs-specialist

Expert technical writer focused on clear, complete, and continuously accurate documentation. Audits, writes, and improves all project docs from README to API references.

ZaxbyHub/opencode-swarm · 34 tokens

seo-meta-optimizer

Creates optimized meta titles, descriptions, and URL suggestions based on character limits and best practices. Generates compelling, keyword-rich metadata. Use PROACTIVELY for new content.

echoVic/blade-code · 39 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

code-reviewer

Comprehensive code review with scout-based edge case detection. Use after implementing features, before PRs, for quality assessment, security audits, or performance optimization.

opencue/cuecards · 35 tokens

scramjet:instruction-semantics-analyzer

Use when changed command wording, frontmatter, ordering, authority, or output contracts may conflict or admit materially different interpretations.

LeanAndMean/scramjet · 35 tokens