# agentscope-ai/qwenpaw architecture

> Architecture diagram of the GitHub repository agentscope-ai/qwenpaw, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/agentscope-ai/qwenpaw
- Repository: https://github.com/agentscope-ai/qwenpaw

## Overview

QwenPaw is a personal AI assistant, accessed through its Console, desktop/TUI, or messaging channels, with scheduled tasks and extensible skills. The principal workflow is a user request becoming an assistant response; the README also describes memory, model choice, tool security, files, multi-agent work, and plugins. The graph preserves these documented branches, but the excerpts do not show the central backend request path, so uncertain runtime wiring is omitted. The browser engine and plugin-manager hooks are sampled internal implementation examples, not a complete backend map.

Main entry points: [`console/src/App.tsx`](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/App.tsx) (Console), [`console/src-tauri/src/lib.rs`](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src-tauri/src/lib.rs) (Desktop app), [`console/src/pages/Chat/index.tsx`](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/pages/Chat/index.tsx) (Chat experience), [`console/src/api/modules/chat.ts`](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/chat.ts) (Chat API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["User access"]
  node_console["Console<br/>[App.tsx]"]
  node_chat["Chat experience<br/>[index.tsx]"]
  node_chat_api["Chat API<br/>[chat.ts]"]
  node_channels["Messaging channels<br/>[channel.ts]"]
  node_desktop_app["Desktop app<br/>[lib.rs]"]
end

subgraph group_assistant["Assistant runtime"]
  node_agent_runtime["Agent runtime"]
  node_models["Model providers<br/>[provider.ts]"]
  node_memory["Evolving memory"]
  node_multi_agent["Multi-agent and ACP<br/>[acp.ts]"]
  node_tool_guard["Tool Guard<br/>[engine.py]"]
  node_browser["Browser runtime<br/>[engine.py]"]
end

subgraph group_capabilities["Assistant capabilities"]
  node_skills["Skills<br/>[skill.ts]"]
  node_plugins["Plugins and market"]
  node_scheduling["Scheduled tasks<br/>[cronjob.ts]"]
  node_files["File workspace<br/>[FilesWorkspace.tsx]"]
  node_creator["Web grounding<br/>[pipeline.py]"]
end

subgraph group_desktop["Desktop platform"]
  node_desktop_shell["Desktop shell<br/>[DesktopOS.tsx]"]
  node_computer_use["Computer use"]
end

node_user(("User"))
node_provider_service["Model services"]
node_channel_services["Messaging services"]

node_user -->|"uses"| node_console
node_console -->|"opens"| node_chat
node_chat -->|"requests"| node_chat_api
node_user -->|"messages"| node_channels
node_channels -->|"connects"| node_channel_services
node_chat_api -->|"submits request"| node_agent_runtime
node_agent_runtime -->|"selects model"| node_models
node_models -->|"requests inference"| node_provider_service
node_agent_runtime -->|"uses memory"| node_memory
node_agent_runtime -->|"orchestrates agents"| node_multi_agent
node_agent_runtime -->|"guards tool calls"| node_tool_guard
node_agent_runtime -->|"uses browser"| node_browser
node_agent_runtime -->|"uses skills"| node_skills
node_agent_runtime -->|"works with files"| node_files
node_agent_runtime -->|"grounds answers"| node_creator
node_scheduling -->|"schedules tasks"| node_agent_runtime
node_console -->|"manages plugins"| node_plugins
node_user -->|"uses"| node_desktop_app
node_desktop_app -->|"hosts"| node_desktop_shell
node_desktop_app -->|"provides computer use"| node_computer_use

click node_console "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/App.tsx"
click node_chat "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/pages/Chat/index.tsx"
click node_chat_api "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/chat.ts"
click node_channels "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/channel.ts"
click node_desktop_app "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src-tauri/src/lib.rs"
click node_models "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/provider.ts"
click node_memory "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/features/files-workspace/MemoryGraphView.tsx"
click node_multi_agent "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/acp.ts"
click node_tool_guard "https://github.com/agentscope-ai/qwenpaw/blob/main/src/qwenpaw/security/tool_guard/engine.py"
click node_browser "https://github.com/agentscope-ai/qwenpaw/blob/main/src/qwenpaw/browser/runtime/engine.py"
click node_skills "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/skill.ts"
click node_plugins "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/pages/Settings/PluginManager/hooks/usePluginManager.ts"
click node_scheduling "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/cronjob.ts"
click node_files "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/features/files-workspace/FilesWorkspace.tsx"
click node_creator "https://github.com/agentscope-ai/qwenpaw/blob/main/plugins/apps/qwenpaw-creator/backend/services/web_grounding/pipeline.py"
click node_desktop_shell "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/os/DesktopOS.tsx"
click node_computer_use "https://github.com/agentscope-ai/qwenpaw/blob/main/console/src-tauri/src/computer_use_runtime.rs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_console,node_chat,node_chat_api,node_channels,node_desktop_app,node_user toneBlue
class node_agent_runtime,node_models,node_memory,node_multi_agent,node_tool_guard,node_browser toneAmber
class node_skills,node_plugins,node_scheduling,node_files,node_creator toneMint
class node_desktop_shell,node_computer_use toneRose
class node_provider_service,node_channel_services toneIndigo
```

## Components

### User access

- [Console](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/App.tsx): `console/src/App.tsx`
- [Chat experience](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/pages/Chat/index.tsx): `console/src/pages/Chat/index.tsx`
- [Chat API](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/chat.ts): `console/src/api/modules/chat.ts`
- [Messaging channels](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/channel.ts): `console/src/api/modules/channel.ts`
- [Desktop app](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src-tauri/src/lib.rs): `console/src-tauri/src/lib.rs`

### Assistant runtime

- **Agent runtime**
- [Model providers](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/provider.ts): `console/src/api/modules/provider.ts`
- [Evolving memory](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/features/files-workspace/MemoryGraphView.tsx): `console/src/features/files-workspace/MemoryGraphView.tsx`
- [Multi-agent and ACP](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/acp.ts): `console/src/api/modules/acp.ts`
- [Tool Guard](https://github.com/agentscope-ai/qwenpaw/blob/main/src/qwenpaw/security/tool_guard/engine.py): `src/qwenpaw/security/tool_guard/engine.py`
- [Browser runtime](https://github.com/agentscope-ai/qwenpaw/blob/main/src/qwenpaw/browser/runtime/engine.py): `src/qwenpaw/browser/runtime/engine.py`

### Assistant capabilities

- [Skills](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/skill.ts): `console/src/api/modules/skill.ts`
- [Plugins and market](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/pages/Settings/PluginManager/hooks/usePluginManager.ts): `console/src/pages/Settings/PluginManager/hooks/usePluginManager.ts`
- [Scheduled tasks](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/api/modules/cronjob.ts): `console/src/api/modules/cronjob.ts`
- [File workspace](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/features/files-workspace/FilesWorkspace.tsx): `console/src/features/files-workspace/FilesWorkspace.tsx`
- [Web grounding](https://github.com/agentscope-ai/qwenpaw/blob/main/plugins/apps/qwenpaw-creator/backend/services/web_grounding/pipeline.py): `plugins/apps/qwenpaw-creator/backend/services/web_grounding/pipeline.py`

### Desktop platform

- [Desktop shell](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src/os/DesktopOS.tsx): `console/src/os/DesktopOS.tsx`
- [Computer use](https://github.com/agentscope-ai/qwenpaw/blob/main/console/src-tauri/src/computer_use_runtime.rs): `console/src-tauri/src/computer_use_runtime.rs`

### Other components

- **User**
- **Model services**
- **Messaging services**

## Connections

- User → Console: uses
- Console → Chat experience: opens
- Chat experience → Chat API: requests
- User → Messaging channels: messages
- Messaging channels → Messaging services: connects
- Chat API → Agent runtime: submits request
- Agent runtime → Model providers: selects model
- Model providers → Model services: requests inference
- Agent runtime → Evolving memory: uses memory
- Agent runtime → Multi-agent and ACP: orchestrates agents
- Agent runtime → Tool Guard: guards tool calls
- Agent runtime → Browser runtime: uses browser
- Agent runtime → Skills: uses skills
- Agent runtime → File workspace: works with files
- Agent runtime → Web grounding: grounds answers
- Scheduled tasks → Agent runtime: schedules tasks
- Console → Plugins and market: manages plugins
- User → Desktop app: uses
- Desktop app → Desktop shell: hosts
- Desktop app → Computer use: provides computer use
