┌─────────────────────────────────────────────────────────┐ │ cmd/muyue/ CLI Cobra (entrypoint) │ │ ├─ commands/ root/scan/setup/... │ │ └─ main.go │ ├─────────────────────────────────────────────────────────┤ │ internal/ │ │ ├─ api/ HTTP server + handlers (REST + SSE) │ │ ├─ agent/ Tool registry (terminal, crush_run,...) │ │ ├─ orchestrator/ AI provider client + fallback chain │ │ ├─ workflow/ Engine + planner (multi-step plans) │ │ ├─ platform/ OS / WSL / shell / pkg-mgr detection │ │ ├─ scanner/ System tools scan (crush, claude, …) │ │ ├─ skills/ Skills registry + deploy/undeploy │ │ ├─ mcp/ MCP server registry │ │ ├─ lsp/ LSP server registry + auto-install │ │ ├─ config/ YAML config + secret encryption │ │ ├─ secret/ AES-GCM encryption helpers │ │ ├─ profiler/ CPU/RAM/Net metrics │ │ ├─ installer/ Tool installer (apt/dnf/brew/winget) │ │ └─ updater/ Self-update │ ├─────────────────────────────────────────────────────────┤ │ web/ Vite + React 19 SPA │ │ └─ src/ │ │ ├─ components/ App / Studio / Shell / Dashboard… │ │ ├─ api/client.js (REST + SSE) │ │ ├─ i18n/ en / fr │ │ └─ themes/ │ └─────────────────────────────────────────────────────────┘
muyue
muyue desktop
web/embed.go
internal/agent/
NewXxxTool()
DefaultRegistry()
tool_call
condition
approval
parallel
config.AIProvider
getProviderBaseURL
sendWithFallback
github.com/spf13/cobra
github.com/gorilla/websocket
github.com/creack/pty/v2
github.com/google/uuid
Deleting the wiki page "Architecture" cannot be undone. Continue?