packages/kilo-vscode/src/services/autocomplete/continuedev/INTEGRATION.md
The ContinueDev library is fully integrated into the Kilocode monorepo as a TypeScript service component located at src/services/continuedev/.
Integration Type: Pure source code library - no independent build configuration or package management.
src/services/continuedev/
├── core/ # TypeScript source code
│ ├── autocomplete/ # Autocomplete feature
│ ├── nextEdit/ # NextEdit feature
│ ├── llm/ # LLM provider integrations
│ ├── diff/ # Myers diff algorithm
│ ├── util/ # Shared utilities
│ └── vscode-test-harness/ # VSCode integration example
├── tree-sitter/ # Tree-sitter query files
├── legacy_code_rewrite/ # Historical extraction docs (49 files)
├── API_REFERENCE.md # API documentation
├── ARCHITECTURE.md # Technical architecture
├── EXAMPLES.md # Usage examples
├── INTEGRATION.md # This file
├── LICENSE # Apache 2.0
└── README.md # Overview
Note: No package.json, tsconfig.json, or other build configuration files exist in this directory. All dependencies and configuration are managed by the parent Kilocode project.
Since this library is fully integrated into Kilocode:
Clone Kilocode repository:
git clone https://github.com/kilocode/kilocode.git
cd kilocode
Install all dependencies:
pnpm install
This installs all dependencies for the entire Kilocode monorepo, including those needed by continuedev.
Run tests:
# Run all Kilocode tests (includes continuedev tests)
cd src && npx vitest run
# Run specific continuedev test file
cd src && npx vitest run services/continuedev/core/path/to/test.ts
Type checking:
# Check types for entire Kilocode project (includes continuedev)
pnpm check-types
Make code changes:
src/services/continuedev/The continuedev library includes 857 tests that are part of Kilocode's test suite:
All tests run via Kilocode's vitest configuration from the src/ directory.
All dependencies required by continuedev are specified in Kilocode's root package.json. Key dependencies include:
openai, @anthropic-ai/sdk, @google/generative-ai, @aws-sdk/*web-tree-sitter and language grammarsdiff, cross-fetch, lru-cachevitest, @types/nodeThese are installed automatically when you run pnpm install in the Kilocode project.
This library was extracted from the Continue project in October 2025 through a multi-phase process:
The detailed history of this process is documented in the legacy_code_rewrite/ directory (49 numbered files).
49-INTEGRATION.md - Previous integration approach (superseded)44-CLEANUP_STATUS.md - Cleanup status from Continue extraction42-MONOREPO_MERGE.md - Package consolidation processNote: The integration approach documented in legacy_code_rewrite/49-INTEGRATION.md described a hybrid model with independent npm/turbo tooling. That approach has been superseded by full monorepo integration.
This library is organized as a service component within Kilocode because:
ContinueDev code is used by Kilocode through standard TypeScript imports:
// In Kilocode code:
import { CompletionProvider } from "../services/continuedev/core/autocomplete/CompletionProvider"
import { NextEditProvider } from "../services/continuedev/core/nextEdit/NextEditProvider"
No special build steps or package linking required - it's just TypeScript code in the same project.
To contribute to the continuedev library within Kilocode:
cd src && npx vitest runThe ContinueDev library provides battle-tested autocomplete and NextEdit functionality from the Continue project, fully integrated into Kilocode's monorepo. It contains pure TypeScript source code without independent tooling, making it a seamless part of the Kilocode development workflow.
For technical details, see ARCHITECTURE.md.
For usage examples, see EXAMPLES.md.
For API documentation, see API_REFERENCE.md.