clew-code 0.2.21 → 0.2.23
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 +45 -45
- package/dist/main.js +2906 -2722
- package/docs/architecture.html +91 -148
- package/docs/assets/clew-agent-loop.png +0 -0
- package/docs/assets/clew-general-architecture.png +0 -0
- package/docs/assets/clew-mcp-architecture.png +0 -0
- package/docs/assets/clew-p2p-swarm.png +0 -0
- package/docs/changelog.html +150 -0
- package/docs/cli-reference.html +90 -0
- package/docs/commands.html +133 -241
- package/docs/configuration.html +85 -147
- package/docs/contributing.html +91 -0
- package/docs/css/styles.css +272 -152
- package/docs/daemon.html +62 -129
- package/docs/features/bridge-mode.html +61 -66
- package/docs/features/evals.html +57 -149
- package/docs/features/searxng-search.html +58 -118
- package/docs/features/sentry-setup.html +61 -124
- package/docs/index.html +185 -148
- package/docs/installation.html +77 -105
- package/docs/internals/growthbook-ab-testing.html +69 -91
- package/docs/internals/hidden-features.html +81 -143
- package/docs/js/main.js +29 -0
- package/docs/loop.html +69 -181
- package/docs/mcp.html +99 -247
- package/docs/models.html +63 -92
- package/docs/permission-model.html +86 -102
- package/docs/plugins.html +84 -102
- package/docs/providers.html +87 -127
- package/docs/quick-start.html +81 -93
- package/docs/research-memory.html +71 -102
- package/docs/security.html +71 -0
- package/docs/skills.html +67 -117
- package/docs/swarm.html +78 -236
- package/docs/tools.html +183 -171
- package/docs/troubleshooting.html +86 -106
- package/docs/voice-mode.html +79 -0
- package/package.json +1 -1
- package/docs/architecture.th.html +0 -79
- package/docs/clew-code-architecture.html +0 -1126
- package/docs/commands.th.html +0 -269
- package/docs/configuration.th.html +0 -108
- package/docs/daemon.th.html +0 -73
- package/docs/features/bridge-mode.th.html +0 -62
- package/docs/features/evals.th.html +0 -62
- package/docs/features/searxng-search.th.html +0 -67
- package/docs/features/sentry-setup.th.html +0 -69
- package/docs/features/swarm.html +0 -156
- package/docs/generated/providers.html +0 -625
- package/docs/generated/tools.html +0 -558
- package/docs/index.th.html +0 -292
- package/docs/installation.th.html +0 -105
- package/docs/internals/growthbook-ab-testing.th.html +0 -60
- package/docs/internals/hidden-features.th.html +0 -107
- package/docs/loop.th.html +0 -227
- package/docs/mcp.th.html +0 -207
- package/docs/models.th.html +0 -61
- package/docs/permission-model.th.html +0 -67
- package/docs/plugins.th.html +0 -79
- package/docs/prompts-and-features.html +0 -806
- package/docs/providers.th.html +0 -81
- package/docs/quick-start.th.html +0 -89
- package/docs/research-memory.th.html +0 -72
- package/docs/skills.th.html +0 -90
- package/docs/swarm.th.html +0 -280
- package/docs/tools.th.html +0 -84
- package/docs/troubleshooting.th.html +0 -85
package/docs/tools.html
CHANGED
|
@@ -1,171 +1,183 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<tr><
|
|
37
|
-
<tr><td
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
<tr><
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<
|
|
58
|
-
<tr><
|
|
59
|
-
<tr><td
|
|
60
|
-
<tr><td
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<
|
|
67
|
-
<tr><th>Tool</th><th>Description</th></tr>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<tr><
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<tr><td
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<tr><
|
|
93
|
-
<tr><td
|
|
94
|
-
<tr><td>
|
|
95
|
-
<tr><td>
|
|
96
|
-
<tr><td>
|
|
97
|
-
<tr><td>
|
|
98
|
-
<tr><td
|
|
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
|
-
<
|
|
126
|
-
<tr><
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
<tr><
|
|
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
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Tools — Clew Code</title>
|
|
7
|
+
<meta name="description" href="50+ built-in tools available in Clew Code.">
|
|
8
|
+
<link rel="icon" type="image/svg+xml" href="assets/clew.svg">
|
|
9
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
10
|
+
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
11
|
+
<link rel="stylesheet" href="css/styles.css">
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<header class="header"></header>
|
|
15
|
+
<div id="sidebarOverlay" class="sidebar-overlay"></div>
|
|
16
|
+
<aside id="sidebar" class="sidebar"></aside>
|
|
17
|
+
|
|
18
|
+
<div class="content-wrap">
|
|
19
|
+
<div class="content">
|
|
20
|
+
|
|
21
|
+
<div class="breadcrumbs"><a href="index.html">Home</a><span class="sep">/</span><span class="current">Tools</span></div>
|
|
22
|
+
|
|
23
|
+
<h1>Tools</h1>
|
|
24
|
+
<p class="sub">Clew Code ships with 50+ built-in tools for file operations, code search, shell commands, web access, browser automation, PR management, mesh networking, and more.</p>
|
|
25
|
+
|
|
26
|
+
<h2 id="file">File Tools</h2>
|
|
27
|
+
<table>
|
|
28
|
+
<thead>
|
|
29
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
30
|
+
</thead>
|
|
31
|
+
<tbody>
|
|
32
|
+
<tr><td>Read</td><td>Read files (text, images, PDFs, notebooks)</td></tr>
|
|
33
|
+
<tr><td>Write</td><td>Create or overwrite files</td></tr>
|
|
34
|
+
<tr><td>Edit</td><td>Exact string replacements in files</td></tr>
|
|
35
|
+
<tr><td>Glob</td><td>Fast file pattern matching</td></tr>
|
|
36
|
+
<tr><td>Grep</td><td>Content search with ripgrep</td></tr>
|
|
37
|
+
<tr><td>NotebookEdit</td><td>Edit Jupyter notebook cells</td></tr>
|
|
38
|
+
</tbody>
|
|
39
|
+
</table>
|
|
40
|
+
|
|
41
|
+
<h2 id="shell">Shell & Execution Tools</h2>
|
|
42
|
+
<table>
|
|
43
|
+
<thead>
|
|
44
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
45
|
+
</thead>
|
|
46
|
+
<tbody>
|
|
47
|
+
<tr><td>Bash</td><td>Execute shell commands (with timeout and output cap)</td></tr>
|
|
48
|
+
<tr><td>Monitor</td><td>Stream background task output in real-time</td></tr>
|
|
49
|
+
</tbody>
|
|
50
|
+
</table>
|
|
51
|
+
|
|
52
|
+
<h2 id="web">Web Tools</h2>
|
|
53
|
+
<table>
|
|
54
|
+
<thead>
|
|
55
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
56
|
+
</thead>
|
|
57
|
+
<tbody>
|
|
58
|
+
<tr><td>WebSearch</td><td>Web search with domain filtering</td></tr>
|
|
59
|
+
<tr><td>WebFetch</td><td>Fetch and analyze URL content</td></tr>
|
|
60
|
+
<tr><td>Browser</td><td>Stealth Playwright browser (navigate, click, fill, screenshot, etc.)</td></tr>
|
|
61
|
+
</tbody>
|
|
62
|
+
</table>
|
|
63
|
+
|
|
64
|
+
<h2 id="git">Git & PR Tools</h2>
|
|
65
|
+
<table>
|
|
66
|
+
<thead>
|
|
67
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
68
|
+
</thead>
|
|
69
|
+
<tbody>
|
|
70
|
+
<tr><td>PR</td><td>Full PR lifecycle (create, list, view, review, merge, status)</td></tr>
|
|
71
|
+
</tbody>
|
|
72
|
+
</table>
|
|
73
|
+
|
|
74
|
+
<h2 id="data">Data Tools</h2>
|
|
75
|
+
<table>
|
|
76
|
+
<thead>
|
|
77
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
78
|
+
</thead>
|
|
79
|
+
<tbody>
|
|
80
|
+
<tr><td>JsonPath</td><td>Query, validate, format, minify JSON</td></tr>
|
|
81
|
+
</tbody>
|
|
82
|
+
</table>
|
|
83
|
+
|
|
84
|
+
<h2 id="mesh">Mesh Networking Tools</h2>
|
|
85
|
+
<p>15 LAN coordination tools available for agent-to-agent communication:</p>
|
|
86
|
+
<table>
|
|
87
|
+
<thead>
|
|
88
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
89
|
+
</thead>
|
|
90
|
+
<tbody>
|
|
91
|
+
<tr><td>mesh_discover</td><td>Scan LAN for Clew instances</td></tr>
|
|
92
|
+
<tr><td>mesh_run</td><td>Execute shell command on a remote peer</td></tr>
|
|
93
|
+
<tr><td>mesh_spawn</td><td>Spawn a new local peer Clew instance</td></tr>
|
|
94
|
+
<tr><td>mesh_share</td><td>Advertise this instance as a worker</td></tr>
|
|
95
|
+
<tr><td>mesh_join</td><td>Connect to a remote peer</td></tr>
|
|
96
|
+
<tr><td>mesh_ping</td><td>Check if a peer is online</td></tr>
|
|
97
|
+
<tr><td>mesh_broadcast</td><td>Send task to all connected peers</td></tr>
|
|
98
|
+
<tr><td>mesh_send_message</td><td>Send a chat message to a peer</td></tr>
|
|
99
|
+
<tr><td>mesh_list_roles</td><td>List all peers with roles</td></tr>
|
|
100
|
+
<tr><td>mesh_list_messages</td><td>List chat history with a peer</td></tr>
|
|
101
|
+
<tr><td>mesh_set_name</td><td>Assign a custom name to a peer</td></tr>
|
|
102
|
+
<tr><td>mesh_set_role</td><td>Assign a role to a peer</td></tr>
|
|
103
|
+
<tr><td>mesh_disconnect</td><td>Remove a peer connection</td></tr>
|
|
104
|
+
<tr><td>mesh_info</td><td>Show detailed peer information</td></tr>
|
|
105
|
+
<tr><td>mesh_help</td><td>Mesh tool reference</td></tr>
|
|
106
|
+
</tbody>
|
|
107
|
+
</table>
|
|
108
|
+
|
|
109
|
+
<h2 id="mcp-tools">MCP Tools</h2>
|
|
110
|
+
<table>
|
|
111
|
+
<thead>
|
|
112
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
113
|
+
</thead>
|
|
114
|
+
<tbody>
|
|
115
|
+
<tr><td>ListMcpResourcesTool</td><td>List available MCP resources</td></tr>
|
|
116
|
+
<tr><td>ReadMcpResourceTool</td><td>Read a specific MCP resource</td></tr>
|
|
117
|
+
</tbody>
|
|
118
|
+
</table>
|
|
119
|
+
|
|
120
|
+
<h2 id="process">Process Mesh Tools</h2>
|
|
121
|
+
<table>
|
|
122
|
+
<thead>
|
|
123
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
124
|
+
</thead>
|
|
125
|
+
<tbody>
|
|
126
|
+
<tr><td>process_mesh</td><td>Run a local process-backed AI worker (Codex exec/pty)</td></tr>
|
|
127
|
+
</tbody>
|
|
128
|
+
</table>
|
|
129
|
+
|
|
130
|
+
<h2 id="task">Task & Planning Tools</h2>
|
|
131
|
+
<table>
|
|
132
|
+
<thead>
|
|
133
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
134
|
+
</thead>
|
|
135
|
+
<tbody>
|
|
136
|
+
<tr><td>TaskCreate</td><td>Create a structured task</td></tr>
|
|
137
|
+
<tr><td>TaskUpdate</td><td>Update task status</td></tr>
|
|
138
|
+
<tr><td>TaskList</td><td>List all tasks</td></tr>
|
|
139
|
+
<tr><td>TaskGet</td><td>Get task details</td></tr>
|
|
140
|
+
<tr><td>TaskStop</td><td>Stop a running task</td></tr>
|
|
141
|
+
<tr><td>EnterPlanMode</td><td>Enter full-access planning mode</td></tr>
|
|
142
|
+
<tr><td>ExitPlanMode</td><td>Exit planning mode with approval</td></tr>
|
|
143
|
+
<tr><td>EnterWorktree</td><td>Create and enter an isolated worktree</td></tr>
|
|
144
|
+
<tr><td>ExitWorktree</td><td>Exit and clean up a worktree</td></tr>
|
|
145
|
+
</tbody>
|
|
146
|
+
</table>
|
|
147
|
+
|
|
148
|
+
<h2 id="voice">Voice Tools</h2>
|
|
149
|
+
<table>
|
|
150
|
+
<thead>
|
|
151
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
152
|
+
</thead>
|
|
153
|
+
<tbody>
|
|
154
|
+
<tr><td>Voice tools</td><td>Voice recording, transcription (Whisper), session management</td></tr>
|
|
155
|
+
</tbody>
|
|
156
|
+
</table>
|
|
157
|
+
|
|
158
|
+
<h2 id="generation">Generation Tools</h2>
|
|
159
|
+
<table>
|
|
160
|
+
<thead>
|
|
161
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
162
|
+
</thead>
|
|
163
|
+
<tbody>
|
|
164
|
+
<tr><td>GenerateImage</td><td>Generate images via DALL-E 3, Imagen 3, or OpenRouter (Gemini Image / FLUX). Auto-discovers models from provider APIs. Saves images to <code>.clew/generated/</code>.</td></tr>
|
|
165
|
+
<tr><td>GenerateVideo</td><td>Generate videos via Runway Gen-4. Async polling with timeout. Saves videos to <code>.clew/generated/</code>. Requires <code>RUNWAY_API_KEY</code>.</td></tr>
|
|
166
|
+
</tbody>
|
|
167
|
+
</table>
|
|
168
|
+
|
|
169
|
+
<h2 id="skill">Skill Tools</h2>
|
|
170
|
+
<table>
|
|
171
|
+
<thead>
|
|
172
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
173
|
+
</thead>
|
|
174
|
+
<tbody>
|
|
175
|
+
<tr><td>Skill</td><td>Execute a skill within the conversation</td></tr>
|
|
176
|
+
</tbody>
|
|
177
|
+
</table>
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
181
|
+
<script src="js/main.js"></script>
|
|
182
|
+
</body>
|
|
183
|
+
</html>
|
|
@@ -1,106 +1,86 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
<
|
|
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
|
-
<li><strong>GitHub Issues:</strong> Report bugs and feature requests</li>
|
|
88
|
-
<li><strong>Debug mode:</strong> Run with <code>DEBUG=1</code> or <code>DEBUG=provider:anthropic</code> for detailed logging</li>
|
|
89
|
-
</ul>
|
|
90
|
-
|
|
91
|
-
<footer class="footer">
|
|
92
|
-
<span>Clew Code 0.2.14 — Open Source</span>
|
|
93
|
-
<div class="footer-links">
|
|
94
|
-
<a href="https://github.com/ClewCode/ClewCode">GitHub</a>
|
|
95
|
-
<a href="https://github.com/ClewCode/ClewCode/issues">Issues</a>
|
|
96
|
-
<a href="https://npmjs.com/package/clew-code">npm</a>
|
|
97
|
-
</div>
|
|
98
|
-
</footer>
|
|
99
|
-
</main>
|
|
100
|
-
<nav class="toc-sidebar"></nav>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
<script src="js/main.js"></script>
|
|
104
|
-
</body>
|
|
105
|
-
</html>
|
|
106
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Troubleshooting — Clew Code</title>
|
|
7
|
+
<meta name="description" href="Common issues and solutions for Clew Code.">
|
|
8
|
+
<link rel="icon" type="image/svg+xml" href="assets/clew.svg">
|
|
9
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
10
|
+
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
11
|
+
<link rel="stylesheet" href="css/styles.css">
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<header class="header"></header>
|
|
15
|
+
<div id="sidebarOverlay" class="sidebar-overlay"></div>
|
|
16
|
+
<aside id="sidebar" class="sidebar"></aside>
|
|
17
|
+
|
|
18
|
+
<div class="content-wrap">
|
|
19
|
+
<div class="content">
|
|
20
|
+
|
|
21
|
+
<div class="breadcrumbs"><a href="index.html">Home</a><span class="sep">/</span><span class="current">Troubleshooting</span></div>
|
|
22
|
+
|
|
23
|
+
<h1>Troubleshooting</h1>
|
|
24
|
+
|
|
25
|
+
<h2 id="no-provider">No Provider Configured</h2>
|
|
26
|
+
<p>If Clew doesn't start, set at least one provider API key in your environment:</p>
|
|
27
|
+
<pre><code class="language-bash">export ANTHROPIC_API_KEY=sk-ant-...
|
|
28
|
+
clew
|
|
29
|
+
</code></pre>
|
|
30
|
+
<p>Or use the <code>/model</code> command inside the REPL to switch providers.</p>
|
|
31
|
+
|
|
32
|
+
<h2 id="build-errors">Build Errors on Windows</h2>
|
|
33
|
+
<pre><code class="language-powershell">Remove-Item -Recurse -Force node_modules
|
|
34
|
+
bun install
|
|
35
|
+
bun run dev
|
|
36
|
+
</code></pre>
|
|
37
|
+
|
|
38
|
+
<h2 id="mesh-connectivity">Mesh / Peer Discovery Not Working</h2>
|
|
39
|
+
<ul>
|
|
40
|
+
<li>Ensure both instances are on the same LAN</li>
|
|
41
|
+
<li>Check that UDP multicast is not blocked by your firewall</li>
|
|
42
|
+
<li>Run <code>/mesh discover</code> with a longer timeout</li>
|
|
43
|
+
<li>Try sharing via file registry: <code>/mesh share</code></li>
|
|
44
|
+
</ul>
|
|
45
|
+
|
|
46
|
+
<h2 id="mcp-connection">MCP Server Connection Failures</h2>
|
|
47
|
+
<ul>
|
|
48
|
+
<li>Verify the server command exists (<code>which npx</code>, <code>which uvx</code>)</li>
|
|
49
|
+
<li>Check <code>.mcp.json</code> syntax</li>
|
|
50
|
+
<li>Run <code>/mcp list</code> to see all connected servers</li>
|
|
51
|
+
<li>For SSE servers, verify the remote URL is reachable</li>
|
|
52
|
+
</ul>
|
|
53
|
+
|
|
54
|
+
<h2 id="context-limit">Context Limit Reached</h2>
|
|
55
|
+
<p>Use the compact command to compress conversation history:</p>
|
|
56
|
+
<pre><code class="language-bash">❯ /compact
|
|
57
|
+
</code></pre>
|
|
58
|
+
<p>This triggers the multi-pass context compaction system.</p>
|
|
59
|
+
|
|
60
|
+
<h2 id="permission-denied">Permission Denied Errors</h2>
|
|
61
|
+
<p>Switch to a permissive mode or configure allow rules:</p>
|
|
62
|
+
<pre><code class="language-bash">❯ /permissions auto # auto-approve safe tools
|
|
63
|
+
❯ /permissions plan # full bypass for planning
|
|
64
|
+
</code></pre>
|
|
65
|
+
<p>See <a href="permission-model.html">Permission Model</a> for details.</p>
|
|
66
|
+
|
|
67
|
+
<h2 id="provider-switch">Provider Switch Issues</h2>
|
|
68
|
+
<ul>
|
|
69
|
+
<li>Ensure the corresponding API key is set</li>
|
|
70
|
+
<li>Some models have tool-calling limitations</li>
|
|
71
|
+
<li>Run <code>/model list</code> to see available models with capability tags</li>
|
|
72
|
+
</ul>
|
|
73
|
+
|
|
74
|
+
<h2 id="logs">Getting Help</h2>
|
|
75
|
+
<ul>
|
|
76
|
+
<li>Run <code>/doctor</code> for system diagnostics</li>
|
|
77
|
+
<li>Run <code>/status</code> for session info</li>
|
|
78
|
+
<li>Check <code>.session/</code> for session logs</li>
|
|
79
|
+
<li><a href="https://github.com/ClewCode/ClewCode/issues">Open a GitHub issue</a></li>
|
|
80
|
+
</ul>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<script src="js/main.js"></script>
|
|
85
|
+
</body>
|
|
86
|
+
</html>
|