Status: stable — not actively adding features. Bug fixes welcome via issues. Token compression hooks for Claude Code. Install once, works in every session, zero config.
> /plugin marketplace add abhisekjha/pith> /plugin install pith@pith
FAQ
pith is a Claude Code plugin with 12 hand-picked skills for development work, indexed on Flowy. Install it with the command on its page. It includes pith-arch, pith-commit, pith-debug. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Repo: abhisekjha/pith
Status: stable — not actively adding features. Bug fixes welcome via issues.
Token compression hooks for Claude Code. Install once, works in every session, zero config.
bash <(curl -s https://raw.githubusercontent.com/abhisekjha/pith/main/install.sh)
Four hooks attach to Claude Code's lifecycle. Every session, every project, automatically.
PostToolUse — compresses file reads, bash output, and grep results before they hit contextUserPromptSubmit — runs /pith commands, enforces token ceiling if setSessionStart — restores compression mode, injects cache-locked rulesStop — records token usage for status and reportThe PostToolUse hook is where most savings happen — file reads alone account for 30–50% of context in a typical coding session.
| Tool output | What happens | Typical saving |
|---|---|---|
| File reads | skeleton only — imports, signatures, types | −88% per read |
| Bash / build | errors + summary, verbose logs discarded | −91% per run |
| Grep results | capped at 25 matches | prevents runaway searches |
| Large payloads | offloaded to ~/.pith/tmp/, pointer left in context | prevents bloat |
Runs automatically. No commands needed. Every file read, bash run, and grep gets compressed on the way back to Claude.
Real session numbers:
Read large-service.ts → 1,800 tokens baseline → 210 tokens compressed (−88%)
npm install output → 940 tokens baseline → 80 tokens compressed (−91%)
Control how Claude writes back to you.
/pith → lean: drop filler, short synonyms, fragments OK
/pith ultra → maximum: abbreviate, arrows, tables
/pith precise → tight but full sentences
/pith off → disable output compression
Auto-escalation kicks in as context fills — no manual switching needed:
50% fill → LEAN
70% fill → ULTRA
85% fill → dynamic token ceiling
/pith status → ASCII flow chart — baseline vs compressed vs output + plain-English savings
/pith report → interactive HTML dashboard (auto-refreshes every 30s)

Load only the sections of a file relevant to your current question. Saves re-reading large files.
/focus src/services/auth.ts
Returns the 5 most relevant sections with a structure overview. Works on any file type.
Pull exact function or class definitions without reading the whole file.
/pith symbol src/auth.ts handleLogin → exact 30–50 lines (~95% vs full file)
/pith symbol --list src/auth.ts → all symbols with line numbers
# One-liner
bash <(curl -s https://raw.githubusercontent.com/abhisekjha/pith/main/install.sh)
# From source
git clone https://github.com/abhisekjha/pith
bash pith/install.sh
Hooks install globally into ~/.claude/hooks/. Active in every session from that point on.
Update:
/pith update → git pull + re-sync hooks, commands, settings
Uninstall:
/pith uninstall
All present and functional. Not the daily workflow, but there when you need them.
| Feature | Command | What it does |
|---|---|---|
| Project wiki | /pith ingest <file> | Extract entities, claims, decisions into wiki/ |
| URL ingestion | /pith ingest --url <url> | Fetch and ingest a web page |
| Wiki query | /pith wiki "question" | Search wiki with citations |
| Wiki synthesis | /pith compile | Re-synthesize all sources into wiki pages |
| Wiki lint | /pith lint | Find contradictions, gaps, missing pages |
| Knowledge graph | /pith-graph | Visual graph of wiki entities in browser |
| jCodeMunch | auto on code files | Structure-aware ingest — skeleton not full source |
| Token ceiling | /budget 150 | Hard token cap, enforced every prompt |
| Structured formats | /pith debug / review / arch / plan / commit | Output templates |
| Tour | /pith tour | 7-step interactive walkthrough |
| Health check | /pith health | Diagnose hook and config issues |
| Evals | python evals/harness.py | Run compression benchmark (needs API key) |
Estimates against real usage — not against "no system prompt."
Before Pith: Read large-service.ts → 1,800 tokens
After Pith: Read large-service.ts → 210 tokens (−88%)
Before Pith: npm install output → 940 tokens
After Pith: errors + summary → 80 tokens (−91%)
Session from real use:
See BENCHMARKS.md for methodology and raw numbers.
Pith detects the model automatically and applies correct rates. No config needed.
| Model | Input ($/MTok) | Output ($/MTok) |
|---|---|---|
| Claude Opus 4.7 / 4.6 / 4.5 | $5.00 | $25.00 |
| Claude Sonnet 4.6 / 4.5 / 4 | $3.00 | $15.00 |
| Claude Haiku 4.5 | $1.00 | $5.00 |
| Claude Haiku 3.5 | $0.80 | $4.00 |
Falls back to Sonnet 4.6 rates if model can't be determined.
MIT
.claude-plugin/
marketplace.json
plugin.json
.github/
workflows/
ci.yml
.gitignore
assets/
blog-post-draft.md
status-screenshot-v1.1.png
status-screenshot-v1.2.png
status-screenshot.png
benchmarks/
BENCHMARKS.md
run.py
CHANGELOG.md
commands/
COMMANDS.md
budget.md
focus.md
pith-graph.md
pith.md
evals/
harness.py
measure.py
prompts/
en.txt
hooks/
config.js
hooks.json
post-tool-use.js
prompt-submit.js
session-start.js
statusline.sh
stop.js
index.html
install.sh
LICENSE
NOTES.md
ONBOARDING.md
README.md
schemas/
wiki-claude.md
SECURITY_FIXES.md
skills/
pith/
pith-arch/
SKILL.md
pith-commit/
SKILL.md
pith-debug/
SKILL.md
pith-graph/
SKILL.md
pith-install/
SKILL.md
pith-plan/
SKILL.md
pith-review/
SKILL.md
pith-setup/
SKILL.md
pith-tour/
SKILL.md
pith-uninstall/
SKILL.md
pith-wiki/
SKILL.md
SKILL.md
test/
functional.py
measure.py
phases.py
simulator.py
smoke.py
tests/
run_all.sh
test_graph_xss.py
test_safe_fetch.py
test_safe_paths.py
test_shell_safety.sh
tools/
_safe_fetch.py
_safe_paths.py
compact.py
compile.py
focus.py
graph_generator.py
health.py
hindsight.py
ingest.py
lint.py
report.py
setup.py
symbols.py
telemetry.py
tour.py
wiki_guard.py
wiki.py
uninstall.sh
wiki-pages/
Architecture.md
Compression-Catalog.md
Recipes.md© 2026 Flowy · Free and open source
Built for Claude Code · Not affiliated with Anthropic