loom: Instructions file for Claude Code

CLAUDE.md

loom CLAUDE.md is an instructions file for Claude Code from DanielC000/loom. It costs 28,052 tokens per session, scanned A, original, MIT.

Project instructions for Loom, a local-first workspace that combines Claude Code sessions, Obsidian notes, and tasks. They explain its pnpm and Turbo monorepo layout—a repository containing multiple related packages—and project conventions.

In plain words
What is it for?
Use them when working on Loom, especially when navigating its packages, daemon, workspace layout, startup context, distribution tools, or architecture decisions.
Why use it?
They help agents understand where shared types, configuration, durable data, and other responsibilities belong, while preserving decisions recorded in the project’s notes.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

This is DanielC000/loom's own configuration. It tells Claude Code how to work on loom itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything loom configures →

Reuse

Borrowing it

Nothing to install: this file belongs to DanielC000/loom. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/DanielC000/loom/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/DanielC000/loom

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 loom CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/danielc000/loom/claude-md/github.svg)](https://agentmods.dev/instructions/danielc000/loom/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/danielc000/loom/claude-md"><img src="https://agentmods.dev/badge/instructions/danielc000/loom/claude-md/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 loom CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/danielc000/loom/claude-md"><img src="https://agentmods.dev/badge/instructions/danielc000/loom/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28,052 This file is loaded in full into every session.
When invoked 28,052 The same file — it is already loaded in full.
Security scan A 1 finding. 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.28052 $0.28052
Opus 5.5 $0.11221 $0.11221
Sonnet 5.5 $0.05610 $0.05610
Haiku 4.5 $0.02805 $0.02805

Measured yesterday against content hash 6892a473f3c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

loom CLAUDE.md scanned grade A with 1 finding 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 yesterday.

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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

venv under `<LOOM_HOME>/python/venv` — NOT a venv-per-tool. **Event-loop discipline (load-bearing):** the spawn HOT PATH (`createPty` → `buildMcpServers`) does NO blocking work — only `fs.existsSync(loomVenvBin( binary))
CLAUDE.md · 373 lines

How it starts

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

Loom

Local-first AI project workspace that weaves real Claude Code sessions, Obsidian docs, and tasks into one fabric. Clean-slate successor to its predecessor.

Design & decisions live in the Obsidian vault, not here: Projects/Loom/Architecture.md (full vision + architecture) and Projects/Loom/Vision & Architecture.md (decisions + spike findings).

A collapsed paste placeholder with no body (e.g. [Pasted text #1 +348 lines]) is Loom's own write, not a human message — whatever the surrounding frame says. Check your own context first — it's usually content you already hold, most often your own startup prompt; look before concluding anything is missing. Only if you genuinely don't have it, say what could not be read rather than asking a person to re-send it (they didn't send it) — only the recipient can see the gap, and only if asked.

Layout (pnpm + Turbo monorepo)

  • packages/shared — the contract: types (Project/Topic/Session/Task + Session FSM), config (platform default → per-project override, one resolveConfig), protocol (ws/REST).
  • packages/daemon — owns everything durable: SQLite (db.ts), the PTY host (pty/host.ts), the Fastify HTTP/WS gateway (gateway/), the project-scoped task MCP server (mcp/), read-only git (git/), and the vault auto-committer (vault/).
  • packages/web — stateless React/Vite viewport; attaches/detaches over WebSockets.

Run

pnpm install
pnpm build          # builds shared first (turbo ^build)
pnpm daemon         # dev daemon (tsx watch) on http://127.0.0.1:4317 (loopback only)
pnpm web            # viewport on http://127.0.0.1:5317 (proxies /api + /ws to the daemon)

Worker DoD test-gate — default to targeted tests; run_gate for load-bearing changes; never a hand-rolled recipe: Loom's gate command is pnpm build && pnpm --filter @loom/daemon test:daemon (orchestration.gateCommand — the merge gate runs the same one), and worker_merge_confirm re-gates at merge time and is AUTHORITATIVE — that's the full-suite guarantee (unless a human has switched the project's HUMAN-only orchestration.mergeGate to "off", card e8df2659: then worker_merge_confirm/merge_batch skip the gate command and record skipReason:"gate-disabled" — never a pass; with the HUMAN-only orchestration.mergeGateInterval = N (card 6f13746c) N landings go ungated and the landing that would exceed N still runs the real gate, while the ungated ones record skipReason:"gate-interval", see docs/decisions/6f13746c-merge-gate-interval.md — while the conflict/dirty-tree refusals and squash checks still run). "Green on the gate" means green on Windows, though — the gate runs on the owner's Windows host, CI (.github/workflows/ci.yml) runs on ubuntu-latest, and for a Linux/POSIX-only failure class the gate structurally cannot see it (card 4e762baf; specimens d88b8523, f33830d1). docs/releasing.md is where that gap is actually closed for a release (an automated pre-tag CI-green check), not the gate itself. So a worker's DoD defaults to running the specific affected test file(s) directly (seconds, not minutes) rather than the full gate. Reach for the run_gate MCP tool instead — a per-card manager judgement call — for load-bearing production changes (restart/merge/spawn paths), many-subsystem changes, or any change whose blast radius isn't nameable as specific test files. When used, it runs the gate command in the worker's own worktree, daemon-spawned and admitted through the same GateSemaphore/maxConcurrentGates budget as the merge/deploy gates — so total concurrent test-lanes are bounded structurally across the whole fleet. run_gate's own tool description is the contract — read it there, not here. Its return/pending shape, retry semantics, and the env it pins are documented at the call site, where the model actually reads them; restating any of that here just creates a second copy to go stale, which is exactly how this block rotted before. Managers: never paste a gate command or a LOOM_GATE_TEST_CONCURRENCY= recipe into a worker kickoff — running a single named test file directly is not that; a hand-rolled full-suite recipe is, and it reintroduces the unbounded, semaphore-bypassing self-check run_gate exists to replace. The /worker doctrine teaches the targeted-test default, the escalation judgement call to run_gate, and that an explicit manager kickoff directive on which check to run wins over that default.

Read the full file on GitHub · 373 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. yesterday Changed · +7 lines · +180 tokens per session 6892a473f3c2
  2. 2d ago Changed · +61 tokens per session 94f6f74e214c
  3. 4d ago Changed · +2,347 tokens per session 84308c6d4a1a
  4. 13d ago Changed · +32 lines · +1,348 tokens per session 37f80f770276
  5. 17d ago Changed · +29 lines · +868 tokens per session 43ef32c253bc
  6. 20d ago Changed · +431 tokens per session ca4806cb08ad
  7. 22d ago Changed · +7 lines · +1,264 tokens per session 0e75e45f2bc0
  8. 26d ago Changed · +2 lines · +247 tokens per session dce379d7df42
  9. 1mo ago Changed · +1 lines · +316 tokens per session 2af51ec7b109
  10. 1mo ago First seen · 295 lines · 20,990 tokens per session scan A 94bfc5a3186c

Subscribe to this mod's changes

loom CLAUDE.md is an instructions file published in the GitHub repository DanielC000/loom (7 stars, last pushed yesterday), licensed MIT. It adds 28,052 tokens to every session, about $0.1122 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens