icm-architect: The Agent Architecture That Ships as Folders, Not Code
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.
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.
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.
| Layer | File | Budget | Role |
|---|---|---|---|
| L0 | AGENTS.md | 300–800 tok | routing |
| L1 | root CONTEXT.md | 200–500 tok | routing |
| L2 | stage CONTEXT.md | 200–500 tok | control point |
| L3 | _shared/, refs | 500–2k tok | factory |
| L4 | output/ | varies | product |
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.
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.
| Dimension | Framework | Folders |
|---|---|---|
| Change stage order | Edit code, redeploy | Rename folder |
| Modify a prompt | Edit agent config | Edit markdown |
| Add or remove stage | New class plus wiring | Add a folder |
| Inspect mid-run state | Add logging | Open the folder |
| Hand off to a person | Docs plus setup | Copy the folder |
| Error recovery | Built-in retry | Re-run failed stage |
| Conditional branch | Programmatic routing | Human decides |
| Concurrent runs | Native coordination | Sequential 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 graphWhat 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
| Path | Size | Job |
|---|---|---|
| SKILL.md | 13.3 KB | method and routing |
| references/ | 33.5 KB | forms, core, maps |
| assets/templates/ | 13.8 KB | 14 blank starters |
| scripts/ | 38.1 KB | stdlib Python tools |
5 · Verified Sources
Every claim above traces to one of these
Primary Sources
RinDig/icm-architect · GitHub repository
Interpretable Context Methodology (arXiv 2603.16021)
中文导读:icm-architect:把 agent 架构写进文件夹,而不是写进编排代码
98 KB 文本、13 次提交换来 6,564 星:用编号文件夹定顺序、用 CONTEXT.md 锁定每步输入、用 check.md 记下通过与否,把每阶段上下文从约 42k tokens 压到约 5k。