Skip to content

Enhancement: LSP auto-configure for LLM code completion in chat #492

Description

@Delqhi

Enhancement: LSP Auto-Configure for LLM

Inspired by

OpenCode — automatically configures language servers for the LLM

What it does

LSP integration should automatically provide code completion, diagnostics, and go-to-definition to the LLM during chat sessions.

Proposed behavior

  • When sin-code chat starts, detect workspace language (Go, Python, TS, etc.)
  • Auto-start relevant LSP server (gopls, pyright, tsserver, rust-analyzer)
  • Feed LSP diagnostics to the LLM as context ("file has 3 errors on lines X, Y, Z")
  • sin_code_complete tool — LLM can request completions at a position

Current state

  • sin-code lsp command exists — lists detected LSP servers on PATH
  • internal/lsp/ package exists
  • Missing: auto-start LSP + feed diagnostics to LLM

Priority: Low

Effort: Medium

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions