compress

compress is a skill for Claude Code from cwinvestments/memstack. It costs 29 tokens per session (1,157 once invoked), scanned A, original, MIT.

A skill for checking and troubleshooting TokenStack, a proxy that compresses tool output between Claude Code and the Anthropic API. The API is the service Claude Code uses to send and receive requests.

In plain words
What is it for?
It is for checking proxy status, reviewing compression results, and diagnosing API or proxy connection problems.
Why use it?
It helps investigate proxy failures and understand token savings or context-window usage when working with Claude Code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the memstack plugin — 87 skills, 2 commands, 6 hooks shipped together

Good fit It is for checking proxy status, reviewing compression results, and diagnosing API or proxy connection problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cwinvestments/memstack/compress
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cwinvestments/memstack --skill compress
Clone the repo
git clone --depth 1 https://github.com/cwinvestments/memstack

Made for: Claude Code.

Or install memstack, the plugin that ships this one along with the rest of its 87 skills, 2 commands, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for compress

README.md
[![agentmods](https://agentmods.dev/badge/skills/cwinvestments/memstack/compress/github.svg)](https://agentmods.dev/skills/cwinvestments/memstack/compress)
Your own site
<a href="https://agentmods.dev/skills/cwinvestments/memstack/compress"><img src="https://agentmods.dev/badge/skills/cwinvestments/memstack/compress/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for compress

Your own site · 80×15
<a href="https://agentmods.dev/skills/cwinvestments/memstack/compress"><img src="https://agentmods.dev/badge/skills/cwinvestments/memstack/compress.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,157 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01157
Opus 5.5 $0.00012 $0.00463
Sonnet 5.5 $0.00006 $0.00231
Haiku 4.5 $0.00003 $0.00116

Measured 1mo ago against content hash 54bf729825e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

compress scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://127.0.0.1:8787/health
skills/compress/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Compress - TokenStack Proxy Manager

Monitor and troubleshoot the built-in TokenStack compression proxy for CC sessions.

Activation

When this skill activates, output:

Compress - Checking TokenStack status...

Then execute the protocol below.

  • Keywords: tokenstack, compression stats, token savings, proxy status, check proxy
  • Contextual: When user asks about token usage, context window limits, or session cost
  • Level: 2 (explicit trigger only)

Context Guard

Context Status
User says "tokenstack", "compression stats", "check proxy" ACTIVE - run status check
User asks about token savings or context window ACTIVE - point to dashboard report
Proxy errors or API connection failures appear ACTIVE - run health diagnostics
General discussion about CC features DORMANT - do not activate
User is actively coding (no proxy issues) DORMANT - do not activate

What It Does

TokenStack is a transparent proxy between Claude Code and the Anthropic API. It compresses tool output before it reaches the API, extending effective context and lowering token cost.

This skill checks that the proxy is running and routing, and troubleshoots connection issues. For the full feature overview, enable steps, and transform tables, use the Token Optimization skill.

Prerequisites

TokenStack ships inside the memstack-skill-loader package. There is no separate install.

  • Start with the dashboard (recommended): python -m memstack_skill_loader dashboard --with-proxy
    • Starts the proxy on 127.0.0.1:8787 and sets ANTHROPIC_BASE_URL automatically.
  • Run only the proxy: python -m memstack_skill_loader proxy

Workflow

1. Health Check

curl http://127.0.0.1:8787/health

A healthy proxy responds on /health. If there is no response, the proxy is not running.

Note: the proxy has no /stats endpoint. Live savings are reported in the dashboard, not over curl. See "Reading Savings" below.

Read the full file on GitHub · 129 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 129 lines · 29 tokens per session scan A 54bf729825e8

Subscribe to this mod's changes

compress is a skill published in the GitHub repository cwinvestments/memstack (425 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 1,157 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

catchup

Restore context after /clear by summarizing recent work and project state.

FlorianBruniaux/claude-code-ultimate-guide · 16 tokens

atomic-wiki

Conversational wiki and capture-bucket routing. Fires when the user wants a place, space, or folder for notes, research, tickets, raw dumps, or knowledge capture — checks the block in /.claude/CLAUDE.md; if the cwd is under a registered realm, creates the folder as a bucket via atomic wiki bucket add rather than a…

damusix/atomic-claude · 204 tokens

memory-factcheck

A check that compares the project’s saved agent notes with the current code, database, issue tracker, and files. It identifies notes whose claims are outdated or no longer match reality.

LeeYudok/agents-scaffold · 137 tokens

fable-context-thrift

Use at the start of any multi-step task and during exploration — before reading files, searching, or re-checking completed work, especially when tempted to read whole files, re-verify known facts, or run independent lookups one at a time.

DizzyMii/fable-skills · 56 tokens

context-mode

Use context-mode tools (ctxexecute, ctxexecutefile) instead of Bash/cat when processing large outputs. Triggers: "analyze logs", "summarize output", "process data", "parse JSON", "filter results", "extract errors", "check build output", "analyze dependencies", "process API response", "large file analysis", "page…

opencue/cuecards · 225 tokens

deep-clean

Full-spectrum consolidation of AI agent configuration files. Goes beyond memory-only dream skills: audits and optimizes context files (AGENTS.md/AGENTS.md/GEMINI.md/.cursorrules), rules, skills, and memory. Detects stale references, dead file paths, duplicated rules, stack mismatches, contradictions, vague directives…

opencue/cuecards · 87 tokens