ai-codex: Pre-index your codebase to save Claude tokens

What ai-codex does
ai-codex is a single script that scans your project and generates five compact markdown files to pre-index your codebase for Claude Code conversations. This eliminates the initial exploration phase where Claude typically spends 10-20 tool calls reading files, scanning directories, and checking functions.
How it works
You run npx ai-codex once to generate these files:
routes.md— every API route with methods and auth tagspages.md— full page tree with client/server flagslib.md— all library exports with function signaturesschema.md— database schema compressed to key fields onlycomponents.md— component index with props
Then add one line to your CLAUDE.md telling Claude to read these files first. Every future conversation skips the exploration phase entirely.
Performance impact
On large projects, the exploration phase typically burns 30-50K tokens before any real work begins. The creator's example project had 950+ API routes and 255 DB models:
- Without codex: ~15 Serena/Read calls to understand the finance module
- With codex: 5 grep calls on the pre-built index, instant full picture — routes, pages, schema, lib exports, components
- All in parallel, all under 2 seconds
Technical details
The tool works with Next.js (App Router & Pages Router) and generic TypeScript projects. It auto-detects Prisma schemas. The entire tool was designed and built by Claude Code itself in a single conversation session. It's MIT licensed and available on GitHub.
📖 Read the full source: r/ClaudeAI
👀 See Also

Signet: An Open-Source Local-First Memory Substrate for AI Agents
Signet is an open-source memory substrate for AI agents that moves memory handling outside the agent loop. It preserves transcripts, distills sessions into structured memory, links entities into a graph, and injects context before prompts start.

VoidLLM: Zero-Knowledge Proxy for Ollama and vLLM with Team Access Control
VoidLLM is a proxy that sits between applications and local LLM servers like Ollama and vLLM, adding organization/team access control, API key management, usage tracking, and rate limiting without viewing prompts. It has <2ms proxy overhead and works with OpenAI-compatible SDKs.

cc+ Desktop App for Claude Code: Multi-Session Management and Fleet Orchestration
cc+ is an open-source desktop application for Claude Code built on the Claude Agent SDK, available for macOS and Linux. It provides multi-session tabs, live activity tree visualization, security scoring, workflow enforcement, and fleet orchestration capabilities.

Building a $6.4k Local LLM Server: TCO Breakdown vs API Costs
A developer shares a detailed total cost of ownership for a 4x MI100 local server running llama.cpp, compared to API equivalents including OpenAI and Z.AI coding plans.