opc-agent 4.2.0 β†’ 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 (119) hide show
  1. package/.opc/memory.db +0 -0
  2. package/COMPETITIVE-GAP.md +92 -92
  3. package/CONTRIBUTING.md +36 -36
  4. package/README.md +231 -290
  5. package/README.zh-CN.md +230 -269
  6. package/STUDIO-REWRITE-TASK.md +76 -0
  7. package/dist/channels/telegram.d.ts +5 -0
  8. package/dist/channels/telegram.d.ts.map +1 -1
  9. package/dist/channels/telegram.js +108 -0
  10. package/dist/channels/telegram.js.map +1 -1
  11. package/dist/channels/voice.d.ts +71 -97
  12. package/dist/channels/voice.d.ts.map +1 -1
  13. package/dist/channels/voice.js +369 -347
  14. package/dist/channels/voice.js.map +1 -1
  15. package/dist/channels/web.d.ts.map +1 -1
  16. package/dist/channels/web.js +8 -2
  17. package/dist/channels/web.js.map +1 -1
  18. package/dist/channels/wechat.js +6 -6
  19. package/dist/cli/chat.d.ts +4 -1
  20. package/dist/cli/chat.d.ts.map +1 -1
  21. package/dist/cli/chat.js +680 -73
  22. package/dist/cli/chat.js.map +1 -1
  23. package/dist/cli/setup.js +1 -1
  24. package/dist/cli/setup.js.map +1 -1
  25. package/dist/cli.js +373 -280
  26. package/dist/cli.js.map +1 -1
  27. package/dist/core/a2a-http.d.ts +75 -0
  28. package/dist/core/a2a-http.d.ts.map +1 -0
  29. package/dist/core/a2a-http.js +217 -0
  30. package/dist/core/a2a-http.js.map +1 -0
  31. package/dist/core/a2a.d.ts +2 -0
  32. package/dist/core/a2a.d.ts.map +1 -1
  33. package/dist/core/a2a.js +6 -1
  34. package/dist/core/a2a.js.map +1 -1
  35. package/dist/core/agent.d.ts +1 -0
  36. package/dist/core/agent.d.ts.map +1 -1
  37. package/dist/core/agent.js +3 -0
  38. package/dist/core/agent.js.map +1 -1
  39. package/dist/core/gateway-registry.d.ts +116 -0
  40. package/dist/core/gateway-registry.d.ts.map +1 -0
  41. package/dist/core/gateway-registry.js +280 -0
  42. package/dist/core/gateway-registry.js.map +1 -0
  43. package/dist/core/model-recommender.d.ts +40 -0
  44. package/dist/core/model-recommender.d.ts.map +1 -0
  45. package/dist/core/model-recommender.js +186 -0
  46. package/dist/core/model-recommender.js.map +1 -0
  47. package/dist/core/priority-queue.d.ts +100 -0
  48. package/dist/core/priority-queue.d.ts.map +1 -0
  49. package/dist/core/priority-queue.js +181 -0
  50. package/dist/core/priority-queue.js.map +1 -0
  51. package/dist/core/runtime.d.ts.map +1 -1
  52. package/dist/core/runtime.js +192 -22
  53. package/dist/core/runtime.js.map +1 -1
  54. package/dist/deploy/index.js +56 -56
  55. package/dist/doctor.d.ts +1 -0
  56. package/dist/doctor.d.ts.map +1 -1
  57. package/dist/doctor.js +155 -10
  58. package/dist/doctor.js.map +1 -1
  59. package/dist/index.d.ts +10 -3
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +24 -13
  62. package/dist/index.js.map +1 -1
  63. package/dist/memory/deepbrain.d.ts +1 -1
  64. package/dist/memory/deepbrain.d.ts.map +1 -1
  65. package/dist/memory/deepbrain.js +95 -4
  66. package/dist/memory/deepbrain.js.map +1 -1
  67. package/dist/memory/evolve-engine.d.ts +113 -0
  68. package/dist/memory/evolve-engine.d.ts.map +1 -0
  69. package/dist/memory/evolve-engine.js +549 -0
  70. package/dist/memory/evolve-engine.js.map +1 -0
  71. package/dist/memory/index.d.ts +2 -0
  72. package/dist/memory/index.d.ts.map +1 -1
  73. package/dist/memory/index.js +3 -1
  74. package/dist/memory/index.js.map +1 -1
  75. package/dist/memory/sqlite-store.d.ts +40 -0
  76. package/dist/memory/sqlite-store.d.ts.map +1 -0
  77. package/dist/memory/sqlite-store.js +269 -0
  78. package/dist/memory/sqlite-store.js.map +1 -0
  79. package/dist/memory/user-profiler.d.ts +8 -0
  80. package/dist/memory/user-profiler.d.ts.map +1 -1
  81. package/dist/memory/user-profiler.js +89 -0
  82. package/dist/memory/user-profiler.js.map +1 -1
  83. package/dist/scheduler/cron-engine.d.ts.map +1 -1
  84. package/dist/scheduler/cron-engine.js +3 -36
  85. package/dist/scheduler/cron-engine.js.map +1 -1
  86. package/dist/scheduler/proactive.d.ts +62 -0
  87. package/dist/scheduler/proactive.d.ts.map +1 -0
  88. package/dist/scheduler/proactive.js +185 -0
  89. package/dist/scheduler/proactive.js.map +1 -0
  90. package/dist/skills/auto-learn.d.ts.map +1 -1
  91. package/dist/skills/auto-learn.js +65 -11
  92. package/dist/skills/auto-learn.js.map +1 -1
  93. package/dist/skills/builtin/index.d.ts.map +1 -1
  94. package/dist/skills/builtin/index.js +163 -30
  95. package/dist/skills/builtin/index.js.map +1 -1
  96. package/dist/skills/types.d.ts +1 -1
  97. package/dist/skills/types.d.ts.map +1 -1
  98. package/dist/skills/types.js +1 -0
  99. package/dist/skills/types.js.map +1 -1
  100. package/dist/studio/server.d.ts +1 -0
  101. package/dist/studio/server.d.ts.map +1 -1
  102. package/dist/studio/server.js +148 -17
  103. package/dist/studio/server.js.map +1 -1
  104. package/dist/studio-ui/index.html +867 -2630
  105. package/dist/ui/components.js +105 -105
  106. package/examples/README.md +22 -22
  107. package/examples/basic-agent.ts +90 -90
  108. package/examples/brain-integration.ts +71 -71
  109. package/examples/multi-channel.ts +74 -74
  110. package/install.ps1 +127 -127
  111. package/install.sh +154 -154
  112. package/models.json +164 -164
  113. package/package.json +5 -2
  114. package/scripts/install.ps1 +31 -31
  115. package/scripts/install.sh +40 -40
  116. package/templates/ecommerce-assistant/README.md +45 -45
  117. package/templates/ecommerce-assistant/oad.yaml +47 -47
  118. package/templates/tech-support/README.md +43 -43
  119. package/templates/tech-support/oad.yaml +45 -45
