context-os: Open-source tool reduces Claude Code token consumption by 27-42%

context-os is an open-source local context optimizer that hooks into Claude Code automatically to reduce token consumption. The tool was created after hitting usage limits too frequently.
Setup and installation
One command setup: cargo install --path apps/cli followed by context-os init.
Features
- PreToolUse hook intercepts cargo test, npm build, cargo clippy, pytest, and similar commands, compressing the output before Claude sees it
- Auto-saves session state when you stop — next session loads your objective, git state, modified files, decisions, and failed approaches
- Injects compact context (branch, uncommitted files, objective) on every turn so Claude always knows where it is, even after compaction
Performance and specifications
- 27-42% reduction in token consumption depending on content type
- 7/7 gates passing in benchmarks
- 100% protected string recall
- Single Rust binary
- No cloud, no network calls
The tool won't fix the rate limit system itself, but it measurably reduces how many tokens you burn per session on bloated tool output.
📖 Read the full source: r/ClaudeAI
👀 See Also

Automated Claude Code Pipeline Cuts Token Usage from 78k to 15k Per Feature
An open-source pipeline for Claude Code automates 12 phases including pre-check analysis of existing code, reducing token usage from ~78k to ~15k per feature. It offers three profiles (yolo, standard, paranoid) and replaces confidence scores with grep-based validation.

dead-letter: Local .eml to .md Converter with CLI, Web UI, and MCP Server
dead-letter normalizes email exports into Markdown with YAML front matter, customisable. It offers four access modes: CLI, Python library, Web UI, and an MCP server for direct integration with Claude Desktop, Claude Code, and Codex.

Open-source trust scoring hook for Claude Code monitors sessions, blocks protected paths
A developer built a Python hook that scores every Claude Code session on reliability, scope, and cost dimensions, blocks access to protected paths like .env files, and hash-chains events for tamper detection. The single-file tool is available on GitHub.

SOULS for AI Agents: A Community-Driven Personality Library
A Reddit user created an open-source repository of carefully crafted personality files ("souls") for AI coding agents. The repo currently includes Jarvis, Gojo, Eren Yeager, René Descartes, and Rapper, with a call for community contributions.