abhisekjha

abhisekjha / pith

Public

Token optimization for Claude Code. Automatic where it matters most.

35
4
100% credibility
Found Apr 17, 2026 at 35 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

Pith is a plugin for AI coding sessions that automatically compresses tool outputs to save tokens, provides compression modes and status reports, and builds a project wiki from ingested sources.

How It Works

1
🔍 Discover Pith

You hear about Pith, a helper that makes your AI coding buddy use fewer words and save money on every chat.

2
🚀 Set it up once

Run one easy command to add Pith to your AI coding tool, and it starts working in every future session without extra steps.

3
💬 Start chatting with AI

Open your coding project and talk to your AI as usual, noticing a token counter appear showing your savings.

4
Watch savings happen

Your AI reads files or runs commands, but Pith quietly trims the extra details so conversations stay short and cheap.

5
📝 Try smart commands

Type simple instructions like check status or switch to brief replies, seeing instant charts of how much you're saving.

6
📚 Build your project notebook

Feed in files or notes, and Pith creates a growing collection of key facts, decisions, and summaries about your work.

🎉 Code smarter, spend less

Enjoy endless chats without hitting limits, track every penny saved, and always remember why you made key choices.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 35 to 35 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is pith?

Pith slashes token usage in Claude Code sessions by up to 50% through automatic compression of tool outputs—like file reads reduced to imports and signatures, bash logs to errors plus summaries, and large payloads offloaded to files. Written in Python, it hooks into Claude Code's lifecycle for zero-config installs via a single bash script, adding slash commands like /pith status for token flow charts and /pith lean for pithy output modes. Developers get longer sessions without hitting context limits, plus a project wiki that ingests files and answers queries with citations.

Why is it gaining traction?

Unlike generic token optimization AI tools, Pith targets Claude Code's exact pain points: bloated tool results that eat 30-50% of context in real coding flows. Its post-tool compression and auto-escalation (lean at 50% fill, ultra at 70%) deliver measurable savings—88% on file reads, 91% on builds—visible in real-time statuslines and HTML reports. Early adopters love the /pith wiki for persistent knowledge bases, turning chat history into searchable Markdown without manual work.

Who should use this?

Claude Code users grinding long refactoring sessions or brownfield codebases, where repeated file reads and build outputs balloon tokens. Backend devs debugging Node/Python services, frontend teams reviewing React components, or anyone managing token github access in VSCode/IntelliJ—especially if you're cloning repos or pushing token-limited experiments.

Verdict

Grab it if you're deep in Claude Code; the hooks install cleanly and savings are immediate. At 35 stars and 1.0% credibility, it's early—light evals, no broad tests—but docs shine and uninstall is painless. Worth the one-command trial for token optimization claude addicts. (187 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.