Back to browse
GitHub Repository

Platform for agentic - vibecoders and teams who use claude code and codex cli

308 starsJavaScript

How to cache your codebase for AI agents

by kozhan·Mar 18, 2026·1 point·1 comment

AI Analysis

●●SolidSolve My ProblemNiche Gem

Commit-time indexing beats runtime scanning, but Cursor already indexes your codebase.

Strengths
  • STRUCTURE.json intentIndex enables sub-millisecond file lookups for agents
  • AGENTS.md standardizes project context across teams and AI sessions
  • Works with multiple AI CLI tools without requiring tool-specific setup
Weaknesses
  • Requires commit hook setup for automatic map generation on every change
  • JSON map can grow large on big codebases without smart pruning strategy
Target Audience

Developers using Claude Code, Codex CLI, or Gemini CLI

Similar To

Cursor · Sourcegraph · Continue

Post Description

The problem is every time an AI agent needs to find relevant files, it either guesses by filename, runs a grep across the whole repo, or reads everything in sight. On any codebase of real size, this wastes context window, slows down responses, and still misses the connections between related files.

With this approach a script runs once at commit time, reads each source file, and builds a semantic map; feature names pointing to files, exports, and API channels. That map gets committed alongside your code as a single JSON file. When an AI agent needs to find something, it queries one keyword and gets back the exact files and interfaces in under a millisecond.

What you gain: AI agents that navigate your codebase like they wrote it. No context wasted on irrelevant files. No missed connections between a service and its controller. And since the map regenerates automatically on every commit, it never falls out of sync. I added this to my open sourced agentic development platform, feel free to examine it or use it. Any ideas or contributions are always welcome.

Similar Projects