@regression-io/claude-config 0.30.3 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +122 -1
- package/config-loader.js +609 -1
- package/hooks/activity-track.sh +56 -0
- package/hooks/workstream-inject.sh +20 -0
- package/package.json +2 -1
- package/ui/dist/assets/index-6DVN4aHO.css +32 -0
- package/ui/dist/assets/index-CZbHWyrm.js +2239 -0
- package/ui/dist/index.html +2 -2
- package/ui/server.cjs +148 -0
- package/ui/dist/assets/index-BmjkwnVg.js +0 -1783
- package/ui/dist/assets/index-DBdXkFDr.css +0 -32
package/README.md
CHANGED
|
@@ -81,6 +81,20 @@ claude-config project add [path] --name X # Add with custom display name
|
|
|
81
81
|
claude-config project remove <name|path> # Remove from registry
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
+
### Workstream Commands
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
claude-config workstream # List all workstreams
|
|
88
|
+
claude-config workstream create "Name" # Create new workstream
|
|
89
|
+
claude-config workstream delete <name> # Delete workstream
|
|
90
|
+
claude-config workstream use <name> # Set active workstream
|
|
91
|
+
claude-config workstream active # Show current active workstream
|
|
92
|
+
claude-config workstream add-project <ws> <path> # Add project to workstream
|
|
93
|
+
claude-config workstream remove-project <ws> <path> # Remove project from workstream
|
|
94
|
+
claude-config workstream inject [--silent] # Output active workstream rules (for hooks)
|
|
95
|
+
claude-config workstream detect [path] # Detect workstream for directory
|
|
96
|
+
```
|
|
97
|
+
|
|
84
98
|
### Registry Commands
|
|
85
99
|
|
|
86
100
|
```bash
|
|
@@ -212,14 +226,117 @@ Persistent memory for Claude Code sessions:
|
|
|
212
226
|
|
|
213
227
|
Manage via Web UI or edit files directly.
|
|
214
228
|
|
|
229
|
+
## Workstreams
|
|
230
|
+
|
|
231
|
+
Workstreams are **context sets** for multi-project workflows. They group related projects and inject context rules into every Claude session.
|
|
232
|
+
|
|
233
|
+
### Why Workstreams?
|
|
234
|
+
|
|
235
|
+
When working on complex features that span multiple repos (e.g., REST API + UI + shared library), you need Claude to understand the broader context. Workstreams solve this by:
|
|
236
|
+
|
|
237
|
+
1. Grouping related projects together
|
|
238
|
+
2. Defining rules specific to that workflow
|
|
239
|
+
3. Automatically injecting those rules into every Claude session
|
|
240
|
+
|
|
241
|
+
### Example
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
# Create a workstream for user authentication feature
|
|
245
|
+
claude-config workstream create "User Auth"
|
|
246
|
+
|
|
247
|
+
# Add related projects
|
|
248
|
+
claude-config workstream add-project "User Auth" ~/projects/api
|
|
249
|
+
claude-config workstream add-project "User Auth" ~/projects/ui
|
|
250
|
+
claude-config workstream add-project "User Auth" ~/projects/shared
|
|
251
|
+
|
|
252
|
+
# Activate it
|
|
253
|
+
claude-config workstream use "User Auth"
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
Then in the Web UI, edit the workstream to add rules like:
|
|
257
|
+
> Focus on user authentication flow. Use JWT tokens. React Query for state management. PostgreSQL for persistence.
|
|
258
|
+
|
|
259
|
+
### Hook Integration
|
|
260
|
+
|
|
261
|
+
For rules to be injected automatically, install the pre-prompt hook:
|
|
262
|
+
|
|
263
|
+
**Option 1: One-click install (recommended)**
|
|
264
|
+
- Open Web UI → Workstreams → Click "Install Hook Automatically"
|
|
265
|
+
|
|
266
|
+
**Option 2: Manual**
|
|
267
|
+
```bash
|
|
268
|
+
# Add to ~/.claude/hooks/pre-prompt.sh
|
|
269
|
+
claude-config workstream inject --silent
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
Once installed, your active workstream's rules are prepended to every Claude session.
|
|
273
|
+
|
|
274
|
+
### Activity Tracking & Suggestions
|
|
275
|
+
|
|
276
|
+
Claude-config can track which files you work on and suggest workstreams based on patterns:
|
|
277
|
+
|
|
278
|
+
**How it works:**
|
|
279
|
+
1. A post-response hook logs file paths accessed during Claude sessions
|
|
280
|
+
2. Co-activity patterns are detected (projects frequently worked on together)
|
|
281
|
+
3. Workstream suggestions appear in the UI based on these patterns
|
|
282
|
+
|
|
283
|
+
**Setup (optional):**
|
|
284
|
+
```bash
|
|
285
|
+
# Install the activity tracking hook
|
|
286
|
+
# Add to ~/.claude/hooks/post-response.sh:
|
|
287
|
+
source /path/to/claude-config/hooks/activity-track.sh
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
**In the Web UI:**
|
|
291
|
+
- Activity Insights panel shows sessions, files tracked, and active projects
|
|
292
|
+
- Suggested Workstreams appear when patterns are detected
|
|
293
|
+
- Click "Create" to open pre-filled dialog (tweak projects as needed)
|
|
294
|
+
- Click "X" to dismiss suggestions you don't want
|
|
295
|
+
|
|
296
|
+
### Smart Sync
|
|
297
|
+
|
|
298
|
+
Smart Sync intelligently suggests workstream switches based on your coding activity:
|
|
299
|
+
|
|
300
|
+
**Features:**
|
|
301
|
+
- Auto-detect which workstream matches your current work
|
|
302
|
+
- Non-blocking toast notifications: "Working on X, Y. Switch to 'Auth Feature'?"
|
|
303
|
+
- Auto-switch when 80%+ activity matches (configurable threshold)
|
|
304
|
+
- Learn from your choices (Always/Never options)
|
|
305
|
+
- Rate-limited nudges (max once per 5 minutes)
|
|
306
|
+
|
|
307
|
+
**Actions:**
|
|
308
|
+
- **Yes** - Switch to suggested workstream
|
|
309
|
+
- **No** - Dismiss this nudge
|
|
310
|
+
- **Always** - Remember to always switch for this project-workstream pair
|
|
311
|
+
- **Never** - Never suggest this again
|
|
312
|
+
|
|
313
|
+
**Settings:**
|
|
314
|
+
In Workstreams view, adjust Smart Sync settings:
|
|
315
|
+
- Enable/disable Smart Sync
|
|
316
|
+
- Adjust auto-switch confidence threshold (0-100%)
|
|
317
|
+
|
|
318
|
+
**Bulletproof design:**
|
|
319
|
+
- Fails silently, never blocks your workflow
|
|
320
|
+
- All nudges are dismissible
|
|
321
|
+
- Defaults to last-used workstream if detection fails
|
|
322
|
+
|
|
215
323
|
## Web UI Features
|
|
216
324
|
|
|
217
325
|
When you run `claude-config ui`:
|
|
218
326
|
|
|
219
327
|
- **Project Switcher** - Switch between registered projects from header dropdown
|
|
220
|
-
- **
|
|
328
|
+
- **Workstream Switcher** - Quick-switch between workstreams from header
|
|
329
|
+
- **Project Explorer** - Browse/edit all .claude folders in hierarchy
|
|
330
|
+
- **Workstreams** - Create and manage context sets for multi-project workflows
|
|
331
|
+
- Activity tracking with co-activity pattern detection
|
|
332
|
+
- AI-powered workstream suggestions
|
|
333
|
+
- Smart Sync for intelligent workstream switching
|
|
334
|
+
- Manual project add/remove in create/edit dialogs
|
|
221
335
|
- **Sub-Projects** - Auto-detects git repos, plus manually add/hide external folders
|
|
222
336
|
- **Plugins** - Browse and install Claude Code plugins with scope control
|
|
337
|
+
- Plugin directory with search and filtering
|
|
338
|
+
- Marketplace management
|
|
339
|
+
- Scope selection (project/global/local)
|
|
223
340
|
- **MCP Registry** - Search GitHub/npm, add/edit/delete MCPs
|
|
224
341
|
- **Claude Code Settings** - Visual editor for `~/.claude/settings.json`
|
|
225
342
|
- Permissions (allow/ask/deny rules)
|
|
@@ -227,10 +344,14 @@ When you run `claude-config ui`:
|
|
|
227
344
|
- Behavior settings
|
|
228
345
|
- Hooks and advanced options
|
|
229
346
|
- **Gemini CLI Settings** - Visual editor for `~/.gemini/settings.json`
|
|
347
|
+
- MCP server management for Gemini
|
|
348
|
+
- Gemini-specific options
|
|
230
349
|
- **Memory System** - Manage preferences, corrections, patterns, decisions
|
|
231
350
|
- **Templates** - Apply rule templates to projects
|
|
232
351
|
- **Preferences** - Configure claude-config tool settings
|
|
352
|
+
- Enabled AI tools (Claude Code, Gemini CLI, Antigravity)
|
|
233
353
|
- **One-Click Updates** - Update badge appears when new version available
|
|
354
|
+
- **Dark Mode** - Theme toggle (light/dark/system)
|
|
234
355
|
|
|
235
356
|
## Plugins
|
|
236
357
|
|