Discover and explore top open-source AI tools and projects—updated daily.
jahalaIntelligent code navigation for AI agents and developers
Top 98.6% on SourcePulse
Smart code reading for humans and AI agents, tilth aims to significantly reduce the cost and improve the accuracy of code comprehension tasks. By integrating powerful tools like ripgrep and tree-sitter, it provides structural awareness of codebases, enabling faster navigation and analysis, which translates to an average cost reduction of ~40% per correct answer for AI models.
How It Works
Tilth combines ripgrep, tree-sitter, and cat to provide intelligent code reading capabilities for humans and AI agents. It leverages tree-sitter for Abstract Syntax Tree (AST) parsing across 14 languages, enabling precise identification of definitions, usages, callees, and callers, moving beyond simple text matching. For large files, it generates structural outlines with line ranges, while smaller files are presented whole. This structural awareness significantly reduces the token costs and inference time for AI agents by providing context and enabling direct navigation to relevant code sections.
Quick Start & Requirements
cargo install tilth or npx tilth.tilth install claude-code).Highlighted Details
tree-sitter AST parsing for accurate symbol resolution, definition finding, and callee/caller tracing, offering context-rich results.--deps), structural diffing (diff), and comprehensive symbol inspection (grok).Maintenance & Community
No specific details regarding notable contributors, sponsorships, or community channels (e.g., Discord/Slack) are provided in the README.
Licensing & Compatibility
Limitations & Caveats
Smaller LLMs may default to built-in tools; forced adoption via --disallowedTools is recommended for consistent tilth usage. Edit mode's hash-anchored updates require exact matches to the last read state, preventing edits on modified files. The --map codebase skeleton feature is CLI-only due to AI agent overuse concerns.
5 days ago
Inactive