aiden-runtime 4.6.1 → 4.8.0
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 +499 -265
- package/dist/cli/v4/aidenCLI.js +44 -5
- package/dist/cli/v4/callbacks.js +52 -31
- package/dist/cli/v4/chatSession.js +46 -1
- package/dist/cli/v4/commands/help.js +22 -11
- package/dist/cli/v4/commands/runs.js +42 -24
- package/dist/cli/v4/commands/skills.js +15 -17
- package/dist/cli/v4/commands/usage.js +17 -5
- package/dist/cli/v4/daemonAgentBuilder.js +13 -4
- package/dist/cli/v4/design/tokens.js +265 -0
- package/dist/cli/v4/display/framedPanel.js +116 -0
- package/dist/cli/v4/display/toolTrail.js +2 -2
- package/dist/cli/v4/display.js +446 -164
- package/dist/cli/v4/onboarding/disclaimer.js +42 -10
- package/dist/cli/v4/onboarding/loading.js +24 -1
- package/dist/cli/v4/onboarding/successScreen.js +17 -8
- package/dist/cli/v4/replyRenderer.js +74 -58
- package/dist/cli/v4/setupWizard.js +19 -2
- package/dist/cli/v4/skinEngine.js +13 -0
- package/dist/cli/v4/table.js +65 -8
- package/dist/core/v4/aidenAgent.js +42 -14
- package/dist/core/v4/auxiliaryClient.js +46 -13
- package/dist/core/v4/daemon/dispatcher/realAgentRunner.js +13 -8
- package/dist/core/v4/promptBuilder.js +45 -0
- package/dist/core/v4/sandboxFs.js +1 -1
- package/dist/core/v4/subagent/childBuilder.js +13 -4
- package/dist/core/v4/subagent/spawnSubAgent.js +7 -1
- package/dist/core/v4/ui/banner.js +16 -16
- package/dist/core/version.js +1 -1
- package/dist/moat/approvalEngine.js +14 -0
- package/dist/moat/honestyEnforcement.js +143 -241
- package/dist/tools/v4/index.js +54 -0
- package/dist/tools/v4/subagent/spawnSubAgentTool.js +23 -0
- package/package.json +10 -4
package/README.md
CHANGED
|
@@ -1,265 +1,499 @@
|
|
|
1
|
-
<img width="1672" height="941" alt="AIDEN BOOTUP LOGO" src="https://github.com/user-attachments/assets/c0809009-73e2-4d58-9292-12fbd0324952" />
|
|
2
|
-
|
|
3
|
-
```
|
|
4
|
-
█████╗ ██╗██████╗ ███████╗███╗ ██╗
|
|
5
|
-
██╔══██╗██║██╔══██╗██╔════╝████╗ ██║
|
|
6
|
-
███████║██║██║ ██║█████╗ ██╔██╗ ██║
|
|
7
|
-
██╔══██║██║██║ ██║██╔══╝ ██║╚██╗██║
|
|
8
|
-
██║ ██║██║██████╔╝███████╗██║ ╚████║
|
|
9
|
-
╚═╝ ╚═╝╚═╝╚═════╝ ╚══════╝╚═╝ ╚═══╝
|
|
10
|
-
|
|
11
|
-
Autonomous AI Engine — local-first, Windows-native, yours to own
|
|
12
|
-
|
|
13
|
-
74 skills · 60 tools · 19 providers · 9 channels · AGPL-3.0
|
|
14
|
-
|
|
15
|
-
Windows · Linux · WSL · macOS (API Mode)
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
##
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
aiden
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
**
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
|
178
|
-
|
|
179
|
-
|
|
|
180
|
-
| `
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
-
|
|
254
|
-
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
1
|
+
<img width="1672" height="941" alt="AIDEN BOOTUP LOGO" src="https://github.com/user-attachments/assets/c0809009-73e2-4d58-9292-12fbd0324952" />
|
|
2
|
+
|
|
3
|
+
```
|
|
4
|
+
█████╗ ██╗██████╗ ███████╗███╗ ██╗
|
|
5
|
+
██╔══██╗██║██╔══██╗██╔════╝████╗ ██║
|
|
6
|
+
███████║██║██║ ██║█████╗ ██╔██╗ ██║
|
|
7
|
+
██╔══██║██║██║ ██║██╔══╝ ██║╚██╗██║
|
|
8
|
+
██║ ██║██║██████╔╝███████╗██║ ╚████║
|
|
9
|
+
╚═╝ ╚═╝╚═╝╚═════╝ ╚══════╝╚═╝ ╚═══╝
|
|
10
|
+
|
|
11
|
+
Autonomous AI Engine — local-first, Windows-native, yours to own
|
|
12
|
+
|
|
13
|
+
74 skills · 60 tools · 19 providers · 9 channels · AGPL-3.0
|
|
14
|
+
|
|
15
|
+
Windows · Linux · WSL · macOS (API Mode)
|
|
16
|
+
```
|
|
17
|
+
<div align="center">
|
|
18
|
+
|
|
19
|
+
# Aiden
|
|
20
|
+
|
|
21
|
+
**Autonomous AI Engine — local-first, Windows-native, yours to own**
|
|
22
|
+
|
|
23
|
+
*74 skills · 60 tools · 19 providers · 9 channels · AGPL-3.0*
|
|
24
|
+
|
|
25
|
+
<br>
|
|
26
|
+
|
|
27
|
+
<!-- Status row -->
|
|
28
|
+
[](https://www.npmjs.com/package/aiden-runtime)
|
|
29
|
+
[](https://www.npmjs.com/package/aiden-runtime)
|
|
30
|
+
[](LICENSE)
|
|
31
|
+
[](https://github.com/taracodlabs/aiden/stargazers)
|
|
32
|
+
[](https://github.com/taracodlabs/aiden/network/members)
|
|
33
|
+
[](https://github.com/taracodlabs/aiden/issues)
|
|
34
|
+
|
|
35
|
+
<br>
|
|
36
|
+
|
|
37
|
+
<!-- Community row -->
|
|
38
|
+
[](https://discord.gg/CU5wshJW4F)
|
|
39
|
+
[](https://aiden.taracod.com)
|
|
40
|
+
[](https://amzn.to/49ceO8l)
|
|
41
|
+
[](mailto:contact@taracod.com)
|
|
42
|
+
[](https://razorpay.me/@whitelotus9625)
|
|
43
|
+
|
|
44
|
+
<br>
|
|
45
|
+
|
|
46
|
+
<!-- Language & runtime -->
|
|
47
|
+

|
|
48
|
+

|
|
49
|
+

|
|
50
|
+

|
|
51
|
+

|
|
52
|
+

|
|
53
|
+
|
|
54
|
+
<!-- Platforms -->
|
|
55
|
+

|
|
56
|
+

|
|
57
|
+

|
|
58
|
+

|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
<!-- Core infrastructure -->
|
|
62
|
+

|
|
63
|
+

|
|
64
|
+

|
|
65
|
+

|
|
66
|
+

|
|
67
|
+

|
|
68
|
+
|
|
69
|
+
<!-- Streaming + runtime features -->
|
|
70
|
+

|
|
71
|
+

|
|
72
|
+

|
|
73
|
+

|
|
74
|
+

|
|
75
|
+

|
|
76
|
+
|
|
77
|
+
<!-- Providers (sample) -->
|
|
78
|
+

|
|
79
|
+

|
|
80
|
+

|
|
81
|
+

|
|
82
|
+

|
|
83
|
+

|
|
84
|
+
|
|
85
|
+
<!-- Channels -->
|
|
86
|
+

|
|
87
|
+

|
|
88
|
+

|
|
89
|
+

|
|
90
|
+

|
|
91
|
+

|
|
92
|
+
|
|
93
|
+
<!-- Quality + identity -->
|
|
94
|
+

|
|
95
|
+

|
|
96
|
+

|
|
97
|
+

|
|
98
|
+
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<br>
|
|
102
|
+
|
|
103
|
+
<img width="929" height="673" alt="image" src="https://github.com/user-attachments/assets/78224b1f-5517-4865-9142-48dd0a68fb46" />
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
> A semi-autonomous AI agent that runs on your machine. Touches your files, browser, and shell. Remembers what matters. Built solo. Open source. Still rough in spots.
|
|
109
|
+
|
|
110
|
+
<br>
|
|
111
|
+
|
|
112
|
+
## Try it in 60 seconds
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
npm install -g aiden-runtime
|
|
116
|
+
aiden
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
That's it. Pick a provider (Groq is free + fastest), paste your key, and start chatting.
|
|
120
|
+
|
|
121
|
+
**Want autonomous triggers?**
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
export AIDEN_DAEMON=1 # PowerShell: $env:AIDEN_DAEMON = "1"
|
|
125
|
+
aiden trigger add file --path ~/Documents/inbox --label "watch-inbox" --include "*.txt"
|
|
126
|
+
aiden # boots the REPL + dispatcher
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Drop a file in `~/Documents/inbox/anything.txt` and Aiden acts on it. The agent turn is visible via `aiden runs list`.
|
|
130
|
+
|
|
131
|
+
<br>
|
|
132
|
+
|
|
133
|
+

|
|
134
|
+
|
|
135
|
+
<br>
|
|
136
|
+
|
|
137
|
+
## What's new in v4.6
|
|
138
|
+
|
|
139
|
+
**Aiden now spawns workers and learns from itself.**
|
|
140
|
+
|
|
141
|
+
- **Sub-agents.** `spawn_sub_agent` runs a focused child with an isolated context + intersected toolset; `subagent_fanout` runs N children in parallel (ensemble or partition) with merge strategies (`all` / `vote` / `pick-best` / `combine`) and provider rotation across configured fallback slots.
|
|
142
|
+
- **Operator kill-switch.** `/spawn-pause on|off|status` blocks new sub-agent spawning while in-flight children continue. Marker file at `~/.aiden/spawn.paused` so the state survives restart and is shared across REPL, daemon, and MCP runtimes. Optional reason field captured in the typed `SUBAGENT_SPAWN_PAUSED` error envelope.
|
|
143
|
+
- **Self-improvement loop foundation.** TCE classifications + recoveries persist to two new SQLite tables (`failure_signatures`, `recovery_reports`); `/recovery list|show|clear` surfaces recurring failure patterns across sessions.
|
|
144
|
+
- **REPL parent-run lineage.** Each REPL turn writes its own `runs` row; sub-agent children link back via `spawned_from_run_id`. `aiden runs list` hides children by default and shows a `(N children, M OK)` badge per parent; `--include-children` flips to flat view.
|
|
145
|
+
- **PlannerGuard opt-in.** The keyword-based per-turn tool narrower is **OFF by default** in v4.6 (modern models pick well from the full catalog). Enable via `/planner-guard on` or `AIDEN_PLANNER_GUARD=1` for smaller local models.
|
|
146
|
+
- **v4.6.1 onboarding redesign.** Fresh disclaimer screen, loading sequence, rich provider picker with live `/models` fetch, 3-step connection probe, success screen, and `/walkthrough` guided tour. Phase 2 also fixed an MCP-mode `subagent_fanout` regression that had silently broken in the v4.5 refactor.
|
|
147
|
+
|
|
148
|
+
<br>
|
|
149
|
+
|
|
150
|
+
## What's new in v4.5
|
|
151
|
+
|
|
152
|
+
**Aiden now wakes up by itself.**
|
|
153
|
+
|
|
154
|
+
- **Persistent daemon mode (opt-in).** `AIDEN_DAEMON=1` boots a background service with a SQLite-backed trigger bus. File watchers, webhook endpoints, IMAP polling, and cron schedules all feed the same durable queue.
|
|
155
|
+
- **Autonomous trigger dispatch.** When a trigger fires, a real `AidenAgent` turn runs end-to-end — same tools, same sandbox, same recovery pipeline as your interactive REPL. Surface the chain with `aiden runs show <id>`.
|
|
156
|
+
- **Execution sandbox with risk tiers.** Filesystem allowlist + Docker session backend + dry-run preflight. Default on; flip live with `/sandbox on|off`.
|
|
157
|
+
- **State-aware browser depth.** URL + DOM + iframe-tree capture before/after every browser tool call. Stale-ref auto-retry. Surfaces login / 2FA / captcha / consent blockers as structured cards.
|
|
158
|
+
- **Continuous error recovery (TCE).** 16 failure categories classified per tool call. Smart retry with cooldown. Dead-letter for permanent failures. Recovery report enriches the REPL's capability card.
|
|
159
|
+
- **Live-flip slash commands.** `/sandbox`, `/tce`, `/browser-depth`, `/daemon status`, `/suggestions`, `/update` — toggle every subsystem without restart. Choices persist to `config.yaml`.
|
|
160
|
+
- **Update notification + `/update` CLI.** Boot prompt when a newer version is on npm. Skip-this-version persistence. Install-method detection (npm-global / npx / standalone).
|
|
161
|
+
|
|
162
|
+
Full v4.5 internals: [`docs/v4.5/`](docs/v4.5/) (overview, triggers, architecture, daemon on Linux/macOS/Windows, troubleshooting).
|
|
163
|
+
|
|
164
|
+
<br>
|
|
165
|
+
|
|
166
|
+
## Core capabilities
|
|
167
|
+
|
|
168
|
+
| Category | What Aiden does |
|
|
169
|
+
|---|---|
|
|
170
|
+
| **Inference & providers** | 19 providers: Anthropic, OpenAI, Groq, Gemini, OpenRouter, Together, NVIDIA NIM, DeepSeek, Mistral, Z.ai, Kimi, MiniMax, Hugging Face, Ollama (fully offline), Nous Portal, custom OpenAI-compatible endpoints. OAuth subscription routing for Claude Pro and ChatGPT Plus. |
|
|
171
|
+
| **60 built-in tools** | Web search & fetch, deep research, YouTube search, Playwright browser automation (10 tools), file ops, process control, shell exec, code execution, system info, screenshot, clipboard, app launch, media keys, MCP bridge, memory ops, session list/search/summary/recall, skill view/list/manage, `aiden_self_update`. |
|
|
172
|
+
| **74 bundled skills** | Composable workflows each with a `SKILL.md` prompt, optional helper scripts, and tool requirements. GitHub PR/issue workflows, NSE / Upstox / Zerodha trading, Censys / Shodan / VirusTotal lookups, Windows Defender / Task Scheduler, Docker management, YouTube content tools, and more. |
|
|
173
|
+
| **Self-promoting memory** | `USER.md` + `SOUL.md` identity, plus `MEMORY.md` split between durable facts (compression-protected) and recent-session distillations. Each session ends with a structured summary that graduates durable facts into the protected section. Semantic recall over past sessions via `recall_session`. |
|
|
174
|
+
| **Voice** | Edge TTS / Windows SAPI text-to-speech, speech-to-text helpers. |
|
|
175
|
+
| **Channel adapters** | Discord, Slack, Telegram, WhatsApp, Email (IMAP+SMTP), Webhook, Twilio SMS, iMessage (macOS), Signal — any channel triggers the same agent loop. |
|
|
176
|
+
| **Computer use** | Screenshot capture, screen-state vision loop, browser automation. Mouse/keyboard automation partial. |
|
|
177
|
+
| **v4.5 daemon mode (opt-in)** | File watcher / webhook / email IMAP / scheduled triggers route through a durable trigger bus consumed by the Phase 5a dispatcher. Triggers fire → real agent runs → tool calls execute → `run_events` captures the chain. **Off by default.** |
|
|
178
|
+
| **Plugins** | Three bundled plugins: Chrome DevTools Protocol bridge, Claude Pro OAuth, ChatGPT Plus OAuth. Permission-state machine (pending-grant / loaded / suspended). |
|
|
179
|
+
| **MCP** | Model Context Protocol bridge — stdio + HTTP transports, schema discovery, tool dispatch. |
|
|
180
|
+
| **Security moat** | Tiered approval engine (`safe` / `caution` / `dangerous`), dangerous-command pattern classifier, honesty enforcement (post-loop scan rewrites false claims), memory guard, planner-guard tool narrowing, SSRF-safe URL fetcher, secret/PII pre-write scanner, skill-teacher (auto-create skills from successful flows). |
|
|
181
|
+
|
|
182
|
+
<br>
|
|
183
|
+
|
|
184
|
+
## Architecture
|
|
185
|
+
|
|
186
|
+
Aiden is a local-first agent loop: provider adapters feed a 90-turn ceiling, every tool call passes through verification + failure classification + recovery, and tool results stream back as structured envelopes the model can reason over. v4.5 added a SQLite daemon foundation alongside the REPL — file watchers and webhook endpoints write to a durable trigger bus, a single-worker dispatcher claims events, and each trigger fires a fresh agent turn keyed by a stable session id. Sandboxed execution (filesystem allow/deny + Docker session backend), state-aware browser observation, and continuous error recovery apply to daemon-fired turns identically to REPL turns.
|
|
187
|
+
|
|
188
|
+
Detailed diagrams + module map in [`docs/v4.5/architecture.md`](docs/v4.5/architecture.md).
|
|
189
|
+
|
|
190
|
+
<br>
|
|
191
|
+
|
|
192
|
+
## Install + first run
|
|
193
|
+
|
|
194
|
+
### Linux / WSL / macOS (one-line)
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
npm install -g aiden-runtime
|
|
198
|
+
aiden # interactive setup wizard fires on first run
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Windows (one-line)
|
|
202
|
+
|
|
203
|
+
```powershell
|
|
204
|
+
npm install -g aiden-runtime
|
|
205
|
+
aiden
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
If you hit native-build errors on Windows, install the [windows-build-tools](https://github.com/felixrieseberg/windows-build-tools) prerequisite first.
|
|
209
|
+
|
|
210
|
+
### Try without installing
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
npx aiden-runtime
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### After pulling updates
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
npm install -g aiden-runtime@latest
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Or, from inside a running session, the slash command:
|
|
223
|
+
/update install
|
|
224
|
+
|
|
225
|
+
(Aiden also prompts you on boot when a newer version is on npm — see `/update auto off` to silence.)
|
|
226
|
+
|
|
227
|
+
### Uninstall
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
npm uninstall -g aiden-runtime
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
To also wipe your local Aiden home (config, sessions, memory, skills):
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
# Linux / macOS
|
|
237
|
+
rm -rf ~/.aiden
|
|
238
|
+
|
|
239
|
+
# Windows (PowerShell)
|
|
240
|
+
Remove-Item -Recurse -Force $env:LOCALAPPDATA\aiden
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
<br>
|
|
244
|
+
|
|
245
|
+
<img width="938" height="1049" alt="preview (3)" src="https://github.com/user-attachments/assets/4e32ae38-74ad-433d-b986-0a15bc2dffec" />
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
## Recommended terminal setup
|
|
249
|
+
|
|
250
|
+
For best visual rendering, Aiden looks crispest with:
|
|
251
|
+
|
|
252
|
+
- **Font:** Cascadia Code, JetBrains Mono, or Fira Code at 13–14pt
|
|
253
|
+
- **Terminal:** Windows Terminal, iTerm2, or a modern emulator with truecolor support
|
|
254
|
+
- **Color depth:** truecolor (24-bit) — most modern terminals support this
|
|
255
|
+
|
|
256
|
+
Aiden works on any terminal but glyphs and color depth may degrade gracefully on older / minimal setups.
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
## Setup wizard
|
|
260
|
+
|
|
261
|
+
The first time you run `aiden`, you'll see:
|
|
262
|
+
|
|
263
|
+
1. **Disclaimer screen** — honest about what Aiden can touch (files, browser, shell)
|
|
264
|
+
2. **Loading sequence** — system check, skills load, tools register, memory init
|
|
265
|
+
3. **Provider picker** — pick from 19 providers, no defaults — explicit choice
|
|
266
|
+
4. **Live model fetch** — Aiden hits the provider's `/models` API for the current catalog
|
|
267
|
+
5. **3-step probe** — key works → model accessible → tool calls supported
|
|
268
|
+
6. **Success screen** — three example prompts to get started
|
|
269
|
+
7. **REPL handoff** — first-run hint banner: `Tip: try /walkthrough`
|
|
270
|
+
|
|
271
|
+
To re-run the wizard later:
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
aiden setup
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
To diagnose without re-running:
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
aiden doctor
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
<br>
|
|
284
|
+
|
|
285
|
+
## Switching models
|
|
286
|
+
|
|
287
|
+
Inside the REPL:
|
|
288
|
+
/model
|
|
289
|
+
|
|
290
|
+
Picks a provider (with `✓ authed` badges next to ones you've configured), fetches the live model list, and saves your choice to `config.yaml`. Persists across sessions.
|
|
291
|
+
|
|
292
|
+
To set the default at the env level:
|
|
293
|
+
|
|
294
|
+
```bash
|
|
295
|
+
export AIDEN_DEFAULT_PROVIDER=groq
|
|
296
|
+
export AIDEN_DEFAULT_MODEL=llama-3.3-70b-versatile
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
<br>
|
|
300
|
+
|
|
301
|
+
## Configuration
|
|
302
|
+
|
|
303
|
+
Aiden reads `~/.aiden/config.yaml` (Linux/macOS) or `%LOCALAPPDATA%\aiden\config.yaml` (Windows). The setup wizard writes a starter config on first boot; subsequent edits are diff-merged.
|
|
304
|
+
|
|
305
|
+
### Common env vars
|
|
306
|
+
|
|
307
|
+
| Variable | Default | Effect |
|
|
308
|
+
|---|---|---|
|
|
309
|
+
| `AIDEN_DAEMON` | `0` | Set to `1` to boot the daemon foundation alongside the REPL |
|
|
310
|
+
| `AIDEN_DAEMON_PORT` | `4200` | Daemon HTTP listener port |
|
|
311
|
+
| `AIDEN_DAEMON_BIND` | `127.0.0.1` | Loopback-only by default; non-loopback requires `AIDEN_API_KEY` |
|
|
312
|
+
| `AIDEN_DAEMON_DAILY_BUDGET` | unset | Hard daily token cap across daemon turns; resets midnight UTC |
|
|
313
|
+
| `AIDEN_DAEMON_MODEL` | unset | Override model for daemon turns (`<provider>/<model>`) |
|
|
314
|
+
| `AIDEN_SANDBOX` | `1` | `0` to disable filesystem allowlist + Docker session backend |
|
|
315
|
+
| `AIDEN_TCE` | `1` | `0` to disable continuous error recovery |
|
|
316
|
+
| `AIDEN_BROWSER_DEPTH` | `1` | `0` to disable state-aware browser observation |
|
|
317
|
+
| `AIDEN_API_KEY` | unset | Required for non-loopback daemon bind |
|
|
318
|
+
| `AIDEN_NO_UPDATE_CHECK` | `0` | Set to `1` to silence the boot-time update probe |
|
|
319
|
+
| `AIDEN_PLANNER_GUARD` | `0` | Set to `1` to enable keyword-based tool narrowing (helps smaller local models) |
|
|
320
|
+
|
|
321
|
+
Most flags are also flippable live via slash commands.
|
|
322
|
+
|
|
323
|
+
<br>
|
|
324
|
+
|
|
325
|
+
## CLI commands
|
|
326
|
+
|
|
327
|
+
| Command | What it does |
|
|
328
|
+
|---|---|
|
|
329
|
+
| `aiden` | Start the REPL (runs setup wizard on first launch) |
|
|
330
|
+
| `aiden setup` | Re-run the onboarding wizard |
|
|
331
|
+
| `aiden doctor` | Diagnose providers, auth, config, and environment |
|
|
332
|
+
| `aiden --version` | Print the installed version |
|
|
333
|
+
| `aiden --help` | Show the full CLI manual |
|
|
334
|
+
| `aiden update` | Check for and install updates |
|
|
335
|
+
| `aiden daemon start` | Run the daemon in foreground |
|
|
336
|
+
| `aiden daemon install` | Install daemon as system service (systemd / launchd / Task Scheduler) |
|
|
337
|
+
| `aiden daemon status` | Show daemon health, recent triggers, run history |
|
|
338
|
+
| `aiden trigger add file --path <p>` | Add a file-watcher trigger |
|
|
339
|
+
| `aiden trigger add webhook --label <n>` | Add an HTTP webhook trigger |
|
|
340
|
+
| `aiden trigger add cron --schedule "<expr>"` | Add a scheduled trigger |
|
|
341
|
+
| `aiden trigger list` | List all configured triggers |
|
|
342
|
+
| `aiden runs list` | List recent agent runs (interactive + daemon) |
|
|
343
|
+
| `aiden runs show <id>` | Inspect a specific run's tool chain |
|
|
344
|
+
| `aiden runs stats` | Aggregate stats across runs |
|
|
345
|
+
|
|
346
|
+
<br>
|
|
347
|
+
|
|
348
|
+
## In-chat slash commands
|
|
349
|
+
|
|
350
|
+
Type `/help` inside Aiden for the full list grouped by category. 38 commands total.
|
|
351
|
+
|
|
352
|
+
### Configuration
|
|
353
|
+
`/model` · `/personality` · `/skin` · `/streaming` · `/reasoning` · `/verbose` · `/debug-prompt` · `/identity`
|
|
354
|
+
|
|
355
|
+
### Session
|
|
356
|
+
`/clear` · `/compress` · `/save` · `/title` · `/usage`
|
|
357
|
+
|
|
358
|
+
### System
|
|
359
|
+
`/sandbox` · `/tce` · `/browser-depth` · `/daemon` · `/suggestions` · `/update` · `/skills` · `/tools` · `/plugins` · `/cron` · `/runs` · `/trigger` · `/doctor` · `/status` · `/show` · `/history`
|
|
360
|
+
|
|
361
|
+
### Sub-agents (v4.6)
|
|
362
|
+
`/spawn-pause on|off|status` · `/recovery list|show|clear` · `/planner-guard on|off|status`
|
|
363
|
+
|
|
364
|
+
### Walkthrough & onboarding (v4.6.1)
|
|
365
|
+
`/walkthrough` — 60-second guided tour of what Aiden can do
|
|
366
|
+
|
|
367
|
+
### Auth
|
|
368
|
+
`/auth login` · `/auth status` · `/auth refresh`
|
|
369
|
+
|
|
370
|
+
### MCP
|
|
371
|
+
`/reload-mcp` · `/setup`
|
|
372
|
+
|
|
373
|
+
<br>
|
|
374
|
+
|
|
375
|
+
## Daemon mode (opt-in)
|
|
376
|
+
|
|
377
|
+
### Linux
|
|
378
|
+
|
|
379
|
+
```bash
|
|
380
|
+
export AIDEN_DAEMON=1
|
|
381
|
+
aiden daemon install
|
|
382
|
+
loginctl enable-linger $USER # keep running between sessions
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### macOS
|
|
386
|
+
|
|
387
|
+
```bash
|
|
388
|
+
export AIDEN_DAEMON=1
|
|
389
|
+
aiden daemon install # installs launchd plist
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
### Windows
|
|
393
|
+
|
|
394
|
+
See [`docs/v4.5/daemon-windows.md`](docs/v4.5/daemon-windows.md). Recommended: foreground (`aiden daemon start`) or `pm2` for background.
|
|
395
|
+
|
|
396
|
+
<br>
|
|
397
|
+
|
|
398
|
+
## Troubleshooting
|
|
399
|
+
|
|
400
|
+
Common issues live in [`docs/v4.5/troubleshooting.md`](docs/v4.5/troubleshooting.md). Quick reference:
|
|
401
|
+
|
|
402
|
+
- **"daemon already running"** — stale `~/.aiden/daemon/runtime.lock`; remove it
|
|
403
|
+
- **Webhook 401 despite valid HMAC** — check format (`github` / `gitlab` / `generic`)
|
|
404
|
+
- **IMAP auth failure** — Gmail / Outlook require app passwords, not account passwords
|
|
405
|
+
- **High RSS / slow drain** — run the 72-hour soak (`tests/v4/daemon/soak/README.md`)
|
|
406
|
+
- **Boot stuck on wizard** — non-TTY stdin (CI / piped); set provider env var or use `--no-ui`
|
|
407
|
+
- **`/help` doesn't list a command** — that command likely needs an active session field; run from a real REPL
|
|
408
|
+
- **`npm install` permission errors on Windows** — install into a real folder (not a drive root like `S:\`)
|
|
409
|
+
|
|
410
|
+
<br>
|
|
411
|
+
|
|
412
|
+
## The book
|
|
413
|
+
|
|
414
|
+
📖 **Omega** — A novel about code, solitude, and what builds back. The story behind Aiden and what it means to build alone.
|
|
415
|
+
|
|
416
|
+
[](https://amzn.to/49ceO8l)
|
|
417
|
+
|
|
418
|
+
<br>
|
|
419
|
+
|
|
420
|
+
## Sponsor
|
|
421
|
+
|
|
422
|
+
Aiden is free and open source. If it saves you time or you want it to keep getting better, sponsorship helps cover server costs, API testing, and the time to ship features instead of taking client work.
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
[](https://razorpay.me/@whitelotus9625)
|
|
426
|
+
|
|
427
|
+
Even a one-time tip or a star on the repo is appreciated.
|
|
428
|
+
|
|
429
|
+
<br>
|
|
430
|
+
|
|
431
|
+
## Acknowledgements
|
|
432
|
+
|
|
433
|
+
Built solo by **Shiva Deore** at **Taracod**.
|
|
434
|
+
|
|
435
|
+
Aiden builds on the open-source giants: TypeScript, Node, SQLite, `better-sqlite3`, Playwright, Chromium, `chokidar`, `croner`, `inquirer`, `marked`, `kleur`, the Model Context Protocol, and every provider SDK. Thank you.
|
|
436
|
+
|
|
437
|
+
<br>
|
|
438
|
+
|
|
439
|
+
## Contributing
|
|
440
|
+
|
|
441
|
+
Aiden is built solo right now, but contributions are welcome — bug reports, skill submissions, provider adapters, documentation fixes.
|
|
442
|
+
|
|
443
|
+
Before opening a PR:
|
|
444
|
+
|
|
445
|
+
1. Fork the repo
|
|
446
|
+
2. `npm install`
|
|
447
|
+
3. Make your changes on a feature branch
|
|
448
|
+
4. `npm run build` — confirm it compiles
|
|
449
|
+
5. Test with `aiden` locally
|
|
450
|
+
6. Open a PR with a clear description of what changed and why
|
|
451
|
+
|
|
452
|
+
Keep PRs focused. One feature or fix per PR. Be honest in the description about what works and what doesn't.
|
|
453
|
+
|
|
454
|
+
<br>
|
|
455
|
+
|
|
456
|
+
## License
|
|
457
|
+
|
|
458
|
+
- **Core runtime**: [AGPL-3.0](LICENSE). You can self-host, modify, and distribute Aiden as long as your modifications stay under AGPL.
|
|
459
|
+
- **Bundled skills**: Apache-2.0. Use them however you want.
|
|
460
|
+
- **Commercial licensing** for closed-source derivatives: contact [hello@taracod.com](mailto:hello@taracod.com).
|
|
461
|
+
|
|
462
|
+
The future `skills.taracod.com` marketplace will ship community skills under the same permissive terms.
|
|
463
|
+
|
|
464
|
+
<br>
|
|
465
|
+
|
|
466
|
+
## Links
|
|
467
|
+
|
|
468
|
+
| Where | What |
|
|
469
|
+
|---|---|
|
|
470
|
+
| 🌐 **Website** | [aiden.taracod.com](https://aiden.taracod.com) |
|
|
471
|
+
| 💬 **Discord** | [discord.gg/CU5wshJW4F](https://discord.gg/CU5wshJW4F) |
|
|
472
|
+
| 📦 **npm** | [aiden-runtime](https://www.npmjs.com/package/aiden-runtime) |
|
|
473
|
+
| 🐙 **Source** | [github.com/taracodlabs/aiden](https://github.com/taracodlabs/aiden) |
|
|
474
|
+
| 📁 **Standalone releases** | [github.com/taracodlabs/aiden-releases](https://github.com/taracodlabs/aiden-releases) |
|
|
475
|
+
| 📖 **Book — Omega** | [Amazon](https://amzn.to/49ceO8l) |
|
|
476
|
+
| 📚 **Docs** | [`docs/v4.5/`](docs/v4.5/) (in this repo) |
|
|
477
|
+
| 💖 **Sponsor (Razorpay)** | [razorpay.me/@whitelotus9625](https://razorpay.me/@whitelotus9625) |
|
|
478
|
+
| ✉️ **Contact** | [contact@taracod.com](mailto:contact@taracod.com) |
|
|
479
|
+
|
|
480
|
+
<br>
|
|
481
|
+
|
|
482
|
+
## Disclaimer
|
|
483
|
+
|
|
484
|
+
Aiden can touch your files, run shell commands, and access the web. It's autonomous within the limits you set. Things will go wrong sometimes. Use at your own risk, read the code if you're nervous, and report what breaks.
|
|
485
|
+
|
|
486
|
+
**Built solo. Started as a hobby project. Still rough in spots. Getting better every week.**
|
|
487
|
+
|
|
488
|
+
---
|
|
489
|
+
|
|
490
|
+
<div align="center">
|
|
491
|
+
|
|
492
|
+
**By Taracod · White Lotus**
|
|
493
|
+
|
|
494
|
+
</div>
|
|
495
|
+
---
|
|
496
|
+
|
|
497
|
+
<p align="center">
|
|
498
|
+
<em>Local-first. Windows-native. Yours to own.</em>
|
|
499
|
+
</p>
|