icm-architect: The Agent Architecture That Ships as Folders, Not Code

· Dev & Open Source · ICM · Context Engineering · Agent Skills · Open Source · Agent Architecture

A 98.7 KB skill with 13 commits and 6,564 stars replaces multi-agent orchestration with numbered folders, markdown stage contracts and a check at every step, cutting per-stage context from ~42k tokens to ~5k.

icm-architect: The Agent Architecture That Ships as Folders, Not Code

98 KB of markdown, 13 commits, 6,564 stars: no orchestrator and no runtime

Executive Takeaway: icm-architect is one skill file plus four references that tell an agent to build workspaces where numbered folders carry order, CONTEXT.md files carry each stage's exact inputs, and check.md files carry a verdict. Nothing compiles, nothing deploys, and the control surface is a text editor.

The mechanism is worth stealing even if you skip the skill. Making a stage's input list explicit turns context selection into a reviewable artifact, and a fail written on disk stops a bad intermediate output before the next stage inherits it.

GitHub's generated card for RinDig/icm-architect: a method you install by copying a folder
GitHub's generated card for RinDig/icm-architect: a method you install by copying a folder

RinDig/icm-architect · GitHub

1 · What Actually Changed

Sequential, human-reviewed work was paying framework tax

Agent frameworks exist to coordinate concurrent agents, memory and error handling. For a pipeline a person reviews step by step, that machinery is overhead the problem never asked for, and the paper states the tradeoff instead of hiding it.

Numbered Folders Carry the Order

01_research output is the 02_script input

  • Sequencing: 01_, 02_ prefixes sort correctly in Finder, Explorer or ls, so order is visible without a config file.
  • Scoping: hierarchy limits what a step may read, because a stage looks at its own folder plus the paths its contract names.
  • State: markdown on disk is the state. Opening a folder tells you where the run stopped.

Contracts Turn Context Into an Artifact

The Inputs list is the real API of a stage

  • Explicit, not inferred: inputs are exact backticked relative paths, split into working (this run) and reference (every run).
  • Bounded: a stage's whole load targets under ~8,000 tokens, a ceiling you can measure instead of a vibe you can argue about.
LayerFileBudgetRole
L0AGENTS.md300–800 tokrouting
L1root CONTEXT.md200–500 tokrouting
L2stage CONTEXT.md200–500 tokcontrol point
L3_shared/, refs500–2k tokfactory
L4output/variesproduct

Every Step Ends at a Check

pass or fail: why lands beside the output

A check is a person, a script, or a small model. Script and model checks write check.md beside the artifact, and a fail stops the run at that stage. The point is not verification theatre: a wrong turn caught at stage two never gets amplified by stages three through five.

# 02_script/CONTEXT.md
## Inputs
- Working: `../01_research/output/research.md`
- Reference: `../../_shared/voice.md`
Do NOT load: other stages, earlier runs
## Check
A person reads it aloud; edits in place.
A hand-written checklist: the pass-or-fail habit the method moves onto disk
A hand-written checklist: the pass-or-fail habit the method moves onto disk

2 · Benchmarks & Landscape

One measured figure, one taxonomy, one steep curve

The quantitative core is a single context-composition figure. It measures what gets loaded, not how much better the output is, and the authors say so plainly.

42k Tokens In, ~5k Per Stage

Same pipeline, two ways of loading context

The monolithic bar carries every stage's instructions, references and prior outputs at once. The staged bars are the same work loaded one contract at a time: roughly seven times less context per call, most of what vanishes being material this step never needed.

Control Surface: Framework vs Folder

Ten dimensions, four of which favor the framework

The last four rows matter most: they are the paper's own list of what folders cannot do. Structure being legible does not make retry, branching, parallelism or API auth free.

DimensionFrameworkFolders
Change stage orderEdit code, redeployRename folder
Modify a promptEdit agent configEdit markdown
Add or remove stageNew class plus wiringAdd a folder
Inspect mid-run stateAdd loggingOpen the folder
Hand off to a personDocs plus setupCopy the folder
Error recoveryBuilt-in retryRe-run failed stage
Conditional branchProgrammatic routingHuman decides
Concurrent runsNative coordinationSequential by design

