camelagi 0.5.36 → 0.5.38
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.
- package/README.md +142 -307
- package/dist/core/version.js +1 -1
- package/dist/telegram/agent-bot.js +37 -16
- package/dist/telegram/agent-bot.js.map +1 -1
- package/dist/telegram/terminal.js +54 -15
- package/dist/telegram/terminal.js.map +1 -1
- package/dist/tui/components/welcome.js +11 -16
- package/dist/tui/components/welcome.js.map +1 -1
- package/dist/tui/tui.js +17 -6
- package/dist/tui/tui.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="assets/logo-bg.png" alt="CamelAGI Logo" width="
|
|
2
|
+
<img src="assets/logo-bg.png" alt="CamelAGI Logo" width="180" />
|
|
3
3
|
</p>
|
|
4
|
-
|
|
5
|
-
<
|
|
4
|
+
|
|
5
|
+
<h1 align="center">CamelAGI</h1>
|
|
6
|
+
|
|
6
7
|
<p align="center">
|
|
7
|
-
<strong>
|
|
8
|
+
<strong>Self-hosted AI agents controlled from Telegram.</strong><br>
|
|
9
|
+
Run Claude Code, create agents, manage tools, and control everything from your phone.
|
|
8
10
|
</p>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
Alternative to OpenClaw, built on Claude Agent SDK.
|
|
14
|
+
</p>
|
|
15
|
+
|
|
9
16
|
<p align="center">
|
|
10
17
|
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="MIT License"></a>
|
|
11
18
|
<a href="https://www.typescriptlang.org"><img src="https://img.shields.io/badge/TypeScript-5.7-blue?logo=typescript" alt="TypeScript"></a>
|
|
@@ -14,37 +21,38 @@
|
|
|
14
21
|
<a href="https://camelagi.net"><img src="https://img.shields.io/badge/Website-camelagi.net-brown" alt="Website"></a>
|
|
15
22
|
</p>
|
|
16
23
|
|
|
17
|
-
<br>
|
|
18
|
-
|
|
19
|
-
CamelAGI is a self-hosted AI assistant that runs on your server and puts you in full control from your phone. One command to install, then manage everything — create agents, switch models, approve tools, monitor usage — all from Telegram, Discord, or your terminal.
|
|
20
|
-
|
|
21
|
-
<p align="center">
|
|
22
|
-
<img src="assets/Claude_Logo.png" alt="Claude Logo" width="200" />
|
|
23
|
-
</p>
|
|
24
24
|
<p align="center">
|
|
25
|
-
|
|
25
|
+
<img src="assets/Claude_Logo.png" alt="Claude Logo" width="120" />
|
|
26
26
|
</p>
|
|
27
27
|
|
|
28
28
|
<p align="center">
|
|
29
|
-
|
|
29
|
+
Powered by Claude Agent SDK — the same runtime behind Claude Code.
|
|
30
30
|
</p>
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Install in 30 seconds
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm i -g camelagi
|
|
38
|
+
camel setup
|
|
39
|
+
camel serve
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Use `/newagent` in Telegram to create your first AI agent.
|
|
43
|
+
|
|
44
|
+
---
|
|
33
45
|
|
|
34
|
-
|
|
35
|
-
- [Features](#features)
|
|
36
|
-
- [Channels](#channels)
|
|
37
|
-
- [Admin Bot Commands](#admin-bot-commands)
|
|
38
|
-
- [Agent Bot Commands](#agent-bot-commands)
|
|
39
|
-
- [CLI Commands](#cli-commands)
|
|
40
|
-
- [Built on Claude Agent SDK](#built-on-claude-agent-sdk)
|
|
41
|
-
- [Claude Agent SDK vs pi-agent](#claude-agent-sdk-vs-pi-agent)
|
|
42
|
-
- [Configuration](#configuration)
|
|
43
|
-
- [Architecture](#architecture)
|
|
44
|
-
- [Documentation](#documentation)
|
|
45
|
-
- [License](#license)
|
|
46
|
+
## Why CamelAGI
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
- Run Claude Code remotely from Telegram
|
|
49
|
+
- Create and manage multiple AI agents
|
|
50
|
+
- Self-hosted with full control
|
|
51
|
+
- Built on Claude Agent SDK
|
|
52
|
+
- Multi-provider support
|
|
53
|
+
- Alternative to OpenClaw
|
|
54
|
+
|
|
55
|
+
---
|
|
48
56
|
|
|
49
57
|
## Quick Start
|
|
50
58
|
|
|
@@ -55,342 +63,169 @@ Powered by <a href="https://platform.claude.com/docs/en/agent-sdk/overview">Clau
|
|
|
55
63
|
| `npm i -g camelagi` | `camel setup` | `camel update` |
|
|
56
64
|
|
|
57
65
|
```bash
|
|
58
|
-
camel setup
|
|
59
|
-
camel serve
|
|
60
|
-
camel chat
|
|
66
|
+
camel setup
|
|
67
|
+
camel serve
|
|
68
|
+
camel chat
|
|
61
69
|
```
|
|
62
70
|
|
|
63
|
-
|
|
71
|
+
---
|
|
64
72
|
|
|
65
|
-
|
|
73
|
+
## Agent Modes
|
|
66
74
|
|
|
67
|
-
|
|
75
|
+
### 1. LLM Agent (API-based)
|
|
68
76
|
|
|
69
|
-
|
|
70
|
-
2. Send `/newagent`
|
|
71
|
-
3. Pick a name → select **LLM (API-based)** → choose a model → paste a bot token
|
|
72
|
-
4. Message your new bot — it runs tools, reads files, remembers context
|
|
77
|
+
Uses your API key (Anthropic, OpenAI, OpenRouter, etc.) to run an AI agent through CamelAGI runtime.
|
|
73
78
|
|
|
74
|
-
|
|
79
|
+
1. Open admin bot in Telegram
|
|
80
|
+
2. Send `/newagent`
|
|
81
|
+
3. Pick name → choose model → paste bot token
|
|
82
|
+
4. Start chatting
|
|
75
83
|
|
|
76
|
-
|
|
84
|
+
### 2. Claude Code Agent (local CLI)
|
|
77
85
|
|
|
78
|
-
|
|
79
|
-
>
|
|
80
|
-
> ```bash
|
|
81
|
-
> npm i -g @anthropic-ai/claude-code
|
|
82
|
-
> claude login
|
|
83
|
-
> ```
|
|
86
|
+
Runs Claude Code directly on your machine, remote-controlled from Telegram.
|
|
84
87
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
```bash
|
|
89
|
+
npm i -g @anthropic-ai/claude-code
|
|
90
|
+
claude login
|
|
91
|
+
```
|
|
89
92
|
|
|
90
|
-
|
|
93
|
+
Then:
|
|
91
94
|
|
|
92
|
-
|
|
95
|
+
1. Open admin bot
|
|
96
|
+
2. Send `/newagent`
|
|
97
|
+
3. Select Claude Code mode
|
|
98
|
+
4. Paste bot token
|
|
93
99
|
|
|
94
|
-
|
|
100
|
+
---
|
|
95
101
|
|
|
96
102
|
## Features
|
|
97
103
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
|
101
|
-
|
|
102
|
-
|
|
|
103
|
-
|
|
|
104
|
-
|
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
|
108
|
-
|
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
| 🔐 | **Secure Pairing** | OTP-based user verification. No hardcoded IDs — pairing code + 5-digit OTP from Telegram |
|
|
116
|
-
| 🔁 | **Multi-Provider** | Anthropic, OpenAI, OpenRouter, Ollama — any OpenAI-compatible endpoint. Zero vendor lock-in |
|
|
117
|
-
| 🛡️ | **Tool Approvals** | Human-in-the-loop safety. Approve dangerous operations from Telegram with inline buttons |
|
|
118
|
-
| 🪝 | **Skills & Hooks** | Teach agents skills via Markdown. Run shell/JS hooks before and after tool calls |
|
|
119
|
-
| 🔄 | **Auto Compaction** | Summarizes old turns at 80% capacity. Flushes facts to memory first — nothing is lost |
|
|
120
|
-
| ⚙️ | **Same Engine** | All channels run the same agent loop, same tools, same memory. Switch freely between them |
|
|
121
|
-
|
|
122
|
-
<br>
|
|
104
|
+
| Feature | Description |
|
|
105
|
+
|---|---|
|
|
106
|
+
| Claude Code via Telegram | Run Claude Code from your phone |
|
|
107
|
+
| Telegram Admin Bot | Create and manage agents |
|
|
108
|
+
| Telegram Agent Bots | One bot per agent |
|
|
109
|
+
| Discord Bots | Mention-based Discord support |
|
|
110
|
+
| Terminal UI | Full TUI with streaming |
|
|
111
|
+
| Agent Memory | MEMORY.md + daily journals |
|
|
112
|
+
| Voice Transcription | Voice to text support |
|
|
113
|
+
| MCP Servers | External tool servers |
|
|
114
|
+
| Extended Thinking | Low / medium / high |
|
|
115
|
+
| Cron Jobs | Scheduled AI tasks |
|
|
116
|
+
| Usage Tracking | Cost + token monitoring |
|
|
117
|
+
| Agent Cloning | Duplicate agent config |
|
|
118
|
+
| Tool Approvals | Human approval flow |
|
|
119
|
+
|
|
120
|
+
---
|
|
123
121
|
|
|
124
122
|
## Channels
|
|
125
123
|
|
|
126
|
-
CamelAGI
|
|
127
|
-
|
|
128
|
-
### Claude Code via Telegram
|
|
129
|
-
|
|
130
|
-
Run Claude Code on your local machine, controlled from your phone. Type `/claudecode` in any agent bot to start — or create an agent with `mode: claude-code` for always-on mode.
|
|
131
|
-
|
|
132
|
-
- **Directory browser** — navigate your filesystem from Telegram inline buttons
|
|
133
|
-
- **Session management** — start, stop, resume previous sessions
|
|
134
|
-
- **Model switching** — switch between Sonnet, Opus, Haiku on the fly
|
|
135
|
-
- **Real-time streaming** — responses stream back to Telegram as Claude Code generates them
|
|
136
|
-
- **Persistent sessions** — conversations carry across messages via `--resume`
|
|
137
|
-
|
|
138
|
-
Requires Claude Code installed (`npm i -g @anthropic-ai/claude-code`) and logged in (`claude login`).
|
|
139
|
-
|
|
140
|
-
### Telegram
|
|
141
|
-
|
|
142
|
-
Two bot types work together:
|
|
143
|
-
|
|
144
|
-
- **Admin Bot** — A non-AI command bot (zero tokens burned). Create agents, manage config, approve users, monitor sessions, configure MCP servers, set up voice — all from Telegram. Think [@BotFather](https://t.me/BotFather), but for your entire AI infrastructure.
|
|
145
|
-
- **Agent Bots** — Each agent gets its own Telegram bot. Message it like any contact — it runs tools, reads files, remembers context, and supports voice messages.
|
|
124
|
+
CamelAGI works across:
|
|
146
125
|
|
|
147
|
-
|
|
126
|
+
- Telegram
|
|
127
|
+
- Discord
|
|
128
|
+
- Terminal
|
|
129
|
+
- Claude Code via Telegram
|
|
148
130
|
|
|
149
|
-
|
|
150
|
-
- **Mention-only mode** — responds only to @mentions in guild channels, all messages in DMs
|
|
151
|
-
- **Role filtering** — optional allowlist of Discord roles
|
|
152
|
-
- **Channel restrictions** — optional allowlist of channels
|
|
131
|
+
All channels share the same runtime, tools, and memory.
|
|
153
132
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
`camel chat` gives you a full TUI with streaming, slash commands, keyboard shortcuts, model switching, session management, and one-shot mode (`camel "your question"`).
|
|
157
|
-
|
|
158
|
-
<br>
|
|
133
|
+
---
|
|
159
134
|
|
|
160
135
|
## Admin Bot Commands
|
|
161
136
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
|
165
|
-
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
| | `/soul` | View/edit agent personality |
|
|
174
|
-
| **Tools** | `/mcp` | Manage MCP servers (add/list/remove) |
|
|
175
|
-
| | `/voice` | Configure voice transcription provider |
|
|
176
|
-
| **Monitor** | `/status` | System health & stats |
|
|
177
|
-
| | `/sessions` | List & manage sessions |
|
|
178
|
-
| | `/usage` | Per-agent usage & cost summary |
|
|
179
|
-
| | `/restart` | Restart agent bots |
|
|
180
|
-
| **Security** | `/pairing` | Manage access requests |
|
|
181
|
-
| **Utility** | `/help` | List all commands |
|
|
182
|
-
| | `/cancel` | Cancel active wizard |
|
|
183
|
-
|
|
184
|
-
<br>
|
|
137
|
+
| Command | Description |
|
|
138
|
+
|---|---|
|
|
139
|
+
| `/setup` | Configure provider |
|
|
140
|
+
| `/newagent` | Create agent |
|
|
141
|
+
| `/agents` | List agents |
|
|
142
|
+
| `/agent` | Edit config |
|
|
143
|
+
| `/mcp` | Manage MCP servers |
|
|
144
|
+
| `/usage` | Usage summary |
|
|
145
|
+
| `/status` | System health |
|
|
146
|
+
|
|
147
|
+
---
|
|
185
148
|
|
|
186
149
|
## Agent Bot Commands
|
|
187
150
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
|
191
|
-
|
|
192
|
-
|
|
|
193
|
-
|
|
|
194
|
-
|
|
|
195
|
-
|
|
|
196
|
-
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
| **Session** | `/session` | Show or switch session |
|
|
200
|
-
| | `/status` | Show model, message count, token usage |
|
|
201
|
-
| | `/usage` | Token usage for this session |
|
|
202
|
-
| **Tools** | `/skills` | List active skills |
|
|
203
|
-
| | `/mcp` | Manage MCP tool servers |
|
|
204
|
-
| | `/voice` | Voice transcription info |
|
|
205
|
-
| **Utility** | `/help` | List commands and current config |
|
|
206
|
-
|
|
207
|
-
<br>
|
|
151
|
+
| Command | Description |
|
|
152
|
+
|---|---|
|
|
153
|
+
| `/clear` | Clear chat |
|
|
154
|
+
| `/compact` | Compact history |
|
|
155
|
+
| `/brief` | Toggle short replies |
|
|
156
|
+
| `/model` | Switch model |
|
|
157
|
+
| `/think` | Thinking depth |
|
|
158
|
+
| `/session` | Session info |
|
|
159
|
+
| `/usage` | Token usage |
|
|
160
|
+
|
|
161
|
+
---
|
|
208
162
|
|
|
209
163
|
## CLI Commands
|
|
210
164
|
|
|
165
|
+
```bash
|
|
166
|
+
camel <command>
|
|
211
167
|
```
|
|
212
|
-
camel <command> [options]
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
| Category | Command | Description |
|
|
216
|
-
|----------|---------|-------------|
|
|
217
|
-
| **Getting Started** | `bootstrap` | First-time setup wizard |
|
|
218
|
-
| | `setup` | Interactive setup (re-run anytime) |
|
|
219
|
-
| | `chat` | Interactive terminal UI |
|
|
220
|
-
| **Server** | `serve` | Start the gateway server |
|
|
221
|
-
| | `watch` | Monitor a running gateway in real-time |
|
|
222
|
-
| | `connect` | Connect TUI to a remote gateway |
|
|
223
|
-
| | `tailscale` | Tailscale remote access setup |
|
|
224
|
-
| | `daemon` | Manage launchd daemon (install/uninstall/status) |
|
|
225
|
-
| | `logs` | Tail server request log |
|
|
226
|
-
| | `status` | System health overview |
|
|
227
|
-
| **Agents & Sessions** | `agents` | List configured agents |
|
|
228
|
-
| | `soul` | View/edit agent SOUL.md in $EDITOR |
|
|
229
|
-
| | `sessions` | List saved sessions |
|
|
230
|
-
| | `pairing` | List and approve/deny pending requests |
|
|
231
|
-
| **Configuration** | `config` | View/edit config (get/set/list) |
|
|
232
|
-
| | `cron` | Manage cron jobs (list/add/rm/run) |
|
|
233
|
-
| **Maintenance** | `doctor` | Run health checks |
|
|
234
|
-
| | `reset` | Delete all config, sessions, agents |
|
|
235
|
-
| | `install` | Install to ~/.camelagi/versions/ and add to PATH |
|
|
236
|
-
| | `uninstall` | Remove CamelAGI completely |
|
|
237
|
-
| | `update` | Update to the latest version |
|
|
238
|
-
|
|
239
|
-
One-shot mode: `camel "your question"` — spins up an ephemeral gateway and answers inline.
|
|
240
|
-
|
|
241
|
-
Remote one-shot: `CAMELAGI_REMOTE_URL=http://server:18305 camel "your question"` — sends to remote gateway.
|
|
242
|
-
|
|
243
|
-
<br>
|
|
244
|
-
|
|
245
|
-
## Built on Claude Agent SDK
|
|
246
|
-
|
|
247
|
-
<p align="center">
|
|
248
|
-
<img src="assets/Claude_Logo.png" alt="Claude Logo" width="200" />
|
|
249
|
-
</p>
|
|
250
|
-
|
|
251
|
-
Powered by [Claude Agent SDK](https://platform.claude.com/docs/en/agent-sdk/overview) — the same runtime behind Claude Code.
|
|
252
|
-
|
|
253
|
-
> **10 tools** · **Two-tier memory** · **Extended thinking** · **Subagents** · **Context compaction** · **Multi-provider**
|
|
254
|
-
|
|
255
|
-
- **Agent Capabilities** — <span style="font-size: 0.9em; color: #d97706;">Powered by Claude Agent SDK</span>
|
|
256
|
-
- 10 built-in tools (shell, files, web, memory, cron)
|
|
257
|
-
- Extended thinking with chain-of-thought
|
|
258
|
-
- Subagent spawning for parallel work
|
|
259
|
-
- Prompt caching for efficiency
|
|
260
|
-
- **Memory System** — <span style="font-size: 0.9em; color: #d97706;">Powered by Claude Agent SDK</span>
|
|
261
|
-
- Curated MEMORY.md per agent
|
|
262
|
-
- Daily auto-journaling with timestamps
|
|
263
|
-
- Recency-boosted search (today 1.5x)
|
|
264
|
-
- Auto memory flush on compaction
|
|
265
|
-
|
|
266
|
-
Each agent gets isolated memory & personality:
|
|
267
168
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
│ ├── MEMORY.md ← Researcher's curated knowledge
|
|
279
|
-
│ └── memory/
|
|
280
|
-
│ └── 2026-03-14.md
|
|
281
|
-
└── config.yaml
|
|
282
|
-
```
|
|
169
|
+
| Command | Description |
|
|
170
|
+
|---|---|
|
|
171
|
+
| `setup` | Setup wizard |
|
|
172
|
+
| `serve` | Start server |
|
|
173
|
+
| `chat` | Terminal UI |
|
|
174
|
+
| `agents` | List agents |
|
|
175
|
+
| `config` | Edit config |
|
|
176
|
+
| `cron` | Manage cron jobs |
|
|
177
|
+
| `doctor` | Health checks |
|
|
178
|
+
| `update` | Update CamelAGI |
|
|
283
179
|
|
|
284
|
-
|
|
180
|
+
---
|
|
285
181
|
|
|
286
|
-
|
|
182
|
+
## Why CamelAGI vs OpenClaw
|
|
287
183
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
CamelAGI uses **Claude Agent SDK**. OpenClaw uses **pi-agent-core**. Here's why that matters:
|
|
291
|
-
|
|
292
|
-
| | **Claude Agent SDK** (CamelAGI) | **pi-agent-core** (OpenClaw) |
|
|
184
|
+
| | CamelAGI | OpenClaw |
|
|
293
185
|
|---|---|---|
|
|
294
|
-
|
|
|
295
|
-
|
|
|
296
|
-
|
|
|
297
|
-
|
|
|
298
|
-
|
|
|
299
|
-
| **Memory** | Agent-scoped two-tier memory with recency boost | Vector DB (LanceDB) |
|
|
300
|
-
| **Streaming** | Native SSE streaming | Custom streaming |
|
|
301
|
-
| **Upgrades** | `npm update` — get Anthropic's latest improvements | Maintain custom abstractions |
|
|
186
|
+
| Runtime | Claude Agent SDK | pi-agent-core |
|
|
187
|
+
| Telegram Control | Native | Limited |
|
|
188
|
+
| Claude Code | Built-in | No |
|
|
189
|
+
| Memory | Two-tier markdown | Vector DB |
|
|
190
|
+
| Updates | Anthropic runtime improvements | Manual abstraction updates |
|
|
302
191
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
<br>
|
|
192
|
+
---
|
|
306
193
|
|
|
307
194
|
## Configuration
|
|
308
195
|
|
|
309
|
-
CamelAGI uses a single YAML config file at `~/.camelagi/config.yaml`, validated with Zod.
|
|
310
|
-
|
|
311
196
|
```yaml
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
anthropicApiKey: sk-ant-...
|
|
197
|
+
provider: anthropic
|
|
198
|
+
model: claude-sonnet-4
|
|
199
|
+
telegramBotToken: "123456:ABC"
|
|
316
200
|
|
|
317
|
-
# Telegram
|
|
318
|
-
telegramBotToken: "123456:ABC..."
|
|
319
|
-
allowedTelegramUsers: [123456789]
|
|
320
|
-
|
|
321
|
-
# Agents
|
|
322
201
|
agents:
|
|
323
202
|
coder:
|
|
324
|
-
model: claude-sonnet-4
|
|
203
|
+
model: claude-sonnet-4
|
|
325
204
|
thinkingLevel: medium
|
|
326
|
-
briefMode: true
|
|
327
|
-
telegramBotToken: "654321:XYZ..."
|
|
328
|
-
mcp:
|
|
329
|
-
servers:
|
|
330
|
-
github:
|
|
331
|
-
type: stdio
|
|
332
|
-
command: npx
|
|
333
|
-
args: ["-y", "@modelcontextprotocol/server-github"]
|
|
334
|
-
|
|
335
|
-
# MCP Servers (global)
|
|
336
|
-
mcp:
|
|
337
|
-
servers:
|
|
338
|
-
supabase:
|
|
339
|
-
type: http
|
|
340
|
-
url: https://mcp.supabase.com/...
|
|
341
205
|
```
|
|
342
206
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
See [featuresDocs/configuration.md](featuresDocs/configuration.md) for the full configuration reference.
|
|
346
|
-
|
|
347
|
-
<br>
|
|
207
|
+
---
|
|
348
208
|
|
|
349
209
|
## Architecture
|
|
350
210
|
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
├── agents/ ← Per-agent isolated directories
|
|
359
|
-
│ └── <agent-id>/
|
|
360
|
-
│ ├── SOUL.md
|
|
361
|
-
│ ├── TOOLS.md
|
|
362
|
-
│ ├── MEMORY.md
|
|
363
|
-
│ └── memory/
|
|
364
|
-
├── sessions/ ← JSONL conversation history
|
|
365
|
-
├── skills/ ← Markdown skill files
|
|
366
|
-
└── usage/ ← Token usage data
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
**Request flow:**
|
|
370
|
-
|
|
371
|
-
```
|
|
372
|
-
Inbound message (TUI / REST / WS / Telegram / Discord)
|
|
373
|
-
→ Queue check (per-session, prevents concurrent runs)
|
|
374
|
-
→ Lane acquisition (concurrency limits: main/cron/subagent)
|
|
375
|
-
→ History loading + compaction (summarize at 80% of maxTokens)
|
|
376
|
-
→ Agent execution with retry (classify error → backoff or compact → retry)
|
|
377
|
-
→ Message persistence (JSONL sessions)
|
|
378
|
-
→ Cleanup (release lane, drain queued messages)
|
|
211
|
+
```text
|
|
212
|
+
Inbound message
|
|
213
|
+
→ Queue
|
|
214
|
+
→ Context load
|
|
215
|
+
→ Agent execution
|
|
216
|
+
→ Tool use
|
|
217
|
+
→ Save session
|
|
379
218
|
```
|
|
380
219
|
|
|
381
|
-
|
|
220
|
+
---
|
|
382
221
|
|
|
383
222
|
## Documentation
|
|
384
223
|
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
| [GUIDE.md](GUIDE.md) | User guide with examples |
|
|
389
|
-
| [featuresDocs/](featuresDocs/) | Deep-dive feature docs |
|
|
390
|
-
|
|
391
|
-
Feature docs cover: [agent system](featuresDocs/agent-system.md), [memory](featuresDocs/memory-system.md), [Telegram bots](featuresDocs/telegram-bots.md), [gateway server](featuresDocs/gateway-server.md), [runtime](featuresDocs/runtime.md), [tools](featuresDocs/tools.md), [extensions](featuresDocs/extensions.md), [configuration](featuresDocs/configuration.md), [CLI](featuresDocs/cli-commands.md), [TUI](featuresDocs/tui.md), [pairing](featuresDocs/pairing-otp.md).
|
|
224
|
+
- DOCS.md
|
|
225
|
+
- GUIDE.md
|
|
226
|
+
- featuresDocs/
|
|
392
227
|
|
|
393
|
-
|
|
228
|
+
---
|
|
394
229
|
|
|
395
230
|
## License
|
|
396
231
|
|
package/dist/core/version.js
CHANGED