feat: add pith — token optimization plugin for Claude Code#1419
Closed
abhisekjha wants to merge 1 commit intoanthropics:mainfrom
Closed
feat: add pith — token optimization plugin for Claude Code#1419abhisekjha wants to merge 1 commit intoanthropics:mainfrom
abhisekjha wants to merge 1 commit intoanthropics:mainfrom
Conversation
Pith provides automatic token optimization for Claude Code sessions: - PostToolUse hook compresses tool output 40-60% (JS/TS skeleton extraction, Python skeleton, bash head+tail, grep truncation) - Token meter in statusline: PITH 12k/200k - Auto-compact at 70% context threshold - Structured output formats: /pith debug|review|arch|plan|commit - Project wiki that builds itself as you work - /budget N for hard per-response token ceiling Plugin passes `claude plugin validate`. Node.js required (ships with Claude Code). Homepage: https://github.com/abhisekjha/pith
|
Thanks for your interest! This repo only accepts contributions from Anthropic team members. If you'd like to submit a plugin to the marketplace, please submit your plugin here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin: pith
Category: productivity
Source: https://github.com/abhisekjha/pith
Install:
claude plugin marketplace add abhisekjha/pith && claude plugin install pithWhat it does
Pith reduces token consumption in Claude Code sessions automatically — no config needed after install.
Automatic (zero config):
PITH 12k/200kupdated every turnOn-demand commands:
/pith lean|precise|ultra— output compression levels/pith debug|review|arch|plan|commit— structured output formats/pith wiki— query/toggle project wiki/pith status— token usage breakdown/budget N— hard per-response token ceiling/focus <file>— extract relevant sections from a fileValidation
(Ran
claude plugin validate— zero errors, zero warnings.)Technical details
hooks/hooks.json)/pith,/budget,/focus(viacommands/)/focustool)