How vedanttathe/deployguru works
Purpose and delivery surfaces
Continue is an AI coding-agent platform: users delegate coding workflows through a terminal CLI, VS Code, or JetBrains, with shared model, context, tool, and configuration capabilities. Primary entry points are the CLI executable (extensions/cli/src/index.ts), VS Code activation (extensions/vscode/src/extension.ts, extensions/vscode/src/activation/activate.ts), and IntelliJ plugin startup (extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt).
Shared agent core
The TypeScript core is the principal runtime behind IDE experiences. It coordinates configuration, conversations, LLM streaming, context, edits, and IDE protocol operations. Its public orchestration and cross-runtime message contracts are centered in:
• core/core.ts
• core/protocol/core.ts
• core/protocol/ide.ts
IDE hosts implement the protocol boundary rather than embedding core business logic directly, enabling equivalent features across editor platforms.
Model abstraction and streamed generation
Model selection is configuration-driven, then normalized behind a common LLM layer that supports cloud, proxy, and local providers. Chat/completion streams flow from provider adapters through prompt/template handling and back to the caller incrementally.
• core/llm/index.ts
• core/llm/streamChat.ts
• core/llm/llms/index.ts
Material external services include OpenAI-compatible APIs, Anthropic, Azure, Bedrock, Gemini, Ollama, and many other provider integrations. packages/openai-adapters/src/index.ts provides a reusable OpenAI/Vercel-oriented adapter layer.
Context, retrieval, and indexing
Before generation, agents assemble context from the active IDE/workspace, files, Git, terminals, web/docs, and MCP servers. Codebase retrieval is backed by local indexing and optional reranking; documentation crawling is a separate ingestion path.
• core/context/providers/index.ts
• core/context/retrieval/retrieval.ts
• core/indexing/CodebaseIndexer.ts
The boundary is important: IDE-specific file/editor access comes through protocol implementations, while core owns provider composition, chunking, search, and retrieval logic. Tree-sitter assets support language-aware extraction.
Tools, MCP, and edits
Agents can invoke built-in filesystem, search, terminal, web, and edit tools; execution is gated by policy and surfaced for approval in clients. MCP adds externally hosted tools/context over managed connections.
• core/tools/callTool.ts
• core/tools/definitions/index.ts
• core/context/mcp/MCPConnection.ts
Edits are applied through deterministic find/replace, unified diff, and streamed/lazy-apply paths rather than direct model output writes:
• core/edit/searchAndReplace/performReplace.ts
• core/edit/lazy/streamLazyApply.ts
CLI agent runtime
The Node/TypeScript CLI is both an interactive TUI and headless automation entry point. A service container wires auth, configuration, models, MCP, permissions, history, and remote APIs; streamed responses repeatedly execute tool calls until completion.
• extensions/cli/src/services/ServiceContainer.ts
• extensions/cli/src/stream/streamChatResponse.ts
• extensions/cli/src/permissions/permissionChecker.ts
Its terminal UI is React/Ink-style TSX (extensions/cli/src/ui/TUIChat.tsx). It connects to platform APIs through extensions/cli/src/CLIPlatformClient.ts and supports cloud-oriented workflows/remote execution.
IDE presentation and local processes
VS Code hosts webviews, editor decorations, autocomplete, and apply UX while adapting VS Code APIs to core:
• extensions/vscode/src/extension/VsCodeExtension.ts
• extensions/vscode/src/VsCodeIde.ts
• extensions/vscode/src/autocomplete/completionProvider.ts
JetBrains is a Kotlin/Gradle plugin with analogous IDE adapters and can launch/connect to the Node binary over IPC/TCP:
• extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt
• extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/process/ContinueBinaryProcess.kt
• binary/src/index.ts
The React GUI webview is a separate frontend, communicating through an IDE messenger and Redux stream/tool thunks:
• gui/src/main.tsx
• gui/src/context/IdeMessenger.tsx
• gui/src/redux/thunks/streamResponse.ts
Configuration, control plane, and observability
Local JSON/YAML/Markdown configuration resolves assistants, model roles, rules, prompts, MCP, and workspace overrides. Hub/platform configuration and organization policy form a remote control-plane boundary.
• core/config/ConfigHandler.ts
• packages/config-yaml/src/index.ts
• core/control-plane/client.ts
Generated TypeScript/Python SDKs expose platform API contracts (packages/continue-sdk/openapi.yaml). Analytics/error integrations include PostHog, Sentry, Logstash, and Continue Proxy pathways under core/control-plane/analytics/.
Main entry points: core.ts Agent orchestration · ServiceContainer.ts CLI service container · ConfigHandler.ts Local configuration · streamChat.ts LLM streaming layer
Components 22
Delivery surfaces
- CLI executable
extensions/cli/src/index.ts - VS Code activation
extensions/vscode/src/extension.ts - JetBrains startup
extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt - VS Code IDE adapter · Adapts VS Code APIs and hosts editor UX.
extensions/vscode/src/VsCodeIde.ts - Autocomplete
extensions/vscode/src/autocomplete/completionProvider.ts - JetBrains core messenger
extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessenger.kt
Shared agent core
- Agent orchestration · Coordinates conversations, context, streaming, edits, and IDE operations.
core/core.ts - Core protocol
core/protocol/core.ts - IDE protocol
core/protocol/ide.ts - LLM streaming layer · Normalizes configured cloud, proxy, and local providers.
core/llm/streamChat.ts - Provider adapters
core/llm/llms/index.ts - Context & retrieval · Composes workspace, Git, terminal, web, docs, and MCP context.
core/context/retrieval/retrieval.ts - Codebase indexer · Builds searchable codebase context.
core/indexing/CodebaseIndexer.ts - Tools & approvals · Invokes filesystem, search, terminal, web, and edit tools under policy.
core/tools/callTool.ts - MCP connections
core/context/mcp/MCPConnection.ts - Deterministic edits · Applies find/replace, diffs, and lazy streamed edits.
core/edit/searchAndReplace/performReplace.ts
CLI runtime
- CLI service container · Wires auth, models, MCP, permissions, history, and remote APIs.
extensions/cli/src/services/ServiceContainer.ts - CLI agent stream loop · Streams responses and repeatedly executes tool calls.
extensions/cli/src/stream/streamChatResponse.ts - Terminal chat UI
extensions/cli/src/ui/TUIChat.tsx
Configuration & platform
- Local configuration · Resolves assistants, models, rules, prompts, MCP, and workspace overrides.
core/config/ConfigHandler.ts - Platform control plane · Provides hub configuration, organization policy, analytics, and proxy pathways.
core/control-plane/client.ts
Other components
- Model providers · OpenAI-compatible, Anthropic, Azure, Bedrock, Gemini, Ollama, and others.
Connections 24
- CLI executable → CLI service container: boots
- Terminal chat UI → CLI agent stream loop: requests responses
- CLI service container → CLI agent stream loop: configures
- CLI agent stream loop → Agent orchestration: runs agent flow
- VS Code activation → VS Code IDE adapter: initializes
- VS Code IDE adapter → IDE protocol: implements
- Autocomplete → LLM streaming layer: requests completions
- JetBrains startup → JetBrains core messenger: starts
- JetBrains core messenger → IDE protocol: implements
- Agent orchestration → Core protocol: orchestrates through
- Agent orchestration → IDE protocol: uses IDE operations
- Agent orchestration → Context & retrieval: assembles context
- Agent orchestration → LLM streaming layer: streams generation
- Agent orchestration → Tools & approvals: invokes
- Agent orchestration → Deterministic edits: applies edits
- Context & retrieval → Codebase indexer: searches codebase
- Context & retrieval → MCP connections: includes external context
- LLM streaming layer → Provider adapters: selects adapter
- Provider adapters → Model providers: calls
- Local configuration → Agent orchestration: supplies agent configuration
- Local configuration → LLM streaming layer: selects models
- CLI service container → Local configuration: loads
- CLI service container → Platform control plane: connects
- Platform control plane → Local configuration: provides policy and hub config