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
50· C
Install
git clone https://github.com/abhisekjha/pith
Stars
98
7d change
Downloads / week
Last active
today
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
collecting…
Trust factors
Source
community
Known advisories
0
Maintenance
active
License
none
Age
0 months
token-efficiencyproductivity#hooks#context-compression#token-optimization#session-length#llm#anthropic#claude-code-plugin#llm-tools