Adoption Outran the Commit Log

13 commits, one contributor, 6,564 stars

Snapshot figures: 1.6k in September, 2.4k on 23 November, 6.5k when this board was written. The fork-to-star ratio is 8.6 percent, which fits a method people install by copying a directory rather than adding a dependency.

3 · Limits, Costs & Counterarguments

What it cannot enforce, and what it quietly assumes

Three costs are structural rather than fixable by better prompting: the acceptance test is behavioural, the distribution model has no version, and the scope is deliberately narrow.

The Walk Test Ships Without a Runner

Acceptance is that a memoryless agent can orient, judged by hand

Cold-walk a workspace: can you answer where am I, where do I go, and what is the status, from files alone? Nothing in the repo runs that test. _tools/links.py verifies that links and input paths resolve, which is the mechanical half only. A workspace can pass the script and still lose a reader.

Copy-and-Pray Versioning

No releases, no version marker inside the folder

Install is cp -r. That keeps a copy working forever and tells it nothing about upstream: no deprecation channel, no changelog inside the workspace, no way to answer which revision of the method built this pipeline a year later. Pin the commit hash in your own notes or you will not know.

Restructure mode has a sharper edge. It classifies files as catalog, contract, factory, product or dead, and the only gate before migration is a markdown move-safety file plus a human reading a plan. Run it on a folder you can restore.

Where Folders Genuinely Lose

Real-time collaboration, concurrency, auto-branching

The skill concedes it: real-time multi-agent collaboration, high-concurrency multi-user serving and automated mid-pipeline branching need framework code. Sequential checked work is the target, and "most knowledge work" is a claim about frequency, not a guarantee for your case.

The paper is honest about evidence too. It is a methodology paper with one context measurement and no formal user study, so quality gains rest on lost-in-the-middle literature and practitioner judgment rather than measured effect sizes.

4 · Practical Decision Playbook

A one-hour test beats a week of arguing about orchestration

Adopt when the work is repeatable, sequential, and already has a human who signs off. Wait when a run must branch on its own output under load. Skip when the job fits in one saved prompt, which the skill's own guardrail says out loud.

Who Should Adopt, Who Should Wait

  • Adopt now: content pipelines, research-to-brief work, per-client deliverables, and audit trails where a reviewer must see intermediate artifacts.
  • Wait: teams that need parallel stage execution or dynamic routing today; the method will not grow those without code.
  • Skip: single-prompt tasks. A workspace for work you do twice is scaffolding, not architecture.

The One-Hour Scratch Test

Build one pipeline on a throwaway folder first

cp -r icm-architect ~/.agents/skills/
# In a scratch repo, ask the agent: "ICM this folder"
python -I _tools/links.py    # links and inputs resolve
python -I _tools/viz.py      # optional: draw the graph

What Done Looks Like

Three real stages, one check each, no imagined folders

If the agent proposes seven stages for work you have done twice, you learned the useful thing: this is a scaffold for repetition, and it will happily over-build.

What You Actually Install

98.7 KB of text and four optional scripts

PathSizeJob
SKILL.md13.3 KBmethod and routing
references/33.5 KBforms, core, maps
assets/templates/13.8 KB14 blank starters
scripts/38.1 KBstdlib Python tools
The community derivative ktnCodes/icm-template: the method restated as a blank starter
The community derivative ktnCodes/icm-template: the method restated as a blank starter

5 · Verified Sources

Every claim above traces to one of these

Primary Sources

RinDig/icm-architect · GitHub repository

Interpretable Context Methodology (arXiv 2603.16021)

Simple Intelligence: applying ICM principles

Hysen Labs: independent review of icm-architect

中文导读:icm-architect:把 agent 架构写进文件夹,而不是写进编排代码

98 KB 文本、13 次提交换来 6,564 星:用编号文件夹定顺序、用 CONTEXT.md 锁定每步输入、用 check.md 记下通过与否,把每阶段上下文从约 42k tokens 压到约 5k。

Primary Sources & References

  1. RinDig/icm-architect · GitHub
  2. Interpretable Context Methodology (arXiv 2603.16021)
  3. Hysen Labs: independent review of icm-architect
  4. Simple Intelligence: applying ICM principles