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,92 +1,70 @@
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>GrowthBook A/B Testing — Clew</title>
7
- <meta name="description" content="GrowthBook A/B testing system for feature flags, experiments, and gradual rollouts 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>
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>A/B Testing — Clew Code</title>
7
+ <meta name="description" content="Feature flags and A/B testing with GrowthBook 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>
15
14
  <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><a href="../index.html#features">Internals</a><span class="sep">/</span><span>A/B Testing</span></div>
19
- <h1>GrowthBook A/B Testing</h1>
20
- <p class="section-subtitle">Feature flagging and experiment management using GrowthBook for gradual rollouts, A/B tests, and targeted feature releases.</p>
21
-
22
- <div class="callout callout-warn">
23
- <strong>Internal Infrastructure</strong>
24
- GrowthBook integration is used for Clew's own product development telemetry and experiment tracking. It is not a user-facing feature — this documentation is for contributors and integrators.
25
- </div>
26
-
27
- <h2>Overview</h2>
28
- <p>GrowthBook provides feature flagging and A/B testing within Clew. It enables controlled rollouts of new features, experiment tracking, and targeted feature releases based on user segments. The SDK is initialized at startup and evaluates flags locally with caching for minimal latency.</p>
29
-
30
- <h2>Architecture</h2>
31
- <ul>
32
- <li><strong>Feature Flags</strong> — Boolean, string, number, and JSON flag types evaluated locally</li>
33
- <li><strong>Experiments</strong> Multi-variant A/B tests with statistical tracking and automatic analysis</li>
34
- <li><strong>Forced Variations</strong> Override flag values for testing and debugging</li>
35
- <li><strong>Sticky Bucketing</strong> — Consistent user experience across sessions based on stable identifiers</li>
36
- <li><strong>Local Caching</strong> — Feature definitions cached after initial fetch for offline resilience</li>
37
- </ul>
38
-
39
- <h2>Usage in Code</h2>
40
- <pre><code>// Check if a feature is enabled (cached evaluation)
41
- const isEnabled = getFeatureValue_CACHED_MAY_BE_STALE(
42
- 'tengu_plum_vx3', // Feature key
43
- false // Default value
44
- );
45
- // Use the feature value
46
- if (isEnabled) {
47
- // New behavior path
48
- } else {
49
- // Control behavior path
50
- }</code></pre>
51
-
52
- <h2>Configuration</h2>
53
- <table>
54
- <tr><th>Variable</th><th>Purpose</th></tr>
55
- <tr><td><code>GROWTHBOOK_API_HOST</code></td><td>GrowthBook API endpoint (self-hosted or cloud)</td></tr>
56
- <tr><td><code>GROWTHBOOK_CLIENT_KEY</code></td><td>Client-side SDK key for feature flag access</td></tr>
57
- <tr><td><code>GROWTHBOOK_FORCE_VARIATION</code></td><td>Force a specific variation for testing</td></tr>
58
- </table>
59
-
60
- <h2>How It Works</h2>
61
- <ol>
62
- <li>On startup, Clew initializes the GrowthBook SDK with the configured API host and client key</li>
63
- <li>Feature definitions are fetched from the GrowthBook server and cached locally</li>
64
- <li>Throughout the session, code checks feature flags using the cached evaluation function</li>
65
- <li>Flag values are re-evaluated periodically or on explicit refresh</li>
66
- <li>Experiment results are tracked and sent back to GrowthBook for statistical analysis</li>
67
- <li>Forced variations can override normal bucket assignment for testing</li>
68
- </ol>
69
-
70
- <h2>Best Practices</h2>
71
- <ul>
72
- <li>Always provide a sensible default value (usually <code>false</code> for features not yet released)</li>
73
- <li>Use descriptive, unique feature keys</li>
74
- <li>Cache-aware design: do not rely on flag values being real-time; they are evaluated at session start</li>
75
- <li>Clean up stale flags after experiments conclude</li>
76
- </ul>
77
-
78
- <footer class="footer">
79
- <span>Clew Code 0.2.14 — Open Source</span>
80
- <div class="footer-links">
81
- <a href="https://github.com/ClewCode/ClewCode">GitHub</a>
82
- <a href="https://github.com/ClewCode/ClewCode/issues">Issues</a>
83
- </div>
84
- </footer>
85
- </main>
86
- <nav class="toc-sidebar"></nav>
87
- </div>
88
- </div>
89
- <script src="../js/main.js"></script>
90
- </body>
91
- </html>
92
-
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">A/B Testing</span></div>
22
+
23
+ <h1>A/B Testing with GrowthBook</h1>
24
+ <p class="sub">Feature flags and experimentation using GrowthBook.</p>
25
+
26
+ <h2 id="overview">Overview</h2>
27
+ <p>Clew Code integrates with <a href="https://www.growthbook.io/">GrowthBook</a> for feature flag management and A/B testing. This allows gradual rollout of new features, targeted experiments, and configuration-driven behavior changes.</p>
28
+
29
+ <h2 id="architecture">Architecture</h2>
30
+ <p>GrowthBook is integrated via the <code>@growthbook/growthbook</code> SDK. Feature flags are evaluated at runtime and can control:</p>
31
+ <ul>
32
+ <li>UI component visibility</li>
33
+ <li>Behavioral variations (e.g., different prompt templates)</li>
34
+ <li>Provider selection defaults</li>
35
+ <li>Beta feature access</li>
36
+ <li>Experimental tool availability</li>
37
+ </ul>
38
+
39
+ <h2 id="configuration">Configuration</h2>
40
+ <p>Set the GrowthBook API key in your environment:</p>
41
+ <pre><code class="language-bash">export GROWTHBOOK_API_KEY=your-api-key
42
+ </code></pre>
43
+
44
+ <p>Or configure in <code>.clew/settings.json</code>:</p>
45
+ <pre><code class="language-json">{
46
+ "growthbook": {
47
+ "apiKey": "your-api-key",
48
+ "attributes": {
49
+ "environment": "development"
50
+ }
51
+ }
52
+ }
53
+ </code></pre>
54
+
55
+ <h2 id="current-flags">Current Feature Flags</h2>
56
+ <table>
57
+ <thead>
58
+ <tr><th>Flag</th><th>Purpose</th></tr>
59
+ </thead>
60
+ <tbody>
61
+ <tr><td><code>BRIDGE_MODE</code></td><td>Enable/disable Bridge v1 (CCR) functionality</td></tr>
62
+ <tr><td><code>tengu_ccr_bridge</code></td><td>GrowthBook-gated CCR bridge access</td></tr>
63
+ </tbody>
64
+ </table>
65
+ </div>
66
+ </div>
67
+
68
+ <script src="../js/main.js"></script>
69
+ </body>
70
+ </html>
@@ -1,144 +1,82 @@
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>
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 — Clew Code</title>
7
+ <meta name="description" content="Undocumented features and power-user tips 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>
15
14
  <header class="header"></header>
