feat: implement full spy-code codebase — replace all stubs with working code#2
Merged
Merged
Conversation
…, mcp, indexer, cli) Agent-Logs-Url: https://github.com/Psyborgs-git/spy-code/sessions/13b2dd1e-b57b-4695-ab51-e299e0a9a3eb Co-authored-by: Psyborgs-git <49641518+Psyborgs-git@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Psyborgs-git
April 12, 2026 09:09
View session
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.
The project was at ~M3 with all crates beyond
spy-core/spy-storage/spy-resolvers(Rust-only) either stubbed or missing key functionality. This PR completes M4–M9: multi-language parsing, git integration, full GraphQL/MCP wiring, and incremental indexing.spy-git
Full git integration via
std::process::Command(no gix — feature-flag hell). ImplementsGitRepo::discover(),current_sha(),is_dirty(),diff_files_since(),files_changed_since_ref().spy-parser + spy-resolvers
Extends Rust-only parser to Python, TypeScript, JavaScript, Go by upgrading
tree-sitter0.24→0.26 and adding grammar crates. Each language gets a resolver extracting:ProjectScope)Special handling:
@overloadcollapse for Python/TypeScript merges overload variants into a single node with multiplesignatures.spy-storage
Added
list_files()andget_nodes_for_files(file_paths)— both needed by graph and MCP layers.spy-graph
filesquery: now queries DB instead of returning[]changedSince(ref): shells togit diff --name-only, maps changed paths to indexed nodescallers/callees: upgraded from single-hop to multi-hop BFS viadepthparamspy-indexer
.rs/.py/.ts/.tsx/.js/.go) with configurable ignore dirsProjectScope), pass 2 extracts edges using full scope — necessary because call resolution requires the complete node setgit diff <last_sha>..HEAD --name-status→ parse only changed/added files, delete nodes for removed files, handle renamesspy-mcp
Full stdio JSON-RPC 2.0 MCP server. Seven tools:
query_graph,get_node,search,find_callers,find_callees,changed_since,stats. Three resources:spy-code://schema,spy-code://stats,spy-code://config.spy-cli
Wired
cmd_changed(git diff → node list) andcmd_serve --mcp→spy_mcp::run_mcp_server. Fixeddeptharg passthrough incallers/callees.Tests
6 integration tests in
spy-indexer/tests/integration.rscovering all 4 language fixture sets plus an incremental-skip test. Fixture files added undertests/fixtures/{rust,python,ts,go}_sample/.