Repository navigation
Closed
2 / 22 of 2 issues completed
Copy link
Description
Summary
This issue tracks the implementation and future work for External CLI Agent integration, allowing Xiuper to delegate coding tasks to third-party command-line coding agents like Claude Code (claude CLI) and OpenAI Codex (codex CLI).
Implemented Features (c0290d0)
Core Implementation
-
ExternalCliCodingAgent- Wrapper class implementingCodingAgentService -
GitWorkspaceSnapshot- Git-based workspace change detection -
JsExternalCliAgent- JavaScript export for Node.js CLI -
GuiAgentEngineenum - Desktop GUI engine selection
CLI Support (autodev code)
-
--engine <engine>option:autodev,claude, orcodex -
--engine-mode <mode>option:non-interactiveorinteractive -
--engine-arg <arg>option: repeatable extra arguments -
--timeout-ms <ms>option: execution timeout
Compose GUI Support
- Engine selector dropdown in DevInEditorInput toolbar
- Dynamic dispatch based on selected engine
- LLM config bypass for external engines
Files Changed
| File | Description |
|---|---|
mpp-core/.../external/ExternalCliCodingAgent.kt |
Core agent wrapper |
mpp-core/.../external/GitWorkspaceSnapshot.kt |
Workspace diff via git |
mpp-core/.../CodingAgentExports.kt |
JS bindings |
mpp-ui/.../CodingAgentViewModel.kt |
Engine state & dispatch |
mpp-ui/.../CodingAgentPage.kt |
GUI integration |
mpp-ui/.../DevInEditorInput.kt |
Engine selector UI |
mpp-ui/.../TopToolbar.kt |
Toolbar extension |
mpp-ui/.../index.tsx |
CLI options |
Future Work
Phase 2: ACP Protocol Integration
For richer integration with Codex (and potentially other agents), we're exploring the Agent Client Protocol (ACP):
- Implement ACP client in
mpp-ui(Desktop JVM) - Support launching local ACP agent servers (stdio)
- Map ACP session updates to Xiuper's renderer:
AgentMessageChunk→renderLLMResponseChunkAgentThoughtChunk→renderThinkingChunkToolCallUpdate→renderToolCallWithParamsPlanUpdate→renderPlanSummary
Design Probe: docs/test-scripts/acp-codex/main.kt
Phase 3: Extended Agent Support
- Gemini CLI agent integration
- Custom agent configuration (user-defined CLIs)
- Per-agent settings in config.yml
Documentation
docs/features/external-cli-agent.md- Full feature documentation
Usage Examples
# Claude Code
autodev code -p /path/to/project -t "Add unit tests" --engine claude
# Codex
autodev code -p /path/to/project -t "Refactor database" --engine codex
# With extra args
autodev code -p . -t "Fix bug" --engine claude --engine-arg "--max-tokens" --engine-arg "4096"Related Resources
Sub-issues
Collapse Sub-issuesSub-issues
Loading 2 sub-issues
Metadata
Metadata
Assignees
Labels
No labels
Activity
feat(ui): add External CLI Agent engine selector in Compose GUI
fix(agent): correct CLI arguments for codex and claude
[-]feat: External CLI Agent Integration (Claude Code & Codex)[/-][+]feat: External CLI Agent Integration (Gemini & Kimi)[/+]feat(ui): add ACP agent preset detection and auto-configuration #536
feat(acp): enhance ContentBlock handling and add ThinkingItem UI #536
refactor(acp): extract AcpClientSessionOps into separate file #536
feat(acp): add capabilities model and enhance renderer for ACP stream…
feat(acp): reset session on new chat and support shell wildcards in t…
feat(acp): load MCP servers from config and improve response diagnost…
feat(acp): add default permission auto-approval and logging #536
feat(acp): render IN_PROGRESS tool calls once to show running state #536
feat(acp): add Copilot CLI preset with ACP support #536
feat(acp): integrate config.yaml agents, presets, and process manager…
feat(acp): add config dialog and engine switching in IDEA plugin #536
feat(acp): add engine selector and simplify ACP agent UI in IDEA plugin
feat(acp): add permission dialog and improve error handling in IDEA p…
feat: Add Auggie ACP agent integration
Fix KDoc in AcpConnectionProvider
fix: Change issue reference from #538 to #536 in JvmClaudeCodeConnect…
refactor(acp): Prevent duplicate config saves and improve connection …
chore: Add validation for empty file paths in ACP fs operations #536
fix: Exclude Kotlin stdlib and reflect from plugin distribution to av…
fix(logging): 重定向 JS 日志到 stderr 以避免污染 stdout #536
feat(acp): Add implementation status documentation and enhance tool c…