Skip to content

Conversation

@tgruben-circuit
Copy link

Summary

  • Adds a new code_intelligence tool powered by Language Server Protocol (LSP) for compiler-accurate code navigation
  • Supports four operations: go-to-definition, find-references, hover/type-info, and workspace symbol search
  • Built-in support for Go (gopls) and TypeScript (typescript-language-server) with lazy server startup
  • New claudetool/lsp/ sub-package with JSON-RPC 2.0 client, server lifecycle management, and result formatting
  • 30 unit tests covering protocol, manager, tool input validation, and output formatting

Test plan

  • go test ./claudetool/lsp/... — all 30 tests pass
  • go test ./claudetool/... — existing tests unaffected (pre-existing TestFindRepoRoot macOS symlink issue excluded)
  • go build ./claudetool/... — compiles cleanly
  • Manual test with make serve: ask Shelley "what is the definition of ProcessOneTurn?" and verify it finds loop/loop.go

Add a new code_intelligence tool that provides compiler-accurate code
navigation via Language Server Protocol: go-to-definition, find-references,
hover/type-info, and workspace symbol search. Built-in support for Go
(gopls) and TypeScript (typescript-language-server) with lazy server
startup and automatic lifecycle management.
@cla-bot
Copy link

cla-bot bot commented Feb 12, 2026

We require contributors to sign our Contributor License Agreement, and we don't have you on file. In order for us to review and merge your code, please contact @crawshaw at david@bold.dev to get yourself added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant