Loom

•
4
•

Indexes codebases into a persistent graph, empowering AI agents to instantly access code structure and summaries, significantly reducing token consumption.

Loom is a powerful tool designed to enhance AI coding agents' efficiency by creating a persistent, local code graph. It leverages Tree-sitter to index functions, classes, methods, and call relationships across multiple programming languages into an SQLite database. This eliminates the need for AI agents to repeatedly re-explore codebases, as they can query Loom for instant insights and existing summaries. As agents work, they can store their understanding of functions, enriching the cache for future sessions and leading to massive token savings—up to 1,500 times fewer tokens for code understanding. Loom integrates seamlessly with AI platforms like Claude Code, providing an ever-growing knowledge base without requiring Docker, embeddings, or additional LLM calls from its side.

주요 기능

01AI Agent Summary Caching: Agents can store and retrieve function summaries, creating a compounding knowledge base that reduces redundant code re-reads.
02Significant Token Savings: Drastically reduces LLM token consumption for code understanding by providing cached summaries and context (51x to 1500x fewer tokens).
033 GitHub stars
04Persistent Code Graph Generation: Indexes codebases using Tree-sitter into a local SQLite database, extracting symbols and call relationships across languages.
05Integrated MCP Server: Provides a standard interface for AI tools (Claude Code, Cursor, etc.) to query the code graph and leverage cached knowledge.
06Comprehensive CLI & Analysis Tools: Offers commands for analysis, querying code, identifying dead code, detecting communities, and tracking token savings.

사용 사례

01Maintaining Persistent Project Knowledge: Build an evolving, local knowledge base that grows richer with each AI agent session.
02Reducing LLM Costs for Development: Minimize token usage in AI-assisted coding sessions by providing pre-indexed context and agent-generated summaries.
03Accelerating AI Agent Code Comprehension: Enable AI agents to quickly understand and navigate large codebases without re-reading files.