-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Implement an AgentAdapter for Kilocode, the open-source AI coding assistant (fork of Roo Code/Cline), allowing CodeFrame to delegate code writing to Kilocode's capabilities.
Parent issue: #408
Motivation
Kilocode (open-source fork of Roo Code) provides sophisticated AI coding assistance with strong multi-model support and tool use capabilities. It has a growing ecosystem and community. Adding it as an engine option gives CodeFrame users access to its capabilities while CodeFrame handles orchestration.
Scope
New module: core/engines/kilocode.py
KilocodeAdapterimplementingAgentAdapter:
class KilocodeAdapter:
name = "kilocode"
requires_api_key = {} # Kilocode manages its own API keys
def execute(self, task_prompt, workspace_path, context, timeout_ms):
# 1. Determine Kilocode's CLI/API interface
# (may need to use its programmatic API or CLI mode)
# 2. Pass task prompt and workspace context
# 3. Monitor execution
# 4. Parse results into AgentResult
...-
Integration approach (to be determined during implementation):
- Option A: If Kilocode has a CLI/headless mode, launch as subprocess
- Option B: If Kilocode exposes an API, call it directly
- Option C: If only VS Code extension, may need to interface via its extension protocol or wait for a CLI release
-
Output parsing:
- Detect modified files via git diff after execution
- Map Kilocode's output to
AgentResult
-
Configuration:
kilocode_path: path to Kilocode binary/serverkilocode_model: LLM model overridekilocode_flags: additional configuration
Research Needed
- Determine Kilocode's non-interactive/programmatic interface
- Identify if CLI mode exists or if extension protocol is needed
- Determine how to pass task context and receive results
Acceptance Criteria
-
KilocodeAdapterimplementsAgentAdapterprotocol - Kilocode invoked with correct workspace context
- Task prompt passed via appropriate mechanism
- Timeout enforced
- Modified files detected
- Works with
cf work start <id> --execute --engine kilocode - Integration test with mock interface
Dependencies
- Depends on [Phase 4] Agent Adapter Protocol Definition #409 (AgentAdapter protocol)
- Depends on [Phase 4] Task Context Packager for External Agents #410 (context packager)
- Requires Kilocode installed/accessible
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request