From AgentOne Token Compression
Compress arbitrary content on demand — paste text, get back the compressed version
How this command is triggered — by the user, by Claude, or both
Slash command
/agentone-token-compression:compress text or file pathThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
The user wants to compress content using the token-optimizer plugin. Argument: $ARGUMENTS If the argument looks like a file path (starts with / or ./ or ~), use Read to read it. Otherwise, treat the argument itself as the content to compress. Pick the mode by content type (same rules as the skill): - **Code the user wants an overview of** → add `--ast` (drops function bodies, reversible via the `retrieve` tool). Skip `--ast` if they need to run/debug it. This is the clearest win. - **JSON / structured data** → default is already strong; `--aggressive` is safe to add but may only he...
The user wants to compress content using the token-optimizer plugin.
Argument: $ARGUMENTS
If the argument looks like a file path (starts with / or ./ or ~), use Read to read it. Otherwise, treat the argument itself as the content to compress.
Pick the mode by content type (same rules as the skill):
--ast (drops function bodies,
reversible via the retrieve tool). Skip --ast if they need to run/debug it.
This is the clearest win.--aggressive is safe
to add but may only help a little (the engine auto-tunes).Then call the compressor (self-contained dist/ bundle; add the chosen flag):
!echo "{CONTENT}" | node "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/agentone-token-compression}/dist/scripts/compress-stdin.js" --aggressive
(Replace {CONTENT} with the actual content via stdin; the script reads from stdin.
Drop --aggressive for prose; use --ast instead for code overviews.)
Show the user:
Report the actual savedPct — don't promise a number in advance. Savings vary a
lot by content: JSON ~50%, repetitive code 80%+, but logs with unique per-line
values (ids/timestamps) may compress very little (~0%).
If the content contains API keys or other secrets, point out that those were preserved verbatim by the entropy/secret detectors.
npx claudepluginhub iterateai/compression --plugin agentone-token-compression/compressCompresses CLAUDE.md or other memory files with protected-span safety, targeting configurable token savings at light, medium, or aggressive levels.
/compressCompresses a natural language file (.md/.txt) into caveman format, removing filler words while preserving code blocks, URLs, and markdown structure. Creates a backup before overwriting.
/compressCompresses a markdown file to reduce token usage using lossless (structural) or lossy (semantic) modes with section-by-section review.