Lens
Provides token-efficient code and documentation retrieval for AI agents through FTS5 search, symbol outlines, and surgical line reads.
Lens is designed to optimize how AI agents interact with codebases and documentation, significantly reducing token consumption. It achieves this by allowing agents to search for ranked code snippets, obtain structural outlines of files, or perform surgical reads of specific line ranges, eliminating the need to process entire files. This zero-dependency tool, built on Node.js with SQLite FTS5, drastically cuts down on LLM costs and improves retrieval efficiency for complex coding tasks. It also features a web-based explorer that mirrors the agent's view, providing a human-readable interface for search, navigation, and understanding codebase structure.