Strategic Compact
affaan-m/ECC
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
Stage a det+dir compaction of this session — a deterministic needed-set trim of the transcript plus a standing-directives block, injected automatically after /clear.
$ npx skills add daseinlabs/parsec --skill trim -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install daseinlabs/parsec trim --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/daseinlabs/parsec.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/plugin/skills/trim .claude/skills/trim && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "trim" agent skill from https://github.com/daseinlabs/parsec/tree/main/packages/plugin/skills/trim into .claude/skills/trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trim", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/daseinlabs/parsec/tree/main/packages/plugin/skills/trimType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add daseinlabs/parsec --skill trim -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install daseinlabs/parsec trim --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/daseinlabs/parsec.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/plugin/skills/trim .agents/skills/trim && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "trim" agent skill from https://github.com/daseinlabs/parsec/tree/main/packages/plugin/skills/trim into .agents/skills/trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trim", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add daseinlabs/parsec --skill trim -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install daseinlabs/parsec trim --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/daseinlabs/parsec.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/plugin/skills/trim .cursor/skills/trim && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "trim" agent skill from https://github.com/daseinlabs/parsec/tree/main/packages/plugin/skills/trim into .cursor/skills/trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trim", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/daseinlabs/parsec.git --path packages/plugin/skills/trim--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add daseinlabs/parsec --skill trim -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install daseinlabs/parsec trim --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/daseinlabs/parsec.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/plugin/skills/trim .gemini/skills/trim && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "trim" agent skill from https://github.com/daseinlabs/parsec/tree/main/packages/plugin/skills/trim into .gemini/skills/trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trim", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install daseinlabs/parsec trimInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add daseinlabs/parsec --skill trim -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/daseinlabs/parsec.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/plugin/skills/trim .github/skills/trim && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "trim" agent skill from https://github.com/daseinlabs/parsec/tree/main/packages/plugin/skills/trim into .github/skills/trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trim", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add daseinlabs/parsec --skill trim -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install daseinlabs/parsec trim --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/daseinlabs/parsec.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/plugin/skills/trim .opencode/skills/trim && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "trim" agent skill from https://github.com/daseinlabs/parsec/tree/main/packages/plugin/skills/trim into .opencode/skills/trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trim", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
trimStage a det+dir compaction of this session — a deterministic needed-set trim of the transcript plus a standing-directives block, injected automatically after /clear.
Trim is an agent skill from daseinlabs/parsec. Stage a det+dir compaction of this session — a deterministic needed-set trim of the transcript plus a standing-directives block, injected automatically after /clear. Use when context is nearly full and the user wants a better /compact.
Its SKILL.md is about 750 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Agent runtime optimization with Small Language Models. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit e97063c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Trim loads about 751 tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 397 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from daseinlabs/parsec at commit e97063c, republished under its MIT licence (© daseinlabs). 397 words, ~751 tokens.
.claude/skills/trim/SKILL.md (or your agent's skills folder).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_DIRECTIVESWhen 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.
© daseinlabs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in packages/plugin/skills/trim of daseinlabs/parsec.
Open the folder on GitHubat commit e97063c
Trim next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Trim this skilldaseinlabs/parsec | 130 | — | ~751 | Automated safety check: Pass | MIT | |
| Strategic Compactaffaan-m/ECC | 276k | 1 repos | ~2.1k | Automated safety check: Pass | MIT | |
| Strategic Compactaffaan-m/ECC | 276k | 2 repos | ~434 | Automated safety check: Pass | MIT | |
| Strategic Compactaffaan-m/ECC | 276k | 2 repos | ~724 | Automated safety check: Pass | MIT | |
| Strategic Compactaffaan-m/ECC | 276k | 3 repos | ~943 | Automated safety check: Pass | MIT | |
| Compactcatlog22/Claude-Code-Workflow | 2.1k | — | ~3.2k | Automated safety check: Pass | MIT |
affaan-m/ECC
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
affaan-m/ECC
任意の自動コンパクションではなく、タスクフェーズを通じてコンテキストを保持するための論理的な間隔での手動コンパクションを提案します。
affaan-m/ECC
임의의 자동 컴팩션 대신 논리적 간격에서 수동 컨텍스트 압축을 제안하여 작업 단계를 통해 컨텍스트를 보존합니다.
affaan-m/ECC
建议在逻辑间隔处手动压缩上下文,以在任务阶段中保留上下文,而非任意的自动压缩。
catlog22/Claude-Code-Workflow
Compact current session memory into structured text for session recovery.
sickn33/agentic-awesome-skills
Render the UI and prove it's balanced + usable: a deterministic layout audit (centroid / optical-center / pixel-oracle balance via explicit math + annotated screenshot) plus a vision-judged Nielsen…
daseinlabs/parsec
Route Claude Desktop's Cowork / Agent-mode traffic through the local parsec proxy so it gets curation and savings too.
daseinlabs/parsec
Sign in to Parsec so token savings show up in the user's dashboard.
daseinlabs/parsec
Activate parsec — write the Claude Code routing env (ANTHROPICBASEURL → local proxy), install the savings status line, and start the proxy.
daseinlabs/parsec
Restart the local parsec proxy if it was killed mid-session — brings the supervisor back on the routed port so requests stop failing.
daseinlabs/parsec
Cleanly remove parsec from this machine — undo Claude Code routing, stop the local proxy, delete downloaded models and data, then uninstall the plugin itself.
daseinlabs/parsec
Show measured token savings — re-reads blocked and command loops broken by the parsec no-reread hook, from the local ledger, never estimated.
Stage a det+dir compaction of this session — a deterministic needed-set trim of the transcript plus a standing-directives block, injected automatically after /clear. Trim is an agent skill from daseinlabs/parsec. Stage a det+dir compaction of this session — a deterministic needed-set trim of the transcript plus a standing-directives block, injected automatically after /clear.
Trim fits situations like: context is nearly full and the user wants a better /compact.
Run `npx skills add daseinlabs/parsec --skill trim -a claude-code`. Or copy the skill folder (packages/plugin/skills/trim in daseinlabs/parsec) into .claude/skills/trim in your project. Claude Code loads it when a task matches its description.
Run `npx skills add daseinlabs/parsec --skill trim -a codex`. Or copy the skill folder (packages/plugin/skills/trim in daseinlabs/parsec) into .agents/skills/trim in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add daseinlabs/parsec --skill trim -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trim, .gemini/skills/trim, .github/skills/trim and .opencode/skills/trim in your project.
SKILL.md names no scripts, command-line tools or credentials: Trim is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Trim is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 751 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Trim: Strategic Compact (affaan-m/ECC, 276k stars), Strategic Compact (affaan-m/ECC, 276k stars), Strategic Compact (affaan-m/ECC, 276k stars) and Strategic Compact (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
daseinlabs (a GitHub organization) maintains it in daseinlabs/parsec, which has 130 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 6, 2026.
Source: daseinlabs/parsec on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.