clew-code 0.2.13 → 0.2.14
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/dist/main.js +2596 -2527
- package/docs/architecture.html +148 -148
- package/docs/architecture.th.html +79 -79
- package/docs/clew-code-architecture.html +6 -6
- package/docs/commands.html +225 -224
- package/docs/commands.th.html +132 -131
- package/docs/configuration.html +147 -147
- package/docs/configuration.th.html +108 -108
- package/docs/daemon.html +129 -129
- package/docs/daemon.th.html +73 -73
- package/docs/features/bridge-mode.html +99 -99
- package/docs/features/bridge-mode.th.html +90 -90
- package/docs/features/evals.html +182 -182
- package/docs/features/evals.th.html +90 -90
- package/docs/features/peer.html +178 -178
- package/docs/features/searxng-search.html +151 -151
- package/docs/features/searxng-search.th.html +95 -95
- package/docs/features/sentry-setup.html +157 -157
- package/docs/features/sentry-setup.th.html +97 -97
- package/docs/index.html +298 -299
- package/docs/index.th.html +292 -292
- package/docs/installation.html +105 -105
- package/docs/installation.th.html +105 -105
- package/docs/internals/growthbook-ab-testing.html +113 -113
- package/docs/internals/growthbook-ab-testing.th.html +81 -81
- package/docs/internals/hidden-features.html +175 -149
- package/docs/internals/hidden-features.th.html +135 -109
- package/docs/loop.html +181 -181
- package/docs/loop.th.html +227 -227
- package/docs/mcp.html +247 -247
- package/docs/mcp.th.html +207 -207
- package/docs/models.html +110 -111
- package/docs/models.th.html +61 -61
- package/docs/peer.html +236 -236
- package/docs/peer.th.html +280 -280
- package/docs/permission-model.html +102 -102
- package/docs/permission-model.th.html +67 -67
- package/docs/plugins.html +102 -102
- package/docs/plugins.th.html +79 -79
- package/docs/providers.html +126 -126
- package/docs/providers.th.html +80 -80
- package/docs/quick-start.html +93 -93
- package/docs/quick-start.th.html +1 -1
- package/docs/research-memory.html +82 -82
- package/docs/research-memory.th.html +72 -72
- package/docs/skills.html +117 -117
- package/docs/skills.th.html +90 -90
- package/docs/tools.html +170 -170
- package/docs/tools.th.html +84 -84
- package/docs/troubleshooting.html +106 -106
- package/docs/troubleshooting.th.html +85 -85
- package/package.json +162 -164
|
@@ -1,149 +1,175 @@
|
|
|
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>Hidden Features & Internals — Clew</title>
|
|
7
|
-
<meta name="description" content="Feature-gated commands, internal-only tools, and beta flags in Clew.">
|
|
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">
|
|
16
|
-
<div class="header-inner">
|
|
17
|
-
<a href="../index.html" class="logo">
|
|
18
|
-
<span>Clew Code</span>
|
|
19
|
-
</a>
|
|
20
|
-
<nav class="header-nav">
|
|
21
|
-
<a href="../index.html">Home</a>
|
|
22
|
-
<a href="../index.html#features">Features</a>
|
|
23
|
-
<a href="../index.html#commands">Commands</a>
|
|
24
|
-
<a href="../quick-start.html" class="active">Docs</a>
|
|
25
|
-
<a href="https://github.com/ClewCode/ClewCode" target="_blank">GitHub</a>
|
|
26
|
-
<div class="lang-wrap">
|
|
27
|
-
<button class="lang-btn">ðŸŒ</button>
|
|
28
|
-
<div class="lang-menu">
|
|
29
|
-
<a href="../../readme/README.zh.md">䏿–‡</a>
|
|
30
|
-
<a href="../../readme/README.th.md">ไทย</a>
|
|
31
|
-
<a href="../../readme/README.ja.md">日本語</a>
|
|
32
|
-
<a href="../../readme/README.ko.md">한êµì–´</a>
|
|
33
|
-
<a href="../../readme/README.es.md">Español</a>
|
|
34
|
-
<a href="../../readme/README.fr.md">Français</a>
|
|
35
|
-
<a href="../../readme/README.de.md">Deutsch</a>
|
|
36
|
-
<a href="../../readme/README.pt.md">Português</a>
|
|
37
|
-
<a href="../../readme/README.vi.md">Tiếng Việt</a>
|
|
38
|
-
<a href="../../readme/README.id.md">Bahasa Indonesia</a>
|
|
39
|
-
<a href="../../readme/README.ru.md">РуÑÑкий</a>
|
|
40
|
-
<a href="../../readme/README.hi.md">हिनà¥à¤¦à¥€</a>
|
|
41
|
-
<a href="../../README.md">English</a>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
</nav>
|
|
45
|
-
<button class="menu-btn" id="menuToggle" aria-label="Toggle navigation"><span></span><span></span><span></span></button>
|
|
46
|
-
</div>
|
|
47
|
-
</header>
|
|
48
|
-
<div class="app">
|
|
49
|
-
<aside class="sidebar" id="sidebar"></aside>
|
|
50
|
-
<div class="sidebar-overlay" id="sidebarOverlay"></div>
|
|
51
|
-
<div class="content-wrap">
|
|
52
|
-
<main class="content">
|
|
53
|
-
<div class="breadcrumbs"><a href="../index.html">Home</a><span class="sep">/</span><a href="../index.html#features">Internals</a><span class="sep">/</span><span>Hidden Features</span></div>
|
|
54
|
-
<h1>Hidden Features & Internals</h1>
|
|
55
|
-
<p class="section-subtitle">Feature-gated commands, internal-only tools, and beta flags — not visible in the standard help menu.</p>
|
|
56
|
-
|
|
57
|
-
<div class="callout callout-warn">
|
|
58
|
-
<strong>Internal / Beta</strong>
|
|
59
|
-
These features may change without notice. Most require specific environment variables or build-time feature flags.
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
<h2>Feature-Gated Commands</h2>
|
|
63
|
-
<p>From <code>src/commands.ts</code> — enabled via environment variables:</p>
|
|
64
|
-
<table>
|
|
65
|
-
<tr><th>Command</th><th>Env Variable</th><th>Description</th></tr>
|
|
66
|
-
<tr><td><code>/bridge</code></td><td><code>BRIDGE_MODE=1</code></td><td>WebSocket remote control and collaboration</td></tr>
|
|
67
|
-
<tr><td><code>/voice</code></td><td><code>VOICE_MODE=1</code></td><td>Toggle voice mode</td></tr>
|
|
68
|
-
<tr><td><code>/brief</code></td><td><code>KAIROS=1</code></td><td>Brief command for quick context</td></tr>
|
|
69
|
-
<tr><td><code>/assistant</code></td><td><code>KAIROS=1</code></td><td>Assistant mode with proactive behavior</td></tr>
|
|
70
|
-
</table>
|
|
71
|
-
|
|
72
|
-
<h2>Internal-Only Commands</h2>
|
|
73
|
-
<p>Defined in <code>INTERNAL_ONLY_COMMANDS</code> in <code>src/commands.ts</code>:</p>
|
|
74
|
-
<table>
|
|
75
|
-
<tr><th>Command</th><th>Description</th></tr>
|
|
76
|
-
<tr><td><code>/backfill-sessions</code></td><td>Backfill session data</td></tr>
|
|
77
|
-
<tr><td><code>/break-cache</code></td><td>Break internal caches</td></tr>
|
|
78
|
-
<tr><td><code>/bughunter</code></td><td>Automated bug hunting workflow</td></tr>
|
|
79
|
-
<tr><td><code>/commit-push-pr</code></td><td>Commit, push, and PR creation</td></tr>
|
|
80
|
-
<tr><td><code>/ctx-viz</code></td><td>Context visualization</td></tr>
|
|
81
|
-
<tr><td><code>/init-verifiers</code></td><td>Initialize verifiers</td></tr>
|
|
82
|
-
<tr><td><code>/issue</code></td><td>Issue management</td></tr>
|
|
83
|
-
<tr><td><code>/mock-limits</code></td><td>Mock usage limits for testing</td></tr>
|
|
84
|
-
<tr><td><code>/reset-limits</code></td><td>Reset usage limits</td></tr>
|
|
85
|
-
<tr><td><code>/ultraplan</code></td><td>Extended plan mode</td></tr>
|
|
86
|
-
<tr><td><code>/version</code></td><td>Show version</td></tr>
|
|
87
|
-
<tr><td><code>/bridge-kick</code></td><td>Bridge session management</td></tr>
|
|
88
|
-
<tr><td><code>/onboarding</code></td><td>Interactive onboarding wizard</td></tr>
|
|
89
|
-
<tr><td><code>/team-onboarding</code></td><td>Generate teammate ramp-up guide</td></tr>
|
|
90
|
-
<tr><td><code>/share</code></td><td>Share session</td></tr>
|
|
91
|
-
<tr><td><code>/summary</code></td><td>Summarize conversation</td></tr>
|
|
92
|
-
<tr><td><code>/teleport</code></td><td>Teleport session</td></tr>
|
|
93
|
-
<tr><td><code>/ant-trace</code></td><td>Anthropic-internal tracing</td></tr>
|
|
94
|
-
<tr><td><code>/perf-issue</code></td><td>Performance issue reporting</td></tr>
|
|
95
|
-
<tr><td><code>/env</code></td><td>Environment inspection</td></tr>
|
|
96
|
-
<tr><td><code>/oauth-refresh</code></td><td>OAuth token refresh</td></tr>
|
|
97
|
-
<tr><td><code>/debug-tool-call</code></td><td>Tool call debugging</td></tr>
|
|
98
|
-
<tr><td><code>/autofix-pr</code></td><td>Autofix PR workflow</td></tr>
|
|
99
|
-
</table>
|
|
100
|
-
|
|
101
|
-
<h2>Feature-Gated Tools</h2>
|
|
102
|
-
<table>
|
|
103
|
-
<tr><th>Tool</th><th>Flag / Feature</th></tr>
|
|
104
|
-
<tr><td><code>LSPTool</code></td><td><code>ENABLE_LSP_TOOL=1</code></td></tr>
|
|
105
|
-
<tr><td><code>ComputerUseTool</code></td><td><code>ENABLE_COMPUTER_USE=1</code> (Windows)</td></tr>
|
|
106
|
-
<tr><td><code>ToolSearchTool</code></td><td><code>CODE_INDEX</code> feature flag</td></tr>
|
|
107
|
-
<tr><td><code>EnterWorktreeTool / ExitWorktreeTool</code></td><td>Worktree mode enabled</td></tr>
|
|
108
|
-
<tr><td><code>PowerShellTool</code></td><td>PowerShell tool enabled in settings</td></tr>
|
|
109
|
-
<tr><td><code>CronCreateTool / CronDeleteTool / CronListTool</code></td><td><code>AGENT_TRIGGERS</code> feature</td></tr>
|
|
110
|
-
<tr><td><code>PushNotificationTool</code></td><td><code>KAIROS</code> feature</td></tr>
|
|
111
|
-
<tr><td><code>REPLTool</code></td><td><code>USER_TYPE=ant</code></td></tr>
|
|
112
|
-
<tr><td><code>ConfigTool / TungstenTool</code></td><td><code>USER_TYPE=ant</code></td></tr>
|
|
113
|
-
</table>
|
|
114
|
-
|
|
115
|
-
<h2>Build-Time Feature Flags</h2>
|
|
116
|
-
<
|
|
117
|
-
|
|
118
|
-
<
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
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>Hidden Features & Internals — Clew</title>
|
|
7
|
+
<meta name="description" content="Feature-gated commands, internal-only tools, and beta flags in Clew.">
|
|
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">
|
|
16
|
+
<div class="header-inner">
|
|
17
|
+
<a href="../index.html" class="logo">
|
|
18
|
+
<span>Clew Code</span>
|
|
19
|
+
</a>
|
|
20
|
+
<nav class="header-nav">
|
|
21
|
+
<a href="../index.html">Home</a>
|
|
22
|
+
<a href="../index.html#features">Features</a>
|
|
23
|
+
<a href="../index.html#commands">Commands</a>
|
|
24
|
+
<a href="../quick-start.html" class="active">Docs</a>
|
|
25
|
+
<a href="https://github.com/ClewCode/ClewCode" target="_blank">GitHub</a>
|
|
26
|
+
<div class="lang-wrap">
|
|
27
|
+
<button class="lang-btn">ðŸŒ</button>
|
|
28
|
+
<div class="lang-menu">
|
|
29
|
+
<a href="../../readme/README.zh.md">䏿–‡</a>
|
|
30
|
+
<a href="../../readme/README.th.md">ไทย</a>
|
|
31
|
+
<a href="../../readme/README.ja.md">日本語</a>
|
|
32
|
+
<a href="../../readme/README.ko.md">한êµì–´</a>
|
|
33
|
+
<a href="../../readme/README.es.md">Español</a>
|
|
34
|
+
<a href="../../readme/README.fr.md">Français</a>
|
|
35
|
+
<a href="../../readme/README.de.md">Deutsch</a>
|
|
36
|
+
<a href="../../readme/README.pt.md">Português</a>
|
|
37
|
+
<a href="../../readme/README.vi.md">Tiếng Việt</a>
|
|
38
|
+
<a href="../../readme/README.id.md">Bahasa Indonesia</a>
|
|
39
|
+
<a href="../../readme/README.ru.md">РуÑÑкий</a>
|
|
40
|
+
<a href="../../readme/README.hi.md">हिनà¥à¤¦à¥€</a>
|
|
41
|
+
<a href="../../README.md">English</a>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</nav>
|
|
45
|
+
<button class="menu-btn" id="menuToggle" aria-label="Toggle navigation"><span></span><span></span><span></span></button>
|
|
46
|
+
</div>
|
|
47
|
+
</header>
|
|
48
|
+
<div class="app">
|
|
49
|
+
<aside class="sidebar" id="sidebar"></aside>
|
|
50
|
+
<div class="sidebar-overlay" id="sidebarOverlay"></div>
|
|
51
|
+
<div class="content-wrap">
|
|
52
|
+
<main class="content">
|
|
53
|
+
<div class="breadcrumbs"><a href="../index.html">Home</a><span class="sep">/</span><a href="../index.html#features">Internals</a><span class="sep">/</span><span>Hidden Features</span></div>
|
|
54
|
+
<h1>Hidden Features & Internals</h1>
|
|
55
|
+
<p class="section-subtitle">Feature-gated commands, internal-only tools, and beta flags — not visible in the standard help menu.</p>
|
|
56
|
+
|
|
57
|
+
<div class="callout callout-warn">
|
|
58
|
+
<strong>Internal / Beta</strong>
|
|
59
|
+
These features may change without notice. Most require specific environment variables or build-time feature flags.
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<h2>Feature-Gated Commands</h2>
|
|
63
|
+
<p>From <code>src/commands.ts</code> — enabled via environment variables:</p>
|
|
64
|
+
<table>
|
|
65
|
+
<tr><th>Command</th><th>Env Variable</th><th>Description</th></tr>
|
|
66
|
+
<tr><td><code>/bridge</code></td><td><code>BRIDGE_MODE=1</code></td><td>WebSocket remote control and collaboration</td></tr>
|
|
67
|
+
<tr><td><code>/voice</code></td><td><code>VOICE_MODE=1</code></td><td>Toggle voice mode</td></tr>
|
|
68
|
+
<tr><td><code>/brief</code></td><td><code>KAIROS=1</code></td><td>Brief command for quick context</td></tr>
|
|
69
|
+
<tr><td><code>/assistant</code></td><td><code>KAIROS=1</code></td><td>Assistant mode with proactive behavior</td></tr>
|
|
70
|
+
</table>
|
|
71
|
+
|
|
72
|
+
<h2>Internal-Only Commands</h2>
|
|
73
|
+
<p>Defined in <code>INTERNAL_ONLY_COMMANDS</code> in <code>src/commands.ts</code>:</p>
|
|
74
|
+
<table>
|
|
75
|
+
<tr><th>Command</th><th>Description</th></tr>
|
|
76
|
+
<tr><td><code>/backfill-sessions</code></td><td>Backfill session data</td></tr>
|
|
77
|
+
<tr><td><code>/break-cache</code></td><td>Break internal caches</td></tr>
|
|
78
|
+
<tr><td><code>/bughunter</code></td><td>Automated bug hunting workflow</td></tr>
|
|
79
|
+
<tr><td><code>/commit-push-pr</code></td><td>Commit, push, and PR creation</td></tr>
|
|
80
|
+
<tr><td><code>/ctx-viz</code></td><td>Context visualization</td></tr>
|
|
81
|
+
<tr><td><code>/init-verifiers</code></td><td>Initialize verifiers</td></tr>
|
|
82
|
+
<tr><td><code>/issue</code></td><td>Issue management</td></tr>
|
|
83
|
+
<tr><td><code>/mock-limits</code></td><td>Mock usage limits for testing</td></tr>
|
|
84
|
+
<tr><td><code>/reset-limits</code></td><td>Reset usage limits</td></tr>
|
|
85
|
+
<tr><td><code>/ultraplan</code></td><td>Extended plan mode</td></tr>
|
|
86
|
+
<tr><td><code>/version</code></td><td>Show version</td></tr>
|
|
87
|
+
<tr><td><code>/bridge-kick</code></td><td>Bridge session management</td></tr>
|
|
88
|
+
<tr><td><code>/onboarding</code></td><td>Interactive onboarding wizard</td></tr>
|
|
89
|
+
<tr><td><code>/team-onboarding</code></td><td>Generate teammate ramp-up guide</td></tr>
|
|
90
|
+
<tr><td><code>/share</code></td><td>Share session</td></tr>
|
|
91
|
+
<tr><td><code>/summary</code></td><td>Summarize conversation</td></tr>
|
|
92
|
+
<tr><td><code>/teleport</code></td><td>Teleport session</td></tr>
|
|
93
|
+
<tr><td><code>/ant-trace</code></td><td>Anthropic-internal tracing</td></tr>
|
|
94
|
+
<tr><td><code>/perf-issue</code></td><td>Performance issue reporting</td></tr>
|
|
95
|
+
<tr><td><code>/env</code></td><td>Environment inspection</td></tr>
|
|
96
|
+
<tr><td><code>/oauth-refresh</code></td><td>OAuth token refresh</td></tr>
|
|
97
|
+
<tr><td><code>/debug-tool-call</code></td><td>Tool call debugging</td></tr>
|
|
98
|
+
<tr><td><code>/autofix-pr</code></td><td>Autofix PR workflow</td></tr>
|
|
99
|
+
</table>
|
|
100
|
+
|
|
101
|
+
<h2>Feature-Gated Tools</h2>
|
|
102
|
+
<table>
|
|
103
|
+
<tr><th>Tool</th><th>Flag / Feature</th></tr>
|
|
104
|
+
<tr><td><code>LSPTool</code></td><td><code>ENABLE_LSP_TOOL=1</code></td></tr>
|
|
105
|
+
<tr><td><code>ComputerUseTool</code></td><td><code>ENABLE_COMPUTER_USE=1</code> (Windows)</td></tr>
|
|
106
|
+
<tr><td><code>ToolSearchTool</code></td><td><code>CODE_INDEX</code> feature flag</td></tr>
|
|
107
|
+
<tr><td><code>EnterWorktreeTool / ExitWorktreeTool</code></td><td>Worktree mode enabled</td></tr>
|
|
108
|
+
<tr><td><code>PowerShellTool</code></td><td>PowerShell tool enabled in settings</td></tr>
|
|
109
|
+
<tr><td><code>CronCreateTool / CronDeleteTool / CronListTool</code></td><td><code>AGENT_TRIGGERS</code> feature</td></tr>
|
|
110
|
+
<tr><td><code>PushNotificationTool</code></td><td><code>KAIROS</code> feature</td></tr>
|
|
111
|
+
<tr><td><code>REPLTool</code></td><td><code>USER_TYPE=ant</code></td></tr>
|
|
112
|
+
<tr><td><code>ConfigTool / TungstenTool</code></td><td><code>USER_TYPE=ant</code></td></tr>
|
|
113
|
+
</table>
|
|
114
|
+
|
|
115
|
+
<h2>Build-Time Feature Flags</h2>
|
|
116
|
+
<p>Set via <code>--define.FLAG_NAME=true</code> in <code>package.json</code> scripts. Tree-shaken out of builds that don't pass the flag.</p>
|
|
117
|
+
<table>
|
|
118
|
+
<tr><th>Flag</th><th>Description</th></tr>
|
|
119
|
+
<tr><td><code>TRANSCRIPT_CLASSIFIER</code></td><td>Enables "auto" permission mode where Claude uses a transcript-based classifier to decide which tools to auto-approve. Used in dev and release builds.</td></tr>
|
|
120
|
+
<tr><td><code>CHICAGO_MCP</code></td><td>Enables <strong>Computer Use</strong> — Claude controlling mouse, keyboard, and screen via the <code>@ant/computer-use-mcp</code> protocol. Codename comes from Anthropic's Chicago office. Can also be unlocked at runtime with <code>ENABLE_COMPUTER_USE=1</code>.</td></tr>
|
|
121
|
+
<tr><td><code>VOICE_MODE</code></td><td>Enables voice input/output support. Present in all build profiles (dev, start, release).</td></tr>
|
|
122
|
+
</table>
|
|
123
|
+
|
|
124
|
+
<h2>Runtime Features (No Compile-Time Gate)</h2>
|
|
125
|
+
<p>These features are always compiled in. They are enabled and configured entirely at runtime through environment variables or slash commands — no build-time flag needed.</p>
|
|
126
|
+
|
|
127
|
+
<h3>Clew Gateway (AI Provider Proxy)</h3>
|
|
128
|
+
<p>A self-hosted AI provider proxy. Run your own gateway instance (e.g. on Cloudflare Workers) and route all LLM calls through it for provider fallback, model routing, and usage tracking across multiple upstream providers.</p>
|
|
129
|
+
<table>
|
|
130
|
+
<tr><th>Env Variable</th><th>Description</th></tr>
|
|
131
|
+
<tr><td><code>CLEW_GATEWAY_URL</code></td><td>Gateway base URL (default: <code>http://localhost:8787/v1</code>)</td></tr>
|
|
132
|
+
<tr><td><code>CLEW_GATEWAY_KEY</code></td><td>Virtual API key (e.g. <code>clew_live_xxxxx</code>)</td></tr>
|
|
133
|
+
<tr><td><code>CLEW_MODEL</code></td><td>Optional default model alias (default: <code>clew-code</code>)</td></tr>
|
|
134
|
+
</table>
|
|
135
|
+
<p>Supports model listing, streaming, and returns metadata headers (<code>x-clew-provider</code>, <code>x-clew-fallback-used</code>, <code>x-clew-attempts</code>, <code>x-clew-fallback-chain</code>) for debugging. Select it like any other provider via <code>/model</code>.</p>
|
|
136
|
+
|
|
137
|
+
<h3>Ultracode (Dynamic Workflows)</h3>
|
|
138
|
+
<p>A session-level mode that sets effort to <code>xhigh</code> and lets Claude autonomously decide to spawn dynamic workflows (parallel subtasks + adversarial verifiers) for complex prompts. Based on Anthropic's dynamic-workflows announcement (May 2026). The first workflow in a session shows a token-cost confirmation; subsequent ones run silently.</p>
|
|
139
|
+
<pre><code>/effort ultracode # Enable via effort slider (interactive or direct)
|
|
140
|
+
/ultracode on # Enable ultracode mode for this session
|
|
141
|
+
/ultracode off # Disable ultracode mode
|
|
142
|
+
/ultracode status # Show current enabled/confirmed/count state
|
|
143
|
+
/ultracode confirm # Accept the first-run cost warning
|
|
144
|
+
/ultracode reset # Clear confirmation + workflow counter
|
|
145
|
+
/ultracode run <p> # Plan a dynamic workflow for prompt <p></code></pre>
|
|
146
|
+
|
|
147
|
+
<h2>Runtime Feature Detection</h2>
|
|
148
|
+
<p>Features are checked via <code>feature('FEATURE_NAME')</code> (compile-time) and <code>isEnvTruthy()</code> (runtime):</p>
|
|
149
|
+
<ul>
|
|
150
|
+
<li><code>PROACTIVE</code> / <code>KAIROS</code> — Proactive agent behavior</li>
|
|
151
|
+
<li><code>AGENT_TRIGGERS</code> — Scheduled and remote agent triggers</li>
|
|
152
|
+
<li><code>KAIROS_GITHUB_WEBHOOKS</code> — GitHub webhook subscriptions</li>
|
|
153
|
+
<li><code>KAIROS_PUSH_NOTIFICATION</code> — Push notification support</li>
|
|
154
|
+
<li><code>CONTEXT_COLLAPSE</code> — Context collapse inspection</li>
|
|
155
|
+
<li><code>MCP_SKILLS</code> — MCP-provided skills</li>
|
|
156
|
+
<li><code>CODE_INDEX</code> — Code indexing and search</li>
|
|
157
|
+
<li><code>COORDINATOR_MODE</code> — Multi-agent coordinator mode</li>
|
|
158
|
+
</ul>
|
|
159
|
+
|
|
160
|
+
<footer class="footer">
|
|
161
|
+
<span>Clew Code 0.2.13 — Open Source</span>
|
|
162
|
+
<div class="footer-links">
|
|
163
|
+
<a href="https://github.com/ClewCode/ClewCode">GitHub</a>
|
|
164
|
+
<a href="https://github.com/ClewCode/ClewCode/issues">Issues</a>
|
|
165
|
+
</div>
|
|
166
|
+
</footer>
|
|
167
|
+
</main>
|
|
168
|
+
<nav class="toc-sidebar"></nav>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
<script src="../js/main.js"></script>
|
|
172
|
+
</body>
|
|
173
|
+
</html>
|
|
174
|
+
|
|
175
|
+
|