Skip to content

feat(vscode,lsp): real runAgent — extension + LSP server actually run the agent#65

Merged
oratis merged 1 commit into
mainfrom
feat/vscode-lsp-real-agent
May 28, 2026
Merged

feat(vscode,lsp): real runAgent — extension + LSP server actually run the agent#65
oratis merged 1 commit into
mainfrom
feat/vscode-lsp-real-agent

Conversation

@oratis

@oratis oratis commented May 28, 2026

Copy link
Copy Markdown
Owner

Both VS Code extension and LSP server now invoke @deepcode/core's runAgent. VS Code: output channel + webview chat with streaming. LSP: agent events fan out as JSON-RPC notifications. 549 tests still passing.

… the agent

VS Code extension:
  · deepcode.run on selection: composes prompt + selection → runAgent →
    streams text + tool events into a "DeepCode" output channel.
  · deepcode.review: runs code-review-style prompt on the workspace
    folder's git diff. Same output channel.
  · ChatViewProvider webview chat: real bidirectional streaming.
    User types → runAgent → text_delta events pipe back into the
    webview as growing assistant message. Tool calls render inline.

LSP server:
  · handleRunAgent now spawns @deepcode/core's runAgent in-process.
    Loads credentials via CredentialsStore (same as CLI). On success,
    streams every AgentEvent as a deepcode/agentEvent JSON-RPC
    notification keyed by turnId. On failure, sends an 'error' event +
    'turn_done' with stopReason 'error' so the client gets clean
    termination signal.
  · handler.test.ts updated to poll for turn_done instead of expecting
    the prior placeholder events.

Tests: 549 still passing (core 478 + cli 47 + lsp 8 + scripts 16).
LSP test now runs the real agent and hits the no-credentials error
path cleanly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@oratis oratis merged commit d57344c into main May 28, 2026
@oratis oratis deleted the feat/vscode-lsp-real-agent branch May 28, 2026 10:34
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