clew-code 0.5.0 → 0.6.1
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 +21 -7
- package/dist/main.js +2524 -2287
- package/package.json +5 -2
- package/scripts/agent-room.ts +741 -0
- package/scripts/check-shadow-pairs.sh +40 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="assets/clew-logo-long.png" alt="Clew Code" width="520" />
|
|
3
|
+
<img src="https://raw.githubusercontent.com/ClewCode/ClewCode/main/assets/clew-logo-long.png" alt="Clew Code" width="520" />
|
|
4
4
|
|
|
5
5
|
### *The agent that works where you do.*
|
|
6
6
|
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
---
|
|
23
23
|
|
|
24
24
|
<p align="center">
|
|
25
|
-
<img src="assets/screenshots/clew-code-repl.png" alt="Clew Code REPL" width="680" />
|
|
25
|
+
<img src="https://raw.githubusercontent.com/ClewCode/ClewCode/main/assets/screenshots/clew-code-repl.png" alt="Clew Code REPL" width="680" />
|
|
26
26
|
</p>
|
|
27
27
|
|
|
28
28
|
---
|
|
29
29
|
|
|
30
|
-
Clew Code is a terminal-native AI coding agent that lives in your repo, works with your API keys, and **doesn't phone home**. It reads your code, writes files, runs commands, and talks to any LLM you bring — Claude, GPT, Gemini, DeepSeek, local Ollama models, and
|
|
30
|
+
Clew Code is a terminal-native AI coding agent that lives in your repo, works with your API keys, and **doesn't phone home**. It reads your code, writes files, runs commands, and talks to any LLM you bring — Claude, GPT, Gemini, DeepSeek, local Ollama models, and 25+ other providers — all on your machine, no telemetry, no vendor lock-in.
|
|
31
31
|
|
|
32
32
|
If you want a coding assistant that feels local, fast, and doesn't ship your context to a third-party server, this is it.
|
|
33
33
|
|
|
@@ -168,8 +168,8 @@ Wire in GitHub, Slack, a database, or any [Model Context Protocol](https://model
|
|
|
168
168
|
|
|
169
169
|
<table>
|
|
170
170
|
<tr>
|
|
171
|
-
<td><strong>
|
|
172
|
-
<td>OpenAI, Anthropic, DeepSeek, Groq, Google, Ollama (local), and
|
|
171
|
+
<td><strong>32+ Providers</strong></td>
|
|
172
|
+
<td>OpenAI, Anthropic, DeepSeek, Groq, Google, Ollama (local), OpenGateway, and 25+ more. Switch mid-session with <code>/model</code>. No lock-in.</td>
|
|
173
173
|
</tr>
|
|
174
174
|
<tr>
|
|
175
175
|
<td><strong>Persistent Memory</strong></td>
|
|
@@ -266,6 +266,14 @@ Notable slash commands: `/model`, `/effort`, `/ultracode`, `/memory`, `/rule`, `
|
|
|
266
266
|
|
|
267
267
|
All provider keys can also be set via the `/model` provider setup flow or in `.clew/settings.json` under `env`.
|
|
268
268
|
|
|
269
|
+
### Session Recovery Fallback
|
|
270
|
+
|
|
271
|
+
Clew Code supports resuming sessions from other rebranded or legacy variants of the CLI tool. If a session is not found in the primary `.clew` configuration home directory, the tool automatically scans and loads sessions from the following directories in your user home:
|
|
272
|
+
- `.codex`
|
|
273
|
+
- `.opencode`
|
|
274
|
+
- `.claude`
|
|
275
|
+
- `.gemini`
|
|
276
|
+
|
|
269
277
|
### Project Rules
|
|
270
278
|
|
|
271
279
|
Create `.clew/rules.json` in your repo to define auto-observed behavioral rules — Clew reads them at session start and follows them without being reminded. Manage them interactively with `/rule`. Disable temporarily with `/rule off`.
|
|
@@ -364,7 +372,7 @@ Also available on the [GitHub Wiki](https://github.com/ClewCode/ClewCode/wiki).
|
|
|
364
372
|
- **Entry**: `src/main.tsx` → `src/replLauncher.tsx` boots the Ink/React 19 REPL
|
|
365
373
|
- **REPL screen**: `src/screens/REPL.tsx` routes input to commands or the query engine
|
|
366
374
|
- **Query loop**: `src/QueryEngine.ts` — message construction, tool loop, provider routing, streaming
|
|
367
|
-
- **Providers**: `src/services/ai/` —
|
|
375
|
+
- **Providers**: `src/services/ai/` — 32 providers behind one interface, normalized errors/usage
|
|
368
376
|
- **Tools**: `src/tools/<ToolName>/`, each extending `Tool` from `src/Tool.ts`, registered in `src/tools.ts`
|
|
369
377
|
- **Services**: `src/services/` — MCP client, autonomous task queue, memory consolidation, session search, plugin lifecycle hooks, and more
|
|
370
378
|
|
|
@@ -424,7 +432,13 @@ Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines
|
|
|
424
432
|
|
|
425
433
|
## Star History
|
|
426
434
|
|
|
427
|
-
|
|
435
|
+
<a href="https://www.star-history.com/?repos=ClewCode%2FClewCode&type=date&legend=top-left">
|
|
436
|
+
<picture>
|
|
437
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=ClewCode/ClewCode&type=date&theme=dark&legend=top-left&sealed_token=WOidmKAjTf9NlhzAYdnD299FcNzk3PFmRMroFl8z5CwNew4tB6fhqDAyJqdL3zexXKCpw_12pZ3EOxGEbHT5pMKdM4a2K40Q7Y0ox5ei_IutRqkuUMOdkQ" />
|
|
438
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=ClewCode/ClewCode&type=date&legend=top-left&sealed_token=WOidmKAjTf9NlhzAYdnD299FcNzk3PFmRMroFl8z5CwNew4tB6fhqDAyJqdL3zexXKCpw_12pZ3EOxGEbHT5pMKdM4a2K40Q7Y0ox5ei_IutRqkuUMOdkQ" />
|
|
439
|
+
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=ClewCode/ClewCode&type=date&legend=top-left&sealed_token=WOidmKAjTf9NlhzAYdnD299FcNzk3PFmRMroFl8z5CwNew4tB6fhqDAyJqdL3zexXKCpw_12pZ3EOxGEbHT5pMKdM4a2K40Q7Y0ox5ei_IutRqkuUMOdkQ" />
|
|
440
|
+
</picture>
|
|
441
|
+
</a>
|
|
428
442
|
|
|
429
443
|
---
|
|
430
444
|
|