clew-code 0.2.7 → 0.2.9
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 +292 -299
- package/dist/main.js +2745 -2869
- package/docs/architecture.html +148 -145
- package/docs/architecture.th.html +79 -78
- package/docs/clew-code-architecture.html +1125 -0
- package/docs/commands.html +224 -223
- package/docs/commands.th.html +131 -130
- package/docs/configuration.html +147 -145
- package/docs/configuration.th.html +108 -106
- package/docs/css/styles.css +48 -42
- package/docs/daemon.html +129 -128
- package/docs/daemon.th.html +73 -72
- package/docs/features/bridge-mode.html +99 -98
- package/docs/features/bridge-mode.th.html +90 -89
- package/docs/features/evals.html +182 -181
- package/docs/features/evals.th.html +90 -89
- package/docs/features/peer.html +178 -177
- package/docs/features/searxng-search.html +151 -150
- package/docs/features/searxng-search.th.html +95 -94
- package/docs/features/sentry-setup.html +157 -156
- package/docs/features/sentry-setup.th.html +97 -96
- package/docs/index.html +299 -298
- package/docs/index.th.html +292 -290
- package/docs/installation.html +105 -103
- package/docs/installation.th.html +105 -103
- package/docs/internals/growthbook-ab-testing.html +113 -112
- package/docs/internals/growthbook-ab-testing.th.html +81 -80
- package/docs/internals/hidden-features.html +149 -147
- package/docs/internals/hidden-features.th.html +109 -107
- package/docs/js/main.js +83 -3
- package/docs/loop.html +181 -180
- package/docs/loop.th.html +227 -226
- package/docs/mcp.html +247 -246
- package/docs/mcp.th.html +207 -206
- package/docs/models.html +111 -110
- package/docs/models.th.html +61 -60
- package/docs/peer.html +236 -235
- package/docs/peer.th.html +280 -279
- package/docs/permission-model.html +102 -101
- package/docs/permission-model.th.html +67 -66
- package/docs/plugins.html +102 -101
- package/docs/plugins.th.html +79 -78
- package/docs/providers.html +126 -117
- package/docs/providers.th.html +80 -78
- package/docs/quick-start.html +93 -92
- package/docs/quick-start.th.html +40 -39
- package/docs/research-memory.html +82 -79
- package/docs/research-memory.th.html +72 -71
- package/docs/skills.html +117 -116
- package/docs/skills.th.html +90 -89
- package/docs/tools.html +170 -169
- package/docs/tools.th.html +84 -83
- package/docs/troubleshooting.html +106 -105
- package/docs/troubleshooting.th.html +85 -84
- package/package.json +164 -162
- package/docs/taste.html +0 -436
- package/docs/taste.th.html +0 -236
package/README.md
CHANGED
|
@@ -1,299 +1,292 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
<img src="assets/clew-logo-long.png" alt="Clew Code" width="480" />
|
|
4
|
-
|
|
5
|
-
# Clew Code
|
|
6
|
-
|
|
7
|
-
**The open-source AI coding agent — in your terminal and on your LAN.**
|
|
8
|
-
|
|
9
|
-
A multi-provider AI coding CLI that codes, learns your preferences, coordinates across machines, and runs autonomously on your own hardware. One Bun bundle. Local-first by design.
|
|
10
|
-
|
|
11
|
-
[](https://github.com/ClewCode/ClewCode/stargazers)
|
|
12
|
-
[](https://github.com/ClewCode/ClewCode/graphs/contributors)
|
|
13
|
-
[](https://github.com/ClewCode/ClewCode/releases)
|
|
14
|
-
[](https://www.npmjs.com/package/clew-code)
|
|
15
|
-
[](https://github.com/ClewCode/ClewCode/actions)
|
|
16
|
-
[](#license)
|
|
17
|
-
[](#installation)
|
|
18
|
-
[](https://bun.sh)
|
|
19
|
-
|
|
20
|
-
[GitHub](https://github.com/ClewCode/ClewCode) · [Latest Release](https://github.com/ClewCode/ClewCode/releases) · [Docs](docs/index.html) · [Issues](https://github.com/ClewCode/ClewCode/issues)
|
|
21
|
-
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## Hacking in public
|
|
27
|
-
|
|
28
|
-
Clew Code is a fork of [Claude Code](https://github.com/anthropics/claude-code) (Anthropic), rebuilt from the ground up to be **multi-provider** — you're not locked into one API. As of this writing the project ships peer-to-peer LAN coordination, a preference-learning engine, autonomous background loops, MCP integration, and 27 provider adapters.
|
|
29
|
-
|
|
30
|
-
> Forked from Claude Code. Rebuilt for every provider.
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
## Features
|
|
35
|
-
|
|
36
|
-
- **27 providers** — Anthropic, OpenAI, Google Gemini, DeepSeek, Groq, xAI (Grok), Mistral, Cohere, Perplexity, Cerebras, Moonshot (Kimi), Zhipu (GLM), NVIDIA NIM, OpenRouter, GitHub Copilot, OpenCode, KiloCode, Ollama (local), Together AI, Fireworks AI, Deep Infra, SiliconFlow, Hugging Face, Poe, DigitalOcean, Cline, OpenCode Go. Switch mid-session.
|
|
37
|
-
- **Peer-to-peer LAN mesh** — find other Clew instances on the same machine (file registry) or across machines (UDP multicast). Assign tasks, set roles, execute remote commands — 14 AI tools let your agent coordinate autonomously.
|
|
38
|
-
|
|
39
|
-
- **Autonomous agent loop** — file-backed persistent task queue, lease-based concurrency, exponential backoff retry, dead-letter management. Cron scheduler for recurring jobs. Max 3 concurrent workers.
|
|
40
|
-
- **50+ built-in tools** — Read, Write, Edit, Glob, Grep, Bash, WebSearch, WebFetch, Browser (Playwright), PR (create/list/view/review/merge/status), NotebookEdit, JsonPath, peer tools, MCP tools, ProcessPeer (exec/pty).
|
|
41
|
-
- **MCP — Model Context Protocol** — connect external tools via stdio (local subprocesses), SSE (remote servers with OAuth), or DirectConnect (in-process plugin servers).
|
|
42
|
-
- **Skills, plugins, hooks** — extend without touching source. Skills via `SKILL.md`, plugins with manifest, hooks at every lifecycle stage (PreToolUse, PostToolUse, PreBash, PostPrompt, PreAcceptEdit).
|
|
43
|
-
- **7 permission modes** — default, ask, plan, auto, acceptEdits, bypassPermissions, dontAsk. Granular allow/deny rules with pattern matching.
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## Install
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
npm install -g clew-code
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
# Then run inside any project
|
|
55
|
-
cd my-project
|
|
56
|
-
clew
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Requires [Bun](https://bun.sh) 1.3+, Node.js 18+, Git, and one provider API key.
|
|
60
|
-
|
|
61
|
-
**Build from source:**
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
git clone https://github.com/ClewCode/ClewCode.git
|
|
65
|
-
cd ClewCode
|
|
66
|
-
bun install && bun run build && bun run start
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
<details>
|
|
70
|
-
<summary><b>Platform notes</b></summary>
|
|
71
|
-
|
|
72
|
-
- **macOS** — works out of the box (Apple Silicon & Intel)
|
|
73
|
-
- **Linux** — no special dependencies
|
|
74
|
-
- **Windows** — requires Git Bash, WSL, or PowerShell. Some tools (ComputerUse) are Windows-only.
|
|
75
|
-
</details>
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
## Quick start
|
|
80
|
-
|
|
81
|
-
```sh
|
|
82
|
-
# First run — pick a provider when prompted
|
|
83
|
-
clew
|
|
84
|
-
|
|
85
|
-
# Configure a provider (inside the REPL)
|
|
86
|
-
❯ /provider openai
|
|
87
|
-
❯ /model gpt-5.5
|
|
88
|
-
|
|
89
|
-
# Or try DeepSeek
|
|
90
|
-
❯ /model deepseek-v4-pro
|
|
91
|
-
|
|
92
|
-
# Or go local with Ollama
|
|
93
|
-
❯ /model ollama/llama3.3
|
|
94
|
-
|
|
95
|
-
# In-session commands
|
|
96
|
-
❯ /help # list everything
|
|
97
|
-
❯ /status # current provider, model, context info
|
|
98
|
-
❯ /
|
|
99
|
-
❯ /
|
|
100
|
-
❯ /
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
export
|
|
116
|
-
export
|
|
117
|
-
export
|
|
118
|
-
export
|
|
119
|
-
export
|
|
120
|
-
export
|
|
121
|
-
export
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
bun
|
|
191
|
-
bun run
|
|
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
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
---
|
|
294
|
-
|
|
295
|
-
## License
|
|
296
|
-
|
|
297
|
-
[LICENSE.md](LICENSE.md) — covers only contributor-authored modifications and original additions. Does not grant rights to third-party software, models, or trademarks.
|
|
298
|
-
|
|
299
|
-
Clew Code is a fork of [Claude Code](https://github.com/anthropics/claude-code) (Anthropic). All original Claude Code code remains under its license.
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="assets/clew-logo-long.png" alt="Clew Code" width="480" />
|
|
4
|
+
|
|
5
|
+
# Clew Code
|
|
6
|
+
|
|
7
|
+
**The open-source AI coding agent — in your terminal and on your LAN.**
|
|
8
|
+
|
|
9
|
+
A multi-provider AI coding CLI that codes, learns your preferences, coordinates across machines, and runs autonomously on your own hardware. One Bun bundle. Local-first by design.
|
|
10
|
+
|
|
11
|
+
[](https://github.com/ClewCode/ClewCode/stargazers)
|
|
12
|
+
[](https://github.com/ClewCode/ClewCode/graphs/contributors)
|
|
13
|
+
[](https://github.com/ClewCode/ClewCode/releases)
|
|
14
|
+
[](https://www.npmjs.com/package/clew-code)
|
|
15
|
+
[](https://github.com/ClewCode/ClewCode/actions)
|
|
16
|
+
[](#license)
|
|
17
|
+
[](#installation)
|
|
18
|
+
[](https://bun.sh)
|
|
19
|
+
|
|
20
|
+
[GitHub](https://github.com/ClewCode/ClewCode) · [Latest Release](https://github.com/ClewCode/ClewCode/releases) · [Docs](docs/index.html) · [Issues](https://github.com/ClewCode/ClewCode/issues)
|
|
21
|
+
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Hacking in public
|
|
27
|
+
|
|
28
|
+
Clew Code is a fork of [Claude Code](https://github.com/anthropics/claude-code) (Anthropic), rebuilt from the ground up to be **multi-provider** — you're not locked into one API. As of this writing the project ships peer-to-peer LAN coordination, a preference-learning engine, autonomous background loops, MCP integration, and 27 provider adapters.
|
|
29
|
+
|
|
30
|
+
> Forked from Claude Code. Rebuilt for every provider.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Features
|
|
35
|
+
|
|
36
|
+
- **27 providers** — Anthropic, OpenAI, Google Gemini, DeepSeek, Groq, xAI (Grok), Mistral, Cohere, Perplexity, Cerebras, Moonshot (Kimi), Zhipu (GLM), NVIDIA NIM, OpenRouter, GitHub Copilot, OpenCode, KiloCode, Ollama (local), Together AI, Fireworks AI, Deep Infra, SiliconFlow, Hugging Face, Poe, DigitalOcean, Cline, OpenCode Go. Switch mid-session.
|
|
37
|
+
- **Peer-to-peer LAN mesh** — find other Clew instances on the same machine (file registry) or across machines (UDP multicast). Assign tasks, set roles, execute remote commands — 14 AI tools let your agent coordinate autonomously.
|
|
38
|
+
|
|
39
|
+
- **Autonomous agent loop** — file-backed persistent task queue, lease-based concurrency, exponential backoff retry, dead-letter management. Cron scheduler for recurring jobs. Max 3 concurrent workers.
|
|
40
|
+
- **50+ built-in tools** — Read, Write, Edit, Glob, Grep, Bash, WebSearch, WebFetch, Browser (Playwright), PR (create/list/view/review/merge/status), NotebookEdit, JsonPath, peer tools, MCP tools, ProcessPeer (exec/pty).
|
|
41
|
+
- **MCP — Model Context Protocol** — connect external tools via stdio (local subprocesses), SSE (remote servers with OAuth), or DirectConnect (in-process plugin servers).
|
|
42
|
+
- **Skills, plugins, hooks** — extend without touching source. Skills via `SKILL.md`, plugins with manifest, hooks at every lifecycle stage (PreToolUse, PostToolUse, PreBash, PostPrompt, PreAcceptEdit).
|
|
43
|
+
- **7 permission modes** — default, ask, plan, auto, acceptEdits, bypassPermissions, dontAsk. Granular allow/deny rules with pattern matching.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Install
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm install -g clew-code
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# Then run inside any project
|
|
55
|
+
cd my-project
|
|
56
|
+
clew
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Requires [Bun](https://bun.sh) 1.3+, Node.js 18+, Git, and one provider API key.
|
|
60
|
+
|
|
61
|
+
**Build from source:**
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
git clone https://github.com/ClewCode/ClewCode.git
|
|
65
|
+
cd ClewCode
|
|
66
|
+
bun install && bun run build && bun run start
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
<details>
|
|
70
|
+
<summary><b>Platform notes</b></summary>
|
|
71
|
+
|
|
72
|
+
- **macOS** — works out of the box (Apple Silicon & Intel)
|
|
73
|
+
- **Linux** — no special dependencies
|
|
74
|
+
- **Windows** — requires Git Bash, WSL, or PowerShell. Some tools (ComputerUse) are Windows-only.
|
|
75
|
+
</details>
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Quick start
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
# First run — pick a provider when prompted
|
|
83
|
+
clew
|
|
84
|
+
|
|
85
|
+
# Configure a provider (inside the REPL)
|
|
86
|
+
❯ /provider openai
|
|
87
|
+
❯ /model gpt-5.5
|
|
88
|
+
|
|
89
|
+
# Or try DeepSeek
|
|
90
|
+
❯ /model deepseek-v4-pro
|
|
91
|
+
|
|
92
|
+
# Or go local with Ollama
|
|
93
|
+
❯ /model ollama/llama3.3
|
|
94
|
+
|
|
95
|
+
# In-session commands
|
|
96
|
+
❯ /help # list everything
|
|
97
|
+
❯ /status # current provider, model, context info
|
|
98
|
+
❯ /peer discover # find other Clew instances on LAN
|
|
99
|
+
❯ /mcp list # connected MCP servers
|
|
100
|
+
❯ /loop start # background autonomous loop
|
|
101
|
+
|
|
102
|
+
# One-shot mode (pipe-friendly)
|
|
103
|
+
clew -p "summarize CHANGELOG.md"
|
|
104
|
+
|
|
105
|
+
# Resume last session
|
|
106
|
+
clew --resume last
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Provider setup
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
export ANTHROPIC_API_KEY=sk-ant-...
|
|
115
|
+
export OPENAI_API_KEY=sk-...
|
|
116
|
+
export GOOGLE_API_KEY=...
|
|
117
|
+
export DEEPSEEK_API_KEY=...
|
|
118
|
+
export GROQ_API_KEY=...
|
|
119
|
+
export OPENROUTER_API_KEY=...
|
|
120
|
+
export OLLAMA_HOST=http://localhost:11434
|
|
121
|
+
export COPILOT_GITHUB_TOKEN=gho_...
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Commands
|
|
127
|
+
|
|
128
|
+
<details>
|
|
129
|
+
<summary><strong>16 slash commands</strong></summary>
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
/model Switch provider or model
|
|
133
|
+
/status Provider, session, context info
|
|
134
|
+
/doctor Diagnostics
|
|
135
|
+
/context Active context usage
|
|
136
|
+
/compact Compress conversation history
|
|
137
|
+
/mcp MCP server management
|
|
138
|
+
/code-review Review changed files for bugs
|
|
139
|
+
/simplify Cleanup-focused review
|
|
140
|
+
/plugin Plugin and hook management
|
|
141
|
+
/bridge Bridge mode config
|
|
142
|
+
/agent Background agent workflows
|
|
143
|
+
/peer LAN peer coordination
|
|
144
|
+
/remote WebSocket remote control
|
|
145
|
+
/loop 24/7 autonomous agent loop
|
|
146
|
+
/daemon Autonomous daemon dashboard
|
|
147
|
+
/task Scheduled tasks
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
</details>
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## Project layout
|
|
155
|
+
|
|
156
|
+
<details>
|
|
157
|
+
<summary><strong>src/ — single-entry Bun bundle</strong></summary>
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
src/
|
|
161
|
+
├── main.tsx # Entry point
|
|
162
|
+
├── query.ts / QueryEngine.ts
|
|
163
|
+
├── agentRuntime/ # Background agent orchestration
|
|
164
|
+
├── commands/ # Slash command implementations
|
|
165
|
+
├── tools/ # 50+ built-in tools
|
|
166
|
+
├── services/
|
|
167
|
+
│ ├── ai/ # Provider manager + 27 providers
|
|
168
|
+
│ ├── mcp/ # MCP client + auth + transports
|
|
169
|
+
│ ├── plugins/ # Plugin hooks + marketplace
|
|
170
|
+
│ ├── autonomous/ # Agent loop + task queue + cron
|
|
171
|
+
│ ├── lsp/ # LSP integration
|
|
172
|
+
│ └── Supervisor/ # Agent supervisor IPC
|
|
173
|
+
├── peer/ # PeerServer + PeerDiscovery
|
|
174
|
+
├── bridge/ # WebSocket bridge + relay
|
|
175
|
+
├── components/ # Ink terminal UI components
|
|
176
|
+
├── state/ # AppState management
|
|
177
|
+
└── hooks/ # React hooks
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
</details>
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Development
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
bun run dev # Live reload
|
|
188
|
+
bun run build # Build to dist/
|
|
189
|
+
bun test # Vitest
|
|
190
|
+
bun x tsc --noEmit # Type-check
|
|
191
|
+
bun run check:ci # Full CI check (lint + test + typecheck)
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**Windows:**
|
|
195
|
+
```powershell
|
|
196
|
+
Remove-Item -Recurse -Force node_modules
|
|
197
|
+
bun install && bun run dev
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## Contribute
|
|
203
|
+
|
|
204
|
+
We welcome contributions. Read [CONTRIBUTING.md](CONTRIBUTING.md), [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md), [SECURITY.md](SECURITY.md), and [LICENSE.md](LICENSE.md) before submitting.
|
|
205
|
+
|
|
206
|
+
### Good first issues
|
|
207
|
+
|
|
208
|
+
- Add a new provider adapter in `src/services/ai/`
|
|
209
|
+
- Write tests for untested tools
|
|
210
|
+
- Fix docs, add examples
|
|
211
|
+
- Build a plugin or MCP server
|
|
212
|
+
- Improve Windows support
|
|
213
|
+
|
|
214
|
+
### Contributors
|
|
215
|
+
|
|
216
|
+
<a href="https://github.com/ClewCode/ClewCode/graphs/contributors">
|
|
217
|
+
<img src="https://contrib.rocks/image?repo=ClewCode/ClewCode" alt="Contributors" />
|
|
218
|
+
</a>
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Documentation
|
|
223
|
+
|
|
224
|
+
[Installation](docs/installation.html) · [Configuration](docs/configuration.html) · [Providers](docs/providers.html) · [Models](docs/models.html) · [Commands](docs/commands.html) · [Tools](docs/tools.html) · [MCP](docs/mcp.html) · [Plugins](docs/plugins.html) · [Skills](docs/skills.html) · [Peer-to-Peer](docs/peer.html) · [Agent Loop](docs/loop.html) · [Permission Model](docs/permission-model.html) · [Daemon](docs/daemon.html) · [Bridge Mode](docs/features/bridge-mode.html) · [Troubleshooting](docs/troubleshooting.html)
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## Changelog
|
|
229
|
+
|
|
230
|
+
<details>
|
|
231
|
+
<summary><strong>v0.2.7 — 2026-06-11</strong></summary>
|
|
232
|
+
|
|
233
|
+
- **process_peer PTY terminal box** — terminal-style progress box with ANSI-preserving output tail
|
|
234
|
+
- **`/peer run codex <task>`** — run one-shot Codex process peer from chat
|
|
235
|
+
- **Auto-update dialog** — npm update notification before app starts
|
|
236
|
+
- **Rich model fetching** — API models now carry context window, vision, tools, reasoning, free tags
|
|
237
|
+
- **`/model list` capability tags** — `[200K ctx, vision, tools, reason, free]` per model
|
|
238
|
+
- **GlimmerMessage gradient** — per-character color interpolation with fade effect
|
|
239
|
+
- **Cost in status line** — shows session cost when >$0
|
|
240
|
+
|
|
241
|
+
</details>
|
|
242
|
+
|
|
243
|
+
<details>
|
|
244
|
+
<summary><strong>v0.2.6 — 2026-06-10</strong></summary>
|
|
245
|
+
|
|
246
|
+
- **Peer HTTP heartbeat** — 60s liveness checks, offline peers detected immediately
|
|
247
|
+
- **Removed GitHub Copilot** — provider and all references cleaned out
|
|
248
|
+
- **`/agents` visual polish** — redesigned dashboard, cleaner layout
|
|
249
|
+
- **Auto-updater** — switched from Anthropic GCS to npm registry
|
|
250
|
+
|
|
251
|
+
</details>
|
|
252
|
+
|
|
253
|
+
<details>
|
|
254
|
+
<summary><strong>v0.2.5 — 2026-06-10</strong></summary>
|
|
255
|
+
|
|
256
|
+
- **Rebranded to Clew Code** — docs, UI copy, and package updated
|
|
257
|
+
- **Memory search** — `/memory search` for stored entries
|
|
258
|
+
- **Peer tools** — 14 AI coordination tools, peer help, connection count in footer
|
|
259
|
+
- **Fixed `/providers`** — duplicate `const info` runtime error fixed
|
|
260
|
+
|
|
261
|
+
</details>
|
|
262
|
+
|
|
263
|
+
<details>
|
|
264
|
+
<summary><strong>v0.2.4 — 2026-06-08</strong></summary>
|
|
265
|
+
|
|
266
|
+
- **Peer-to-peer** — UDP multicast discovery, file registry, 14 AI coordination tools, interactive PeerMenu
|
|
267
|
+
- **Autonomous agents** — agent loop, supervisor integration, task queue, Loop Lock
|
|
268
|
+
- **Workflow Rainbow** — per-character gradient highlight for "workflow" keyword
|
|
269
|
+
|
|
270
|
+
</details>
|
|
271
|
+
|
|
272
|
+
<details>
|
|
273
|
+
<summary><strong>v0.2.3 — 2026-06-07</strong></summary>
|
|
274
|
+
|
|
275
|
+
- `/effort` works with any provider exposing `reasoningEffort` (NVIDIA, DeepSeek, OpenRouter, etc.)
|
|
276
|
+
- `/model` fetches live model list from provider APIs
|
|
277
|
+
- Relay server for cross-network remote control
|
|
278
|
+
- Bridge v2: provider-agnostic remote control
|
|
279
|
+
- `/pr create/list/view/review/merge/status`
|
|
280
|
+
- Security: PowerShell rules, malformed tool call guard, 100 MB bash output cap
|
|
281
|
+
|
|
282
|
+
</details>
|
|
283
|
+
|
|
284
|
+
[Full changelog](CHANGELOG.md)
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
## License
|
|
289
|
+
|
|
290
|
+
[LICENSE.md](LICENSE.md) — covers only contributor-authored modifications and original additions. Does not grant rights to third-party software, models, or trademarks.
|
|
291
|
+
|
|
292
|
+
Clew Code is a fork of [Claude Code](https://github.com/anthropics/claude-code) (Anthropic). All original Claude Code code remains under its license.
|