clew-code 0.2.21 → 0.2.22

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 (66) hide show
  1. package/dist/main.js +1861 -1856
  2. package/docs/architecture.html +91 -148
  3. package/docs/assets/clew-agent-loop.png +0 -0
  4. package/docs/assets/clew-general-architecture.png +0 -0
  5. package/docs/assets/clew-mcp-architecture.png +0 -0
  6. package/docs/assets/clew-p2p-swarm.png +0 -0
  7. package/docs/changelog.html +150 -0
  8. package/docs/cli-reference.html +90 -0
  9. package/docs/commands.html +156 -265
  10. package/docs/configuration.html +85 -147
  11. package/docs/contributing.html +91 -0
  12. package/docs/css/styles.css +425 -425
  13. package/docs/daemon.html +62 -129
  14. package/docs/features/bridge-mode.html +61 -66
  15. package/docs/features/evals.html +57 -149
  16. package/docs/features/searxng-search.html +58 -118
  17. package/docs/features/sentry-setup.html +61 -124
  18. package/docs/index.html +137 -125
  19. package/docs/installation.html +77 -105
  20. package/docs/internals/growthbook-ab-testing.html +69 -91
  21. package/docs/internals/hidden-features.html +81 -143
  22. package/docs/js/main.js +29 -0
  23. package/docs/loop.html +69 -181
  24. package/docs/mcp.html +99 -247
  25. package/docs/models.html +69 -110
  26. package/docs/permission-model.html +86 -102
  27. package/docs/plugins.html +84 -102
  28. package/docs/providers.html +87 -127
  29. package/docs/quick-start.html +81 -93
  30. package/docs/research-memory.html +71 -102
  31. package/docs/security.html +71 -0
  32. package/docs/skills.html +67 -117
  33. package/docs/swarm.html +78 -236
  34. package/docs/tools.html +152 -151
  35. package/docs/troubleshooting.html +86 -106
  36. package/docs/voice-mode.html +79 -0
  37. package/package.json +1 -1
  38. package/docs/architecture.th.html +0 -79
  39. package/docs/clew-code-architecture.html +0 -1126
  40. package/docs/commands.th.html +0 -269
  41. package/docs/configuration.th.html +0 -108
  42. package/docs/daemon.th.html +0 -73
  43. package/docs/features/bridge-mode.th.html +0 -62
  44. package/docs/features/evals.th.html +0 -62
  45. package/docs/features/searxng-search.th.html +0 -67
  46. package/docs/features/sentry-setup.th.html +0 -69
  47. package/docs/features/swarm.html +0 -156
  48. package/docs/generated/providers.html +0 -625
  49. package/docs/generated/tools.html +0 -558
  50. package/docs/index.th.html +0 -292
  51. package/docs/installation.th.html +0 -105
  52. package/docs/internals/growthbook-ab-testing.th.html +0 -60
  53. package/docs/internals/hidden-features.th.html +0 -107
  54. package/docs/loop.th.html +0 -227
  55. package/docs/mcp.th.html +0 -207
  56. package/docs/models.th.html +0 -61
  57. package/docs/permission-model.th.html +0 -67
  58. package/docs/plugins.th.html +0 -79
  59. package/docs/prompts-and-features.html +0 -806
  60. package/docs/providers.th.html +0 -81
  61. package/docs/quick-start.th.html +0 -89
  62. package/docs/research-memory.th.html +0 -72
  63. package/docs/skills.th.html +0 -90
  64. package/docs/swarm.th.html +0 -280
  65. package/docs/tools.th.html +0 -84
  66. package/docs/troubleshooting.th.html +0 -85
