Claudius
Status

pith

Hook

Claude Code hook that compresses context and optimizes token usage to extend session length.

by abhisekjha·abhisekjha/pith·Python·v1.0.0
78· B
Install
git clone https://github.com/abhisekjha/pith
Stars
97
7d change
0.00%
Downloads / week
Last active
3mo ago
About

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.

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`

Read more on GitHub →
What's inside
7 hooksconfig.jshooks.jsonpost-tool-use.jsprompt-submit.jssession-start.jsstatusline.shstop.js
30-day stars
Trust factors
Source
community
Known advisories
0
Maintenance
maintained
License
MIT
Age
3 months
token-efficiencyproductivity#hooks#context-compression#token-optimization#session-length#llm#anthropic#claude-code-plugin#llm-tools