opc-agent 4.2.1 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +131 -190
  2. package/README.zh-CN.md +135 -174
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,14 +1,16 @@
1
1
  <div align="center">
2
2
 
3
- # ⚡ OPC Agent
3
+ # ⚡ OPC Agent — 瞬知 Studio
4
4
 
5
- **Open Agent Framework — Build, run, and evolve AI agents from your terminal.**
5
+ **Your AI workforce, running locally. Zero cloud cost to start.**
6
+
7
+ One computer. One command. Your own AI employees — working 24/7.
6
8
 
7
9
  [![npm](https://img.shields.io/npm/v/opc-agent)](https://www.npmjs.com/package/opc-agent)
8
10
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
9
11
  [![Node](https://img.shields.io/badge/Node.js-%3E%3D18-339933?logo=node.js&logoColor=white)](https://nodejs.org/)
10
12
 
11
- [Quick Start](#-quick-start) · [Features](#-features) · [Architecture](#-architecture) · [Configuration](#-configuration) · [CLI](#-cli-commands) · [中文文档](README.zh-CN.md)
13
+ [Quick Start](#-quick-start) · [Why OPC](#-why-opc) · [Studio](#-studio) · [Features](#-features) · [Architecture](#-architecture) · [CLI](#-cli-commands) · [中文](README.zh-CN.md)
12
14
 
13
15
  </div>
14
16
 
@@ -16,275 +18,214 @@
16
18
 
17
19
  ## 🚀 Quick Start
18
20
 
19
- ```bash
20
- npm install -g opc-agent
21
- opc init
22
- opc run
23
- ```
24
-
25
- Or one-line install (includes Node.js + optional Ollama):
21
+ **One-line install** (includes Node.js + auto-detects Ollama):
26
22
 
27
23
  ```bash
28
24
  # macOS / Linux
29
25
  curl -fsSL https://raw.githubusercontent.com/Deepleaper/opc-agent/main/install.sh | bash
30
26
 
31
- # Windows PowerShell
27
+ # Windows (PowerShell)
32
28
  irm https://raw.githubusercontent.com/Deepleaper/opc-agent/main/install.ps1 | iex
33
29
  ```
34
30
 
35
- Then open Studio at **http://localhost:4000** or chat in terminal:
31
+ **Or via npx** (zero install):
36
32
 
37
33
  ```bash
38
- opc chat
34
+ npx opc-agent@latest init
35
+ cd my-agent
36
+ npx opc-agent studio
39
37
  ```
40
38
 
41
- ---
42
-
43
- ## ✨ Features
44
-
45
- | | Feature | Description |
46
- |---|---|---|
47
- | 🤖 | **53 Built-in Tools** | File, shell, web, browser, vision, GitHub, Jira, Slack, and more |
48
- | 🎨 | **Studio GUI** | Visual agent management at `http://localhost:4000` |
49
- | 💬 | **TUI Terminal Chat** | Streaming responses, markdown rendering, slash commands |
50
- | 🧠 | **Knowledge Evolve Engine** | Local Ollama-powered zero-cost knowledge distillation |
51
- | 📱 | **15+ Channels** | Telegram, Discord, Slack, WeChat, Email, WhatsApp, LINE, Teams… |
52
- | 🔧 | **40 Built-in Skills** | Productivity, knowledge, creative, developer skill packs |
53
- | 📋 | **OAD Config** | Declarative YAML agent definition (`oad.yaml`) |
54
- | 🏥 | **Doctor** | 13 health checks — model, tools, channels, memory |
55
- | ⏰ | **Cron Scheduler** | Scheduled tasks + proactive agent triggers |
56
- | 🔌 | **MCP Protocol** | Model Context Protocol server & client |
57
- | 🗣️ | **Voice (STT/TTS)** | Whisper, Azure Speech, Volcano Engine |
58
- | 📊 | **A2A Protocol** | Google Agent-to-Agent interoperability |
59
-
60
- ---
61
-
62
- ## 🏗️ Architecture
63
-
64
- ```
65
- ┌─────────────────────────────────────────────────┐
66
- │ Channels │
67
- │ Telegram · Discord · Slack · WeChat · Email … │
68
- └──────────────────────┬──────────────────────────┘
69
-
70
- ┌──────────────────────▼──────────────────────────┐
71
- │ OPC Agent Runtime │
72
- │ ┌──────────┐ ┌──────────┐ ┌──────────────┐ │
73
- │ │ Tool Exec│ │ Skills │ │ Memory/Know │ │
74
- │ │ (53 tools)│ │(40 skills)│ │ Evolve Engine│ │
75
- │ └──────────┘ └──────────┘ └──────────────┘ │
76
- │ ┌──────────┐ ┌──────────┐ ┌──────────────┐ │
77
- │ │ Cron │ │ Voice │ │ MCP / A2A │ │
78
- │ └──────────┘ └──────────┘ └──────────────┘ │
79
- └──────────────────────┬──────────────────────────┘
80
-
81
- ┌──────────────────────▼──────────────────────────┐
82
- │ LLM Providers │
83
- │ OpenAI · Anthropic · Ollama · Azure · Gemini │
84
- └─────────────────────────────────────────────────┘
85
- ```
39
+ That's it. Open `http://localhost:4000` — your AI workforce management Studio is live.
86
40
 
87
41
  ---
88
42
 
89
- ## ⚙️ Configuration
90
-
91
- Agents are defined with a single `oad.yaml` file:
43
+ ## 💡 Why OPC
92
44
 
93
- ```yaml
94
- name: my-agent
95
- description: Customer support agent
96
- model:
97
- provider: ollama
98
- model: llama3.1
99
- channels:
100
- - type: telegram
101
- token: ${TELEGRAM_BOT_TOKEN}
102
- - type: web
103
- port: 4000
104
- tools:
105
- - file
106
- - shell
107
- - web-fetch
108
- - browser
109
- skills:
110
- - weather
111
- - github
112
- memory:
113
- provider: sqlite
114
- cron:
115
- - schedule: "0 9 * * *"
116
- task: "Check and summarize overnight emails"
117
- ```
45
+ | Pain Point | OPC Solution |
46
+ |---|---|
47
+ | AI agents need expensive cloud APIs | **Ollama-first**: runs 100% locally with zero cost |
48
+ | Complex setup, developer-only tools | **One command** → Studio GUI, no coding needed |
49
+ | Agents lose memory between sessions | **DeepBrain**: persistent 3-layer knowledge that evolves |
50
+ | One agent, one trick | **202 workstation templates** across 31 industries |
51
+ | No way to manage multiple agents | **Studio dashboard** — create, chat, configure, monitor |
118
52
 
119
53
  ---
120
54
 
121
- ## 🖥️ CLI Commands
122
-
123
- | Command | Description |
124
- |---------|-------------|
125
- | `opc init [name]` | Create a new agent project |
126
- | `opc run` | Start agent with all configured channels |
127
- | `opc chat` | Interactive TUI chat in terminal |
128
- | `opc studio` | Launch Studio GUI (port 4000) |
129
- | `opc doctor` | Run 13 health checks |
130
- | `opc setup` | Configure model provider & API keys |
131
- | `opc eval` | Run evaluation test suite |
132
- | `opc traces` | View OpenTelemetry traces |
133
- | `opc publish` | Publish agent to npm |
134
- | `opc skill list` | List available skills |
135
- | `opc skill add <name>` | Add a skill to agent |
136
- | `opc cron list` | List scheduled tasks |
55
+ ## 🎨 Studio
137
56
 
138
- ---
57
+ OPC Studio is a web-based management GUI for your entire AI workforce.
139
58
 
140
- ## 📱 Channels
59
+ **5 modules, one interface:**
141
60
 
142
- OPC Agent connects to **15+ messaging platforms** out of the box:
61
+ | Module | What it does |
62
+ |---|---|
63
+ | 🧑‍💻 **OPC Assistant** | Built-in AI helper (always on top) |
64
+ | 🤖 **OPC Agent** | Create agents, chat, configure channels |
65
+ | 🧩 **AgentKits** | Model config — Ollama auto-detect + cloud API keys |
66
+ | 🧠 **DeepBrain** | Knowledge base — drag-drop docs, auto-categorize, 3-layer browsing |
67
+ | 🖥️ **Workstation** | 202 templates across 31 industries — pick a role, deploy an agent |
143
68
 
144
- | Channel | Status | Channel | Status |
145
- |---------|--------|---------|--------|
146
- | Telegram | ✅ | Discord | ✅ |
147
- | Slack | ✅ | WeChat | ✅ |
148
- | Email (IMAP/SMTP) | ✅ | WhatsApp | ✅ |
149
- | LINE | ✅ | Teams | ✅ |
150
- | Feishu/Lark | ✅ | DingTalk | ✅ |
151
- | Web UI | ✅ | WebSocket | ✅ |
152
- | Webhook | ✅ | REST API | ✅ |
153
- | Voice | ✅ | SMS (Twilio) | ✅ |
69
+ ```bash
70
+ npx opc-agent studio # → http://localhost:4000
71
+ ```
154
72
 
155
73
  ---
156
74
 
157
- ## 🔧 Tools (53)
75
+ ## Features
158
76
 
159
- ### Core (8)
160
- `file-read` · `file-write` · `file-list` · `shell-exec` · `web-fetch` · `web-search` · `browser` · `vision`
77
+ ### 🧠 Knowledge Evolve Engine
78
+ - **3-layer knowledge**: Industry Job Workstation (auto-distills upward)
79
+ - **Local-first**: uses Ollama models — zero cost evolution
80
+ - **Memory compaction**: distills conversations into persistent knowledge
81
+ - **DeepBrain integration**: drag-drop documents, auto-categorize
161
82
 
162
- ### Developer (12)
163
- `git-status` · `git-diff` · `git-commit` · `github-issue` · `github-pr` · `github-search` · `npm-search` · `code-analyze` · `test-run` · `lint` · `deploy` · `docker`
83
+ ### 💬 Multi-Channel
84
+ Connect your agents to users wherever they are:
164
85
 
165
- ### Productivity (8)
166
- `calendar` · `email-send` · `email-read` · `reminder` · `note` · `todo` · `timer` · `translate`
86
+ Telegram · Slack · Discord · WeChat · Feishu · Email · WhatsApp · Web Chat · Voice · IRC · Matrix · SMS · Line · Nostr · MS Teams · Google Chat · DingTalk · QQ · Twitch · Mattermost
167
87
 
168
- ### Integration (13)
169
- `jira-issue` · `jira-search` · `slack-send` · `slack-read` · `notion-page` · `notion-search` · `linear-issue` · `confluence` · `trello` · `asana` · `zendesk` · `hubspot` · `salesforce`
88
+ ### 🔧 53 Built-in Tools
170
89
 
171
- ### Knowledge (7)
172
- `memory-store` · `memory-recall` · `knowledge-learn` · `knowledge-evolve` · `rag-query` · `embedding` · `summarize`
90
+ | Category | Tools |
91
+ |---|---|
92
+ | **Core** (8) | shell, file I/O, web fetch, web search, browser, vision, datetime, calculator |
93
+ | **Developer** (12) | git, GitHub, npm, code exec, JSON transform, regex, text analysis, ... |
94
+ | **Productivity** (8) | calendar, email, Jira, Notion, Trello, Slack, summarizer, translator |
95
+ | **Integration** (13) | database, PDF reader, CSV analyzer, webhook, vector search, image gen, ... |
96
+ | **Knowledge** (7) | memory search, memory store, brain query, brain learn, brain evolve, ... |
97
+ | **Media** (5) | image generator, document processor, web scraper, Home Assistant, ... |
173
98
 
174
- ### Media (5)
175
- `image-generate` · `image-describe` · `audio-transcribe` · `tts-speak` · `screenshot`
99
+ ### 🤝 Protocol Support
100
+ - **A2A** (Agent-to-Agent): Google-standard inter-agent communication + HTTP transport
101
+ - **MCP** (Model Context Protocol): Anthropic-standard tool integration
102
+ - **AG-UI**: Frontend streaming protocol
176
103
 
177
- ---
178
-
179
- ## 📊 Comparison
180
-
181
- | Feature | OPC Agent | Hermes Agent | OpenClaw |
182
- |---------|-----------|-------------|----------|
183
- | Built-in tools | 53 | ~10 | 30+ |
184
- | GUI (Studio) | ✅ | ❌ | ✅ |
185
- | TUI Chat | ✅ | ❌ | ✅ |
186
- | Channels | 15+ | 3 | 15+ |
187
- | Built-in skills | 40 | ❌ | 40 |
188
- | Knowledge evolution | ✅ | ❌ | ✅ |
189
- | Voice (STT/TTS) | ✅ | ❌ | ✅ |
190
- | MCP Protocol | ✅ | ✅ | ✅ |
191
- | A2A Protocol | ✅ | ❌ | ✅ |
192
- | Cron scheduler | ✅ | ❌ | ✅ |
193
- | One-line install | ✅ | ❌ | ✅ |
194
- | Health checks | 13 | ❌ | ✅ |
195
- | Local-first (Ollama) | ✅ | ❌ | ✅ |
196
- | Open source | Apache-2.0 | Proprietary | Apache-2.0 |
197
-
198
- > **OPC Agent** is the open-source core runtime. **OpenClaw** is the full platform built on top of it.
104
+ ### 🛡️ Enterprise-Ready
105
+ - Sandbox execution, API key encryption, rate limiting
106
+ - Content filtering, guardrails, HITL (human-in-the-loop)
107
+ - Priority queue with fast mode
108
+ - Gateway registry for multi-agent networking
199
109
 
200
110
  ---
201
111
 
202
- ## 🧠 Knowledge Evolve Engine
203
-
204
- OPC Agent includes a built-in knowledge evolution pipeline that runs **entirely local** with Ollama:
112
+ ## 🏗️ Architecture
205
113
 
206
114
  ```
207
- Conversations → Learn → Cluster → Deduplicate → Distill → Evolved Knowledge
115
+ ┌─────────────────────────────────────┐
116
+ │ OPC Studio (GUI) │ ← Management dashboard
117
+ ├─────────────────────────────────────┤
118
+ │ OPC Agent (CLI) │ ← Runtime + TUI chat
119
+ ├──────────┬──────────┬───────────────┤
120
+ │ AgentKits│ DeepBrain│ Workstation │
121
+ │ (Models) │(Knowledge)│ (Templates) │
122
+ └──────────┴──────────┴───────────────┘
123
+ ↕ ↕ ↕
124
+ Ollama SQLite/ 202 roles
125
+ Cloud Memory 31 industries
126
+ APIs Evolve
208
127
  ```
209
128
 
210
- - **Zero API cost** — uses local Ollama models for distillation
211
- - **Automatic** — learns from every conversation, evolves on schedule
212
- - **Tiered memory** — short-term (conversation) → long-term (distilled) → evolved (refined)
213
- - **Full-text search** — SQLite FTS5 for instant recall across all memory
129
+ ---
130
+
131
+ ## 🖥️ CLI Commands
214
132
 
215
133
  ```bash
216
- opc knowledge evolve # Trigger manual evolution
217
- opc knowledge stats # View knowledge base stats
218
- opc knowledge search "query" # Search across all knowledge
134
+ opc init # Create new agent project
135
+ opc run # Start agent runtime
136
+ opc studio # Launch Studio GUI
137
+ opc chat # TUI terminal chat
138
+ opc doctor # Health check (13 checks)
139
+ opc memory-search <query> # Search agent memory
140
+ opc skills list # List available skills
141
+ opc deploy # Deploy to cloud
142
+ opc publish # Publish to OPC Hub
219
143
  ```
220
144
 
221
145
  ---
222
146
 
223
- ## 🎨 Studio
147
+ ## ⚙️ Configuration
224
148
 
225
- Launch the visual management dashboard:
149
+ Agents are defined in `oad.yaml`:
226
150
 
227
- ```bash
228
- opc studio
151
+ ```yaml
152
+ name: customer-support
153
+ description: 24/7 AI customer service agent
154
+ model: auto # auto-selects best available model
155
+ language: zh
156
+ channels:
157
+ telegram:
158
+ token: ${TELEGRAM_BOT_TOKEN}
159
+ web:
160
+ port: 3000
161
+ tools:
162
+ - web-search
163
+ - memory-search
164
+ skills:
165
+ - customer-service
166
+ - product-knowledge
229
167
  ```
230
168
 
231
- Studio provides:
232
- - **Agent overview** — status, model, channels, tools at a glance
233
- - **Live chat** — test your agent in the browser
234
- - **Configuration editor** — edit `oad.yaml` visually
235
- - **Logs & traces** — real-time log streaming and OpenTelemetry traces
236
- - **Skill browser** — discover and install skills
237
- - **Cron manager** — create and monitor scheduled tasks
238
-
239
169
  ---
240
170
 
241
171
  ## 🏥 Doctor
242
172
 
243
- Run comprehensive health checks:
173
+ 13 automated checks for agent health:
244
174
 
245
175
  ```bash
246
176
  opc doctor
247
177
  ```
248
178
 
249
- ```
250
- ✅ Model provider connected (ollama/llama3.1)
251
- ✅ 53/53 tools available
252
- ✅ Memory store healthy (SQLite, 1,247 entries)
253
- ✅ Telegram channel connected
254
- ✅ Cron scheduler running (3 jobs)
255
- ⚠️ No TTS provider configured
256
- ✅ Disk space OK (12.3 GB free)
257
- ...
258
- ```
179
+ Checks: config validity, model connectivity, channel auth, memory persistence, tool availability, Ollama status, disk space, Node.js version, and more.
180
+
181
+ ---
259
182
 
260
- 13 checks covering: model connectivity, tool wiring, channel status, memory health, disk space, Node.js version, package updates, and more.
183
+ ## 📊 Comparison
184
+
185
+ | Feature | OPC Agent | OpenClaw | Hermes Agent |
186
+ |---------|-----------|----------|--------------|
187
+ | GUI Management | ✅ Studio | ❌ CLI only | ❌ CLI only |
188
+ | Local-first (Ollama) | ✅ Auto-detect | ❌ Cloud-only | ⚠️ Manual |
189
+ | Smart Model Recommend | ✅ Hardware-based | ❌ | ❌ |
190
+ | Knowledge Evolution | ✅ 3-layer + distill | ❌ | ⚠️ Manual skills |
191
+ | Workstation Templates | ✅ 202 / 31 industries | ❌ | ❌ |
192
+ | Built-in Tools | ✅ 53 | ⚠️ ~20 | ⚠️ ~10 |
193
+ | Channels | ✅ 20 | ⚠️ 5 | ⚠️ 3 |
194
+ | A2A + MCP + AG-UI | ✅ All three | ⚠️ MCP only | ❌ |
195
+ | One-line Install | ✅ | ✅ | ❌ |
196
+ | Doctor Health Check | ✅ 13 checks | ❌ | ❌ |
197
+ | Memory Compaction | ✅ Auto-distill | ❌ | ❌ |
261
198
 
262
199
  ---
263
200
 
264
201
  ## 🤝 Contributing
265
202
 
266
- We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
203
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
267
204
 
268
205
  ```bash
269
206
  git clone https://github.com/Deepleaper/opc-agent.git
270
207
  cd opc-agent
271
208
  npm install
272
209
  npm run build
273
- npm test
210
+ npm run dev
274
211
  ```
275
212
 
276
213
  ---
277
214
 
278
215
  ## 📄 License
279
216
 
280
- [Apache-2.0](LICENSE) © [Deepleaper](https://github.com/Deepleaper)
217
+ Apache-2.0 — see [LICENSE](LICENSE) for details.
218
+
219
+ **Open-source components:**
220
+ - `opc-agent` / `agentkits`: Apache-2.0
221
+ - `deepbrain` / `workstation`: LGPL-3.0
281
222
 
282
223
  ---
283
224
 
284
225
  <div align="center">
285
226
 
286
- **If OPC Agent helps you build better agents, give us a ⭐**
227
+ **Built by [Deepleaper](https://www.deepleaper.com)** · Powering the AI workforce revolution
287
228
 
288
- [GitHub](https://github.com/Deepleaper/opc-agent) · [npm](https://www.npmjs.com/package/opc-agent) · [Docs](https://opc-agent.dev)
229
+ Star us if OPC helps you build better AI agents!
289
230
 
290
231
  </div>
package/README.zh-CN.md CHANGED
@@ -1,14 +1,16 @@
1
1
  <div align="center">
2
2
 
3
- # ⚡ OPC Agent
3
+ # ⚡ OPC Agent — 瞬知 Studio
4
4
 
5
- **开源 AI Agent 框架 — 从终端构建、运行、进化你的 AI 智能体**
5
+ **你的 AI 劳动力,本地运行。零成本启动。**
6
+
7
+ 一台电脑,一行命令,你的 AI 员工 7×24 小时上班。
6
8
 
7
9
  [![npm](https://img.shields.io/npm/v/opc-agent)](https://www.npmjs.com/package/opc-agent)
8
10
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
9
11
  [![Node](https://img.shields.io/badge/Node.js-%3E%3D18-339933?logo=node.js&logoColor=white)](https://nodejs.org/)
10
12
 
11
- [快速开始](#-快速开始) · [核心特性](#-核心特性) · [架构](#-架构) · [配置](#-配置) · [CLI 命令](#-cli-命令) · [English](README.md)
13
+ [快速开始](#-快速开始) · [为什么选 OPC](#-为什么选-opc) · [Studio](#-studio) · [功能](#-功能) · [架构](#-架构) · [CLI](#-命令行) · [English](README.md)
12
14
 
13
15
  </div>
14
16
 
@@ -16,254 +18,213 @@
16
18
 
17
19
  ## 🚀 快速开始
18
20
 
19
- ```bash
20
- npm install -g opc-agent
21
- opc init
22
- opc run
23
- ```
24
-
25
- 一键安装(自动配置 Node.js,可选 Ollama 本地模型):
21
+ **一行安装**(自动检测 Node.js + Ollama):
26
22
 
27
23
  ```bash
28
24
  # macOS / Linux
29
25
  curl -fsSL https://raw.githubusercontent.com/Deepleaper/opc-agent/main/install.sh | bash
30
26
 
31
- # Windows PowerShell
27
+ # Windows (PowerShell)
32
28
  irm https://raw.githubusercontent.com/Deepleaper/opc-agent/main/install.ps1 | iex
33
29
  ```
34
30
 
35
- 启动后打开 **http://localhost:4000** 进入 Studio,或直接终端对话:
31
+ **或者 npx 免安装**:
36
32
 
37
33
  ```bash
38
- opc chat
34
+ npx opc-agent@latest init
35
+ cd my-agent
36
+ npx opc-agent studio
39
37
  ```
40
38
 
41
- ---
42
-
43
- ## ✨ 核心特性
44
-
45
- | | 特性 | 说明 |
46
- |---|---|---|
47
- | 🤖 | **53 个内置工具** | 文件、Shell、网页、浏览器、视觉、GitHub、Jira、Slack 等 |
48
- | 🎨 | **Studio 可视化管理** | `http://localhost:4000`,一键管理 Agent |
49
- | 💬 | **TUI 终端对话** | 流式输出、Markdown 渲染、斜杠命令 |
50
- | 🧠 | **知识进化引擎** | 本地 Ollama 驱动,零成本知识蒸馏 |
51
- | 📱 | **15+ 渠道接入** | Telegram、Discord、Slack、微信、邮件、WhatsApp、飞书… |
52
- | 🔧 | **40 个内置技能** | 效率、知识、创意、开发者技能包 |
53
- | 📋 | **OAD 声明式配置** | 一个 `oad.yaml` 定义整个 Agent |
54
- | 🏥 | **Doctor 健康检查** | 13 项检查:模型、工具、渠道、记忆 |
55
- | ⏰ | **定时调度** | Cron 任务 + 主动式 Agent 触发 |
56
- | 🔌 | **MCP 协议** | Model Context Protocol 服务端和客户端 |
57
- | 🗣️ | **语音交互** | Whisper、Azure Speech、火山引擎 STT/TTS |
58
- | 📊 | **A2A 协议** | Google Agent-to-Agent 互操作 |
39
+ 打开 `http://localhost:4000`,你的 AI 劳动力管理 Studio 就绪了。
59
40
 
60
41
  ---
61
42
 
62
- ## 🏗️ 架构
43
+ ## 💡 为什么选 OPC
63
44
 
64
- ```
65
- ┌─────────────────────────────────────────────────┐
66
- │ 渠道层 │
67
- │ Telegram · Discord · Slack · 微信 · 邮件 … │
68
- └──────────────────────┬──────────────────────────┘
69
-
70
- ┌──────────────────────▼──────────────────────────┐
71
- │ OPC Agent 运行时 │
72
- │ ┌──────────┐ ┌──────────┐ ┌──────────────┐ │
73
- │ │ 工具执行 │ │ 技能 │ │ 记忆/知识进化 │ │
74
- │ │ (53 工具) │ │(40 技能) │ │ 引擎 │ │
75
- │ └──────────┘ └──────────┘ └──────────────┘ │
76
- │ ┌──────────┐ ┌──────────┐ ┌──────────────┐ │
77
- │ │ 定时调度 │ │ 语音 │ │ MCP / A2A │ │
78
- │ └──────────┘ └──────────┘ └──────────────┘ │
79
- └──────────────────────┬──────────────────────────┘
80
-
81
- ┌──────────────────────▼──────────────────────────┐
82
- │ 模型提供商 │
83
- │ OpenAI · Anthropic · Ollama · Azure · Gemini │
84
- └─────────────────────────────────────────────────┘
85
- ```
45
+ | 痛点 | OPC 解决方案 |
46
+ |------|-------------|
47
+ | AI Agent 需要昂贵的云端 API | **Ollama 优先**:100% 本地运行,零成本 |
48
+ | 安装复杂,只有开发者能用 | **一行命令** Studio 图形界面,不需要写代码 |
49
+ | Agent 重启后丢失记忆 | **DeepBrain**:三层持久化知识,自动进化 |
50
+ | 一个 Agent 只能做一件事 | **202 个岗位模板**,覆盖 31 个行业 |
51
+ | 没法管理多个 Agent | **Studio 仪表盘** — 创建、聊天、配置、监控 |
86
52
 
87
53
  ---
88
54
 
89
- ## ⚙️ 配置
55
+ ## 🎨 Studio
90
56
 
91
- 用一个 `oad.yaml` 文件定义 Agent:
57
+ OPC Studio 是你管理整个 AI 劳动力的 Web 界面。
92
58
 
93
- ```yaml
94
- name: my-agent
95
- description: 客服助手
96
- model:
97
- provider: ollama
98
- model: llama3.1
99
- channels:
100
- - type: telegram
101
- token: ${TELEGRAM_BOT_TOKEN}
102
- - type: web
103
- port: 4000
104
- tools:
105
- - file
106
- - shell
107
- - web-fetch
108
- - browser
109
- skills:
110
- - weather
111
- - github
112
- memory:
113
- provider: sqlite
114
- cron:
115
- - schedule: "0 9 * * *"
116
- task: "检查并汇总隔夜邮件"
117
- ```
118
-
119
- ---
59
+ **5 大模块,一个界面:**
120
60
 
121
- ## 🖥️ CLI 命令
122
-
123
- | 命令 | 说明 |
61
+ | 模块 | 功能 |
124
62
  |------|------|
125
- | `opc init [name]` | 创建新 Agent 项目 |
126
- | `opc run` | 启动 Agent(所有已配置渠道) |
127
- | `opc chat` | 终端交互对话 |
128
- | `opc studio` | 启动 Studio GUI(端口 4000) |
129
- | `opc doctor` | 运行 13 项健康检查 |
130
- | `opc setup` | 配置模型和 API Key |
131
- | `opc eval` | 运行评估测试 |
132
- | `opc traces` | 查看调用链路 |
133
- | `opc publish` | 发布 Agent 到 npm |
134
- | `opc skill list` | 列出可用技能 |
135
- | `opc cron list` | 列出定时任务 |
136
-
137
- ---
63
+ | 🧑‍💻 **OPC 助手** | 内置 AI 助理(始终置顶) |
64
+ | 🤖 **OPC Agent** | 创建 Agent、聊天、配置渠道 |
65
+ | 🧩 **AgentKits** | 模型配置 — Ollama 自动检测 + 云端 API Key |
66
+ | 🧠 **DeepBrain** | 知识库 拖拽上传文档,自动分类,三层浏览 |
67
+ | 🖥️ **Workstation** | 202 个岗位模板,31 个行业 — 选模板,部署 Agent |
138
68
 
139
- ## 📱 渠道支持
140
-
141
- | 渠道 | 状态 | 渠道 | 状态 |
142
- |------|------|------|------|
143
- | Telegram | ✅ | Discord | ✅ |
144
- | Slack | ✅ | 微信 | ✅ |
145
- | 邮件 (IMAP/SMTP) | ✅ | WhatsApp | ✅ |
146
- | LINE | ✅ | Teams | ✅ |
147
- | 飞书 | ✅ | 钉钉 | ✅ |
148
- | Web UI | ✅ | WebSocket | ✅ |
149
- | Webhook | ✅ | REST API | ✅ |
150
- | 语音 | ✅ | SMS (Twilio) | ✅ |
69
+ ```bash
70
+ npx opc-agent studio # → http://localhost:4000
71
+ ```
151
72
 
152
73
  ---
153
74
 
154
- ## 🔧 工具(53 个)
75
+ ## 功能
155
76
 
156
- - **核心(8)**:文件读写、Shell、网页抓取、搜索、浏览器、视觉
157
- - **开发(12)**:Git、GitHub、npm、代码分析、测试、部署、Docker
158
- - **效率(8)**:日历、邮件、提醒、笔记、待办、翻译
159
- - **集成(13)**:Jira、Slack、Notion、Linear、Confluence、Trello、Asana、Zendesk、HubSpot、Salesforce
160
- - **知识(7)**:记忆存取、知识学习/进化、RAG 查询、向量化、摘要
161
- - **媒体(5)**:图片生成/描述、语音转文字、TTS、截图
77
+ ### 🧠 知识进化引擎
78
+ - **三层知识体系**:行业 → 岗位 → 工位(自动向上蒸馏)
79
+ - **本地优先**:使用 Ollama 模型,零成本进化
80
+ - **记忆压缩**:对话自动蒸馏为持久化知识
81
+ - **DeepBrain**:拖拽文档,自动分类到三层
162
82
 
163
- ---
83
+ ### 💬 20 个渠道
84
+ 把你的 Agent 连接到用户所在的任何地方:
164
85
 
165
- ## 📊 对比
86
+ Telegram · Slack · Discord · 微信 · 飞书 · 邮件 · WhatsApp · Web · 语音 · IRC · Matrix · 短信 · Line · Nostr · Teams · Google Chat · 钉钉 · QQ · Twitch · Mattermost
166
87
 
167
- | 特性 | OPC Agent | Hermes Agent | OpenClaw |
168
- |------|-----------|-------------|----------|
169
- | 内置工具 | 53 | ~10 | 30+ |
170
- | GUI 管理 | ✅ | ❌ | ✅ |
171
- | 终端对话 | ✅ | ❌ | ✅ |
172
- | 渠道数 | 15+ | 3 | 15+ |
173
- | 内置技能 | 40 | ❌ | 40 |
174
- | 知识进化 | ✅ | ❌ | ✅ |
175
- | 语音交互 | ✅ | ❌ | ✅ |
176
- | MCP 协议 | ✅ | ✅ | ✅ |
177
- | A2A 协议 | ✅ | ❌ | ✅ |
178
- | 本地优先 | ✅ | ❌ | ✅ |
179
- | 开源 | Apache-2.0 | 商业 | Apache-2.0 |
88
+ ### 🔧 53 个内置工具
180
89
 
181
- > **OPC Agent** 是开源核心运行时,**OpenClaw** 是基于它构建的完整平台。
90
+ | 分类 | 工具 |
91
+ |------|------|
92
+ | **核心** (8) | Shell、文件 I/O、网页抓取、搜索、浏览器、视觉、日期时间、计算器 |
93
+ | **开发** (12) | Git、GitHub、npm、代码执行、JSON、正则、文本分析… |
94
+ | **办公** (8) | 日历、邮件、Jira、Notion、Trello、Slack、摘要、翻译 |
95
+ | **集成** (13) | 数据库、PDF、CSV、Webhook、向量搜索、图片生成… |
96
+ | **知识** (7) | 记忆搜索、记忆存储、知识查询、知识学习、知识进化… |
97
+ | **媒体** (5) | 图片生成、文档处理、网页爬取、Home Assistant… |
98
+
99
+ ### 🤝 协议支持
100
+ - **A2A**(Agent-to-Agent):Google 标准 + HTTP 传输
101
+ - **MCP**(Model Context Protocol):Anthropic 标准工具集成
102
+ - **AG-UI**:前端流式协议
103
+
104
+ ### 🛡️ 企业级特性
105
+ - 沙箱执行、API Key 加密、速率限制
106
+ - 内容过滤、护栏、人机协同(HITL)
107
+ - 优先级队列 + 快速模式
108
+ - Gateway 注册中心(多 Agent 网络)
182
109
 
183
110
  ---
184
111
 
185
- ## 🧠 知识进化引擎
186
-
187
- OPC Agent 内置知识进化流水线,**完全本地运行**,使用 Ollama:
112
+ ## 🏗️ 架构
188
113
 
189
114
  ```
190
- 对话 → 学习 → 聚类 → 去重 → 蒸馏 → 进化知识
115
+ ┌─────────────────────────────────────┐
116
+ │ OPC Studio(管理界面) │
117
+ ├─────────────────────────────────────┤
118
+ │ OPC Agent(CLI 运行时) │
119
+ ├──────────┬──────────┬───────────────┤
120
+ │ AgentKits│ DeepBrain│ Workstation │
121
+ │ (模型) │ (知识) │ (模板) │
122
+ └──────────┴──────────┴───────────────┘
123
+ ↕ ↕ ↕
124
+ Ollama SQLite/ 202 岗位
125
+ 云端 API 记忆进化 31 行业
191
126
  ```
192
127
 
193
- - **零 API 成本** — 本地 Ollama 模型驱动蒸馏
194
- - **自动运行** — 从每次对话中学习,按计划进化
195
- - **分层记忆** — 短期(对话)→ 长期(蒸馏)→ 进化(精炼)
196
- - **全文搜索** — SQLite FTS5 即时检索所有记忆
128
+ ---
129
+
130
+ ## 🖥️ 命令行
197
131
 
198
132
  ```bash
199
- opc knowledge evolve # 手动触发进化
200
- opc knowledge stats # 查看知识库统计
201
- opc knowledge search "查询" # 搜索知识
133
+ opc init # 创建 Agent 项目
134
+ opc run # 启动 Agent
135
+ opc studio # 打开 Studio 管理界面
136
+ opc chat # 终端聊天(TUI)
137
+ opc doctor # 健康检查(13 项)
138
+ opc memory-search <query> # 搜索 Agent 记忆
139
+ opc skills list # 查看可用 Skill
140
+ opc deploy # 部署到云端
141
+ opc publish # 发布到 OPC Hub
202
142
  ```
203
143
 
204
144
  ---
205
145
 
206
- ## 🎨 Studio 可视化
146
+ ## ⚙️ 配置
207
147
 
208
- ```bash
209
- opc studio
210
- ```
148
+ Agent 通过 `oad.yaml` 定义:
211
149
 
212
- Studio 功能:
213
- - **Agent 概览** — 状态、模型、渠道、工具一目了然
214
- - **在线对话** 浏览器中测试 Agent
215
- - **配置编辑** — 可视化编辑 `oad.yaml`
216
- - **日志与追踪** — 实时日志流 + OpenTelemetry 追踪
217
- - **技能浏览器** — 发现和安装技能
218
- - **定时任务管理** — 创建和监控 Cron 任务
150
+ ```yaml
151
+ name: customer-support
152
+ description: 24小时 AI 客服
153
+ model: auto # 自动选择最佳模型
154
+ language: zh
155
+ channels:
156
+ telegram:
157
+ token: ${TELEGRAM_BOT_TOKEN}
158
+ web:
159
+ port: 3000
160
+ tools:
161
+ - web-search
162
+ - memory-search
163
+ skills:
164
+ - customer-service
165
+ - product-knowledge
166
+ ```
219
167
 
220
168
  ---
221
169
 
222
- ## 🏥 Doctor 健康检查
170
+ ## 🏥 健康检查
171
+
172
+ 13 项自动诊断:
223
173
 
224
174
  ```bash
225
175
  opc doctor
226
176
  ```
227
177
 
228
- ```
229
- ✅ 模型连接正常 (ollama/llama3.1)
230
- ✅ 53/53 工具可用
231
- ✅ 记忆存储正常 (SQLite, 1,247 条)
232
- ✅ Telegram 渠道已连接
233
- ✅ 定时调度运行中 (3 个任务)
234
- ⚠️ 未配置 TTS 语音
235
- ✅ 磁盘空间充足 (12.3 GB)
236
- ...
237
- ```
178
+ 检查项:配置、模型连接、渠道认证、记忆持久化、工具可用性、Ollama 状态、磁盘空间、Node.js 版本等。
238
179
 
239
- 13 项检查覆盖:模型连接、工具状态、渠道连接、记忆健康、磁盘空间、Node.js 版本、包更新等。
180
+ ---
181
+
182
+ ## 📊 竞品对比
183
+
184
+ | 特性 | OPC Agent | OpenClaw | Hermes Agent |
185
+ |------|-----------|----------|--------------|
186
+ | 图形管理界面 | ✅ Studio | ❌ 仅 CLI | ❌ 仅 CLI |
187
+ | 本地优先 (Ollama) | ✅ 自动检测 | ❌ 仅云端 | ⚠️ 手动 |
188
+ | 智能模型推荐 | ✅ 基于硬件 | ❌ | ❌ |
189
+ | 知识进化 | ✅ 三层 + 蒸馏 | ❌ | ⚠️ 手动 |
190
+ | 岗位模板 | ✅ 202 / 31 行业 | ❌ | ❌ |
191
+ | 内置工具 | ✅ 53 个 | ⚠️ ~20 | ⚠️ ~10 |
192
+ | 渠道 | ✅ 20 个 | ⚠️ 5 | ⚠️ 3 |
193
+ | A2A + MCP + AG-UI | ✅ 全部 | ⚠️ 仅 MCP | ❌ |
194
+ | 一行安装 | ✅ | ✅ | ❌ |
195
+ | 健康检查 | ✅ 13 项 | ❌ | ❌ |
196
+ | 记忆压缩 | ✅ 自动蒸馏 | ❌ | ❌ |
240
197
 
241
198
  ---
242
199
 
243
- ## 🤝 参与贡献
200
+ ## 🤝 贡献
244
201
 
245
- 欢迎贡献!查看 [CONTRIBUTING.md](CONTRIBUTING.md) 了解详情。
202
+ 查看 [CONTRIBUTING.md](CONTRIBUTING.md) 了解贡献指南。
246
203
 
247
204
  ```bash
248
205
  git clone https://github.com/Deepleaper/opc-agent.git
249
206
  cd opc-agent
250
207
  npm install
251
208
  npm run build
252
- npm test
209
+ npm run dev
253
210
  ```
254
211
 
255
212
  ---
256
213
 
257
214
  ## 📄 许可证
258
215
 
259
- [Apache-2.0](LICENSE) © [Deepleaper 跃盟科技](https://github.com/Deepleaper)
216
+ Apache-2.0 详见 [LICENSE](LICENSE)
217
+
218
+ **开源组件许可:**
219
+ - `opc-agent` / `agentkits`:Apache-2.0
220
+ - `deepbrain` / `workstation`:LGPL-3.0
260
221
 
261
222
  ---
262
223
 
263
224
  <div align="center">
264
225
 
265
- **觉得有用?给个 支持一下**
226
+ **由 [跃盟科技 Deepleaper](https://www.deepleaper.com) 构建** · 驱动 AI 劳动力革命
266
227
 
267
- [GitHub](https://github.com/Deepleaper/opc-agent) · [npm](https://www.npmjs.com/package/opc-agent) · [文档](https://opc-agent.dev)
228
+ 如果 OPC 对你有帮助,请给我们一颗星!
268
229
 
269
230
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opc-agent",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "Open Agent Framework — Build, test, and run AI Agents for business workstations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",