A Claude Code plugin built by One Studio Co.
We built a multi-agent system in Claude Code — a command center with 10+ specialized agents, each with their own memory, tools, and domain. It worked well. Then we noticed something: spawning a simple agent just to answer a one-line question cost ~32,000 input tokens. Every single time.
We traced it. The agent wasn't doing anything special — it just loaded CLAUDE.md (~9,600 tokens) + MEMORY.md (~2,800 tokens) + its own agent file (~4,900 tokens) + its memory index (~2,000 tokens) before saying a word. Files that had grown organically over months, full of detail that was only occasionally needed.
The fix was obvious in hindsight: the same thing Claude Code already does to its own conversation history — compress. Keep the essential summary always in context, move the raw detail somewhere agents can Read on demand.
We ran a full audit and compression pass across the whole system:
| What | Before | After | Reduction |
|---|---|---|---|
CLAUDE.md | 38,519 bytes | 5,630 bytes | -85% |
| Average agent file | ~10,000 bytes | ~4,800 bytes | -52% |
| Average memory index | ~5,000 bytes | ~1,700 bytes | -66% |
| Heaviest agent spawn | ~15,700 tokens | ~4,700 tokens | -70% |
One agent was running on Opus when Sonnet was sufficient — fixing that alone cut its cost 5× per session.
We turned the process into /slim so any Claude Code agent system can run the same pass.
Skills are reusable prompts that extend Claude Code with domain-specific workflows. Drop a skill file into .claude/commands/ and invoke it with /skill-name in any Claude Code session.
/slim — Context Budget AuditorMeasures and compresses the token cost of your Claude Code agent system.
Every agent spawn loads CLAUDE.md + MEMORY.md + the agent file + its memory index — all verbatim. As projects grow, these files accumulate detail that's only needed occasionally. slim audits all always-loaded files, proposes a two-tier split (fast-tier always loaded, slow-tier read on demand), and compresses agent files and memory indexes — without losing any content.
Run it when:
CLAUDE.md has grown beyond ~5KBCLAUDE.mdWhat it does (6 phases):
docs/claude/*.md, keeps only the fast-tier in CLAUDE.mdCLAUDE.md, cuts prose rationale, keeps domain-specific rulesmodel: frontmatter per agent, recommends Haiku/Sonnet/Opus based on task type, documents a dynamic escalation pattern for edge casesInteractive — proposes changes, waits for approval before writing each phase.
This plugin is distributed via the One Studio marketplace on GitHub.
From within Claude Code:
/plugin marketplace add onestudio-co/claude-code
Or from the CLI:
claude plugin marketplace add onestudio-co/claude-code
From within Claude Code:
/plugin install collection@one-studio
After installing, restart your Claude Code session (/exit then relaunch) to load the new plugins.
Note: The built-in
/reload-pluginscommand should reload newly added plugins without a restart, but it currently does not. This is a known bug. Once the Anthropic team fixes it, you can use/reload-pluginsinstead of restarting.
/slim
To pull the latest version of the plugin, update the marketplace:
From within Claude Code:
/plugin marketplace update one-studio
Or from the CLI:
claude plugin marketplace update one-studio
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
FLOW methodology — 5 skills for decision-centric product development. 3 gates (Commit/Pulse/Resolve), 3 artifacts (Cycle Brief/Kill-Merge Record/Learning Entry), 2 modes (Discovery/Outcome). v3.0: The Great Simplification.
npx claudepluginhub onestudio-os/claude-code --plugin collectionAnalyze and reduce Claude Code token overhead
Create and validate production-grade agent skills with 100-point marketplace grading
Skill and agent authoring tools: generate, audit, and improve Claude Code skills, commands, and agents
Unified capability management center for Skills, Agents, and Commands.
Evaluate and optimize .claude/ directory token efficiency. Reduce cost, improve response quality.
Curate auto-memory, promote learnings to CLAUDE.md and rules, extract proven patterns into reusable skills.