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.
git clone --depth 1 https://github.com/cosmix/loomWrote 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.
[](https://agentmods.dev/commands/cosmix/loom/distill)<a href="https://agentmods.dev/commands/cosmix/loom/distill"><img src="https://agentmods.dev/badge/commands/cosmix/loom/distill/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.
<a href="https://agentmods.dev/commands/cosmix/loom/distill"><img src="https://agentmods.dev/badge/commands/cosmix/loom/distill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00011 | $0.00845 |
| Opus 5.5 | $0.00004 | $0.00338 |
| Sonnet 5.5 | $0.00002 | $0.00169 |
| Haiku 4.5 | $0.00001 | $0.00085 |
Grade A, and why
distill 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 21d 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.
What it actually says
Add any information that is deemed important for a future agent or human engineer working on this project to doc/loom/knowledge, focusing on architectural insights, conventions, and mistakes made (and their resolution if available).
Start from the grouped worklist. Run loom memory pending --group and work the groups in order: corrections (text starting stale-knowledge:, target printed as <file>#<heading>), then mistakes (mistake:), decisions, other. When a mistake is a recurrence of one already in the tree, record a proposal for a hook or a loom plan verify check in concerns.md instead of another paragraph, and resolve the memory as merged.
Corrections first. Apply EVERY corrections-group entry. Correct files IN PLACE with loom knowledge replace-section <file> "<heading>" "<corrected body>" (body WITHOUT its ## heading line) — never loom knowledge update for an existing claim, which only adds to a file rather than fixing what is already there.
Current truth only, outside the mistakes files. Every knowledge file except mistakes.md and mistakes/* states how the tree works now. Rewrite any dated heading or "was", "used to", "supersedes" narrative you find there into current-state text with replace-section; when the history carries a lesson, move it to a mistakes topic and link to it.
Route each new insight to the right file:
architecture.md— component relationships, data flow, module/dependency graphpatterns.md— reusable architectural patterns found in the codebaseconventions.md— naming, structure, and coding standardsmistakes.md— what went wrong, the misleading signal, root cause, prevention rule, and fixconcerns.md— tech debt, warnings, known issuesstack.md/entry-points.md— dependencies/tooling and key files to read first
If doc/loom/knowledge/INDEX.md exists, the layout is hierarchical: each file above is a tier-1 summary, and per-category directories (architecture/, mistakes/, ...) hold tier-2 topic files for deeper detail. Route by size — a finding that fits in roughly 40 lines or fewer goes inline into the tier-1 file above; anything larger goes to loom knowledge update <category>/<slug>, leaving a 2-4 line summary plus a link in the tier-1 file. INDEX.md regenerates automatically on every knowledge write, so there is nothing to run at the end.
Consumers of what you write here do not read these files end to end: each stage session gets a per-stage Knowledge Brief that loom knowledge context assembles by pulling in whichever sections retrieval judged relevant to that stage's task. Write to be retrieved in slices, not read start to finish — prefer one self-contained ## section per finding, naming the concrete symbols and paths inline, because a section is the unit retrieval selects. A finding scattered across sections, or missing its own heading, may never surface to the agent that needs it.
Give every memory taken from an insight a receipt. After the loom knowledge update/replace-section call that used a Note/Decision/Question entry, run loom memory resolve <id> --outcome promoted --target <file#heading>; use merged when it folded into an existing section, discarded --reason "..." when it was a duplicate or wrong, deferred --reason "..." when it needs evidence not available now. Finish with loom memory pending --strict and resolve whatever it lists — this also runs standalone, any time, not only at plan end.
Only record what is non-obvious and durable. Do NOT record ephemeral task details, procedural steps, or anything already captured in the code, git history, or these files. Convert any relative dates to absolute.
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.
- 21d ago Changed · +2 lines 63eb19280189
- 28d ago Changed · +2 lines 5d345911477d
- 1mo ago Changed · +4 lines 0bf8cd6a9687
- 1mo ago First seen · 20 lines · 11 tokens per session scan A 4030d9592f3f
distill is a command published in the GitHub repository cosmix/loom (62 stars, last pushed today), licensed MIT. It adds 11 tokens to every session and 845 once invoked, about $0.0000 per session on Opus 5.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.
Other commands, from other repositories
devkit.github.review-pr
Provides comprehensive GitHub pull request review with code quality, security, and best practices analysis. Use when reviewing a PR before merging.
memory-diff
Memory and knowledge-base limit check + global project comparison.
historial
Listar sesiones pasadas guardadas en el historial.
index
Create persistent project understanding via PROJECTMAP.md.
context
A project-context manager for coding-agent sessions. It loads the project’s goals, technology choices, constraints, current phase, related documents, and task details from files such as progress.md.
sdd-implement
Execute a task list in dependency order, tests before implementation for each task, halting on any non-parallel failure instead of pressing ahead.