How phodal/auto-dev works
AutoDev Xiuper is a Kotlin Multiplatform AI development platform. A user works through a platform surface to a shared agent runtime, which supports document research, coding, review, database queries, artifact generation, and experimental web interaction. Coding tasks use tools and specialized subagents; parsing and project-rule discovery provide codebase context. The README documents these capabilities, but most runtime wiring was not sampled, so edges below reflect documented relationships rather than inferred calls. The source index names several files absent from the supplied tree; they are not represented with unsupported paths.
Main entry points: MainAgent.kt Shared agent runtime · CodingAgent.kt Coding agent · DocumentIndexService.kt Multiplatform UI · IdeaMultimodalService.kt IntelliJ plugin
Components 23
Product surfaces
- Multiplatform UI
mpp-ui/src/commonMain/kotlin/cc/unitmesh/devins/service/DocumentIndexService.kt - IntelliJ plugin
mpp-idea/src/main/kotlin/cc/unitmesh/devins/idea/editor/multimodal/IdeaMultimodalService.kt - VS Code extension
mpp-vscode/webview/src/App.tsx - Agent server
mpp-server/src/main/kotlin/cc/unitmesh/server/service/AgentService.kt
Shared runtime
- Shared agent runtime
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/core/MainAgent.kt - LLM service
mpp-core/src/commonMain/kotlin/cc/unitmesh/llm/LLMService.kt - Platform adapters
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/Platform.kt
Agent workflows
- Document research
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/document/DocumentAgent.kt - Coding agent
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/CodingAgent.kt - Code review
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/CodeReviewAgent.kt - ChatDB
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/chatdb/ChatDBAgent.kt - Artifact generation
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/ArtifactAgent.kt - Web interaction
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/subagent/WebAgent.kt - Specialist subagents
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/subagent
Tools and integrations
- Workspace tools
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/tool/impl - Tool orchestration
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/orchestrator/ToolOrchestrator.kt - MCP integration
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/mcp/McpClientManager.kt - PR review services
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/review/PRReviewService.kt - Project database
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/database/DatabaseConnection.kt
Code intelligence
- Code parsing
mpp-codegraph/src/commonMain/kotlin/cc/unitmesh/codegraph/parser/CodeParser.kt - Code graph
mpp-codegraph/src/commonMain/kotlin/cc/unitmesh/codegraph/CodeGraphFactory.kt - Project rule discovery
mpp-core/src/commonMain/kotlin/cc/unitmesh/agent/context/AgentContextDiscovery.kt
Other components
- Developer
Connections 25
- Developer → Multiplatform UI: uses
- Developer → IntelliJ plugin: uses
- Developer → VS Code extension: uses
- Developer → Agent server: uses
- Multiplatform UI → Shared agent runtime: hosts agents
- IntelliJ plugin → Shared agent runtime: uses shared runtime
- VS Code extension → Shared agent runtime: uses shared runtime
- Agent server → Shared agent runtime: hosts agent
- Shared agent runtime → LLM service: uses LLMs
- Shared agent runtime → Platform adapters: runs across targets
- Shared agent runtime → Document research: offers agent
- Shared agent runtime → Coding agent: offers agent
- Shared agent runtime → Code review: offers agent
- Shared agent runtime → ChatDB: offers agent
- Shared agent runtime → Artifact generation: offers agent
- Shared agent runtime → Web interaction: offers interaction
- Coding agent → Workspace tools: uses tools
- Coding agent → Tool orchestration: orchestrates tools
- Coding agent → MCP integration: uses integrations
- Coding agent → Specialist subagents: invokes subagents
- Code review → PR review services: supports PR review
- Document research → Project database: queries data
- Shared agent runtime → Project rule discovery: loads project rules
- Coding agent → Code parsing: uses code parsing
- Code parsing → Code graph: builds graph