cartotree
cartotree is a local code indexing tool for coding agents that provides file location, preview, and relationship analysis capabilities through a CLI and an MCP server. It uses the BM25F algorithm to rank file paths, export names, code identifiers, and commit history, returning a list of files with evidence lines to help agents reduce grep calls and token consumption. It also supports generating an annotated directory tree that can be pasted into AI chats. It requires no LLM and no network, and works with tools that support MCP, such as Claude Code, Cursor, and Codex.