ccg-workflow 3.0.6 → 3.0.8

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/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import cac from 'cac';
3
3
  import ansis from 'ansis';
4
- import { A as diagnoseMcpConfig, B as isWindows, C as readClaudeCodeConfig, D as fixWindowsMcpConfig, E as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, a as i18n, s as showMainMenu, i as init, F as configMcp, G as version } from './shared/ccg-workflow.CAM1phsy.mjs';
4
+ import { A as diagnoseMcpConfig, B as isWindows, C as readClaudeCodeConfig, D as fixWindowsMcpConfig, E as writeClaudeCodeConfig, r as readCcgConfig, b as initI18n, a as i18n, s as showMainMenu, i as init, F as configMcp, G as version } from './shared/ccg-workflow.Dza6GxG1.mjs';
5
5
  import 'inquirer';
6
6
  import 'ora';
7
7
  import 'node:child_process';
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as changeLanguage, y as checkForUpdates, z as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, v as getCurrentVersion, x as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, n as installCodexMode, k as installWorkflows, q as migrateToV1_4_0, t as needsMigration, r as readCcgConfig, s as showMainMenu, p as uninstallAceTool, o as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.CAM1phsy.mjs';
1
+ export { c as changeLanguage, y as checkForUpdates, z as compareVersions, d as createDefaultConfig, e as createDefaultRouting, g as getCcgDir, f as getConfigPath, v as getCurrentVersion, x as getLatestVersion, j as getWorkflowById, h as getWorkflowConfigs, a as i18n, i as init, b as initI18n, l as installAceTool, m as installAceToolRs, n as installCodexMode, k as installWorkflows, q as migrateToV1_4_0, t as needsMigration, r as readCcgConfig, s as showMainMenu, p as uninstallAceTool, o as uninstallWorkflows, u as update, w as writeCcgConfig } from './shared/ccg-workflow.Dza6GxG1.mjs';
2
2
  import 'ansis';
3
3
  import 'inquirer';
4
4
  import 'ora';
@@ -10,7 +10,7 @@ import fs from 'fs-extra';
10
10
  import { parse, stringify } from 'smol-toml';
11
11
  import i18next from 'i18next';
12
12
 
13
- const version = "3.0.6";
13
+ const version = "3.0.8";
14
14
 
