Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/rjwalters/kicad-toolsnpx agentmods add commands/rjwalters/kicad-tools/loom-referenceWrote 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/rjwalters/kicad-tools/loom-reference)<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/loom-reference"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/loom-reference/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/rjwalters/kicad-tools/loom-reference"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/loom-reference.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.00000 | $0.05145 |
| Opus 5.5 | $0.00000 | $0.02058 |
| Sonnet 5.5 | $0.00000 | $0.01029 |
| Haiku 4.5 | $0.00000 | $0.00515 |
Grade A, and why
loom-reference 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 611 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Loom Daemon - Reference Documentation
This file contains detailed reference documentation for the Loom daemon. It is NOT loaded by agents during normal operation - it is for human reference only.
For daemon execution:
loom.md- Skill that invokes the Python daemon.loom/scripts/loom-daemon.sh- Shell wrapper for the daemonloom-tools/src/loom_tools/daemon/- Python daemon implementation
State File Format
The daemon maintains state in .loom/daemon-state.json. This file provides comprehensive information for debugging, crash recovery, and system observability.
Complete State Structure
{
"started_at": "2026-01-23T10:00:00Z",
"last_poll": "2026-01-23T11:30:00Z",
"running": true,
"iteration": 42,
"force_mode": false,
"debug_mode": false,
"daemon_session_id": "1706400000-12345",
"shepherds": {
"shepherd-1": {
"status": "working",
"issue": 123,
"task_id": "abc123",
"output_file": "/tmp/claude/.../abc123.output",
"started": "2026-01-23T10:15:00Z",
"last_phase": "builder",
"pr_number": null
},
"shepherd-2": {
"status": "idle",
"issue": null,
"task_id": null,
"output_file": null,
"idle_since": "2026-01-23T11:00:00Z",
"idle_reason": "no_ready_issues",
"last_issue": 100,
"last_completed": "2026-01-23T10:58:00Z"
},
"shepherd-3": {
"status": "working",
"issue": 456,
"task_id": "def456",
"output_file": "/tmp/claude/.../def456.output",
"started": "2026-01-23T10:45:00Z",
"last_phase": "judge",
"pr_number": 789
}
},
"support_roles": {
"architect": {
"status": "idle",
"task_id": null,
"output_file": null,
"last_completed": "2026-01-23T09:30:00Z",
"last_result": "created_proposal",
"proposals_created": 2
},
"hermit": {
"status": "running",
"task_id": "ghi789",
"output_file": "/tmp/claude/.../ghi789.output",
"started": "2026-01-23T11:00:00Z"
},
"guide": {
"status": "running",
"task_id": "jkl012",
"output_file": "/tmp/claude/.../jkl012.output",
"started": "2026-01-23T10:05:00Z"
},
"champion": {
"status": "running",
"task_id": "mno345",
"output_file": "/tmp/claude/.../mno345.output",
"started": "2026-01-23T10:10:00Z",
"prs_merged_this_session": 2
},
"doctor": {
"status": "idle",
"task_id": null,
"output_file": null,
"last_completed": "2026-01-23T10:30:00Z"
},
"auditor": {
"status": "idle",
"task_id": null,
"output_file": null,
"last_completed": "2026-01-23T09:00:00Z"
}
},
"pipeline_state": {
"ready": ["#1083", "#1080"],
"building": ["#1044"],
"review_requested": ["PR #1056"],
"changes_requested": ["PR #1059"],
"ready_to_merge": ["PR #1058"],
"blocked": [
{
"type": "pr",
"number": 1059,
"reason": "merge_conflicts",
"detected_at": "2026-01-23T11:20:00Z"
}
],
"last_updated": "2026-01-23T11:30:00Z"
},
"warnings": [
{
"time": "2026-01-23T11:10:00Z",
"type": "blocked_pr",
"severity": "warning",
"message": "PR #1059 has merge conflicts",
"context": {
"pr_number": 1059,
"issue_number": 1044,
"requires_role": "doctor"
},
"acknowledged": false
},
{
"time": "2026-01-23T10:30:00Z",
"type": "shepherd_error",
"severity": "info",
"message": "shepherd-1 encountered rate limit, retrying",
"context": {
"shepherd_id": "shepherd-1",
"issue": 123
},
"acknowledged": true
}
],
"completed_issues": [100, 101, 102],
"total_prs_merged": 3,
"last_architect_trigger": "2026-01-23T10:00:00Z",
"last_hermit_trigger": "2026-01-23T10:30:00Z",
"force_mode_auto_promotions": [
{"issue": 123, "type": "architect", "time": "2026-01-24T10:05:00Z"},
{"issue": 456, "type": "curated", "time": "2026-01-24T10:10:00Z"}
],
"session_limit_awareness": {
"enabled": true,
"last_check": "2026-01-23T11:30:00Z",
"session_percent": 45,
"paused_for_rate_limit": false,
"pause_started_at": null,
"expected_resume_at": null,
"session_percent_at_pause": null,
"total_pauses": 0,
"total_pause_duration_minutes": 0
},
"stuck_detection": {
"enabled": true,
"last_check": "2026-01-23T11:30:00Z",
"config": {
"idle_threshold": 600,
"working_threshold": 1800,
"loop_threshold": 3,
"error_spike_threshold": 5,
"intervention_mode": "escalate"
},
"active_interventions": [],
"recent_detections": [
{
"agent_id": "shepherd-1",
"issue": 123,
"detected_at": "2026-01-23T11:25:00Z",
"severity": "warning",
"indicators": ["no_progress:720s"],
"intervention": "alert",
"resolved_at": null
}
],
"total_detections": 1,
"total_interventions": 1,
"false_positive_rate": 0.1
},
"stale_detection": {
"last_check": "2026-01-25T10:00:00Z",
"last_recovered": [123, 456],
"total_recovered": 5,
"check_interval": 10
},
"cleanup": {
"lastRun": "2026-01-23T11:00:00Z",
"lastEvent": "periodic",
"lastCleaned": ["issue-98", "issue-99"],
"pendingCleanup": [],
"errors": []
}
}
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.
- 3mo ago First seen · 611 lines · 0 tokens per session scan A eda9bb48fabd
loom-reference is a command published in the GitHub repository rjwalters/kicad-tools (77 stars, last pushed 15d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,145 tokens. 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.
loom-reference compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| loom-referencerjwalters/kicad-tools | Command | 77 | 15d ago | MIT | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 153k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 153k | today | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 153k | today | MIT | A | 14 | Claude Code |