/loom:loom-sessionfrom ClickHouse Loom
Restores or saves session context on user request. Lists saved Loom session briefs, loads the one the user picks (with compaction summary or full transcript), or saves one. Never auto-loads.
Ships in ClickHouse Loom. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The plugin saves on its own. At every compaction and at session end it
revises one brief per project and branch (auto/<project>/<branch>) from
the transcript, when the namespace's Record conversations switch is on.
Restoring is always the user's call. Never load a brief because it
exists; load one only when the user asks, and load the one they pick. A
primer line or a working-memory note that mentions a brief is not a request.
Helper: a node script in this plugin. Run every command below through $LB,
set by this line, which finds it in Claude Code (CLAUDE_PLUGIN_ROOT) and in
Codex (the plugin cache):
LR="${CLAUDE_PLUGIN_ROOT:-$(ls -d ~/.codex/plugins/cache/loom/loom/*/ 2>/dev/null | sort -V | tail -1)}"; LB="${LR%/}/bin/loom-brief.mjs"; LN="${LR%/}/bin/loom-node"
get … and list below mean sh "$LN" "$LB" get …. Use the helper, not an MCP
call: it prints the brief and what changed in the checkout since.
get 2, get auto/loom/feat-x, get --session <id>.get loads this
checkout's auto/<project>/<branch>.list (or list --all for every project), show the
numbered list, and ask which one. Do not guess between several.| The user says | Run | Loads |
|---|---|---|
| "resume", "restore", "catch me up" | get <sel> | the brief (goal, status, next steps, decisions, dead ends, done, files, rules) and the client's own summary from its last compaction |
| "the whole conversation", "restore exactly" | get <sel> --transcript | the above + every recorded turn of the brief's sessions (--turns N keeps the last N; --session <id> picks one session) and claude --resume <id> when that transcript is on this machine |
A transcript can be long. If the header says it holds thousands of turns, ask
before pulling all of it, or use --turns. For a lossless restore on the same
machine, claude --resume <id> (printed by --transcript) is exact.
--revision N loads an earlier revision of a brief.
Write the sections from your own context: file paths, PR numbers, error text, the reason behind each choice. Leave a section out rather than pad it.
sh "$LN" "$LB" save [KEY] <<'JSON'
{"goal": "...", "status": "...",
"decisions": [{"what": "...", "why": "..."}],
"dead_ends": [{"tried": "...", "why_not": "..."}],
"open_questions": ["..."], "next_steps": ["..."],
"files": [{"path": "...", "role": "..."}],
"constraints": ["rules the user set, in their words"],
"pointers": ["PR #123", "commit abc1234", "https://..."]}
JSON
KEY defaults to this branch's brief; use a name such as handoff/<topic> for
someone else. Report the key and revision printed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub clickhouse/loom --plugin loom7 skills in this plugin
/improve-loom-for-my-repoUse at the END of a session in which loom's code tools were used, when the user asks to improve loom, report what it got wrong, or asks "why did loom miss that". Harvests THIS session's own transcript — where loom answered, where you fell back to grep or whole-file reads, what you couldn't trust — and turns each gap into a reproducible finding the loom maintainers can act on. First sessions count most. NOT for filing bugs about repos loom doesn't index, and NOT for gaps this session did not actually hit.
/loom-codeUse the moment you are about to grep, glob, or open files to answer a question about a loom-indexed codebase — "where is X", "how does X work", "who calls Y", "is it safe to change Z", "what does this stack trace touch". The tell is linguistic: if you just thought "let me search the codebase", "let me grep for that", or "let me read a few files", that sentence is the trigger — code.grep covers exact literals too. NOT for repos loom hasn't indexed (a code.search that abstains on everything is the tell), and NOT for your own uncommitted files (grep those; pass your diff to code.impact for blast radius).
/loom-memoryUse when you are about to write something to Loom, when the user states, decides or corrects a fact, and at the END of any substantial task before you report done. Decides what is durable memory versus scratchpad, how to write a fact so a future session can trust it, how to read what Loom hands back (persisted or not, conflict, abstain, verified or stale), and how to run the end-of-task memory review. NOT for code questions (loom-code), NOT for "is this already reported?" / duplicate or bisect checks (call loom_search or loom_tracker_duplicate_check directly — nothing to read first) and NOT for filing loom defects (improve-loom-for-my-repo).
/loom-mentorUse when a loom hint (a tool result's `hint`, an `X-Loom-Hint` header or a "Loom mentor" line) names a plane or op you do not know how to use, or when the user asks "what can loom do", "how should I be using loom", "am I using loom well", "loom mentor". A hint that already names the op to call needs no skill: call it or carry on with the task. Maps a situation to the loom plane and op that fits — code index, tracker record, documents, records, working memory, offload, the entity graph, runs, decisions, procedures, duplicates, conflicts, bisect — and says what to do about each hint code. NOT for deciding the shape of one write (loom-memory), NOT for grep-vs-code.* in an indexed repo (loom-code), NOT for reworking a namespace that already holds the wrong shape (loom-optimize).
/loom-optimizeUse when the user says "optimize my loom namespace", "audit memory", "my memory search is bad", "loom keeps abstaining", or asks why recall over a namespace their agent writes to does not work, or when the mentor's `documents_as_memories` / `checkpoints_as_memory` / `records_for_identities` hint names rows to rework. Runs `namespace.audit`, turns each finding into a plan the owner approves, and reworks the rows with `memory.move` so every old key stays readable through a redirect. Retires nothing. NOT for deciding what to write in the first place (loom-memory) and NOT for client-side failures (loom-status).
/loom-statusUse when Loom seems quiet or wrong: a loom tool answers "unauthenticated", "not available" or an empty result for something the user says was saved; the session-start primer did not appear; the user asks "is loom working", "why didn't it remember", "is my token ok", or a Loom hook says `node: not found` or prints a `loom:` line about Node.js 18+. Checks the Node hook runtime, then runs the plugin's client check and reads its lines, so the answer names the cause (missing runtime, unreachable server, rejected or expired token, no writer grant on the write namespace, plugin or MCP entry missing, stranded captures) and the one fix. NOT for server-side operations (that is `loom doctor` on the server) and NOT for deciding what to remember (loom-memory).