15
15
  function cmd(id, order, category, name, nameEn, description, descriptionEn, cmdOverride) {
16
16
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccg-workflow",
3
- "version": "3.0.6",
3
+ "version": "3.0.8",
4
4
  "description": "Claude + Codex + Gemini multi-model collaboration system - smart routing development workflow",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.17.1",
@@ -1,24 +1,37 @@
1
1
  # CCG Implementation Sub-Agent
2
- # Spawned by the lead Codex agent for parallel file implementation
3
2
 
4
3
  name = "ccg-implement"
5
- description = "Implementation worker writes code for assigned files following the plan"
4
+ description = "Workspace-write CCG implementer that follows specs and plan."
5
+ sandbox_mode = "workspace-write"
6
+
6
7
  developer_instructions = """
7
- You are a CCG implementation worker. You have been dispatched by the lead agent.
8
+ You are running as the `ccg-implement` sub-agent. The main session has dispatched you to do the work.
9
+
10
+ CRITICAL — Recursion guard (read first):
11
+ - You MUST NOT spawn another sub-agent. Do the implementation work directly in this turn.
12
+ - Any guidance in AGENTS.md about "call codeagent-wrapper" or "spawn sub-agents" applies to the MAIN session, NOT to you. You are already the dispatched implementer.
13
+ - Only the main session is allowed to call external models or spawn agents.
14
+
15
+ ## Context Loading
16
+
17
+ 1. Read the dispatch message — it contains your file scope and implementation steps.
18
+ 2. If .ccg/spec/ exists, read relevant spec files before writing code.
19
+ 3. If a plan.md path is mentioned, read it for full context.
8
20
 
9
21
  ## Rules
10
- 1. You ONLY modify files assigned to you in the dispatch message
11
- 2. Read .ccg/spec/ conventions before writing (if exists)
12
- 3. Follow the plan exactly no scope expansion
13
- 4. Run validation commands after changes if specified
14
- 5. Report: files changed, tests status, any blockers
15
-
16
- ## You are NOT the lead agent
17
- Do NOT spawn subagents. Do NOT call codeagent-wrapper. Just write the code assigned to you.
18
- """
22
+ 1. You ONLY modify files assigned to you in the dispatch message.
23
+ 2. Follow the plan exactly no scope expansion.
24
+ 3. Run validation commands after changes if specified.
25
+ 4. Report: files changed, tests status, any blockers.
19
26
 
20
- [sandbox]
21
- mode = "workspace-write"
27
+ Before finishing, summarize:
28
+ - Files changed
29
+ - Tests/checks run
30
+ - Remaining risks or follow-ups
31
+ """
22
32
 
23
33
  [features]
24
34
  multi_agent = false
35
+
36
+ [features.multi_agent_v2]
37
+ enabled = false
@@ -1,29 +1,51 @@
1
1
  # CCG Research Sub-Agent
2
- # Spawned by the lead Codex agent for codebase exploration
3
2
 
4
3
  name = "ccg-research"
5
- description = "Research worker explores codebase, maps dependencies, gathers context"
4
+ description = "CCG researcher for specs, code patterns, and affected files. Writes findings to task research/ directory."
5
+ sandbox_mode = "workspace-write"
6
+
6
7
  developer_instructions = """
7
- You are a CCG research worker. You have been dispatched to gather information.
8
+ You are running as the `ccg-research` sub-agent. The main session has dispatched you to gather information.
9
+
10
+ CRITICAL — Recursion guard (read first):
11
+ - You MUST NOT spawn another sub-agent. Do the research directly in this turn.
12
+ - Any guidance in AGENTS.md about "call codeagent-wrapper" or "spawn sub-agents" applies to the MAIN session, NOT to you.
13
+ - Only the main session is allowed to call external models or spawn agents.
14
+
15
+ ## Context Loading
8
16
 
9
- ## Steps
10
- 1. Search the codebase for files/patterns specified in the dispatch message
11
- 2. Map dependencies and call chains
12
- 3. Read relevant spec files (.ccg/spec/) for conventions
13
- 4. Summarize findings in a structured report
17
+ 1. Read the dispatch message — it contains what to research.
18
+ 2. If .ccg/spec/ exists, read relevant spec files for conventions.
19
+
20
+ ## Workflow
21
+
22
+ 1. Search the codebase for files/patterns specified in the dispatch message.
23
+ 2. Map dependencies and call chains.
24
+ 3. If a task directory is mentioned, write findings to `<task-dir>/research/<topic>.md`.
25
+ 4. Summarize findings in a structured report.
14
26
 
15
27
  ## Output Format
16
- FILES_FOUND: [list of relevant files]
17
- DEPENDENCIES: [dependency map]
18
- PATTERNS: [existing code patterns to follow]
19
- RISKS: [potential conflicts or breaking changes]
20
28
 
21
- ## You are NOT the lead agent
22
- Do NOT spawn subagents. Do NOT modify any files. Read only.
23
- """
29
+ ### Files Found
30
+ [list of relevant files with one-line description]
24
31
 
25
- [sandbox]
26
- mode = "read-only"
32
+ ### Dependencies
33
+ [dependency map]
34
+
35
+ ### Patterns
36
+ [existing code patterns to follow, cite file:line]
37
+
38
+ ### Risks
39
+ [potential conflicts or breaking changes]
40
+
41
+ ## Scope limits
42
+ - Write ONLY to the task's research/ directory.
43
+ - Do NOT modify source code files.
44
+ - Do NOT call codeagent-wrapper.
45
+ """
27
46
 
28
47
  [features]
29
48
  multi_agent = false
49
+
50
+ [features.multi_agent_v2]
51
+ enabled = false
@@ -1,31 +1,50 @@
1
1
  # CCG Review Sub-Agent
2
- # Spawned by the lead Codex agent for code quality checking
3
2
 
4
3
  name = "ccg-review"
5
- description = "Review worker runs lint, typecheck, tests and reports findings"
4
+ description = "Workspace-write CCG reviewer that self-fixes lint/type-check failures and reports findings."
5
+ sandbox_mode = "workspace-write"
6
+
6
7
  developer_instructions = """
7
- You are a CCG review worker. You have been dispatched to verify code quality.
8
+ You are running as the `ccg-review` sub-agent. The main session has dispatched you to review and self-fix.
9
+
10
+ CRITICAL — Recursion guard (read first):
11
+ - You MUST NOT spawn another sub-agent. Do the review and fixes directly in this turn.
12
+ - Any guidance in AGENTS.md about "call codeagent-wrapper" or "spawn sub-agents" applies to the MAIN session, NOT to you. You are already the dispatched reviewer.
13
+ - Only the main session is allowed to call external models or spawn agents.
14
+
15
+ ## Context Loading
16
+
17
+ 1. Read the dispatch message — it contains what to review.
18
+ 2. If .ccg/spec/ exists, read relevant spec files to verify code against conventions.
19
+
20
+ ## Your job: review AND fix
21
+
22
+ You have write access. When you find an issue, fix it directly — not just report it.
8
23
 
9
- ## Steps
10
- 1. Run lint/typecheck for the project (detect from package.json / go.mod / pyproject.toml)
11
- 2. Run tests
12
- 3. Review git diff for: security issues, logic errors, scope violations
13
- 4. Auto-fix trivial lint issues (max 3 attempts)
14
- 5. Report findings as: Critical / Warning / Info
24
+ Review checklist:
25
+ - Run lint and type-check; fix any failures (max 3 attempts)
26
+ - Run tests; report pass/fail
27
+ - Review git diff for: security issues, logic errors, scope violations
28
+ - Check whether .ccg/spec/ docs need updates after implementation
15
29
 
16
30
  ## Output Format
17
- REVIEW_RESULT: [PASS|FAIL]
18
- Critical: [count]
19
- Warning: [count]
20
- Info: [count]
21
- Details: [list of findings with file:line]
22
-
23
- ## You are NOT the lead agent
24
- Do NOT spawn subagents. Do NOT call codeagent-wrapper.
25
- """
26
31
 
27
- [sandbox]
28
- mode = "workspace-write"
32
+ ### Findings (fixed)
33
+ - File: <path>
34
+ - Issue: <what was wrong>
35
+ - Fix: <what you changed>
36
+
37
+ ### Findings (not fixed)
38
+ Only list issues you could not self-fix. Explain why.
39
+
40
+ ### Verification
41
+ - Lint: pass/fail
42
+ - TypeCheck: pass/fail
43
+ - Tests: pass/fail
44
+ """
29
45
 
30
46
  [features]
31
47
  multi_agent = false
48
+
49
+ [features.multi_agent_v2]
50
+ enabled = false
@@ -1,9 +1,19 @@
1
1
  # CCG Codex Project Configuration
2
- # Installed by: npx ccg-workflow
2
+ # Installed by: npx ccg-workflow (menu → X. Codex Mode)
3
+ #
4
+ # Codex merges this after user-level config when the project is trusted.
5
+ # To trust: add under [projects] in ~/.codex/config.toml:
6
+ # [projects."/abs/path/to/repo"]
7
+ # trust_level = "trusted"
3
8
 
4
9
  project_doc_fallback_filenames = ["AGENTS.md", "CLAUDE.md"]
5
10
 
11
+ # multi_agent_v2: structured subagent orchestration with `wait` tool.
12
+ # - enabled = true: required inside the table
13
+ # - max_concurrent_threads_per_session: bumps default 4 → 6
14
+ # - min_wait_timeout_ms: 480000 ms = 8 min (default 10s is too short
15
+ # for external model calls via codeagent-wrapper)
6
16
  [features.multi_agent_v2]
7
17
  enabled = true
8
18
  max_concurrent_threads_per_session = 6
9
- min_wait_timeout_ms = 480000 # 8 min — external model calls need time
19
+ min_wait_timeout_ms = 480000
@@ -1,7 +1,15 @@
1
- [
2
- {
3
- "event": "user_prompt_submit",
4
- "script": "hooks/ccg-workflow.py",
5
- "timeout_ms": 10000
1
+ {
2
+ "hooks": {
3
+ "UserPromptSubmit": [
4
+ {
5
+ "hooks": [
6
+ {
7
+ "type": "command",
8
+ "command": "python3 .codex/hooks/ccg-workflow.py",
9
+ "timeout": 10
10
+ }
11
+ ]
12
+ }
13
+ ]
6
14
  }
7
- ]
15
+ }