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.
npx skills add cosmix/loom --skill knowledgegit 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/skills/cosmix/loom/knowledge)<a href="https://agentmods.dev/skills/cosmix/loom/knowledge"><img src="https://agentmods.dev/badge/skills/cosmix/loom/knowledge/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/skills/cosmix/loom/knowledge"><img src="https://agentmods.dev/badge/skills/cosmix/loom/knowledge.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.00018 | $0.00814 |
| Opus 5.5 | $0.00007 | $0.00326 |
| Sonnet 5.5 | $0.00004 | $0.00163 |
| Haiku 4.5 | $0.00002 | $0.00081 |
Grade A, and why
knowledge 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 11d 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
Record knowledge
Use the user's message as the worklist of what to record.
Do not run loom memory pending or loom memory resolve.
Write only under doc/loom/knowledge/, through loom knowledge update,
loom knowledge replace-section, or loom knowledge annotate; never use a file tool.
Run loom knowledge delete-section only to remove a section that a replace-section
heading miss appended.
Let those commands regenerate doc/loom/knowledge/INDEX.md automatically.
Never stage, commit, branch, or run loom init, loom run, or loom pressure.
- Read
doc/loom/knowledge/INDEX.mdif it exists, then only the relevant knowledge sections and source ranges needed to establish the current facts. Record only non-obvious, durable insights. Omit ephemeral task details, procedural steps, and information already captured in code, version history, or the knowledge base. Convert relative dates to absolute dates. - Apply corrections first. Correct an existing claim in place with
loom knowledge replace-section <file> "<heading>" "<body>", passing the body without its##heading line. Before running it, read the file's headings and copy the heading verbatim: a heading that does not match makes the command append a new section instead of replacing one. Never useloom knowledge updateto correct an existing claim: appending leaves the wrong claim in place. Read the command's result; if it reports an append, runloom knowledge delete-section <file> "<appended heading>", then runreplace-sectionagain with the heading copied exactly from the file. - Keep current truth only outside
mistakes.mdandmistakes/*. Rewrite dated headings and "was", "used to", or "supersedes" narratives into current-state text withreplace-section. Move history that carries a lesson into a mistakes topic and link to it from the current-state section.
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
- When
INDEX.mdexists, treat these files as tier-1 summaries and the category directories as tier-2 topics. Put a new finding of roughly 40 lines or fewer inline in the relevant tier-1 file; put larger findings inloom knowledge update <category>/<slug> "<entry>"and leave a 2–4 line summary and link in the tier-1 file. Reuse a matching topic before creating another. Give a new topic a blurb of at most 80 characters withloom knowledge annotate <category>/<slug> --blurb "<blurb>". - Write each finding as a self-contained
##section with concrete symbols and paths inline, so retrieval can select it without surrounding sections. If a mistake repeats one already recorded, propose a hook or aloom plan verifycheck inconcerns.mdinstead of adding another mistake. Useupdatefor new sections andreplace-sectionfor existing sections, including edits to tier-1 summaries and links. - Report the knowledge paths and headings changed, and any unresolved evidence.
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.
- 11d ago First seen · 60 lines · 18 tokens per session scan A 68dcd0c3157b
knowledge is a skill published in the GitHub repository cosmix/loom (66 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 814 once invoked, about $0.0001 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-11-19.
knowledge compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| knowledgecosmix/loom | Skill | 66 | today | MIT | A | 18 | Claude Code |
| agent-experienceTypeFox/agent-skills | Skill | 5 | 1mo ago | MIT | A | 179 | Claude Code |
| relevance-coarse-filterelvisun/newsjack | Skill | 1.7k | 4d ago | MIT | A | 57 | Claude Code |
| bootstrap-agent-identitypjt222/agent-almanac | Skill | 46 | 2d ago | MIT | A | 105 | Claude Code |
| coordinate-reasoningpjt222/agent-almanac | Skill | 46 | 2d ago | MIT | A | 90 | Claude Code |
| log-sessiongtrabanco/agentic-workflow | Skill | 25 | today | MIT | A | 165 | Claude Code |
| learngiuseppe-trisciuoglio/developer-kit | Skill | 372 | 2mo ago | MIT | A | 77 | Claude Code |