clew-code 0.2.7 → 0.2.8

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 (57) hide show
  1. package/README.md +292 -299
  2. package/dist/main.js +2745 -2869
  3. package/docs/architecture.html +148 -145
  4. package/docs/architecture.th.html +79 -78
  5. package/docs/clew-code-architecture.html +1125 -0
  6. package/docs/commands.html +224 -223
  7. package/docs/commands.th.html +131 -130
  8. package/docs/configuration.html +147 -145
  9. package/docs/configuration.th.html +108 -106
  10. package/docs/css/styles.css +48 -42
  11. package/docs/daemon.html +129 -128
  12. package/docs/daemon.th.html +73 -72
  13. package/docs/features/bridge-mode.html +99 -98
  14. package/docs/features/bridge-mode.th.html +90 -89
  15. package/docs/features/evals.html +182 -181
  16. package/docs/features/evals.th.html +90 -89
  17. package/docs/features/peer.html +178 -177
  18. package/docs/features/searxng-search.html +151 -150
  19. package/docs/features/searxng-search.th.html +95 -94
  20. package/docs/features/sentry-setup.html +157 -156
  21. package/docs/features/sentry-setup.th.html +97 -96
  22. package/docs/index.html +299 -298
  23. package/docs/index.th.html +292 -290
  24. package/docs/installation.html +105 -103
  25. package/docs/installation.th.html +105 -103
  26. package/docs/internals/growthbook-ab-testing.html +113 -112
  27. package/docs/internals/growthbook-ab-testing.th.html +81 -80
  28. package/docs/internals/hidden-features.html +149 -147
  29. package/docs/internals/hidden-features.th.html +109 -107
  30. package/docs/js/main.js +83 -3
  31. package/docs/loop.html +181 -180
  32. package/docs/loop.th.html +227 -226
  33. package/docs/mcp.html +247 -246
  34. package/docs/mcp.th.html +207 -206
  35. package/docs/models.html +111 -110
  36. package/docs/models.th.html +61 -60
  37. package/docs/peer.html +236 -235
  38. package/docs/peer.th.html +280 -279
  39. package/docs/permission-model.html +102 -101
  40. package/docs/permission-model.th.html +67 -66
  41. package/docs/plugins.html +102 -101
  42. package/docs/plugins.th.html +79 -78
  43. package/docs/providers.html +126 -117
  44. package/docs/providers.th.html +80 -78
  45. package/docs/quick-start.html +93 -92
  46. package/docs/quick-start.th.html +40 -39
  47. package/docs/research-memory.html +82 -79
  48. package/docs/research-memory.th.html +72 -71
  49. package/docs/skills.html +117 -116
  50. package/docs/skills.th.html +90 -89
  51. package/docs/tools.html +170 -169
  52. package/docs/tools.th.html +84 -83
  53. package/docs/troubleshooting.html +106 -105
  54. package/docs/troubleshooting.th.html +85 -84
  55. package/package.json +164 -162
  56. package/docs/taste.html +0 -436
  57. 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
