{"repo":"abhisekjha/pith","free":true,"listed":false,"github":"https://github.com/abhisekjha/pith","clone":"git clone https://github.com/abhisekjha/pith.git","description":"Pith is the hook that makes Claude Code sessions last 3x longer.","language":"Python","stars":98,"topics":["anthropic","claude-code","claude-code-plugin","llm-tools","token-optimization"],"license":"MIT","category":"mcp-servers","readme_excerpt":"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. --- How it works 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 context - UserPromptSubmit — runs /pith commands, enforces token ceiling if set - SessionStart — restores compression mode, injects cache-locked rules - Stop — records token usage for status and report The 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 --- Core features 1 — Auto compression (zero config) Runs automatically. No commands needed. Every file read, bash run, and grep gets compressed on the way back to Claude. Real session numbers: 2 — Output modes Control how Claude writes back to you. Auto-escalation kicks in as context fills — no manual switching needed: 3 — Token status 4 — Smart file focus Load only the sections of a file relevant to your current question. Saves re-readi","default_branch":null,"files":null,"tree":[],"storefront":"/r/abhisekjha","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/abhisekjha/pith/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}