Codesight: AI Context Engine Cuts 30K-60K Tokens from Claude Code Sessions

What Codesight Does
Codesight is a GitHub project that creates structured context for AI coding agents like Claude Code and Cursor. Instead of forcing the AI to read through entire repositories to understand code structure, Codesight pre-processes the codebase and provides a map of routes, database schemas, components, environment variables, and hot files.
Key Features from the Source
- Smart parsing for TypeScript, Python, and Go that understands actual routes, models, and components instead of guessing
- AST parsing for Next.js + Prisma added through developer collaboration
- Eval suite with ground truth for testing
- Token telemetry to measure usage
- Config + profiles for Claude Code and Cursor
- HTML report and MCP server
- Blast radius feature: shows exactly which files, routes, and tests depend on a given file, allowing Claude to answer "if I change this, what breaks?" without guessing
Development Process
A developer found Codesight while searching for solutions to stop Claude Code from wasting tokens understanding repositories. After emailing the maintainer with specific pain points from their TypeScript/Next.js project, they engaged in rapid iteration: the developer ran Codesight on their repo, sent concrete issues like "this Next.js route detection missed X" or "the Prisma schema parsing needs Y," the maintainer shipped updates, and the developer retested and provided more feedback.
This collaboration transformed Codesight from a "rough script" to a tool the developer plans to use daily for their Claude Code workflow.
Performance Impact
The developer reports being "90% convinced" that Codesight cuts the "wasted exploration" phase that previously consumed 30,000-60,000 tokens per deep session on their project.
📖 Read the full source: r/ClaudeAI
👀 See Also

Agent Swarm: Multi-Agent Orchestration Framework for AI Coding Assistants
Agent Swarm is an open-source framework that enables teams of AI coding agents to coordinate autonomously. A lead agent receives tasks from Slack, GitHub, or email, breaks them down, and delegates to Docker-isolated worker agents.

Semble: A Local MCP Server for Claude Code with 98% Token Reduction
Semble is an open-source MCP server for Claude Code that replaces grep+read workflows, using embeddings, BM25, and reranking to reduce token usage by ~98% while indexing repos in ~250ms.

Browser-native real-time coherence control system for Claude with SDE bands and Kalman filtering
A developer has built a real-time coherence control harness that runs entirely as a Claude artifact in the browser, treating conversation as a stochastic process with live Monte Carlo SDE paths, dual Kalman filtering, and behavioral signal detection.

Lean Context: Claude Code Plugin Converts Verbose Docs to Agent-Optimized Files
A free, open-source Claude Code plugin called Lean Context scans project documentation and removes content AI agents can discover through grepping, keeping only essential non-obvious commands, gotchas, and environment quirks. In a .NET e-commerce project test, it reduced 8 documents totaling 1,263 lines to just 23 lines.