/wisci:compress [stream slug]from wisci
Snapshots session work state — goal, done work, in-progress state, next steps, ruled-out approaches, user constraints — into per-stream handoffs in .wisci/handoff/ for a later session or teammate. Use when the user wants to wrap up, stop for the day, save progress, create a handoff, or continue in a fresh session because context is filling up. Not for compressing files or data, or for summarizing the conversation inline.
Ships in wisci. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Capture what a fresh session needs to resume this work, one file per work stream in .wisci/handoff/. Streams this session didn't work on are never touched, so parallel sessions don't overwrite each other.
Reusable knowledge (research, architecture, decisions worth keeping after the work ships) belongs in a note. Suggest /write <topic> rather than burying it here.
Script: uv run --no-config --no-cache --script "${CLAUDE_SKILL_DIR}/scripts/wisci.py" (<wisci> below). Run it exactly as written, as a command of its own, with the absolute path and quotes and no shell variables: the permission rule matches only that literal command. You edit drafts with Write or Edit, never with shell redirects; only save writes a leaf. Hosts without command injection: run it from the project root with <this skill's directory>/scripts/wisci.py as the path, and leave out --session.
Store state:
!uv run --no-config --no-cache --script "${CLAUDE_SKILL_DIR}/scripts/wisci.py" scan
streams by goal:
$ARGUMENTS names a stream: use it as the slug.<wisci> draft <slug> --session ${CLAUDE_SESSION_ID} prints a draft's path: a copy of the leaf, or an empty leaf for a new slug. A new slug is kebab-case, at most 4 words, and taken from the goal: dates and branch names don't identify the work on resume. Read the draft, then edit it into the format below:
status to active, blocked (name the blocker under Blockers / Open Questions) or done.<wisci> save <draft path> --session ${CLAUDE_SESSION_ID}.
check report, every time: it is part of saving, not a code review. It lists every quote that no longer matches the code, then evidence ok N/M. Fix the failures in sections you wrote this session with a new draft: re-read the file, then correct the quote and the claim beside it together. Never delete or swap a quote just to make it pass.evidence ok N/M. If there are several streams, add: "Split across N streams — resume any one with /select ." Suggest a fresh session with /select. A done leaf can be deleted once committed; suggest that.These instructions replace the summary sections listed above. Inside <summary>, write only wisci handoff leaves: one <wisci-handoff>…</wisci-handoff> block per work stream the conversation worked on (usually one), each a leaf in the format below, and nothing else: no other headings, no prose. Write each leaf directly inside its block, not in a code fence, and mention the tag nowhere else.
status, goal, and stream, the stream's slug: kebab-case, at most 4 words, from the goal. Reuse a slug from this session's streams when the block continues that stream; otherwise choose a new one./compact <text>), carry it into Decisions and Next Steps.At every Claude Code compaction, the wisci plugin hands the summarizer this session's saved records and streams, then this section, "Leaf format" and "What to keep". /compress skips this section.
---
status: active
goal: <one-line goal of this stream>
---
# Handoff: <stream name>
## Constraints
- "<the user's exact words>"
## Decisions
- <what was decided> — <why>
## Tried / Ruled out
- <approach> → <why it failed or was rejected>
## Completed
- <outcome needed to resume: what changed, its `path`, how it was verified (test, command or commit) or "unverified">
## In Progress
<exactly where work stopped: the file, the function, the last step done; for running work, its handle (job ID, PID, log path)>
## Next Steps
1. [user] <the user's latest request, quoted> — <the next action on it>
2. [agent] <an action the agent committed to>
3. (implied) <an action nobody asked for>
## Blockers / Open Questions
- <unresolved item>
## References
- `<path, command, URL or ID>` — <what matters there>
status takes exactly active, blocked or done, with no inline comment, and goal is never empty. wisci writes updated and committed-by; leave them as they are./write).```ts src/auth/middleware.ts), with whole lines copied exactly, 1–3 lines per quote. Quote the line that would change if your claim became false, not just the signature. Progress, plans and decisions need no quote; mention files in prose.Compression drops verbose exploration and raw tool output on purpose. Keep what a fresh session would otherwise have to rediscover or would get wrong, written for a reader who never saw this conversation:
Specific beats vague. Write "The 401 from /api/auth/login came from an expired Redis session store", not "configuration problems". For anything you drop, keep a pointer (path or URL).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ph3on1x/agent-plugins-skills --plugin wisci5 skills in this plugin
/commitConventional git commit with an AI-Context trailer per changed AI-layer file (.wisci/, CLAUDE.md, AGENTS.md, skills, rules). Optional leading "push"./isolateDelegates research and exploration to subagents with isolated context windows, returns one synthesized report, and saves durable findings to .wisci/context/. Use whenever the user asks to research, investigate, explore, dig into, deep-dive or compare something — a repo's structure, a codebase area or flow end to end, how something works across the codebase, external docs or best practices, libraries, tools or approaches — without cluttering the main context. Not for fixing a specific bug or running tests in isolation./selectLoads stored project context — a quick orientation with an inventory of stored notes and handoffs, or everything stored on one topic, note or stream — flagging any section whose quoted code is no longer in the codebase. Use when starting or resuming a session, orienting in a project, getting an overview of the codebase before work, catching up after time away, or asking which notes and handoffs exist or what is stored about something.