Contextium: Open-Source Persistent Context Framework for Claude Code

Contextium is an open-source persistent context framework built specifically for Claude Code. It solves the problem of having to re-explain context in each new Claude Code session by creating a structured repository system that compounds knowledge over time.
What It Does
Contextium organizes information into markdown files across several categories: apps, integrations, knowledge domains, projects, and journals. The core mechanism is a CLAUDE.md file that acts as a context router, telling Claude which files to load based on the current task. This prevents context window bloat by lazy-loading only relevant content.
Key Features
- Context Router Table: The CLAUDE.md file contains a routing table that triggers specific file loads:
| Trigger | Load | |----------------------|-----------------------------------| | Project work | projects/README.md | | Person mentioned | knowledge/people/{name}/ | | Integration/API call | integrations/{name}/README.md | | Prior work | journal/ (latest) | - Multi-Agent Support: Routes research to Gemini (for cost efficiency) and bulk edits to Codex (for speed) while keeping Claude focused on strategy and decisions
- Template Structure: The open-source version ships with 6 sample apps and documentation for 27 integrations
- Real-World Scale: The creator's personal instance contains 35 app protocols, 27 integration connectors, 100+ completed projects with decision logs, and 600+ journal entries
Installation and Setup
Install with a single command:
bash curl -sSL contextium.ai/install | bashThe installer uses bash and gum for the terminal UI, asks for your name, selects your AI agent (supports Claude Code plus 8 others), chooses integrations, and sets up your repository. The process takes about 5 minutes and works on macOS and Linux.
Development Process
The creator built Contextium over several months using Claude Code, which wrote approximately 90% of the code. This included:
- The installer script (bash + gum)
- Adaptation of 27 integration READMEs
- Agent configuration templates
- An Astro website
- Debugging across multiple test runs on fresh VMs
Technical Details
- License: Apache 2.0
- GitHub: https://github.com/Ashkaan/contextium
- Website: https://contextium.ai
📖 Read the full source: r/ClaudeAI
👀 See Also

ClawRelay: macOS-native OpenAI-compatible LLM proxy with automatic failover
ClawRelay runs an OpenAI-compatible HTTP server on macOS 15+ with automatic failover between LLM providers. It supports OpenAI, Groq, Nvidia NIMs, Ollama, and any service with a /v1/chat/completions endpoint.

Karpathy's Autoresearch Ported to Apple Neural Engine for Better Throughput per Watt
A prototype combines Andrej Karpathy's autoresearch project with reverse-engineered Apple Neural Engine performance, aiming for better throughput per watt compared to official APIs. The project is built on existing GitHub repositories and acknowledges contributions from multiple developers.

PocketBot Beta: Privacy-First iOS AI Agent with Hybrid Local/Cloud Engine
PocketBot is an iOS AI agent that runs in the background, hooks into App Intents, and uses a hybrid engine: local execution for system triggers and PII sanitization, with cloud processing for complex tasks like email summarization or flight booking.

nervx: CLI tool reduces Claude Code token usage by analyzing codebase structure
nervx is a pip-installable CLI tool that parses repositories with tree-sitter, builds a SQLite graph of functions and imports, and generates a NERVX.md structural map. It automatically adds instructions to CLAUDE.md that teach Claude to use nervx navigation, reducing grep searches by 65% and output tokens by 48% in testing.