28 lines
1.0 KiB
Markdown
28 lines
1.0 KiB
Markdown
|
|
# Task ID: 147
|
||
|
|
|
||
|
|
**Title:** Headless coding agent runtime adapter
|
||
|
|
|
||
|
|
**Status:** pending
|
||
|
|
|
||
|
|
**Dependencies:** 143, 146
|
||
|
|
|
||
|
|
**Priority:** medium
|
||
|
|
|
||
|
|
**Description:** Implement AgentRuntime adapter that runs a headless coding agent inside the session pod
|
||
|
|
|
||
|
|
**Details:**
|
||
|
|
|
||
|
|
Create src/mcpd/src/services/agent-runtime/headless-adapter.ts:
|
||
|
|
1. Implement AgentRuntime interface
|
||
|
|
2. startSession: create AgentSession, provision pod with coding agent image, inject persona as prompt files in container
|
||
|
|
3. send: exec into container to send message to agent process (implementation depends on chosen agent's IPC)
|
||
|
|
4. status: check agent process state via exec or container status
|
||
|
|
5. result: read agent output (branch, commit, summary) from known output location
|
||
|
|
6. endSession: stop container, update session state
|
||
|
|
7. The coding agent handles git, branching, MCP tools, streaming internally
|
||
|
|
8. Persona delivered via mounted files the agent reads
|
||
|
|
|
||
|
|
**Test Strategy:**
|
||
|
|
|
||
|
|
Integration tests against test cluster: start session, send simple task, verify branch created and pushed.
|