package/README.md CHANGED
@@ -1,290 +1,231 @@
1
- <div align="center">
2
-
3
- # ⚑ OPC Agent
4
-
5
- **Open Agent Framework β€” Build, run, and evolve AI agents from your terminal.**
6
-
7
- [![npm](https://img.shields.io/npm/v/opc-agent)](https://www.npmjs.com/package/opc-agent)
8
- [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
9
- [![Node](https://img.shields.io/badge/Node.js-%3E%3D18-339933?logo=node.js&logoColor=white)](https://nodejs.org/)
10
-
11
- [Quick Start](#-quick-start) Β· [Features](#-features) Β· [Architecture](#-architecture) Β· [Configuration](#-configuration) Β· [CLI](#-cli-commands) Β· [δΈ­ζ–‡ζ–‡ζ‘£](README.zh-CN.md)
12
-
13
- </div>
14
-
15
- ---
16
-
17
- ## πŸš€ Quick Start
18
-
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):
26
-
27
- ```bash
28
- # macOS / Linux
29
- curl -fsSL https://raw.githubusercontent.com/Deepleaper/opc-agent/main/install.sh | bash
30
-
31
- # Windows PowerShell
32
- irm https://raw.githubusercontent.com/Deepleaper/opc-agent/main/install.ps1 | iex
33
- ```
34
-
35
- Then open Studio at **http://localhost:4000** or chat in terminal:
36
-
37
- ```bash
38
- opc chat
39
- ```
40
-
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
- ```
86
-
87
- ---
88
-
89
- ## βš™οΈ Configuration
90
-
91
- Agents are defined with a single `oad.yaml` file:
92
-
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
- ```
118
-
119
- ---
120
-
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 |
137
-
138
- ---
139
-
140
- ## πŸ“± Channels
141
-
142
- OPC Agent connects to **15+ messaging platforms** out of the box:
143
-
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) | βœ… |
154
-
155
- ---
156
-
157
- ## πŸ”§ Tools (53)
158
-
159
- ### Core (8)
160
- `file-read` Β· `file-write` Β· `file-list` Β· `shell-exec` Β· `web-fetch` Β· `web-search` Β· `browser` Β· `vision`
161
-
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`
164
-
165
- ### Productivity (8)
166
- `calendar` Β· `email-send` Β· `email-read` Β· `reminder` Β· `note` Β· `todo` Β· `timer` Β· `translate`
167
-
168
- ### Integration (13)
169
- `jira-issue` Β· `jira-search` Β· `slack-send` Β· `slack-read` Β· `notion-page` Β· `notion-search` Β· `linear-issue` Β· `confluence` Β· `trello` Β· `asana` Β· `zendesk` Β· `hubspot` Β· `salesforce`
170
-
171
- ### Knowledge (7)
172
- `memory-store` Β· `memory-recall` Β· `knowledge-learn` Β· `knowledge-evolve` Β· `rag-query` Β· `embedding` Β· `summarize`
173
-
174
- ### Media (5)
175
- `image-generate` Β· `image-describe` Β· `audio-transcribe` Β· `tts-speak` Β· `screenshot`
176
-
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.
199
-
200
- ---
201
-
202
- ## 🧠 Knowledge Evolve Engine
203
-
204
- OPC Agent includes a built-in knowledge evolution pipeline that runs **entirely local** with Ollama:
205
-
206
- ```
207
- Conversations β†’ Learn β†’ Cluster β†’ Deduplicate β†’ Distill β†’ Evolved Knowledge
208
- ```
209
-
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
214
-
215
- ```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
219
- ```
220
-
221
- ---
222
-
223
- ## 🎨 Studio
224
-
225
- Launch the visual management dashboard:
226
-
227
- ```bash
228
- opc studio
229
- ```
230
-
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
- ---
240
-
241
- ## πŸ₯ Doctor
242
-
243
- Run comprehensive health checks:
244
-
245
- ```bash
246
- opc doctor
247
- ```
248
-
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
- ```
259
-
260
- 13 checks covering: model connectivity, tool wiring, channel status, memory health, disk space, Node.js version, package updates, and more.
261
-
262
- ---
263
-
264
- ## 🀝 Contributing
265
-
266
- We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
267
-
268
- ```bash
269
- git clone https://github.com/Deepleaper/opc-agent.git
270
- cd opc-agent
271
- npm install
272
- npm run build
273
- npm test
274
- ```
275
-
276
- ---
277
-
278
- ## πŸ“„ License
279
-
280
- [Apache-2.0](LICENSE) Β© [Deepleaper](https://github.com/Deepleaper)
281
-
282
- ---
283
-
284
- <div align="center">
285
-
286
- **If OPC Agent helps you build better agents, give us a ⭐**
287
-
288
- [GitHub](https://github.com/Deepleaper/opc-agent) Β· [npm](https://www.npmjs.com/package/opc-agent) Β· [Docs](https://opc-agent.dev)
289
-
290
- </div>
1
+ <div align="center">
2
+
3
+ # ⚑ OPC Agent β€” 瞬ηŸ₯ Studio
4
+
5
+ **Your AI workforce, running locally. Zero cloud cost to start.**
6
+
7
+ One computer. One command. Your own AI employees β€” working 24/7.
8
+
9
+ [![npm](https://img.shields.io/npm/v/opc-agent)](https://www.npmjs.com/package/opc-agent)
10
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
11
+ [![Node](https://img.shields.io/badge/Node.js-%3E%3D18-339933?logo=node.js&logoColor=white)](https://nodejs.org/)
12
+
13
+ [Quick Start](#-quick-start) Β· [Why OPC](#-why-opc) Β· [Studio](#-studio) Β· [Features](#-features) Β· [Architecture](#-architecture) Β· [CLI](#-cli-commands) Β· [δΈ­ζ–‡](README.zh-CN.md)
14
+
15
+ </div>
16
+
17
+ ---
18
+
19
+ ## πŸš€ Quick Start
20
+
21
+ **One-line install** (includes Node.js + auto-detects Ollama):
22
+
23
+ ```bash
24
+ # macOS / Linux
25
+ curl -fsSL https://raw.githubusercontent.com/Deepleaper/opc-agent/main/install.sh | bash
26
+
27
+ # Windows (PowerShell)
28
+ irm https://raw.githubusercontent.com/Deepleaper/opc-agent/main/install.ps1 | iex
29
+ ```
30
+
31
+ **Or via npx** (zero install):
32
+
33
+ ```bash
34
+ npx opc-agent@latest init
35
+ cd my-agent
36
+ npx opc-agent studio
37
+ ```
38
+
39
+ That's it. Open `http://localhost:4000` β€” your AI workforce management Studio is live.
40
+
41
+ ---
42
+
43
+ ## πŸ’‘ Why OPC
44
+
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 |
52
+
53
+ ---
54
+
55
+ ## 🎨 Studio
56
+
57
+ OPC Studio is a web-based management GUI for your entire AI workforce.
58
+
59
+ **5 modules, one interface:**
60
+
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 |
68
+
69
+ ```bash
70
+ npx opc-agent studio # β†’ http://localhost:4000
71
+ ```
72
+
73
+ ---
74
+
75
+ ## ✨ Features
76
+
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
82
+
83
+ ### πŸ’¬ Multi-Channel
84
+ Connect your agents to users wherever they are:
85
+
86
+ Telegram Β· Slack Β· Discord Β· WeChat Β· Feishu Β· Email Β· WhatsApp Β· Web Chat Β· Voice Β· IRC Β· Matrix Β· SMS Β· Line Β· Nostr Β· MS Teams Β· Google Chat Β· DingTalk Β· QQ Β· Twitch Β· Mattermost
87
+
88
+ ### πŸ”§ 53 Built-in Tools
89
+
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, ... |
98
+
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
103
+
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
109
+
110
+ ---
111
+
112
+ ## πŸ—οΈ Architecture
113
+
114
+ ```
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
127
+ ```
128
+
129
+ ---
130
+
131
+ ## πŸ–₯️ CLI Commands
132
+
133
+ ```bash
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
143
+ ```
144
+
145
+ ---
146
+
147
+ ## βš™οΈ Configuration
148
+
149
+ Agents are defined in `oad.yaml`:
150
+
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
167
+ ```
168
+
169
+ ---
170
+
171
+ ## πŸ₯ Doctor
172
+
173
+ 13 automated checks for agent health:
174
+
175
+ ```bash
176
+ opc doctor
177
+ ```
178
+
179
+ Checks: config validity, model connectivity, channel auth, memory persistence, tool availability, Ollama status, disk space, Node.js version, and more.
180
+
181
+ ---
182
+
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 | ❌ | ❌ |
198
+
199
+ ---
200
+
201
+ ## 🀝 Contributing
202
+
203
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
204
+
205
+ ```bash
206
+ git clone https://github.com/Deepleaper/opc-agent.git
207
+ cd opc-agent
208
+ npm install
209
+ npm run build
210
+ npm run dev
211
+ ```
212
+
213
+ ---
214
+
215
+ ## πŸ“„ License
216
+
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
222
+
223
+ ---
224
+
225
+ <div align="center">
226
+
227
+ **Built by [Deepleaper](https://www.deepleaper.com)** Β· Powering the AI workforce revolution
228
+
229
+ ⭐ Star us if OPC helps you build better AI agents!
230
+
231
+ </div>