Repository navigation
feat: index tool with tree-sitter skeletons - #43
Merged
Merged
Conversation
Closes #40. The index tool returns imports, types, and signatures with line ranges for 14 languages, so the agent reads only the ranges it needs instead of whole files. Registered as read-class; the read tool description nudges indexing first on large files. Grammars ship as pinned abi3 wheels (offline-friendly); the tree-sitter core builds from source on Python 3.15.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #40.
New
indextool: tree-sitter skeleton of a source file (imports, types, function/method signatures with line ranges), so the model reads only the ranges it needs. Supported: python, javascript, typescript, tsx, rust, go, c, cpp, java, ruby, bash, zig, elixir. Unsupported extensions return a plain note; parse issues are fail-open.Decisions:
Tests: 10 new cases in tests/test_tool_index.py (per-language skeletons, multiline signatures, elixir call keywords, caps, error paths), readonly matrix + registry shape updated. Full suite green locally (2330 passed).