/parsec:trimfrom Parsec
Stages a deterministic compaction of the session transcript plus standing directives, injected after /clear. Use when context is nearly full.
Ships in Parsec. 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.
None: SKILL.md is the whole skill.
Follow these steps in order. Every number you report from step 1 is an ESTIMATE (chars/4) — always say "estimated", never present it as measured.
If the parsec MCP tools trim_stage and trim_finalize are available, use
them instead of the shell commands below: trim_stage (optionally with
level) replaces step 1 and trim_finalize (directives as the argument)
replaces step 3 — no heredoc needed. Everything else is unchanged.
Run "${CLAUDE_PLUGIN_ROOT}/bin/parsec" trim --json.
--level N
(1 = low trimming / keep more, 5 = very high). Omit it otherwise — the
default (3) is the only measured configuration; the other levels shift
what counts as "used later" and are estimates all the way down.Now write the STANDING DIRECTIVES block from your own in-context history. You are the compaction assistant here; the history is already in your context. Your job is NOT to summarize the work. Extract ONLY the STANDING DIRECTIVES: durable rulings, policies, quantitative floors, model/tool choices, scope decisions, and the north-star — the things the user established that must keep governing behavior AFTER compaction. Exclude one-off task steps and transient state. Output a terse pinned-constraints list, each line an imperative the agent must keep obeying. If a directive was stated with force or repeated, keep its force. Keep the list under roughly 3,000 tokens.
Stage the directives (heredoc keeps the artifact on disk complete before anything else happens):
"${CLAUDE_PLUGIN_ROOT}/bin/parsec" trim --finalize <<'PARSEC_DIRECTIVES'
<the directives list>
PARSEC_DIRECTIVES
When the binary prints ready, tell the user: run /clear now — the next
session in this project starts with the trimmed context injected
automatically. Mention it expires unused after 30 minutes, and that it
fires on /clear (or a fresh start), not on resume.
If step 3 fails for any reason, say so plainly and tell the user the
deterministic trim alone is still staged and will be injected without the
directives block after /clear (that is the designed fallback, not an
error state).
Never estimate savings the ledger does not show, and never run /clear
yourself — the user decides when the session ends.
What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/desktopRoute Claude Desktop's Cowork / Agent-mode traffic through the local parsec proxy so it gets curation and savings too. Use when the user asks to use parsec with Claude Desktop, or to turn Desktop interception off./loginSign in to Parsec so token savings show up in the user's dashboard. Use when the user wants to connect or link their account, sign in, see whether they are signed in, or sign out./proxyRestart the local parsec proxy if it was killed mid-session — brings the supervisor back on the routed port so requests stop failing. Use when the user says the proxy died, requests hang or error against 127.0.0.1, or they killed the proxy and want it back./savingsShow measured token savings — re-reads blocked and command loops broken by the parsec no-reread hook, from the local ledger, never estimated./setupActivate parsec — write the Claude Code routing env (ANTHROPIC_BASE_URL → local proxy), install the savings status line, and start the proxy. Use when the user wants to set up parsec, enable curation, or re-run a failed first-time setup./shareManage opt-in telemetry sharing (off by default). Supports --preview (show exact bytes before anything uploads), off, and purge.npx claudepluginhub daseinlabs/parsec --plugin parsec2 plugins ship this exact skill · first indexed Aug 31, 2026
Other plugins' skills for the same job