@@ -1,265 +1,156 @@
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>Commands — Clew</title>
7
- <meta name="description" content="Complete reference for all slash commands in Clew — built-in commands, skills, and plugin commands.">
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
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
- <link rel="icon" type="image/svg+xml" href="./assets/clew.svg">
13
- </head>
14
- <body>
15
- <header class="header"></header>
16
- <div class="app"><aside class="sidebar" id="sidebar"></aside><div class="sidebar-overlay" id="sidebarOverlay"></div>
17
- <div class="content-wrap"><main class="content">
18
- <div class="breadcrumbs"><a href="index.html">Home</a><span class="sep">/</span><span>Commands</span></div>
19
- <h1>Commands</h1>
20
- <p class="section-subtitle">Clew ships with <strong>120+ slash commands</strong> (411 files across 120+ directories) plus dynamically loaded skills and plugin commands. Commands can be <strong>local</strong> (terminal execution), <strong>prompt</strong> (text expanded to the model), or <strong>local-jsx</strong> (Ink UI panels).</p>
21
-
22
- <div class="callout callout-tip">
23
- <strong>Discovery</strong>
24
- Type <code>/</code> in the REPL to see all available commands in your build. Commands are registered in <code>src/commands.ts</code> and loaded from built-in, plugin, skill, bundled, and workflow sources.
25
- </div>
26
-
27
- <h2>Session &amp; Context</h2>
28
- <table>
29
- <tr><th>Command</th><th>Description</th></tr>
30
- <tr><td><code>/clear</code></td><td>Clear conversation history and free up context</td></tr>
31
- <tr><td><code>/compact</code></td><td>Compress session context — splits into chunks + re-compacts recursively when context exceeds model window</td></tr>
32
- <tr><td><code>/context</code></td><td>Visualize current context usage as a colored grid</td></tr>
33
- <tr><td><code>/resume</code></td><td>Resume a previous conversation</td></tr>
34
- <tr><td><code>/rename</code></td><td>Rename the current conversation</td></tr>
35
- <tr><td><code>/rewind</code></td><td>Restore code and/or conversation to a previous point</td></tr>
36
- <tr><td><code>/copy</code></td><td>Copy Clew's last response to clipboard (or /copy N for Nth-latest)</td></tr>
37
- <tr><td><code>/export</code></td><td>Export the current conversation to a file or clipboard</td></tr>
38
- <tr><td><code>/session</code></td><td>Show remote session URL and QR code</td></tr>
39
- <tr><td><code>/branch</code></td><td>Create a branch of the current conversation at this point</td></tr>
40
- <tr><td><code>/files</code></td><td>List all files currently in context</td></tr>
41
- </table>
42
-
43
- <h2>Model &amp; Provider</h2>
44
- <table>
45
- <tr><th>Command</th><th>Description</th></tr>
46
- <tr><td><code>/model</code></td><td>Switch model or provider — fetches live models from provider API when available (Enter=save default, <code>s</code>=session-only)</td></tr>
47
- <tr><td><code>/provider-select</code></td><td>Show or change the active AI provider and model</td></tr>
48
- <tr><td><code>/taste</code></td><td>Open taste preference-learning interactive menu (learn, forget, profile, events, decay, eval, on/off)</td></tr>
49
- <tr><td><code>/effort</code></td><td>Set effort level for model reasoning (low, medium, high, xhigh, max, ultracode, auto) — works with all providers that support reasoning_effort</td></tr>
50
- <tr><td><code>/ultracode</code></td><td>Toggle ultracode mode — xhigh effort + auto-triggered dynamic workflows (parallel subtasks + adversarial verifiers) for complex prompts</td></tr>
51
- <tr><td><code>/cost</code></td><td>Show the total cost and duration of the current session</td></tr>
52
- <tr><td><code>/usage</code></td><td>Show plan usage limits</td></tr>
53
- <tr><td><code>/usage-credits</code></td><td>Configure usage credits to keep working when limits are hit</td></tr>
54
- <tr><td><code>/stats</code></td><td>Show your Clew usage statistics and activity</td></tr>
55
- <tr><td><code>/rate-limit-options</code></td><td>Show options when rate limit is reached</td></tr>
56
- <tr><td><code>/upgrade</code></td><td>Upgrade to Max for higher rate limits and more Opus</td></tr>
57
- </table>
58
-
59
- <h2>Tools &amp; Permissions</h2>
60
- <table>
61
- <tr><th>Command</th><th>Description</th></tr>
62
- <tr><td><code>/tools</code></td><td>List all tools with usage stats and estimated token cost</td></tr>
63
- <tr><td><code>/permissions</code></td><td>Manage allow &amp; deny tool permission rules</td></tr>
64
- <tr><td><code>/plan</code></td><td>Enable plan mode or view the current session plan</td></tr>
65
- <tr><td><code>/approve</code></td><td>Approve pending tool execution actions</td></tr>
66
- <tr><td><code>/privacy-settings</code></td><td>View and update your privacy settings</td></tr>
67
- <tr><td><code>/datadog</code></td><td>Manage individual telemetry and analytics settings (Datadog, Anthropic, Global)</td></tr>
68
- <tr><td><code>/capabilities</code></td><td>Show available system capabilities (git, tmux, browser, network, shells)</td></tr>
69
- <tr><td><code>/hooks</code></td><td>View hook configurations for tool events (PreToolUse, PostToolUse, MessageDisplay, SessionStart)</td></tr>
70
- <tr><td><code>/sandbox-toggle</code></td><td>Toggle sandbox mode for tool execution</td></tr>
71
- <tr><td><code>/guardian</code></td><td>Toggle safety guardian mode for dangerous operations</td></tr>
72
- <tr><td><code>/fast</code></td><td>Toggle fast mode — skips permission prompts for low-risk operations</td></tr>
73
- <tr><td><code>/passes</code></td><td>Manage session access passes and tokens</td></tr>
74
- </table>
75
-
76
- <h2>Extensions (Plugins, MCP, Skills)</h2>
77
- <table>
78
- <tr><th>Command</th><th>Description</th></tr>
79
- <tr><td><code>/plugin</code></td><td>Manage plugins list, install, remove</td></tr>
80
- <tr><td><code>/plugin-details</code></td><td>Show plugin component inventory, hooks, MCP servers, and per-session token cost</td></tr>
81
- <tr><td><code>/reload-plugins</code></td><td>Activate pending plugin changes in the current session</td></tr>
82
- <tr><td><code>/mcp</code></td><td>Manage MCP servers (<code>list</code> shows pending approval for unapproved .mcp.json servers)</td></tr>
83
- <tr><td><code>/code-review</code></td><td>Review changed code for correctness bugs (low/medium/high effort; <code>--fix</code> applies changes, <code>--comment</code> posts PR comments)</td></tr>
84
- <tr><td><code>/simplify</code></td><td>Cleanup-only code review (reuse, efficiency, altitude) with auto-fix</td></tr>
85
- <tr><td><code>/skill</code></td><td>List available skills or show skill details</td></tr>
86
- <tr><td><code>/skills</code></td><td>List available skills</td></tr>
87
- <tr><td><code>/workflow</code></td><td>List and run multi-step workflows defined in YAML/JSON</td></tr>
88
- <tr><td><code>/acp</code></td><td>Agent Communication Protocol — agent-to-agent messaging and coordination</td></tr>
89
- </table>
90
-
91
- <h2>Collaboration &amp; Mesh</h2>
92
- <table>
93
- <tr><th>Command</th><th>Description</th></tr>
94
- <tr><td><code>/swarm</code></td><td>Open interactive LAN swarm menu (share, discover, join, inbox)</td></tr>
95
- <tr><td><code>/swarm share</code></td><td>Start advertising this Clew instance as a worker</td></tr>
96
- <tr><td><code>/swarm share stop</code></td><td>Stop advertising and shut down the local swarm server</td></tr>
97
- <tr><td><code>/swarm discover</code></td><td>Scan for available LAN workers</td></tr>
98
- <tr><td><code>/swarm join &lt;host&gt;:&lt;port&gt;</code></td><td>Connect to a remote Clew swarm peer</td></tr>
99
- <tr><td><code>/swarm todo &lt;peer&gt; &lt;task&gt;</code></td><td>Assign a task to a worker</td></tr>
100
- <tr><td><code>/swarm todos</code></td><td>List received tasks</td></tr>
101
- <tr><td><code>/swarm inbox</code></td><td>View pending messages and tasks</td></tr>
102
- <tr><td><code>/mesh</code></td><td>Direct mesh network operations — peer discovery, status, and topology</td></tr>
103
- <tr><td><code>/remote</code></td><td>Manage remote Clew sessions and connections</td></tr>
104
- <tr><td><code>/remote-setup</code></td><td>Configure remote environment for teleport sessions</td></tr>
105
- <tr><td><code>/teleport</code></td><td>Teleport to a remote session environment</td></tr>
106
- <tr><td><code>/share</code></td><td>Share the current session with other users</td></tr>
107
- </table>
108
-
109
- <h2>Agents</h2>
110
- <table>
111
- <tr><th>Command</th><th>Description</th></tr>
112
- <tr><td><code>/agent</code></td><td>Manage Clew AI Agents execution, state checkpoints, and approvals</td></tr>
113
- <tr><td><code>/agents</code></td><td>Open interactive agent dashboard with grouped sessions, PR columns, dispatch autocomplete, AI summaries, and keyboard shortcuts</td></tr>
114
- <tr><td><code>!bg &lt;command&gt;</code></td><td>Run a shell command as a persistent background agent task, visible in the agents dashboard with live status tracking</td></tr>
115
- <tr><td><code>/tasks</code></td><td>List and manage background tasks</td></tr>
116
- <tr><td><code>/daemon</code></td><td>Open an interactive 24/7 autonomous daemon control panel; subcommands still support start/stop/status/restart</td></tr>
117
- <tr><td><code>/task</code></td><td>Create scheduled tasks with an interactive form; subcommands still manage the autonomous task queue</td></tr>
118
- <tr><td><code>/loop</code></td><td>Run a prompt or slash command on a recurring interval (e.g. <code>/loop 5m /check-deploy</code>)</td></tr>
119
- <tr><td><code>/autofix-pr</code></td><td>Fix CI errors and address review comments on a PR using Clew on the web</td></tr>
120
- <tr><td><code>/recap</code></td><td>Show a summary of the current session's activity</td></tr>
121
- <tr><td><code>/dashboard</code></td><td>Open interactive agent and task dashboard</td></tr>
122
- </table>
123
-
124
- <h2>System &amp; Diagnostics</h2>
125
- <table>
126
- <tr><th>Command</th><th>Description</th></tr>
127
- <tr><td><code>/help</code></td><td>Show help and available commands</td></tr>
128
- <tr><td><code>/status</code></td><td>Show Clew status including version, model, account, API connectivity, and tool statuses</td></tr>
129
- <tr><td><code>/doctor</code></td><td>Diagnose and verify your Clew installation and settings</td></tr>
130
- <tr><td><code>/exit</code></td><td>Exit the REPL</td></tr>
131
- <tr><td><code>/version</code></td><td>Show version</td></tr>
132
- <tr><td><code>/release-notes</code></td><td>View release notes</td></tr>
133
- <tr><td><code>/upgrade</code></td><td>Upgrade to Max for higher rate limits</td></tr>
134
- </table>
135
-
136
- <h2>Configuration</h2>
137
- <table>
138
- <tr><th>Command</th><th>Description</th></tr>
139
- <tr><td><code>/config</code></td><td>Open config panel</td></tr>
140
- <tr><td><code>/theme</code></td><td>Change the theme</td></tr>
141
- <tr><td><code>/color</code></td><td>Set the prompt bar color for this session</td></tr>
142
- <tr><td><code>/keybindings</code></td><td>Open or create your keybindings configuration file</td></tr>
143
- <tr><td><code>/scroll-speed</code></td><td>Set mouse wheel scroll speed multiplier (1-20)</td></tr>
144
- <tr><td><code>/output-style</code></td><td>Deprecated: use /config to change output style</td></tr>
145
- <tr><td><code>/remote-env</code></td><td>Configure the default remote environment for teleport sessions</td></tr>
146
- <tr><td><code>/setting-sources</code></td><td>Configure setting sources</td></tr>
147
- <tr><td><code>/init</code></td><td>Run Setup hooks with init trigger</td></tr>
148
- <tr><td><code>/env</code></td><td>View and manage environment variables</td></tr>
149
- </table>
150
-
151
- <h2>Git &amp; Code Review</h2>
152
- <table>
153
- <tr><th>Command</th><th>Description</th></tr>
154
- <tr><td><code>/diff</code></td><td>View uncommitted changes and per-turn diffs</td></tr>
155
- <tr><td><code>/commit</code></td><td>Stage and commit changes</td></tr>
156
- <tr><td><code>/commit-push-pr</code></td><td>Commit, push, and create a PR</td></tr>
157
- <tr><td><code>/review</code></td><td>Review code changes</td></tr>
158
- <tr><td><code>/security-review</code></td><td>Run a security review</td></tr>
159
- <tr><td><code>/pr-comments</code></td><td>Get comments from a GitHub pull request</td></tr>
160
- <tr><td><code>/pr</code></td><td>Full GitHub PR lifecycle — create, list, view, review, merge, status</td></tr>
161
- <tr><td><code>/install-github-app</code></td><td>Set up Clew GitHub Actions for a repository</td></tr>
162
- <tr><td><code>/issue</code></td><td>Create and manage GitHub issues</td></tr>
163
- </table>
164
-
165
- <h2>Research &amp; Search</h2>
166
- <table>
167
- <tr><th>Command</th><th>Description</th></tr>
168
- <tr><td><code>/research</code></td><td>Deep source-grounded research across local files, wiki, and memory</td></tr>
169
- <tr><td><code>/memory</code></td><td>Memory management &mdash; <code>save</code>, <code>timeline</code>, <code>stats</code>, <code>digest</code>, <code>graph</code>, <code>xp</code>, <code>search</code>, <code>preview</code>, <code>consolidate</code></td></tr>
170
- <tr><td><code>/memory-search</code></td><td>Search memories using semantic search (cross-lingual)</td></tr>
171
- <tr><td><code>/searxng</code></td><td>Start, stop, or check status of the local SearXNG Docker container</td></tr>
172
- <tr><td><code>/explorer</code></td><td>Toggle file explorer sidebar</td></tr>
173
- <tr><td><code>/tag</code></td><td>Manage tags for sessions, files, and memories</td></tr>
174
- </table>
175
-
176
- <h2>Evaluation</h2>
177
- <table>
178
- <tr><th>Command</th><th>Description</th></tr>
179
- <tr><td><code>/eval</code></td><td>Evaluate AI agent performance with the verification harness</td></tr>
180
- </table>
181
-
182
- <h2>Utilities</h2>
183
- <table>
184
- <tr><th>Command</th><th>Description</th></tr>
185
- <tr><td><code>/btw</code></td><td>Ask a quick side question without interrupting the main conversation</td></tr>
186
- <tr><td><code>/buddy</code></td><td>Configure your AI companion (Buddy)</td></tr>
187
- <tr><td><code>/desktop</code></td><td>Continue the current session in Claude Desktop</td></tr>
188
- <tr><td><code>/mobile</code></td><td>Show QR code to download the Claude mobile app</td></tr>
189
- <tr><td><code>/powerup</code></td><td>Interactive lessons teaching Clew features with animated demos</td></tr>
190
- <tr><td><code>/feedback</code></td><td>Submit feedback about Clew</td></tr>
191
- <tr><td><code>/onboarding</code></td><td>Run the interactive onboarding wizard</td></tr>
192
- <tr><td><code>/team-onboarding</code></td><td>Generate a teammate ramp-up guide from your local usage</td></tr>
193
- <tr><td><code>/add-dir</code></td><td>Add a new working directory</td></tr>
194
- <tr><td><code>/goal</code></td><td>Set a session goal</td></tr>
195
- <tr><td><code>/heapdump</code></td><td>Dump the JS heap to ~/Desktop</td></tr>
196
- <tr><td><code>/stickers</code></td><td>Order Clew stickers</td></tr>
197
- <tr><td><code>/thinkback</code></td><td>Your Clew Year in Review</td></tr>
198
- <tr><td><code>/vim</code></td><td>Toggle Vim keybindings in the REPL</td></tr>
199
- <tr><td><code>/chrome</code></td><td>Open and manage Chrome browser integration</td></tr>
200
- <tr><td><code>/login</code></td><td>Authenticate with an AI provider via OAuth or API key</td></tr>
201
- <tr><td><code>/logout</code></td><td>Log out from the current provider authentication</td></tr>
202
- <tr><td><code>/install</code></td><td>Run the Clew installation wizard</td></tr>
203
- <tr><td><code>/install-slack-app</code></td><td>Set up the Clew Slack app integration</td></tr>
204
- <tr><td><code>/insights</code></td><td>Show personalized usage insights and suggestions</td></tr>
205
- </table>
206
-
207
- <h2>Feature-Gated Commands</h2>
208
- <p>These commands require specific environment variables or build-time features to be enabled:</p>
209
- <table>
210
- <tr><th>Command</th><th>Flag</th><th>Description</th></tr>
211
- <tr><td><code>/bridge</code></td><td><code>BRIDGE_MODE=1</code></td><td>Connect this terminal for remote-control sessions</td></tr>
212
- <tr><td><code>/voice</code></td><td><code>VOICE_MODE=1</code></td><td>Toggle voice mode</td></tr>
213
- <tr><td><code>/brief</code></td><td><code>KAIROS=1</code></td><td>Brief command</td></tr>
214
- <tr><td><code>/assistant</code></td><td><code>KAIROS=1</code></td><td>Assistant mode</td></tr>
215
- <tr><td><code>/ant</code></td><td><code>USER_TYPE=ant</code></td><td>Toggle ant-only beta features</td></tr>
216
- <tr><td><code>/ultraplan</code></td><td>Internal</td><td>Extended plan mode</td></tr>
217
- <tr><td><code>/bughunter</code></td><td>Internal</td><td>Bug hunting workflow</td></tr>
218
- <tr><td><code>/ide</code></td><td>Runtime</td><td>Auto-connect to IDE on startup</td></tr>
219
- <tr><td><code>/terminal-setup</code></td><td>Runtime</td><td>Configure terminal shell and environment</td></tr>
220
- <tr><td><code>/extra-usage</code></td><td>Runtime</td><td>Request additional usage credits</td></tr>
221
- </table>
222
-
223
- <h2>Interactive Autocomplete</h2>
224
- <p>Clew features an inline ghost text system that predicts the next argument as you type commands:</p>
225
- <ul>
226
- <li>Type <code>/goal</code> followed by a space inline ghost text shows <code>[condition]</code> in dim text after the cursor</li>
227
- <li>Press <kbd>Tab</kbd> or <kbd>→</kbd> (Right Arrow) to accept the ghost text and fill the placeholder</li>
228
- <li>Supports progressive hints: <code>/goal fix [name] [priority]</code> reveals remaining args as you fill each one</li>
229
- <li>Commands with <code>argumentHint</code> (e.g. <code>/plugin-details &lt;plugin-name&gt;</code>) show static placeholder hints</li>
230
- </ul>
231
- <p>For mid-input command completion, the same ghost text engine fills in partial command names:</p>
232
- <ul>
233
- <li>Type <code>/com</code> ghost text shows <code>mit</code> for <code>/commit</code></li>
234
- <li>Press <kbd>Tab</kbd> or <kbd>→</kbd> to complete the command name</li>
235
- </ul>
236
-
237
- <h2>Command Loading</h2>
238
- <p>Commands are loaded from multiple sources at startup:</p>
239
- <ul>
240
- <li><strong>Built-in</strong> — Core commands from <code>src/commands/</code> (always available)</li>
241
- <li><strong>Bundled skills</strong> — Skills shipped with the application</li>
242
- <li><strong>Built-in plugin skills</strong> — From enabled built-in plugins</li>
243
- <li><strong>Skill directory</strong> — <code>~/.clew/skills/</code> and project <code>.clew/skills/</code></li>
244
- <li><strong>Plugin commands</strong> — From installed plugins</li>
245
- <li><strong>Plugin skills</strong> — From plugin skill directories</li>
246
- <li><strong>MCP skills</strong> — From MCP servers (when <code>MCP_SKILLS</code> feature is enabled)</li>
247
- <li><strong>Dynamic skills</strong> — Discovered during file operations</li>
248
- </ul>
249
- <p>Use <code>/reload-plugins</code> to reload plugin-provided commands without restarting. Remote-safe and bridge-safe commands have explicit allowlists in <code>src/commands.ts</code>.</p>
250
-
251
- <footer class="footer">
252
- <span>Clew 0.2.14 — Open Source</span>
253
- <div class="footer-links">
254
- <a href="https://github.com/ClewCode/ClewCode">GitHub</a>
255
- <a href="https://github.com/ClewCode/ClewCode/issues">Issues</a>
256
- </div>
257
- </footer>
258
- </main>
259
- <nav class="toc-sidebar"></nav>
260
- </div>
261
- </div>
262
- <script src="js/main.js"></script>
263
- </body>
264
- </html>
265
-
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>Commands — Clew Code</title>
7
+ <meta name="description" href="All slash commands 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">Commands</span></div>
22
+
23
+ <h1>Commands</h1>
24
+ <p class="sub">Clew Code provides 30+ slash commands for managing providers, sessions, mesh networking, MCP, plugins, and more.</p>
25
+
26
+ <h2 id="session">Session Commands</h2>
27
+ <table>
28
+ <thead>
29
+ <tr><th>Command</th><th>Description</th></tr>
30
+ </thead>
31
+ <tbody>
32
+ <tr><td><code>/status</code></td><td>Show current provider, model, session, and context info</td></tr>
33
+ <tr><td><code>/doctor</code></td><td>Run system diagnostics</td></tr>
34
+ <tr><td><code>/context</code></td><td>Show active context usage breakdown</td></tr>
35
+ <tr><td><code>/compact</code></td><td>Compress conversation history (multi-pass compaction)</td></tr>
36
+ <tr><td><code>/clear</code></td><td>Clear conversation or caches</td></tr>
37
+ <tr><td><code>/exit</code></td><td>Exit the REPL</td></tr>
38
+ <tr><td><code>/help</code></td><td>List all available commands</td></tr>
39
+ <tr><td><code>/resume</code></td><td>Resume a previous session</td></tr>
40
+ </tbody>
41
+ </table>
42
+
43
+ <h2 id="provider">Provider &amp; Model Commands</h2>
44
+ <table>
45
+ <thead>
46
+ <tr><th>Command</th><th>Description</th></tr>
47
+ </thead>
48
+ <tbody>
49
+ <tr><td><code>/model</code></td><td>Switch provider or model. Use <code>/model list</code> to see available models</td></tr>
50
+ <tr><td><code>/effort</code></td><td>Set reasoning effort (low/medium/high) for supported providers</td></tr>
51
+ <tr><td><code>/fast</code></td><td>Toggle fast/turbo mode</td></tr>
52
+ </tbody>
53
+ </table>
54
+
55
+ <h2 id="mesh">Mesh &amp; Networking Commands</h2>
56
+ <table>
57
+ <thead>
58
+ <tr><th>Command</th><th>Description</th></tr>
59
+ </thead>
60
+ <tbody>
61
+ <tr><td><code>/mesh discover</code></td><td>Find other Clew instances on the LAN</td></tr>
62
+ <tr><td><code>/mesh share</code></td><td>Share this instance as a worker</td></tr>
63
+ <tr><td><code>/mesh run &lt;peer&gt; &lt;cmd&gt;</code></td><td>Run a command on a remote peer</td></tr>
64
+ <tr><td><code>/mesh send &lt;peer&gt; &lt;msg&gt;</code></td><td>Send a message to a peer</td></tr>
65
+ <tr><td><code>/mesh list</code></td><td>List discovered peers</td></tr>
66
+ <tr><td><code>/mesh info &lt;peer&gt;</code></td><td>Show peer details</td></tr>
67
+ <tr><td><code>/mesh help</code></td><td>Mesh command reference</td></tr>
68
+ </tbody>
69
+ </table>
70
+
71
+ <h2 id="mcp">MCP Commands</h2>
72
+ <table>
73
+ <thead>
74
+ <tr><th>Command</th><th>Description</th></tr>
75
+ </thead>
76
+ <tbody>
77
+ <tr><td><code>/mcp list</code></td><td>List connected MCP servers and tools</td></tr>
78
+ <tr><td><code>/mcp add</code></td><td>Add an MCP server configuration</td></tr>
79
+ <tr><td><code>/mcp remove</code></td><td>Remove an MCP server</td></tr>
80
+ </tbody>
81
+ </table>
82
+
83
+ <h2 id="code">Code &amp; Review Commands</h2>
84
+ <table>
85
+ <thead>
86
+ <tr><th>Command</th><th>Description</th></tr>
87
+ </thead>
88
+ <tbody>
89
+ <tr><td><code>/code-review</code></td><td>Review changed files for bugs</td></tr>
90
+ <tr><td><code>/simplify</code></td><td>Cleanup-focused code review</td></tr>
91
+ <tr><td><code>/pr</code></td><td>PR management (create/list/view/review/merge/status)</td></tr>
92
+ <tr><td><code>/diff</code></td><td>Show git diff</td></tr>
93
+ </tbody>
94
+ </table>
95
+
96
+ <h2 id="plugin">Plugin &amp; Extension Commands</h2>
97
+ <table>
98
+ <thead>
99
+ <tr><th>Command</th><th>Description</th></tr>
100
+ </thead>
101
+ <tbody>
102
+ <tr><td><code>/plugin</code></td><td>Plugin and hook management (install, list, remove)</td></tr>
103
+ <tr><td><code>/skills</code></td><td>List and manage skills</td></tr>
104
+ <tr><td><code>/hooks</code></td><td>View active hooks</td></tr>
105
+ </tbody>
106
+ </table>
107
+
108
+ <h2 id="autonomous">Autonomous &amp; Agent Commands</h2>
109
+ <table>
110
+ <thead>
111
+ <tr><th>Command</th><th>Description</th></tr>
112
+ </thead>
113
+ <tbody>
114
+ <tr><td><code>/loop</code></td><td>24/7 autonomous agent loop (start, stop, status)</td></tr>
115
+ <tr><td><code>/daemon</code></td><td>Autonomous daemon dashboard</td></tr>
116
+ <tr><td><code>/task</code></td><td>Manage scheduled tasks</td></tr>
117
+ <tr><td><code>/agent</code></td><td>Background agent dispatch and subcommands</td></tr>
118
+ <tr><td><code>/agents</code></td><td>Agent dashboard (TUI operational view)</td></tr>
119
+ </tbody>
120
+ </table>
121
+
122
+ <h2 id="memory">Memory Commands</h2>
123
+ <table>
124
+ <thead>
125
+ <tr><th>Command</th><th>Description</th></tr>
126
+ </thead>
127
+ <tbody>
128
+ <tr><td><code>/memory save</code></td><td>Save session summary to long-term memory</td></tr>
129
+ <tr><td><code>/memory timeline</code></td><td>Show chronological session history</td></tr>
130
+ <tr><td><code>/memory stats</code></td><td>Activity density chart</td></tr>
131
+ <tr><td><code>/memory digest</code></td><td>Show weekly/monthly digests</td></tr>
132
+ <tr><td><code>/memory search</code></td><td>Search stored memory entries</td></tr>
133
+ </tbody>
134
+ </table>
135
+
136
+ <h2 id="other">Other Commands</h2>
137
+ <table>
138
+ <thead>
139
+ <tr><th>Command</th><th>Description</th></tr>
140
+ </thead>
141
+ <tbody>
142
+ <tr><td><code>/remote</code></td><td>WebSocket remote control (listen, connect, token)</td></tr>
143
+ <tr><td><code>/bridge</code></td><td>Bridge mode configuration</td></tr>
144
+ <tr><td><code>/config</code></td><td>Open configuration panel</td></tr>
145
+ <tr><td><code>/theme</code></td><td>Switch theme</td></tr>
146
+ <tr><td><code>/permissions</code></td><td>Change permission mode</td></tr>
147
+ <tr><td><code>/export</code></td><td>Export session</td></tr>
148
+ <tr><td><code>/recap</code></td><td>Session recap</td></tr>
149
+ </tbody>
150
+ </table>
151
+ </div>
152
+ </div>
153
+
154
+ <script src="js/main.js"></script>
155
+ </body>
156
+ </html>