16
-
17
- <div class="app">
18
- <aside class="sidebar" id="sidebar"></aside>
19
- <div class="sidebar-overlay" id="sidebarOverlay"></div>
20
- <div class="content-wrap">
21
- <main class="content">
22
- <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>
23
- <h1>Hidden Features &amp; Internals</h1>
24
- <p class="section-subtitle">Feature-gated commands, internal-only tools, and beta flags — not visible in the standard help menu.</p>
25
-
26
- <div class="callout callout-warn">
27
- <strong>Internal / Beta</strong>
28
- These features may change without notice. Most require specific environment variables or build-time feature flags.
29
- </div>
30
-
31
- <h2>Feature-Gated Commands</h2>
32
- <p>From <code>src/commands.ts</code> — enabled via environment variables:</p>
33
- <table>
34
- <tr><th>Command</th><th>Env Variable</th><th>Description</th></tr>
35
- <tr><td><code>/bridge</code></td><td><code>BRIDGE_MODE=1</code></td><td>WebSocket remote control and collaboration</td></tr>
36
- <tr><td><code>/voice</code></td><td><code>VOICE_MODE=1</code></td><td>Toggle voice mode</td></tr>
37
- <tr><td><code>/brief</code></td><td><code>KAIROS=1</code></td><td>Brief command for quick context</td></tr>
38
- <tr><td><code>/assistant</code></td><td><code>KAIROS=1</code></td><td>Assistant mode with proactive behavior</td></tr>
39
- </table>
40
-
41
- <h2>Internal-Only Commands</h2>
42
- <p>Defined in <code>INTERNAL_ONLY_COMMANDS</code> in <code>src/commands.ts</code>:</p>
43
- <table>
44
- <tr><th>Command</th><th>Description</th></tr>
45
- <tr><td><code>/backfill-sessions</code></td><td>Backfill session data</td></tr>
46
- <tr><td><code>/break-cache</code></td><td>Break internal caches</td></tr>
47
- <tr><td><code>/bughunter</code></td><td>Automated bug hunting workflow</td></tr>
48
- <tr><td><code>/commit-push-pr</code></td><td>Commit, push, and PR creation</td></tr>
49
- <tr><td><code>/ctx-viz</code></td><td>Context visualization</td></tr>
50
- <tr><td><code>/init-verifiers</code></td><td>Initialize verifiers</td></tr>
51
- <tr><td><code>/issue</code></td><td>Issue management</td></tr>
52
- <tr><td><code>/mock-limits</code></td><td>Mock usage limits for testing</td></tr>
53
- <tr><td><code>/reset-limits</code></td><td>Reset usage limits</td></tr>
54
- <tr><td><code>/ultraplan</code></td><td>Extended plan mode</td></tr>
55
- <tr><td><code>/version</code></td><td>Show version</td></tr>
56
- <tr><td><code>/bridge-kick</code></td><td>Bridge session management</td></tr>
57
- <tr><td><code>/onboarding</code></td><td>Interactive onboarding wizard</td></tr>
58
- <tr><td><code>/team-onboarding</code></td><td>Generate teammate ramp-up guide</td></tr>
59
- <tr><td><code>/share</code></td><td>Share session</td></tr>
60
- <tr><td><code>/summary</code></td><td>Summarize conversation</td></tr>
61
- <tr><td><code>/teleport</code></td><td>Teleport session</td></tr>
62
- <tr><td><code>/ant-trace</code></td><td>Anthropic-internal tracing</td></tr>
63
- <tr><td><code>/perf-issue</code></td><td>Performance issue reporting</td></tr>
64
- <tr><td><code>/env</code></td><td>Environment inspection</td></tr>
65
- <tr><td><code>/oauth-refresh</code></td><td>OAuth token refresh</td></tr>
66
- <tr><td><code>/debug-tool-call</code></td><td>Tool call debugging</td></tr>
67
- <tr><td><code>/autofix-pr</code></td><td>Autofix PR workflow</td></tr>
68
- </table>
69
-
70
- <h2>Feature-Gated Tools</h2>
71
- <table>
72
- <tr><th>Tool</th><th>Flag / Feature</th></tr>
73
- <tr><td><code>LSPTool</code></td><td><code>ENABLE_LSP_TOOL=1</code></td></tr>
74
- <tr><td><code>ComputerUseTool</code></td><td><code>ENABLE_COMPUTER_USE=1</code> (Windows)</td></tr>
75
- <tr><td><code>ToolSearchTool</code></td><td><code>CODE_INDEX</code> feature flag</td></tr>
76
- <tr><td><code>EnterWorktreeTool / ExitWorktreeTool</code></td><td>Worktree mode enabled</td></tr>
77
- <tr><td><code>PowerShellTool</code></td><td>PowerShell tool enabled in settings</td></tr>
78
- <tr><td><code>CronCreateTool / CronDeleteTool / CronListTool</code></td><td><code>AGENT_TRIGGERS</code> feature</td></tr>
79
- <tr><td><code>PushNotificationTool</code></td><td><code>KAIROS</code> feature</td></tr>
80
- <tr><td><code>REPLTool</code></td><td><code>USER_TYPE=ant</code></td></tr>
81
- <tr><td><code>ConfigTool / TungstenTool</code></td><td><code>USER_TYPE=ant</code></td></tr>
82
- </table>
83
-
84
- <h2>Build-Time Feature Flags</h2>
85
- <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>
86
- <table>
87
- <tr><th>Flag</th><th>Description</th></tr>
88
- <tr><td><code>TRANSCRIPT_CLASSIFIER</code></td><td>Enables &quot;auto&quot; permission mode where Claude uses a transcript-based classifier to decide which tools to auto-approve. Used in dev and release builds.</td></tr>
89
- <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>
90
- <tr><td><code>VOICE_MODE</code></td><td>Enables voice input/output support. Present in all build profiles (dev, start, release).</td></tr>
91
- </table>
92
-
93
- <h2>Runtime Features (No Compile-Time Gate)</h2>
94
- <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>
95
-
96
- <h3>Clew Gateway (AI Provider Proxy)</h3>
97
- <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>
98
- <table>
99
- <tr><th>Env Variable</th><th>Description</th></tr>
100
- <tr><td><code>CLEW_GATEWAY_URL</code></td><td>Gateway base URL (default: <code>http://localhost:8787/v1</code>)</td></tr>
101
- <tr><td><code>CLEW_GATEWAY_KEY</code></td><td>Virtual API key (e.g. <code>clew_live_xxxxx</code>)</td></tr>
102
- <tr><td><code>CLEW_MODEL</code></td><td>Optional default model alias (default: <code>clew-code</code>)</td></tr>
103
- </table>
104
- <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>
105
-
106
- <h3>Ultracode (Dynamic Workflows)</h3>
107
- <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>
108
- <pre><code>/effort ultracode # Enable via effort slider (interactive or direct)
109
- /ultracode on # Enable ultracode mode for this session
110
- /ultracode off # Disable ultracode mode
111
- /ultracode status # Show current enabled/confirmed/count state
112
- /ultracode confirm # Accept the first-run cost warning
113
- /ultracode reset # Clear confirmation + workflow counter
114
- /ultracode run &lt;p&gt; # Plan a dynamic workflow for prompt &lt;p&gt;</code></pre>
115
-
116
- <h2>Runtime Feature Detection</h2>
117
- <p>Features are checked via <code>feature('FEATURE_NAME')</code> (compile-time) and <code>isEnvTruthy()</code> (runtime):</p>
118
- <ul>
119
- <li><code>PROACTIVE</code> / <code>KAIROS</code> — Proactive agent behavior</li>
120
- <li><code>AGENT_TRIGGERS</code> — Scheduled and remote agent triggers</li>
121
- <li><code>KAIROS_GITHUB_WEBHOOKS</code> — GitHub webhook subscriptions</li>
122
- <li><code>KAIROS_PUSH_NOTIFICATION</code> — Push notification support</li>
123
- <li><code>CONTEXT_COLLAPSE</code> — Context collapse inspection</li>
124
- <li><code>MCP_SKILLS</code> — MCP-provided skills</li>
125
- <li><code>CODE_INDEX</code> — Code indexing and search</li>
126
- <li><code>COORDINATOR_MODE</code> — Multi-agent coordinator mode</li>
127
- </ul>
128
-
129
- <footer class="footer">
130
- <span>Clew Code 0.2.14 — Open Source</span>
131
- <div class="footer-links">
132
- <a href="https://github.com/ClewCode/ClewCode">GitHub</a>
133
- <a href="https://github.com/ClewCode/ClewCode/issues">Issues</a>
134
- </div>
135
- </footer>
136
- </main>
137
- <nav class="toc-sidebar"></nav>
138
- </div>
139
- </div>
140
- <script src="../js/main.js"></script>
141
- </body>
142
- </html>
143
-
144
-
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">Hidden Features</span></div>
22
+
23
+ <h1>Hidden Features</h1>
24
+ <p class="sub">Power-user features and undocumented capabilities.</p>
25
+
26
+ <h2 id="thinkback">Thinkback</h2>
27
+ <p>Record and replay session interactions for debugging and analysis:</p>
28
+ <pre><code class="language-bash">❯ /thinkback # record a session
29
+ ❯ /thinkback-play # replay a recorded session
30
+ </code></pre>
31
+
32
+ <h2 id="goal">Goal Tracking</h2>
33
+ <p>Set and track development goals across sessions:</p>
34
+ <pre><code class="language-bash">❯ /goal set "ship v0.3 by Friday"
35
+ /goal status
36
+ /goal list
37
+ </code></pre>
38
+
39
+ <h2 id="btw">BTW (By The Way)</h2>
40
+ <p>Leave contextual notes and reminders for future sessions:</p>
41
+ <pre><code class="language-bash">❯ /btw "remember to update the CI config"
42
+ </code></pre>
43
+
44
+ <h2 id="desktop-handoff">Desktop Handoff / Teleport</h2>
45
+ <p>Move a running session between machines:</p>
46
+ <pre><code class="language-bash">❯ /remote-setup # prepare for handoff
47
+ ❯ /remote-env # transfer environment
48
+ </code></pre>
49
+
50
+ <h2 id="passes">Passes</h2>
51
+ <p>View pass/interaction history for the current session:</p>
52
+ <pre><code class="language-bash">❯ /passes
53
+ </code></pre>
54
+
55
+ <h2 id="recap">Recap</h2>
56
+ <p>Generate a summary of the current session's key decisions and actions:</p>
57
+ <pre><code class="language-bash">❯ /recap
58
+ </code></pre>
59
+
60
+ <h2 id="sandbox">Sandbox Toggle</h2>
61
+ <p>Toggle sandbox mode for secure command execution:</p>
62
+ <pre><code class="language-bash">❯ /sandbox on
63
+ /sandbox off
64
+ </code></pre>
65
+
66
+ <h2 id="theme">Color Theme</h2>
67
+ <p>Customize the terminal color theme:</p>
68
+ <pre><code class="language-bash">❯ /theme # interactive theme picker
69
+ /color # set specific colors
70
+ </code></pre>
71
+
72
+ <h2 id="scroll-speed">Scroll Speed</h2>
73
+ <p>Adjust terminal output scroll speed:</p>
74
+ <pre><code class="language-bash">❯ /scroll-speed fast
75
+ /scroll-speed slow
76
+ </code></pre>
77
+ </div>
78
+ </div>
79
+
80
+ <script src="../js/main.js"></script>
81
+ </body>
82
+ </html>
package/docs/js/main.js CHANGED
@@ -178,6 +178,7 @@
178
178
  ' <a href="' + rootPrefix + 'quick-start.html" class="sidebar-link"><span class="link-icon"></span>Quick Start</a>' +
179
179
  ' <a href="' + rootPrefix + 'installation.html" class="sidebar-link"><span class="link-icon"></span>Installation</a>' +
180
180
  ' <a href="' + rootPrefix + 'configuration.html" class="sidebar-link"><span class="link-icon"></span>Configuration</a>' +
181
+ ' <a href="' + rootPrefix + 'cli-reference.html" class="sidebar-link"><span class="link-icon"></span>CLI Reference</a>' +
181
182
  ' <a href="' + rootPrefix + 'troubleshooting.html" class="sidebar-link"><span class="link-icon"></span>Troubleshooting</a>' +
182
183
  ' </nav>' +
183
184
  '</div>' +
@@ -214,6 +215,7 @@
214
215
  ' <a href="' + rootPrefix + 'features/bridge-mode.html" class="sidebar-link"><span class="link-icon"></span>Bridge Mode</a>' +
215
216
  ' <a href="' + rootPrefix + 'features/evals.html" class="sidebar-link"><span class="link-icon"></span>Evaluation Harness</a>' +
216
217
  ' <a href="' + rootPrefix + 'features/sentry-setup.html" class="sidebar-link"><span class="link-icon"></span>Sentry Setup</a>' +
218
+ ' <a href="' + rootPrefix + 'voice-mode.html" class="sidebar-link"><span class="link-icon"></span>Voice Mode</a>' +
217
219
  ' <a href="' + rootPrefix + 'swarm.html" class="sidebar-link"><span class="link-icon"></span>Swarm System</a>' +
218
220
  ' <a href="' + rootPrefix + 'loop.html" class="sidebar-link"><span class="link-icon"></span>Agent Loop</a>' +
219
221
  ' </nav>' +
@@ -224,6 +226,14 @@
224
226
  ' <a href="' + rootPrefix + 'internals/hidden-features.html" class="sidebar-link"><span class="link-icon"></span>Hidden Features</a>' +
225
227
  ' <a href="' + rootPrefix + 'internals/growthbook-ab-testing.html" class="sidebar-link"><span class="link-icon"></span>A/B Testing</a>' +
226
228
  ' </nav>' +
229
+ '</div>' +
230
+ '<div class="sidebar-section">' +
231
+ ' <div class="sidebar-label">Community</div>' +
232
+ ' <nav>' +
233
+ ' <a href="' + rootPrefix + 'changelog.html" class="sidebar-link"><span class="link-icon"></span>Changelog</a>' +
234
+ ' <a href="' + rootPrefix + 'security.html" class="sidebar-link"><span class="link-icon"></span>Security</a>' +
235
+ ' <a href="' + rootPrefix + 'contributing.html" class="sidebar-link"><span class="link-icon"></span>Contributing</a>' +
236
+ ' </nav>' +
227
237
  '</div>';
228
238
  }
229
239
 
@@ -405,4 +415,23 @@
405
415
  }
406
416
 
407
417
  buildTOC();
418
+
419
+ // ── Footer Injection ──
420
+ function injectFooter() {
421
+ var contentWrap = document.querySelector('.content-wrap');
422
+ if (!contentWrap || contentWrap.querySelector('.footer')) return;
423
+
424
+ var footer = document.createElement('div');
425
+ footer.className = 'footer';
426
+ footer.innerHTML =
427
+ '<span>Clew Code \u2014 GPL-3.0</span>' +
428
+ '<div class="footer-links">' +
429
+ ' <a href="https://github.com/ClewCode/ClewCode">GitHub</a>' +
430
+ ' <a href="https://github.com/ClewCode/ClewCode/issues">Issues</a>' +
431
+ ' <a href="https://www.npmjs.com/package/clew-code">npm</a>' +
432
+ '</div>';
433
+ contentWrap.appendChild(footer);
434
+ }
435
+
436
+ injectFooter();
408
437
  })();