altRAG: Replace Vector DB RAG with 2KB Pointer Files for AI Coding Agents

What altRAG Does
altRAG addresses the problem of AI coding agents struggling with large 200KB skill files by replacing vector database retrieval-augmented generation (RAG) with a simpler pointer-based approach. The tool creates a lightweight skeleton file that maps document sections to their exact locations, eliminating the need for embeddings, chunking, or databases.
How It Works
altRAG scans your Markdown or YAML skill files and builds a TSV skeleton file (.skt extension) that maps every section to its exact line number and byte offset. This skeleton file is approximately 2KB in size.
When your AI agent needs information, it reads the skeleton file first, finds the specific section it requires, and then reads only those lines from the original document. This approach is particularly effective for structured documentation where you already know where information is located.
Key Features from Source
- Creates 2KB skeleton files instead of using vector databases
- Works with Markdown and YAML skill files
- Generates TSV format skeleton files (.skt extension)
- Maps sections to exact line numbers and byte offsets
- Zero dependencies
- Requires Python 3.10+
- MIT licensed
Installation and Setup
Installation is straightforward:
pip install altrag
altrag setupCompatibility
The tool works with various AI coding agents including Claude Code, Cursor, Copilot, Windsurf, Cline, and Codex — essentially any system that can read files.
Plan Mode Benefits
Plan mode benefits significantly from this approach. According to the source, it allows agents to construct skill trees while utilizing early, bloat-free context to create "almost surgical" plans.
Use Case
This approach is specifically designed for structured documentation where developers already know where information is located, making vector database RAG overkill. It's particularly useful when AI agents need to reference specific sections of documentation without loading entire files into context.
📖 Read the full source: r/LocalLLaMA
👀 See Also

IUM: MCP Symbol Indexer Cuts AI Agent Token Usage by 15.9x vs grep
IUM indexes codebases into an SQLite matrix of symbol events, exposing exact file:line coordinates, call graph tracing, and semantic search via MCP. Benchmarked against DataFusion (1,538 files) showing 15.9x fewer tokens than grep for equivalent queries.

Ghostbar: A ~5MB native macOS Swift AI client that hides from screen sharing
Ghostbar is a native Swift macOS menu bar AI client (~5MB) that uses window.sharingType = .none to become invisible to screen recorders. Works with Ollama, vLLM, llama.cpp, and any OpenAI-compatible backend.

AlphaCreek: An MCP Server That Chunks SEC Filings to Cut Token Usage by 85%
AlphaCreek is a free MCP connector for Claude that reduces token consumption by ~85% when working with SEC filings by first returning a table of contents, then fetching only the sections the agent requests.

ClawProxy: Self-Hosted AI Routing Proxy for Rotating Free-Tier API Keys
ClawProxy is a self-hosted AI routing proxy that manages multiple free-tier AI API keys to avoid rate limits and provider overloads. It features in-flight key rotation, weighted load balancing, model translation, and a dashboard with deep-parsed logs.