How mateaix/mateclaw works
MateClaw is a multi-surface, Spring Boot agent product: users interact through the web console, desktop, embedded webchat, or messaging channels; server-side agents run turns, use configured models and tools, and produce conversation and knowledge results. The README documents native and DSH runtimes, durable Goals, Team Runs, approvals, memory, Wiki, and integrations. Source excerpts are selective, so unsampled subsystem links below rely only on those README descriptions; this is a product map, not a complete call graph.
Main entry points: AgentService.java Agent orchestration · App.vue Web console · ModelProviderService.java Model providers · wiki LLM Wiki
Components 21
User surfaces
- Web console
mateclaw-ui/src/App.vue - Desktop app
mateclaw-desktop/src/App.vue - Webchat widget
mateclaw-webchat/src/index.ts - IM channels
mateclaw-server/src/main/java/vip/mate/channel
Agent execution
- Agent orchestration
mateclaw-server/src/main/java/vip/mate/agent/AgentService.java - Native graph runtime
mateclaw-server/src/main/java/vip/mate/agent/graph/StateGraphReActAgent.java - DSH runtime
mateclaw-server/src/main/java/vip/mate/agent/runtime/dsh/DshRuntimeService.java - Team Runs
mateclaw-server/src/main/java/vip/mate/team/service/TeamTaskService.java - Persistent Goals
mateclaw-server/src/main/java/vip/mate/agent/graph - Model providers
mateclaw-server/src/main/java/vip/mate/llm/service/ModelProviderService.java - Conversations
mateclaw-server/src/main/java/vip/mate/workspace/conversation/ConversationService.java - Tool execution
mateclaw-server/src/main/java/vip/mate/agent/graph/executor/ToolResultStorage.java
Knowledge and memory
- LLM Wiki
mateclaw-server/src/main/java/vip/mate/wiki - Wiki pipelines
mateclaw-server/src/main/java/vip/mate/wiki/pipeline/WikiPipelineService.java - Memory and search
mateclaw-server/src/main/java/vip/mate/memory
Security and governance
- Tool approvals
mateclaw-server/src/main/java/vip/mate/approval - Audit and evidence
mateclaw-server/src/main/java/vip/mate/execution/evidence/service/ExecutionEvidenceQueryService.java - Authentication
mateclaw-server/src/main/java/vip/mate/auth/service/AuthService.java
Integrations
- Plugin API
mateclaw-plugin-api/src/main/java/vip/mate/plugin/api - Mem0 plugin
mateclaw-plugin-mem0/src/main/java/vip/mate/plugin/mem0/Mem0Plugin.java
Other components
- User
Connections 23
- User → Web console: uses
README.md - User → Desktop app: uses
README.md - User → Webchat widget: uses
README.md - User → IM channels: messages through
README.md - Web console → Agent orchestration: configures and invokes
README.md - Desktop app → Agent orchestration: accesses
README.md - Webchat widget → Agent orchestration: accesses
README.md - IM channels → Agent orchestration: routes messages
README.md - Agent orchestration → Native graph runtime: runs natively
README.md - Agent orchestration → DSH runtime: runs externally
README.md - Agent orchestration → Team Runs: coordinates
README.md - Agent orchestration → Persistent Goals: continues goals
README.md - Native graph runtime → Model providers: requests inference
README.md - DSH runtime → Model providers: uses configured models
README.md - Agent orchestration → Tool execution: dispatches tools
README.md - Agent orchestration → Conversations: persists turns
README.md - Agent orchestration → Memory and search: uses memory
README.md - Agent orchestration → Tool approvals: gates actions
README.md - Agent orchestration → Audit and evidence: records execution evidence
README.md - Web console → Authentication: authenticates
- LLM Wiki → Wiki pipelines: processes material
mateclaw-server/src/main/java/vip/mate/wiki/pipeline/WikiPipelineService.java - LLM Wiki → Model providers: creates embeddings
mateclaw-server/src/main/java/vip/mate/wiki/service/WikiEmbeddingService.java - Plugin API → Mem0 plugin: implements extension