- [![GitHub stars](https://img.shields.io/github/stars/ClewCode/ClewCode?style=social)](https://github.com/ClewCode/ClewCode/stargazers)
12
- [![Contributors](https://img.shields.io/github/contributors/ClewCode/ClewCode.svg)](https://github.com/ClewCode/ClewCode/graphs/contributors)
13
- [![Release](https://img.shields.io/github/v/release/ClewCode/ClewCode)](https://github.com/ClewCode/ClewCode/releases)
14
- [![npm](https://img.shields.io/npm/v/clew-code)](https://www.npmjs.com/package/clew-code)
15
- [![CI](https://img.shields.io/github/actions/workflow/status/ClewCode/ClewCode/release.yml?branch=main)](https://github.com/ClewCode/ClewCode/actions)
16
- [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](#license)
17
- [![Platform](https://img.shields.io/badge/platform-macOS%20·%20Windows%20·%20Linux-lightgrey.svg)](#installation)
18
- [![Built with Bun](https://img.shields.io/badge/built%20with-Bun-ff69b4.svg)](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
- - **Preference learning (Taste)** — learns from accept, reject, edit, test, and lint signals. Three-tier rule engine (≥0.85 blocks edits, ≥0.55 injects into prompts, <0.55 scores silently). Contextual bandit with 6 strategy arms. Auto-decay on 30-day half-life.
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
- ❯ /taste # preference-learning menu
99
- ❯ /peer discover # find other Clew instances on LAN
100
- ❯ /mcp list # connected MCP servers
101
- ❯ /loop start # background autonomous loop
102
-
103
- # One-shot mode (pipe-friendly)
104
- clew -p "summarize CHANGELOG.md"
105
-
106
- # Resume last session
107
- clew --resume last
108
- ```
109
-
110
- ---
111
-
112
- ## Provider setup
113
-
114
- ```bash
115
- export ANTHROPIC_API_KEY=sk-ant-...
116
- export OPENAI_API_KEY=sk-...
117
- export GOOGLE_API_KEY=...
118
- export DEEPSEEK_API_KEY=...
119
- export GROQ_API_KEY=...
120
- export OPENROUTER_API_KEY=...
121
- export OLLAMA_HOST=http://localhost:11434
122
- export COPILOT_GITHUB_TOKEN=gho_...
123
- ```
124
-
125
- ---
126
-
127
- ## Commands
128
-
129
- <details>
130
- <summary><strong>17 slash commands</strong></summary>
131
-
132
- ```
133
- /model Switch provider or model
134
- /taste Preference-learning menu
135
- /status Provider, session, context info
136
- /doctor Diagnostics
137
- /context Active context usage
138
- /compact Compress conversation history
139
- /mcp MCP server management
140
- /code-review Review changed files for bugs
141
- /simplify Cleanup-focused review
142
- /plugin Plugin and hook management
143
- /bridge Bridge mode config
144
- /agent Background agent workflows
145
- /peer LAN peer coordination
146
- /remote WebSocket remote control
147
- /loop 24/7 autonomous agent loop
148
- /daemon Autonomous daemon dashboard
149
- /task Scheduled tasks
150
- ```
151
-
152
- </details>
153
-
154
- ---
155
-
156
- ## Project layout
157
-
158
- <details>
159
- <summary><strong>src/ — single-entry Bun bundle</strong></summary>
160
-
161
- ```
162
- src/
163
- ├── main.tsx # Entry point
164
- ├── query.ts / QueryEngine.ts
165
- ├── agentRuntime/ # Background agent orchestration
166
- ├── commands/ # Slash command implementations
167
- ├── tools/ # 50+ built-in tools
168
- ├── services/
169
- │ ├── ai/ # Provider manager + 27 providers
170
- │ ├── mcp/ # MCP client + auth + transports
171
- │ ├── plugins/ # Plugin hooks + marketplace
172
- ├── autonomous/ # Agent loop + task queue + cron
173
- ├── taste/ # Preference-learning engine
174
- ├── lsp/ # LSP integration
175
- │ └── Supervisor/ # Agent supervisor IPC
176
- ├── peer/ # PeerServer + PeerDiscovery
177
- ├── bridge/ # WebSocket bridge + relay
178
- ├── components/ # Ink terminal UI components
179
- ├── state/ # AppState management
180
- └── hooks/ # React hooks
181
- ```
182
-
183
- </details>
184
-
185
- ---
186
-
187
- ## Development
188
-
189
- ```bash
190
- bun run dev # Live reload
191
- bun run build # Build to dist/
192
- bun test # Vitest
193
- bun x tsc --noEmit # Type-check
194
- bun run check:ci # Full CI check (lint + test + typecheck)
195
- ```
196
-
197
- **Windows:**
198
- ```powershell
199
- Remove-Item -Recurse -Force node_modules
200
- bun install && bun run dev
201
- ```
202
-
203
- ---
204
-
205
- ## Contribute
206
-
207
- 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.
208
-
209
- ### Good first issues
210
-
211
- - Add a new provider adapter in `src/services/ai/`
212
- - Write tests for untested tools
213
- - Fix docs, add examples
214
- - Build a plugin or MCP server
215
- - Improve Windows support
216
-
217
- ### Contributors
218
-
219
- <a href="https://github.com/ClewCode/ClewCode/graphs/contributors">
220
- <img src="https://contrib.rocks/image?repo=ClewCode/ClewCode" alt="Contributors" />
221
- </a>
222
-
223
- ---
224
-
225
- ## Documentation
226
-
227
- [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) · [Taste](docs/taste.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)
228
-
229
- ---
230
-
231
- ## Changelog
232
-
233
- <details>
234
- <summary><strong>v0.2.72026-06-11</strong></summary>
235
-
236
- - **process_peer PTY terminal box** — terminal-style progress box with ANSI-preserving output tail
237
- - **`/peer run codex <task>`**run one-shot Codex process peer from chat
238
- - **Auto-update dialog** — npm update notification before app starts
239
- - **Rich model fetching** — API models now carry context window, vision, tools, reasoning, free tags
240
- - **`/model list` capability tags** — `[200K ctx, vision, tools, reason, free]` per model
241
- - **GlimmerMessage gradient** — per-character color interpolation with fade effect
242
- - **Cost in status line** — shows session cost when >$0
243
-
244
- </details>
245
-
246
- <details>
247
- <summary><strong>v0.2.62026-06-10</strong></summary>
248
-
249
- - **Taste notifications** — toasts for init, learn, forget, suggest actions
250
- - **Peer HTTP heartbeat** — 60s liveness checks, offline peers detected immediately
251
- - **Removed GitHub Copilot** — provider and all references cleaned out
252
- - **`/agents` visual polish** — redesigned dashboard, cleaner layout
253
- - **Auto-updater** — switched from Anthropic GCS to npm registry
254
-
255
- </details>
256
-
257
- <details>
258
- <summary><strong>v0.2.52026-06-10</strong></summary>
259
-
260
- - **Rebranded to Clew Code** — docs, UI copy, and package updated
261
- - **Memory search** — `/memory search` for stored entries
262
- - **Peer tools** — 14 AI coordination tools, peer help, connection count in footer
263
- - **Taste AI tools** — learn, forget, profile, suggest with system notifications
264
- - **Fixed `/providers`** duplicate `const info` runtime error fixed
265
-
266
- </details>
267
-
268
- <details>
269
- <summary><strong>v0.2.4 — 2026-06-08</strong></summary>
270
-
271
- - **Peer-to-peer** — UDP multicast discovery, file registry, 14 AI coordination tools, interactive PeerMenu
272
- - **Taste** — `taste_learn`, `taste_forget`, `taste_profile`, `taste_suggest` tools
273
- - **Autonomous agents** agent loop, supervisor integration, task queue, Loop Lock
274
- - **Workflow Rainbow** — per-character gradient highlight for "workflow" keyword
275
-
276
- </details>
277
-
278
- <details>
279
- <summary><strong>v0.2.3 2026-06-07</strong></summary>
280
-
281
- - `/effort` works with any provider exposing `reasoningEffort` (NVIDIA, DeepSeek, OpenRouter, etc.)
282
- - `/model` fetches live model list from provider APIs
283
- - Taste auto-learns patterns from accept/reject signals
284
- - Relay server for cross-network remote control
285
- - Bridge v2: provider-agnostic remote control
286
- - `/pr create/list/view/review/merge/status`
287
- - Security: PowerShell rules, malformed tool call guard, 100 MB bash output cap
288
-
289
- </details>
290
-
291
- [Full changelog](CHANGELOG.md)
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
+ [![GitHub stars](https://img.shields.io/github/stars/ClewCode/ClewCode?style=social)](https://github.com/ClewCode/ClewCode/stargazers)
12
+ [![Contributors](https://img.shields.io/github/contributors/ClewCode/ClewCode.svg)](https://github.com/ClewCode/ClewCode/graphs/contributors)
13
+ [![Release](https://img.shields.io/github/v/release/ClewCode/ClewCode)](https://github.com/ClewCode/ClewCode/releases)
14
+ [![npm](https://img.shields.io/npm/v/clew-code)](https://www.npmjs.com/package/clew-code)
15
+ [![CI](https://img.shields.io/github/actions/workflow/status/ClewCode/ClewCode/release.yml?branch=main)](https://github.com/ClewCode/ClewCode/actions)
16
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](#license)
17
+ [![Platform](https://img.shields.io/badge/platform-macOS%20·%20Windows%20·%20Linux-lightgrey.svg)](#installation)
18
+ [![Built with Bun](https://img.shields.io/badge/built%20with-Bun-ff69b4.svg)](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.42026-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.32026-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.