Skip to content

Architecture

YarCraSy edited this page Jul 8, 2026 · 2 revisions

Previous page: Home

Architecture

The extension is organized in layers to isolate VS Code, DeepSeek, UI, and domain logic.

Main layers:

  • src/adapters: shared contracts between the extension backend and the webview.
  • src/core: pure logic, tools, and safety rules without vscode imports.
  • src/deepseekApi: DeepSeek HTTP client, streaming, FIM, and tool-call protocol.
  • src/infrastructure: local persistence on top of VS Code APIs.
  • src/vscodeApi: activation, commands, webviews, and concrete VS Code adapters.
  • src/ui/chat: React app that runs inside the webview.

Architecture goal: keep maintainable logic outside VS Code where possible, and make external API boundaries explicit.


Next page: Dependency Rules

Clone this wiki locally