cc-workspace 4.1.0 → 4.1.2

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 (3) hide show
  1. package/README.md +44 -32
  2. package/bin/cli.js +3 -1
  3. package/package.json +10 -2
package/README.md CHANGED
@@ -1,65 +1,64 @@
1
- # Claude Code Multi-Workspace Orchestrator v4.1.0
1
+ # cc-workspace
2
2
 
3
- A system to pilot multi-service projects from Claude Code.
4
- The orchestrator (Opus) never codes in repos. It clarifies, plans,
5
- delegates to teammates who work in parallel in each repo.
3
+ **Claude Code Multi-Workspace Orchestrator** turn Claude Code into a team of AI developers that work in parallel across your repos.
6
4
 
7
- > Claude Code v2.1.47+ / Opus 4.6 / Sonnet 4.6 (February 2026).
8
- > 9 skills, 11 hooks, 3 agents, 3 rules.
5
+ Instead of Claude Code trying to do everything in one session and losing context, `cc-workspace` sets up an orchestrator (Opus) that clarifies requirements, writes a plan, then delegates to teammates (Sonnet) who implement in parallel — each in their own repo, their own worktree, their own context.
6
+
7
+ > Requires [Claude Code](https://docs.anthropic.com/en/docs/claude-code) v2.1.47+ with Agent Teams.
8
+ > Works with Opus 4.6, Sonnet 4.6, Haiku 4.5 (February 2026).
9
9
 
10
10
  ---
11
11
 
12
- ## Installation
12
+ ## Quick start
13
13
 
14
14
  ### Prerequisites
15
15
 
16
- - **Claude Code** v2.1.47+
16
+ - **[Claude Code](https://docs.anthropic.com/en/docs/claude-code)** v2.1.47+
17
17
  - **Node.js** 18+
18
18
  - **jq** (`brew install jq` on macOS, `apt install jq` on Linux)
19
19
 
20
- ### 1. Workspace setup
20
+ ### Setup a workspace
21
21
 
22
22
  ```bash
23
+ # Navigate to the parent directory containing your repos
23
24
  cd ~/projects/my-workspace
25
+
26
+ # Initialize the orchestrator (no install needed)
24
27
  npx cc-workspace init . "My Project"
25
28
  ```
26
29
 
27
- The CLI:
28
- - Installs skills/rules/agents in `~/.claude/` (if newer version)
29
- - Creates `orchestrator/` with plans/, templates/, hooks
30
- - Scans sibling repos (directories with `.git/`)
31
- - Generates `service-profiles.md`
32
- - workspace.md and constitution.md in `[UNCONFIGURED]` mode
30
+ This creates an `orchestrator/` directory and installs 9 skills, 3 agents, 11 hooks, and 3 rules into `~/.claude/`.
33
31
 
34
- ### 2. Initialization (one time only)
32
+ ### Configure (one time)
35
33
 
36
34
  ```bash
37
35
  cd orchestrator/
38
36
  claude --agent workspace-init
39
- # type "go" to start the diagnostic
37
+ # type "go" to start the interactive diagnostic
40
38
  ```
41
39
 
42
- The `workspace-init` agent:
43
- 1. Diagnoses the structure (hooks, settings, templates)
44
- 2. Scans sibling repos, detects project types, checks Claude Code readiness
45
- 3. Offers to generate missing CLAUDE.md files (optional)
46
- 4. Interactive configuration of workspace.md (section by section)
47
- 5. Interactive configuration of constitution.md (project rules)
48
- 6. Final report with each check's status
40
+ The init agent will:
41
+ 1. Scan sibling repos and detect their tech stacks
42
+ 2. Offer to generate missing `CLAUDE.md` files for each repo
43
+ 3. Walk you through `workspace.md` configuration (section by section)
44
+ 4. Walk you through `constitution.md` (your engineering principles)
49
45
 
50
- ### 3. Work sessions
46
+ ### Start working
51
47
 
52
48
  ```bash
53
49
  cd orchestrator/
54
50
  claude --agent team-lead
55
-
56
- # The team-lead offers 4 modes:
57
- # A -- Full (clarify -> plan -> validate -> dispatch -> QA)
58
- # B -- Quick plan (specs -> plan -> dispatch)
59
- # C -- Go direct (immediate dispatch)
60
- # D -- Single-service (1 repo, no waves)
61
51
  ```
62
52
 
53
+ The team-lead offers 4 modes:
54
+
55
+ | Mode | When to use |
56
+ |------|-------------|
57
+ | **A -- Full** | Complex feature, multi-service, needs clarification |
58
+ | **B -- Quick plan** | Clear specs, no questions needed |
59
+ | **C -- Go direct** | Hotfix, quick fix, obvious specs |
60
+ | **D -- Single-service** | Bug or isolated feature in a single repo |
61
+
63
62
  ### Update
64
63
 
65
64
  ```bash
@@ -68,7 +67,7 @@ npx cc-workspace update
68
67
 
69
68
  Updates all components if the package version is newer:
70
69
  - **Global**: skills, rules, agents in `~/.claude/`
71
- - **Local** (if orchestrator/ found): hooks, settings.json, CLAUDE.md, templates, _TEMPLATE.md
70
+ - **Local** (if `orchestrator/` found): hooks, settings.json, CLAUDE.md, templates, _TEMPLATE.md
72
71
  - **Never overwritten**: workspace.md, constitution.md, plans/
73
72
 
74
73
  ### Diagnostic
@@ -353,6 +352,19 @@ Both `init` and `update` are safe to re-run:
353
352
 
354
353
  ---
355
354
 
355
+ ## Changelog v4.0 -> v4.0.5
356
+
357
+ | # | Fix | Detail |
358
+ |---|-----|--------|
359
+ | 1 | **Agent frontmatter fix** | `allowed-tools` → `tools` on all 3 agents. `allowed-tools` is the skill field — agents use `tools`. Without this fix, tool restrictions were silently ignored. |
360
+ | 2 | **Removed `effort` field** | `effort: high/medium/low` doesn't exist in Claude Code spec. Removed from all agents. |
361
+ | 3 | **Skill `agent` field** | Added `agent: Explore` or `agent: general-purpose` to 6 skills for proper subagent routing. |
362
+ | 4 | **`Task(type)` restrictions** | team-lead restricted to `Task(implementer, Explore)`, workspace-init to `Task(Explore)`. |
363
+ | 5 | **`update` fixes local files** | `npx cc-workspace update` now also updates local orchestrator/ files (hooks, settings.json, CLAUDE.md, templates, _TEMPLATE.md). Previously only updated globals. |
364
+ | 6 | **Failure handling** | Added failure handling section to spawn-templates: max 2 re-dispatches, escalation criteria. |
365
+
366
+ ---
367
+
356
368
  ## Changelog v3.5.0 -> v4.0
357
369
 
358
370
  | # | Feature | Detail |
package/bin/cli.js CHANGED
@@ -199,7 +199,9 @@ function installGlobals(force) {
199
199
  // Claude Code hook format: { matcher: { tools: [...] }, hooks: [{ type: "command", command: "...", timeout: N }] }
200
200
  // For hooks without tool matcher: { hooks: [{ type: "command", command: "...", timeout: N }] }
201
201
  function generateSettings(orchDir) {
202
- const hp = ".claude/hooks";
202
+ // Use $CLAUDE_PROJECT_DIR so hooks resolve correctly even when
203
+ // subagents run from a different CWD (e.g. worktree in sibling repo)
204
+ const hp = '${CLAUDE_PROJECT_DIR:-.}/.claude/hooks';
203
205
 
204
206
  function hook(command, timeout) {
205
207
  return { type: "command", command: `bash ${hp}/${command}`, timeout };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-workspace",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "Claude Code multi-workspace orchestrator — skills, hooks, agents, and templates for multi-service projects",
5
5
  "bin": {
6
6
  "cc-workspace": "./bin/cli.js"
@@ -20,7 +20,15 @@
20
20
  "workspace",
21
21
  "monorepo"
22
22
  ],
23
- "author": "VincVan",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/VincentVanN/cc-workspace.git"
26
+ },
27
+ "homepage": "https://github.com/VincentVanN/cc-workspace#readme",
28
+ "bugs": {
29
+ "url": "https://github.com/VincentVanN/cc-workspace/issues"
30
+ },
31
+ "author": "VincentVanN",
24
32
  "license": "MIT",
25
33
  "engines": {
26
34
  "node": ">=18"