cc-codeconductor 0.5.0 → 1.1.0
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 +387 -150
- package/dist/cli/errors.d.ts +65 -0
- package/dist/core/compilation/compile-checker.d.ts +53 -0
- package/dist/core/config/codeconductor-config.d.ts +42 -0
- package/dist/core/config/config-loader.d.ts +11 -0
- package/dist/core/filesystem/credential-guard.d.ts +18 -0
- package/dist/core/goal/goal-planner.d.ts +8 -0
- package/dist/core/goal/goal-state.d.ts +15 -0
- package/dist/core/loop/git-stats.d.ts +13 -0
- package/dist/core/loop/loop-engine.d.ts +82 -0
- package/dist/core/memory/episodic-store.d.ts +6 -0
- package/dist/core/memory/operational-state.d.ts +6 -0
- package/dist/core/orchestrator/runtime-orchestrator.d.ts +25 -0
- package/dist/core/planner/product-planner.d.ts +18 -0
- package/dist/core/presets/package-paths.d.ts +4 -0
- package/dist/core/product-graph/graph-store.d.ts +11 -0
- package/dist/core/product-graph/paths.d.ts +18 -0
- package/dist/core/verification/verification-runner.d.ts +57 -0
- package/dist/domain/loop/loop-state.d.ts +74 -0
- package/dist/domain/product/entities.d.ts +11 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +24165 -15800
- package/dist/library.js +2744 -0
- package/dist/utils/result.d.ts +36 -0
- package/dist/validation/schemas.d.ts +4006 -0
- package/package.json +18 -2
- package/policy.yml +12 -11
- package/presets/agy/AGENTS.md +14 -5
- package/presets/agy/gates/pre-commit/GATE.md +137 -0
- package/presets/agy/skills/backlog/SKILL.md +91 -0
- package/presets/agy/skills/cc-fix/SKILL.md +2 -2
- package/presets/agy/skills/cc-tdd-cycle/SKILL.md +11 -0
- package/presets/agy/skills/openspec/SKILL.md +5 -1
- package/presets/agy/skills/security-ai-llm/SKILL.md +43 -0
- package/presets/agy/skills/security-blue-team/SKILL.md +43 -0
- package/presets/agy/skills/security-cloud/SKILL.md +43 -0
- package/presets/agy/skills/security-crypto/SKILL.md +43 -0
- package/presets/agy/skills/security-exploit-dev/SKILL.md +45 -0
- package/presets/agy/skills/security-grc/SKILL.md +43 -0
- package/presets/agy/skills/security-incident-response/SKILL.md +45 -0
- package/presets/agy/skills/security-log-analysis/SKILL.md +43 -0
- package/presets/agy/skills/security-malware-analysis/SKILL.md +44 -0
- package/presets/agy/skills/security-mobile/SKILL.md +43 -0
- package/presets/agy/skills/security-network/SKILL.md +43 -0
- package/presets/agy/skills/security-ot-ics/SKILL.md +43 -0
- package/presets/agy/skills/security-recon/SKILL.md +45 -0
- package/presets/agy/skills/security-red-team/SKILL.md +44 -0
- package/presets/agy/skills/security-reverse-engineering/SKILL.md +44 -0
- package/presets/agy/skills/security-soc-automation/SKILL.md +43 -0
- package/presets/agy/skills/security-threat-hunting/SKILL.md +43 -0
- package/presets/agy/skills/security-vuln-assessment/SKILL.md +45 -0
- package/presets/agy/skills/security-web/SKILL.md +44 -0
- package/presets/agy/workflows/cc-api-contract.md +12 -0
- package/presets/agy/workflows/cc-ask.md +56 -0
- package/presets/agy/workflows/cc-backlog.md +69 -0
- package/presets/agy/workflows/cc-clarify.md +33 -0
- package/presets/agy/workflows/cc-council.md +31 -7
- package/presets/agy/workflows/cc-db-migration.md +22 -9
- package/presets/agy/workflows/cc-explore.md +37 -0
- package/presets/agy/workflows/cc-feature.md +41 -19
- package/presets/agy/workflows/cc-fix.md +50 -23
- package/presets/agy/workflows/cc-handoff.md +42 -0
- package/presets/agy/workflows/cc-iterative.md +128 -0
- package/presets/agy/workflows/cc-openspec.md +16 -1
- package/presets/agy/workflows/cc-pagespeed.md +12 -0
- package/presets/agy/workflows/cc-prototype.md +39 -0
- package/presets/agy/workflows/cc-refactor.md +12 -0
- package/presets/agy/workflows/cc-review.md +12 -0
- package/presets/agy/workflows/cc-scorecard.md +12 -0
- package/presets/agy/workflows/cc-security.md +180 -0
- package/presets/agy/workflows/cc-tdd-cycle.md +24 -0
- package/presets/agy/workflows/cc-test-plan.md +12 -0
- package/presets/agy/workflows/cc-triage.md +35 -0
- package/presets/claude/CLAUDE.md +68 -0
- package/presets/claude/commands/cc/api-contract.md +12 -0
- package/presets/claude/commands/cc/ask.md +56 -0
- package/presets/claude/commands/cc/backlog.md +104 -0
- package/presets/claude/commands/cc/clarify.md +32 -0
- package/presets/claude/commands/cc/council.md +87 -0
- package/presets/claude/commands/cc/db-migration.md +22 -9
- package/presets/claude/commands/cc/explore.md +36 -0
- package/presets/claude/commands/cc/feature.md +49 -22
- package/presets/claude/commands/cc/fix.md +74 -20
- package/presets/claude/commands/cc/handoff.md +44 -0
- package/presets/claude/commands/cc/iterative.md +132 -0
- package/presets/claude/commands/cc/openspec.md +41 -1
- package/presets/claude/commands/cc/pagespeed.md +12 -0
- package/presets/claude/commands/cc/prototype.md +38 -0
- package/presets/claude/commands/cc/refactor.md +152 -1
- package/presets/claude/commands/cc/review.md +78 -16
- package/presets/claude/commands/cc/scorecard.md +12 -0
- package/presets/claude/commands/cc/security.md +179 -0
- package/presets/claude/commands/cc/tdd-cycle.md +53 -3
- package/presets/claude/commands/cc/test-plan.md +12 -0
- package/presets/claude/commands/cc/triage.md +34 -0
- package/presets/claude/gates/pre-commit/GATE.md +137 -0
- package/presets/claude/settings.json +8 -46
- package/presets/claude/skills/backlog/SKILL.md +91 -0
- package/presets/claude/skills/openspec/SKILL.md +5 -1
- package/presets/claude/skills/security/SKILL.md +382 -0
- package/presets/claude/skills/security-ai-llm/SKILL.md +43 -0
- package/presets/claude/skills/security-blue-team/SKILL.md +43 -0
- package/presets/claude/skills/security-cloud/SKILL.md +43 -0
- package/presets/claude/skills/security-crypto/SKILL.md +43 -0
- package/presets/claude/skills/security-exploit-dev/SKILL.md +45 -0
- package/presets/claude/skills/security-grc/SKILL.md +43 -0
- package/presets/claude/skills/security-incident-response/SKILL.md +45 -0
- package/presets/claude/skills/security-log-analysis/SKILL.md +43 -0
- package/presets/claude/skills/security-malware-analysis/SKILL.md +44 -0
- package/presets/claude/skills/security-mobile/SKILL.md +43 -0
- package/presets/claude/skills/security-network/SKILL.md +43 -0
- package/presets/claude/skills/security-ot-ics/SKILL.md +43 -0
- package/presets/claude/skills/security-recon/SKILL.md +45 -0
- package/presets/claude/skills/security-red-team/SKILL.md +44 -0
- package/presets/claude/skills/security-reverse-engineering/SKILL.md +44 -0
- package/presets/claude/skills/security-soc-automation/SKILL.md +43 -0
- package/presets/claude/skills/security-threat-hunting/SKILL.md +43 -0
- package/presets/claude/skills/security-vuln-assessment/SKILL.md +45 -0
- package/presets/claude/skills/security-web/SKILL.md +44 -0
- package/presets/codex/AGENTS.md +6 -6
- package/presets/codex/commands/cc-ask.md +56 -0
- package/presets/codex/gates/pre-commit/GATE.md +137 -0
- package/presets/cursor/AGENTS.md +8 -8
- package/presets/cursor/agents/business-agent.md +44 -0
- package/presets/cursor/agents/continuous-architect.md +37 -0
- package/presets/cursor/agents/docs.md +1 -0
- package/presets/cursor/agents/goal-planner.md +1 -1
- package/presets/cursor/agents/impact-analyst.md +43 -0
- package/presets/cursor/agents/orchestrator.md +6 -6
- package/presets/cursor/commands/cc/api-contract.md +12 -0
- package/presets/cursor/commands/cc/ask.md +56 -0
- package/presets/cursor/commands/cc/backlog.md +105 -0
- package/presets/cursor/commands/cc/clarify.md +32 -0
- package/presets/cursor/commands/cc/council.md +87 -0
- package/presets/cursor/commands/cc/db-migration.md +22 -9
- package/presets/cursor/commands/cc/explore.md +36 -0
- package/presets/cursor/commands/cc/feature.md +41 -19
- package/presets/cursor/commands/cc/fix.md +47 -20
- package/presets/cursor/commands/cc/handoff.md +41 -0
- package/presets/cursor/commands/cc/iterative.md +133 -0
- package/presets/cursor/commands/cc/openspec.md +38 -8
- package/presets/cursor/commands/cc/pagespeed.md +12 -0
- package/presets/cursor/commands/cc/prototype.md +38 -0
- package/presets/cursor/commands/cc/refactor.md +12 -0
- package/presets/cursor/commands/cc/review.md +12 -0
- package/presets/cursor/commands/cc/scorecard.md +12 -0
- package/presets/cursor/commands/cc/security.md +179 -0
- package/presets/cursor/commands/cc/tdd-cycle.md +24 -0
- package/presets/cursor/commands/cc/test-plan.md +12 -0
- package/presets/cursor/commands/cc/triage.md +34 -0
- package/presets/cursor/gates/pre-commit/GATE.md +137 -0
- package/presets/cursor/rules/orchestration.mdc +1 -1
- package/presets/cursor/skills/backlog/SKILL.md +91 -0
- package/presets/cursor/skills/openspec/SKILL.md +5 -1
- package/presets/cursor/skills/security-ai-llm/SKILL.md +43 -0
- package/presets/cursor/skills/security-blue-team/SKILL.md +43 -0
- package/presets/cursor/skills/security-cloud/SKILL.md +43 -0
- package/presets/cursor/skills/security-crypto/SKILL.md +43 -0
- package/presets/cursor/skills/security-exploit-dev/SKILL.md +45 -0
- package/presets/cursor/skills/security-grc/SKILL.md +43 -0
- package/presets/cursor/skills/security-incident-response/SKILL.md +45 -0
- package/presets/cursor/skills/security-log-analysis/SKILL.md +43 -0
- package/presets/cursor/skills/security-malware-analysis/SKILL.md +44 -0
- package/presets/cursor/skills/security-mobile/SKILL.md +43 -0
- package/presets/cursor/skills/security-network/SKILL.md +43 -0
- package/presets/cursor/skills/security-ot-ics/SKILL.md +43 -0
- package/presets/cursor/skills/security-recon/SKILL.md +45 -0
- package/presets/cursor/skills/security-red-team/SKILL.md +44 -0
- package/presets/cursor/skills/security-reverse-engineering/SKILL.md +44 -0
- package/presets/cursor/skills/security-soc-automation/SKILL.md +43 -0
- package/presets/cursor/skills/security-threat-hunting/SKILL.md +43 -0
- package/presets/cursor/skills/security-vuln-assessment/SKILL.md +45 -0
- package/presets/cursor/skills/security-web/SKILL.md +44 -0
- package/presets/opencode/agents/architect.md +22 -1
- package/presets/opencode/agents/complexity-auditor.md +16 -1
- package/presets/opencode/agents/contract-builder.md +17 -1
- package/presets/opencode/agents/devil.md +158 -0
- package/presets/opencode/agents/docs.md +19 -1
- package/presets/opencode/agents/goal-planner.md +32 -2
- package/presets/opencode/agents/implementer.md +32 -2
- package/presets/opencode/agents/orchestrator.md +79 -12
- package/presets/opencode/agents/planner.md +61 -0
- package/presets/opencode/agents/repo-explorer.md +16 -0
- package/presets/opencode/agents/reviewer.md +33 -3
- package/presets/opencode/agents/security-reviewer.md +31 -1
- package/presets/opencode/agents/task-coach.md +69 -1
- package/presets/opencode/agents/tester.md +18 -1
- package/presets/opencode/commands/cc-api-contract.md +12 -0
- package/presets/opencode/commands/cc-ask.md +56 -0
- package/presets/opencode/commands/cc-backlog.md +68 -0
- package/presets/opencode/commands/cc-clarify.md +31 -0
- package/presets/opencode/commands/cc-council.md +87 -0
- package/presets/opencode/commands/cc-db-migration.md +22 -9
- package/presets/opencode/commands/cc-explore.md +35 -0
- package/presets/opencode/commands/cc-feature.md +41 -19
- package/presets/opencode/commands/cc-fix.md +50 -23
- package/presets/opencode/commands/cc-handoff.md +40 -0
- package/presets/opencode/commands/cc-iterative.md +127 -0
- package/presets/opencode/commands/cc-openspec.md +16 -1
- package/presets/opencode/commands/cc-pagespeed.md +12 -0
- package/presets/opencode/commands/cc-prototype.md +37 -0
- package/presets/opencode/commands/cc-refactor.md +12 -0
- package/presets/opencode/commands/cc-review.md +12 -0
- package/presets/opencode/commands/cc-scorecard.md +12 -0
- package/presets/opencode/commands/cc-security.md +179 -0
- package/presets/opencode/commands/cc-tdd-cycle.md +24 -0
- package/presets/opencode/commands/cc-test-plan.md +12 -0
- package/presets/opencode/commands/cc-triage.md +33 -0
- package/presets/opencode/gates/pre-commit/GATE.md +137 -0
- package/presets/opencode/prompts/v0.1.0/DEPRECATED.md +11 -0
- package/presets/opencode/prompts/v0.2.0/DEPRECATED.md +11 -0
- package/presets/opencode/prompts/v0.3.0/DEPRECATED.md +11 -0
- package/presets/opencode/prompts/v0.4.0/DEPRECATED.md +11 -0
- package/presets/opencode/prompts/v0.5.0/goal-planner.md +1 -1
- package/presets/opencode/prompts/v0.5.0/orchestrator.md +6 -6
- package/presets/opencode/prompts/v0.6.0/implementer.md +35 -0
- package/presets/opencode/prompts/v0.6.0/planner.md +36 -0
- package/presets/opencode/prompts/v0.6.0/reviewer.md +40 -0
- package/presets/opencode/prompts/v1.0.0/README.md +47 -0
- package/presets/opencode/prompts/v1.0.0/architect.md +259 -0
- package/presets/opencode/prompts/v1.0.0/complexity-auditor.md +116 -0
- package/presets/opencode/prompts/v1.0.0/contract-builder.md +120 -0
- package/presets/opencode/prompts/v1.0.0/devil.md +169 -0
- package/presets/opencode/prompts/v1.0.0/docs.md +229 -0
- package/presets/opencode/prompts/v1.0.0/goal-planner.md +123 -0
- package/presets/opencode/prompts/v1.0.0/implementer.md +228 -0
- package/presets/opencode/prompts/v1.0.0/orchestrator.md +474 -0
- package/presets/opencode/prompts/v1.0.0/planner.md +72 -0
- package/presets/opencode/prompts/v1.0.0/repo-explorer.md +147 -0
- package/presets/opencode/prompts/v1.0.0/reviewer.md +295 -0
- package/presets/opencode/prompts/v1.0.0/security-reviewer.md +170 -0
- package/presets/opencode/prompts/v1.0.0/task-coach.md +235 -0
- package/presets/opencode/prompts/v1.0.0/tester.md +298 -0
- package/presets/opencode/skills/backlog/SKILL.md +91 -0
- package/presets/opencode/skills/openspec/SKILL.md +5 -1
- package/presets/opencode/skills/security-ai-llm/SKILL.md +43 -0
- package/presets/opencode/skills/security-blue-team/SKILL.md +43 -0
- package/presets/opencode/skills/security-cloud/SKILL.md +43 -0
- package/presets/opencode/skills/security-crypto/SKILL.md +43 -0
- package/presets/opencode/skills/security-exploit-dev/SKILL.md +45 -0
- package/presets/opencode/skills/security-grc/SKILL.md +43 -0
- package/presets/opencode/skills/security-incident-response/SKILL.md +45 -0
- package/presets/opencode/skills/security-log-analysis/SKILL.md +43 -0
- package/presets/opencode/skills/security-malware-analysis/SKILL.md +44 -0
- package/presets/opencode/skills/security-mobile/SKILL.md +43 -0
- package/presets/opencode/skills/security-network/SKILL.md +43 -0
- package/presets/opencode/skills/security-ot-ics/SKILL.md +43 -0
- package/presets/opencode/skills/security-recon/SKILL.md +45 -0
- package/presets/opencode/skills/security-red-team/SKILL.md +44 -0
- package/presets/opencode/skills/security-reverse-engineering/SKILL.md +44 -0
- package/presets/opencode/skills/security-soc-automation/SKILL.md +43 -0
- package/presets/opencode/skills/security-threat-hunting/SKILL.md +43 -0
- package/presets/opencode/skills/security-vuln-assessment/SKILL.md +45 -0
- package/presets/opencode/skills/security-web/SKILL.md +44 -0
- package/presets/seo-hotel/settings.json +0 -17
- package/src/presets/council/council.yml +12 -0
- package/src/presets/manifests/agy.yml +2 -2
- package/src/presets/manifests/claude.yml +2 -2
- package/src/presets/manifests/codex.yml +2 -2
- package/src/presets/manifests/cursor.yml +2 -2
- package/src/presets/manifests/gemini.yml +2 -2
- package/src/presets/manifests/opencode.yml +2 -2
- package/src/presets/models/agy.yml +93 -66
- package/src/presets/models/claude.yml +79 -53
- package/src/presets/models/codex.yml +79 -54
- package/src/presets/models/cursor.yml +72 -58
- package/src/presets/models/gemini.yml +79 -53
- package/src/presets/models/opencode.yml +72 -46
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
**Stop prompting. Start orchestrating.**
|
|
4
4
|
|
|
5
|
+
[](https://badge.socket.dev/npm/package/cc-codeconductor/1.0.0)
|
|
6
|
+
|
|
5
7
|
CodeConductor is an open-source framework for building structured, reproducible
|
|
6
8
|
AI-assisted software engineering workflows.
|
|
7
9
|
|
|
@@ -13,93 +15,65 @@ contracts, task cards, and risk-based routing.
|
|
|
13
15
|
>
|
|
14
16
|
> ## Current Scope
|
|
15
17
|
>
|
|
16
|
-
>
|
|
18
|
+
> Published package is **1.0.0**. Limitations matrix:
|
|
19
|
+
> [docs/current-status.md](docs/current-status.md). This repository:
|
|
20
|
+
> `bun run dev …` (not `npx`) while iterating.
|
|
21
|
+
>
|
|
22
|
+
> Shipped in 1.0.0:
|
|
17
23
|
>
|
|
18
24
|
> - `npx cc-codeconductor init` — detects project stack, writes
|
|
19
25
|
> `.codeconductor/config.yml`, copies `council.yml` and `policy.yml` into
|
|
20
26
|
> `.codeconductor/presets/`
|
|
21
|
-
> - `npx cc-codeconductor install council --target <opencode|claude|codex|agy|all>`
|
|
22
|
-
>
|
|
23
|
-
>
|
|
24
|
-
> - `npx cc-codeconductor
|
|
25
|
-
>
|
|
26
|
-
>
|
|
27
|
-
>
|
|
28
|
-
> - `npx cc-codeconductor
|
|
29
|
-
>
|
|
30
|
-
> - `npx cc-codeconductor
|
|
31
|
-
>
|
|
32
|
-
>
|
|
33
|
-
>
|
|
34
|
-
>
|
|
35
|
-
>
|
|
36
|
-
>
|
|
37
|
-
> - `npx cc-codeconductor
|
|
38
|
-
>
|
|
39
|
-
>
|
|
40
|
-
>
|
|
41
|
-
> -
|
|
42
|
-
>
|
|
43
|
-
>
|
|
44
|
-
>
|
|
45
|
-
>
|
|
46
|
-
>
|
|
47
|
-
>
|
|
48
|
-
>
|
|
49
|
-
>
|
|
50
|
-
>
|
|
51
|
-
> -
|
|
52
|
-
>
|
|
53
|
-
>
|
|
54
|
-
>
|
|
55
|
-
> - **Stack-specific presets (v0.4.0)**: `ts-next-drizzle`, `spring-kotlin-jpa`,
|
|
56
|
-
> `laravel-tall`, `python-data-api` — bundle `architect` + `implementer`
|
|
57
|
-
> contracts tuned to a single framework so `install preset` drops in the right
|
|
58
|
-
> defaults for that stack.
|
|
59
|
-
> - **9 specialized skills (v0.4.0)**: `drizzle-schema-architect`,
|
|
60
|
-
> `tailwind-responsive-auditor`, `seo-analytics-injector`,
|
|
61
|
-
> `jpa-nplusone-detector`, `spring-auth-auditor`, `livewire-alpine-bridge`,
|
|
62
|
-
> `fastapi-pydantic-strict`, `tdd-mutation-tester`, `auth-token-inspector` —
|
|
63
|
-
> loaded automatically by the matching preset.
|
|
64
|
-
> - **Workflow Loop Core (v0.4.0)** — 8-phase pipeline
|
|
65
|
-
> (`intake → structure → design → test → implement → validate → council →
|
|
66
|
-
> compact`) with operational guardrails (wall-clock timeout, max files
|
|
67
|
-
> modified, max lines changed) and human-in-the-loop STOP gates after Design
|
|
68
|
-
> and Council Verdict.
|
|
69
|
-
> - **Council consensus v0.4.0** — agent confidence thresholds
|
|
70
|
-
> (`< 0.6` per-agent or `< 0.7` average escalates) and a `complianceVeto`
|
|
71
|
-
> channel that overrides majority the same way `securityVeto` does.
|
|
72
|
-
> - **Goal orchestration (v0.4.0)** — `goal` planner writes
|
|
73
|
-
> `.codeconductor/current-goal.yml`; the orchestrator delegates tasks in
|
|
74
|
-
> dependency order and blocks dependents when a prerequisite is `blocked`.
|
|
75
|
-
> - **Memory compression + escalation emitter (v0.4.0)** — Phase 5 memory index
|
|
76
|
-
> + token budget hook keeps inter-agent context below the configured budget;
|
|
77
|
-
> the loop controller emits escalation reports when guardrails fire.
|
|
78
|
-
> - **Parallel subagents (v0.4.0)** — risk-based routing policy v0.4.0 enables
|
|
79
|
-
> parallel execution for eligible agent sequences (architect + implementer
|
|
80
|
-
> pattern, council verdict fan-out).
|
|
81
|
-
> - Manual presets for OpenCode, Claude Code, and Codex
|
|
82
|
-
> - Versioned Agent Contracts
|
|
83
|
-
> - Routing Policy documentation
|
|
84
|
-
> - Task Card, Scorecard, and workflow templates
|
|
85
|
-
> - Spring Boot/Kotlin and Python/Django workflow guidance
|
|
27
|
+
> - `npx cc-codeconductor install council --target <opencode|claude|codex|agy|all>`
|
|
28
|
+
> - `npx cc-codeconductor install preset --target <opencode|claude|codex|gemini|cursor|agy|all>`
|
|
29
|
+
> - `npx cc-codeconductor install lsp --target <…>`
|
|
30
|
+
> - `npx cc-codeconductor detect` / `doctor` / `update`
|
|
31
|
+
> - `npx cc-codeconductor seo audit` / `seo llms` (SSRF-guarded fetch)
|
|
32
|
+
> - `npx cc-codeconductor help` / `cc-help` (distinct contracts — see breaking
|
|
33
|
+
> changes below)
|
|
34
|
+
> - `npx cc-codeconductor ask "<problem>"` — recommends a `/cc:` slash command
|
|
35
|
+
> - `npx cc-codeconductor debt-harvest` (alias: `harvest`)
|
|
36
|
+
> - `npx cc-codeconductor ccep …` — CCEP is the canonical consumer workflow loop
|
|
37
|
+
> (`parse` / `profile` / `resolve` / `compile` / `validate` / `evaluate` /
|
|
38
|
+
> `consensus` / `taskcard`)
|
|
39
|
+
> - `npx cc-codeconductor openspec …` — OpenSpec delivery loop and backlog tool
|
|
40
|
+
> (`validate` / `scan` / `plan` / `status` / `next` / `start` / `done` /
|
|
41
|
+
> `block` / `archive`)
|
|
42
|
+
> - `npx cc-codeconductor scorecard …`
|
|
43
|
+
> - `npx cc-codeconductor goal` / `ingest` / `product` / `orchestrate` /
|
|
44
|
+
> `impact` / `verify` — Product OS (see
|
|
45
|
+
> [docs/v1.0.0-release-notes.md](docs/v1.0.0-release-notes.md))
|
|
46
|
+
> - Slash commands after `install preset` — 20 CCEP workflows plus `/cc-ask`;
|
|
47
|
+
> prefer `/cc-iterative`, `/cc-triage`, `/cc-handoff` for wayfinding;
|
|
48
|
+
> `/cc-backlog` authors `BACKLOG.md`; `/cc-openspec` and `/cc-tdd-cycle`
|
|
49
|
+
> for delivery and TDD
|
|
50
|
+
> - `/cc-pagespeed --url <url>` — PageSpeed Insights / Core Web Vitals after
|
|
51
|
+
> `install preset`; `PAGESPEED_API_KEY` is optional but recommended for CrUX
|
|
52
|
+
> field data (see [docs/pagespeed-usage.md](docs/pagespeed-usage.md))
|
|
53
|
+
> - `/cc-security` / `/cc:security` — authorized defensive security workflow
|
|
54
|
+
> with domain `security-*` skills and an authorization gate
|
|
55
|
+
> - Stack-specific skill selection (`ts-next-drizzle`, `spring-kotlin-jpa`,
|
|
56
|
+
> `laravel-tall`, `python-data-api`)
|
|
57
|
+
> - Council consensus: quorum, required confidence, `criticalFindingsPolicy`,
|
|
58
|
+
> plus `securityVeto` / `complianceVeto`
|
|
59
|
+
> - 15 Conductor Agents, including `reviewer`, `security-reviewer`, and
|
|
60
|
+
> `complexity-auditor`
|
|
86
61
|
>
|
|
87
|
-
>
|
|
88
|
-
> full v0.4.0 feature breakdown.
|
|
62
|
+
> Experimental (library only, not a CLI runtime):
|
|
89
63
|
>
|
|
90
|
-
>
|
|
64
|
+
> - `runWorkflowPipeline()` — 8-phase loop in
|
|
65
|
+
> `src/core/pipeline/workflow-loop.ts`
|
|
91
66
|
>
|
|
92
|
-
>
|
|
93
|
-
> - Policy compiler
|
|
94
|
-
> - Automated agent evaluation
|
|
95
|
-
> - Safe Merger
|
|
67
|
+
> What does not exist yet:
|
|
96
68
|
>
|
|
97
|
-
>
|
|
69
|
+
> - Runtime sandbox / OS-level isolation
|
|
70
|
+
> - Policy compiler / uniform target enforcement
|
|
71
|
+
> - Full stack-specific asset pruning
|
|
98
72
|
>
|
|
99
|
-
>
|
|
100
|
-
>
|
|
101
|
-
>
|
|
102
|
-
>
|
|
73
|
+
> Security note: policies are declarative. Agent execution depends on the target
|
|
74
|
+
> runner. `install preset --target cursor` overwrites runner command dirs;
|
|
75
|
+
> maintainer-only stubs (`cc-self-review`, `cc-update-preset-models`) are
|
|
76
|
+
> skipped so this repo can dogfood `install preset`.
|
|
103
77
|
|
|
104
78
|
---
|
|
105
79
|
|
|
@@ -122,6 +96,107 @@ This is not a prompt collection. It is a workflow framework.
|
|
|
122
96
|
|
|
123
97
|
---
|
|
124
98
|
|
|
99
|
+
## What's new in v1.0.0
|
|
100
|
+
|
|
101
|
+
v1.0.0 is a **major** bump from v0.5.0 because the workflow contracts changed,
|
|
102
|
+
not only because features were added. Re-install presets after upgrading.
|
|
103
|
+
|
|
104
|
+
### Breaking changes vs v0.5.0
|
|
105
|
+
|
|
106
|
+
- **`help` vs `cc-help`.** `help` prints the CLI command list. Inventory of
|
|
107
|
+
skills, subagents, and commands is `cc-help --target`. `help --target` no
|
|
108
|
+
longer lists that inventory.
|
|
109
|
+
- **Canonical TaskCard.** Delivery intake is `ccep taskcard`. OpenSpec cards
|
|
110
|
+
remain a phase view (`phase`, `backlogId`, `prompt`, `agent`) and are not
|
|
111
|
+
collapsed into Canonical.
|
|
112
|
+
- **Council consensus.** Gate with `ccep consensus --input @verdicts.json` (exit
|
|
113
|
+
`0`/`1`/`2` = APPROVED / REJECTED / ESCALATED). Majority requires quorum,
|
|
114
|
+
explicit `confidence`, and `criticalFindingsPolicy` (default: escalate). There
|
|
115
|
+
is no top-level `cc council` command.
|
|
116
|
+
- **OpenSpec state machine.** `start` / `done` / `block` / `archive` write
|
|
117
|
+
`BACKLOG.md` and `openspec-state.json` atomically. Illegal transitions fail
|
|
118
|
+
closed.
|
|
119
|
+
- **Schemas.** `ExecutionContext.ast.source` includes `product-graph`.
|
|
120
|
+
`ReviewerOutput` finding `axis` is extended with Staff Engineer axes.
|
|
121
|
+
- **CCEP bootstrap.** Installed slash commands run `ccep parse` → `resolve` →
|
|
122
|
+
`profile` → `evaluate` before delegating to agents. Agent JSON must validate
|
|
123
|
+
against Zod; unknown output schemas fail closed.
|
|
124
|
+
|
|
125
|
+
### Slash commands
|
|
126
|
+
|
|
127
|
+
After `install preset`, 18 CCEP workflows plus `/cc-ask`:
|
|
128
|
+
|
|
129
|
+
| Group | Commands |
|
|
130
|
+
| -------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
131
|
+
| Delivery | `/cc-feature`, `/cc-fix`, `/cc-refactor`, `/cc-api-contract`, `/cc-db-migration` |
|
|
132
|
+
| Quality | `/cc-tdd-cycle`, `/cc-test-plan`, `/cc-review`, `/cc-council`, `/cc-scorecard` |
|
|
133
|
+
| OpenSpec / ops | `/cc-openspec`, `/cc-iterative`, `/cc-triage`, `/cc-explore`, `/cc-prototype`, `/cc-handoff`, `/cc-clarify`, `/cc-pagespeed` |
|
|
134
|
+
| Entry | `/cc-ask` — CLI `ask` recommends a slash command; it does not start the workflow |
|
|
135
|
+
|
|
136
|
+
Prefer `/cc-iterative`, `/cc-triage`, and `/cc-handoff` for wayfinding.
|
|
137
|
+
|
|
138
|
+
### OpenSpec and TDD
|
|
139
|
+
|
|
140
|
+
OpenSpec is the delivery loop for `BACKLOG.md`:
|
|
141
|
+
|
|
142
|
+
```text
|
|
143
|
+
validate → scan → plan → status → next → start → done | block → archive
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Agent phases: validate-backlog → discover → design → **test** → implement →
|
|
147
|
+
review. Test-before-implement is required whenever both phases apply.
|
|
148
|
+
`/cc-tdd-cycle` enforces Red → Green → Refactor (`tester` then `implementer`).
|
|
149
|
+
|
|
150
|
+
### Review agents
|
|
151
|
+
|
|
152
|
+
15 Conductor Agents ship in `presets/<target>/agents/`. Review path:
|
|
153
|
+
|
|
154
|
+
- `reviewer` — Review Report with CRITICAL / WARNING / SUGGESTION; CRITICAL
|
|
155
|
+
blocks merge
|
|
156
|
+
- `security-reviewer` — dedicated security analysis; `securityVeto` overrides
|
|
157
|
+
majority consensus
|
|
158
|
+
- `complexity-auditor` — bloat and non-native abstractions; runs before
|
|
159
|
+
`reviewer` on refactor, API change, and database migration routes
|
|
160
|
+
|
|
161
|
+
New v1.0.0 agents: `business-agent`, `continuous-architect`, `impact-analyst`.
|
|
162
|
+
|
|
163
|
+
### Deterministic TypeScript validation (CCEP)
|
|
164
|
+
|
|
165
|
+
CCEP is CLI + Zod, not extra prompts. Source: `src/core/ccep/` and
|
|
166
|
+
`src/validation/schemas.ts`.
|
|
167
|
+
|
|
168
|
+
```text
|
|
169
|
+
parseCommand → resolveContext → resolveWorkflowPhase → compilePrompt → validateAgentOutputBySchema
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
npx cc-codeconductor ccep parse --command review "PR #42" --output json
|
|
174
|
+
npx cc-codeconductor ccep profile tdd-cycle --output json
|
|
175
|
+
npx cc-codeconductor ccep validate --command feature --phase implement --role implementer --output json \
|
|
176
|
+
'{"status":"success","confidence":0.9,"warnings":[],"artifacts":[],"next_actions":[],"filesChanged":[],"tests":{"runner":"bun test","result":"passed"}}'
|
|
177
|
+
npx cc-codeconductor ccep consensus --input @verdicts.json
|
|
178
|
+
npx cc-codeconductor ccep taskcard --command feature --input @card.json
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
`ccep validate` checks each role's JSON against the named schema
|
|
182
|
+
(`planner-output`, `implementer-output`, `review-report`, `technical-plan`,
|
|
183
|
+
`council-verdict`, …). See [docs/CCEP.md](docs/CCEP.md).
|
|
184
|
+
|
|
185
|
+
### Product OS
|
|
186
|
+
|
|
187
|
+
Also in 1.0.0: `goal` / `ingest` / `product` / `orchestrate` / `impact` /
|
|
188
|
+
`verify`, plus `.codeconductor/product-graph.json` and related artifacts.
|
|
189
|
+
Details: [docs/v1.0.0-release-notes.md](docs/v1.0.0-release-notes.md) and
|
|
190
|
+
[docs/product-os.md](docs/product-os.md).
|
|
191
|
+
|
|
192
|
+
### Migrate from v0.5.0
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
npx cc-codeconductor install preset --target=<opencode|claude|cursor|codex|gemini|agy> --force
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
125
200
|
## Core Concepts
|
|
126
201
|
|
|
127
202
|
| Concept | Name in CodeConductor |
|
|
@@ -154,25 +229,114 @@ Task Card → Risk Classification → Routing Policy → Conductor Agent → Del
|
|
|
154
229
|
|
|
155
230
|
## Current Support
|
|
156
231
|
|
|
157
|
-
- OpenCode
|
|
158
|
-
- Claude Code-compatible preset (see
|
|
159
|
-
|
|
232
|
+
- OpenCode, Claude, Codex, Gemini, Cursor, and Agy presets
|
|
233
|
+
- Claude Code-compatible preset (see
|
|
234
|
+
[Claude Environment Options & Best Practices](docs/claude-env-options.md))
|
|
160
235
|
- Spring Boot / Kotlin workflow
|
|
161
236
|
- Python / Django workflow guidance
|
|
162
|
-
-
|
|
163
|
-
-
|
|
237
|
+
- **15 Conductor Agents** — including `reviewer`, `security-reviewer`,
|
|
238
|
+
`complexity-auditor`, `business-agent`, `continuous-architect`, and
|
|
239
|
+
`impact-analyst`
|
|
240
|
+
- 18 CCEP slash-command workflows plus `/cc-ask` after `install preset`
|
|
241
|
+
- OpenSpec delivery loop (`validate` … `archive`) with test-before-implement
|
|
242
|
+
- Deterministic CCEP validation (Zod schemas per agent role)
|
|
164
243
|
- Task Card template
|
|
165
244
|
- Scorecard template
|
|
166
245
|
- End-to-end example
|
|
167
246
|
- YAML-driven model configuration
|
|
168
|
-
- Provider-agnostic `AgentContract` abstraction with target renderers for
|
|
169
|
-
|
|
170
|
-
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
-
|
|
174
|
-
-
|
|
175
|
-
|
|
247
|
+
- Provider-agnostic `AgentContract` abstraction with target renderers for
|
|
248
|
+
Claude, OpenCode, Codex, and Agy
|
|
249
|
+
- Council consensus engine (`councilConsensus()`) for multi-agent governance
|
|
250
|
+
with majority/unanimous algorithms, quorum, required confidence,
|
|
251
|
+
`criticalFindingsPolicy`, security veto, and compliance veto
|
|
252
|
+
- Phase 5 runtime modules — scoped context injection, TDD history compaction,
|
|
253
|
+
concise inter-agent messaging, and token budget enforcement in the compile-fix
|
|
254
|
+
loop
|
|
255
|
+
- **Workflow Loop Core (experimental)** — 8-phase pipeline
|
|
256
|
+
(`runWorkflowPipeline`) with wall-clock / files-modified / lines-changed
|
|
257
|
+
guardrails and STOP gates at Design and Council Verdict (library-only; not a
|
|
258
|
+
shipped CLI runtime)
|
|
259
|
+
- **Stack-specific presets** — `ts-next-drizzle`, `spring-kotlin-jpa`,
|
|
260
|
+
`laravel-tall`, `python-data-api`
|
|
261
|
+
- **Specialized skills** — drizzle-schema-architect,
|
|
262
|
+
tailwind-responsive-auditor, seo-analytics-injector, jpa-nplusone-detector,
|
|
263
|
+
spring-auth-auditor, livewire-alpine-bridge, fastapi-pydantic-strict,
|
|
264
|
+
tdd-mutation-tester, auth-token-inspector
|
|
265
|
+
- **Goal orchestration** — `goal` planner + `goal-state` writer feed the
|
|
266
|
+
orchestrator's dependency-order delegation loop
|
|
267
|
+
- **Memory compression + escalation emitter** — keeps inter-agent context within
|
|
268
|
+
token budget and surfaces guardrail breaches as escalation reports
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
## Supply chain
|
|
273
|
+
|
|
274
|
+
Published **1.0.0** declares two production dependencies (`package.json`
|
|
275
|
+
`dependencies`; same on
|
|
276
|
+
[npm](https://www.npmjs.com/package/cc-codeconductor)). Neither has further
|
|
277
|
+
npm transitive dependencies.
|
|
278
|
+
|
|
279
|
+
```mermaid
|
|
280
|
+
graph LR
|
|
281
|
+
cc["cc-codeconductor@1.0.0"]
|
|
282
|
+
zod["zod@^3.23.8"]
|
|
283
|
+
yaml["yaml@^2.4.5"]
|
|
284
|
+
cc --> zod
|
|
285
|
+
cc --> yaml
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
Expected runtime capabilities (user-invoked CLI commands, **not** `npm
|
|
289
|
+
install`):
|
|
290
|
+
|
|
291
|
+
- **Network** — `seo audit` / `seo llms` (`safeFetch` with SSRF guards);
|
|
292
|
+
`install lsp` binary downloads (pinned URL + SHA-256)
|
|
293
|
+
- **Process spawn (no shell)** — git (`scorecard`, OpenSpec, loop guards);
|
|
294
|
+
`verify` / compile-check; `doctor`; `install lsp` (`tar` / `npm` / `pip`)
|
|
295
|
+
|
|
296
|
+
There are no `preinstall` / `postinstall` lifecycle scripts. Socket may still
|
|
297
|
+
flag network and shell **capability presence** in the published bundle; that is
|
|
298
|
+
expected for this CLI and is not install-time execution.
|
|
299
|
+
|
|
300
|
+
For live vulnerability scanning, dependency alerts, and runtime behavior
|
|
301
|
+
analysis, see
|
|
302
|
+
[Socket — cc-codeconductor dependencies](https://socket.dev/npm/package/cc-codeconductor/dependencies).
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
## Programmatic API
|
|
307
|
+
|
|
308
|
+
`cc-codeconductor` ships a library entry in addition to the CLI. The `bin`
|
|
309
|
+
commands still resolve to `dist/index.js`. Application code should import the
|
|
310
|
+
package root:
|
|
311
|
+
|
|
312
|
+
```ts
|
|
313
|
+
import {
|
|
314
|
+
LoopEngine,
|
|
315
|
+
runLoop,
|
|
316
|
+
runVerification,
|
|
317
|
+
getNextTask,
|
|
318
|
+
startTask,
|
|
319
|
+
completeTask,
|
|
320
|
+
loopStateMachine,
|
|
321
|
+
createInitialState,
|
|
322
|
+
} from 'cc-codeconductor';
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
Exported surface (stable for this minor):
|
|
326
|
+
|
|
327
|
+
- Orchestrator: `getReadyTasks`, `getNextTask`, `startTask`, `completeTask`,
|
|
328
|
+
`goalTaskToCanonicalCard`, `buildTaskEnvelope`, `formatGoalStatus`
|
|
329
|
+
- Loop engine (TC3): `LoopEngine`, `runLoop`, `runLoopForProject`,
|
|
330
|
+
`shouldRunAgentLoop`, `formatFeedback`
|
|
331
|
+
- Verification: `runVerification`, `gateTaskCompletion`, `validateEvidenceIds`
|
|
332
|
+
- Zod contracts: everything from `src/validation/schemas.ts`
|
|
333
|
+
- Domain loop: `createInitialState`, `loopStateMachine` and their types
|
|
334
|
+
|
|
335
|
+
`infrastructure/` and `*-internal` modules are not part of the public API.
|
|
336
|
+
|
|
337
|
+
```bash
|
|
338
|
+
bun run build # CLI → dist/index.js, library → dist/library.js + .d.ts
|
|
339
|
+
```
|
|
176
340
|
|
|
177
341
|
---
|
|
178
342
|
|
|
@@ -208,8 +372,8 @@ files. `install` reads from there first.
|
|
|
208
372
|
>
|
|
209
373
|
> **`--locale` is remembered.** Once you run `init --locale=es`, the value is
|
|
210
374
|
> saved to `.codeconductor/config.yml`. Every subsequent `install preset` will
|
|
211
|
-
> automatically use that locale — no need to repeat the flag. To change it,
|
|
212
|
-
>
|
|
375
|
+
> automatically use that locale — no need to repeat the flag. To change it, run
|
|
376
|
+
> `init --locale=en --force` or edit `defaults.locale` in your config.
|
|
213
377
|
|
|
214
378
|
#### `detect` — detect project stack
|
|
215
379
|
|
|
@@ -252,27 +416,27 @@ Locale resolution order (first match wins):
|
|
|
252
416
|
|
|
253
417
|
Files installed per target:
|
|
254
418
|
|
|
255
|
-
| Target | Notable files
|
|
256
|
-
| ---------- |
|
|
419
|
+
| Target | Notable files |
|
|
420
|
+
| ---------- | --------------------------------------------------------------- |
|
|
257
421
|
| `claude` | `.claude/CLAUDE.md`, `.claude/settings.json`, `.claude/agents/` |
|
|
258
|
-
| `opencode` | `.opencode/agents/`, `.opencode/commands/`, `.opencode/skills/`
|
|
259
|
-
| `codex` | `.codex/AGENTS.md`, `.codex/skills/`, `.codex/prompts/`
|
|
422
|
+
| `opencode` | `.opencode/agents/`, `.opencode/commands/`, `.opencode/skills/` |
|
|
423
|
+
| `codex` | `.codex/AGENTS.md`, `.codex/skills/`, `.codex/prompts/` |
|
|
260
424
|
|
|
261
425
|
With `--global`, files are written under `~/` instead of `./`.
|
|
262
426
|
|
|
263
427
|
#### Stack-specific presets (v0.4.0)
|
|
264
428
|
|
|
265
429
|
Four stack-specific presets now ship in `presets/` and are registered in
|
|
266
|
-
`src/core/presets/preset-registry.ts`. Each one bundles a tuned
|
|
267
|
-
|
|
268
|
-
|
|
430
|
+
`src/core/presets/preset-registry.ts`. Each one bundles a tuned `architect.md`
|
|
431
|
+
and `implementer.md` for a single stack, plus the matching specialized skills
|
|
432
|
+
(see below).
|
|
269
433
|
|
|
270
|
-
| Preset | Stack
|
|
271
|
-
| ------------------- |
|
|
272
|
-
| `ts-next-drizzle` | Next.js / Astro, Tailwind, Drizzle ORM, Bun, Postgres
|
|
273
|
-
| `spring-kotlin-jpa` | Spring Boot, Kotlin/Java, Gradle, JPA, Hibernate
|
|
274
|
-
| `laravel-tall` | Laravel, Blade, Livewire, Alpine.js
|
|
275
|
-
| `python-data-api` | Python, FastAPI, Django, uv
|
|
434
|
+
| Preset | Stack | Contracts included |
|
|
435
|
+
| ------------------- | ----------------------------------------------------- | -------------------------- |
|
|
436
|
+
| `ts-next-drizzle` | Next.js / Astro, Tailwind, Drizzle ORM, Bun, Postgres | `architect`, `implementer` |
|
|
437
|
+
| `spring-kotlin-jpa` | Spring Boot, Kotlin/Java, Gradle, JPA, Hibernate | `architect`, `implementer` |
|
|
438
|
+
| `laravel-tall` | Laravel, Blade, Livewire, Alpine.js | `architect`, `implementer` |
|
|
439
|
+
| `python-data-api` | Python, FastAPI, Django, uv | `architect`, `implementer` |
|
|
276
440
|
|
|
277
441
|
```ts
|
|
278
442
|
// Programmatic access via the registry
|
|
@@ -291,8 +455,13 @@ listPresets();
|
|
|
291
455
|
const next = getPreset('ts-next-drizzle');
|
|
292
456
|
```
|
|
293
457
|
|
|
294
|
-
`init` / `detect` identifies the stack from the project and wires the
|
|
295
|
-
|
|
458
|
+
`init` / `detect` identifies the stack from the project and wires the matching
|
|
459
|
+
specialized skills onto the **generic** target workflow when you run
|
|
460
|
+
`install preset`. Full stack-specific asset pruning/replacement (swapping the
|
|
461
|
+
entire agent/command tree for a stack pack) is **not implemented yet** — the
|
|
462
|
+
registry and skill wiring are real; treat claims of a full stack install swap as
|
|
463
|
+
aspirational until that lands.
|
|
464
|
+
|
|
296
465
|
The full set of assets for a stack-specific preset is in
|
|
297
466
|
`presets/<preset-name>/agents/` — copy them manually if you need to apply a
|
|
298
467
|
preset by name.
|
|
@@ -325,8 +494,8 @@ npx cc-codeconductor install lsp --target cursor --dry-run # preview
|
|
|
325
494
|
npx cc-codeconductor install lsp --target all --force # overwrite existing configs
|
|
326
495
|
```
|
|
327
496
|
|
|
328
|
-
Supported languages: TypeScript, PHP, Python via Pyright, Kotlin.
|
|
329
|
-
|
|
497
|
+
Supported languages: TypeScript, PHP, Python via Pyright, Kotlin. Supported
|
|
498
|
+
targets: opencode, claude, codex, gemini, cursor, agy.
|
|
330
499
|
|
|
331
500
|
#### `doctor` — validate configuration
|
|
332
501
|
|
|
@@ -334,7 +503,10 @@ Supported targets: opencode, claude, codex, gemini, cursor, agy.
|
|
|
334
503
|
npx cc-codeconductor doctor
|
|
335
504
|
```
|
|
336
505
|
|
|
337
|
-
Checks config exists and is valid, reports runner directory status, validates
|
|
506
|
+
Checks config exists and is valid, reports runner directory status, validates
|
|
507
|
+
that `AGENTS.md` and `CLAUDE.md` do not exceed the 40KB size limit, and checks
|
|
508
|
+
if updates are available for installed presets, target runner configurations, or
|
|
509
|
+
skills.
|
|
338
510
|
|
|
339
511
|
#### `update` — smart update preset
|
|
340
512
|
|
|
@@ -345,19 +517,24 @@ npx cc-codeconductor update --dry-run
|
|
|
345
517
|
npx cc-codeconductor update --global
|
|
346
518
|
```
|
|
347
519
|
|
|
348
|
-
Smart updates all currently installed target presets, council configurations,
|
|
520
|
+
Smart updates all currently installed target presets, council configurations,
|
|
521
|
+
and skills (from `skills-lock.json`), preserving user edits outside managed
|
|
522
|
+
blocks. Also validates that `AGENTS.md` and `CLAUDE.md` do not exceed the 40KB
|
|
523
|
+
size limit.
|
|
349
524
|
|
|
350
|
-
#### `help` —
|
|
525
|
+
#### `help` / `cc-help` — distinct help contracts
|
|
351
526
|
|
|
352
527
|
```bash
|
|
353
|
-
npx cc-codeconductor help #
|
|
354
|
-
npx cc-codeconductor help
|
|
355
|
-
npx cc-codeconductor cc-help #
|
|
356
|
-
npx cc-codeconductor help --
|
|
528
|
+
npx cc-codeconductor help # general CLI usage
|
|
529
|
+
npx cc-codeconductor --help # same general usage text
|
|
530
|
+
npx cc-codeconductor cc-help # preset inventory for active target
|
|
531
|
+
npx cc-codeconductor cc-help --target claude # inventory for a specific target
|
|
532
|
+
npx cc-codeconductor cc-help --output json # machine-readable inventory
|
|
357
533
|
```
|
|
358
534
|
|
|
359
|
-
|
|
360
|
-
|
|
535
|
+
`help` prints the CLI command list. `cc-help` lists skills, subagents, commands,
|
|
536
|
+
and workflows for the active preset (or a specified `--target`). Reads inventory
|
|
537
|
+
from `presets/<target>/` in the project root.
|
|
361
538
|
|
|
362
539
|
#### `debt-harvest` — collect deferred debt items
|
|
363
540
|
|
|
@@ -368,8 +545,8 @@ npx cc-codeconductor harvest # alias
|
|
|
368
545
|
npx cc-codeconductor debt-harvest --output json
|
|
369
546
|
```
|
|
370
547
|
|
|
371
|
-
Scans source files for `// defer - [reason]` comments and consolidates them
|
|
372
|
-
|
|
548
|
+
Scans source files for `// defer - [reason]` comments and consolidates them into
|
|
549
|
+
`.codeconductor/debt-ledger.md`, grouped by optional tag
|
|
373
550
|
(`// defer - reason --tag`). Read-only on source files; only writes the ledger.
|
|
374
551
|
|
|
375
552
|
Supported extensions: `.ts`, `.tsx`, `.js`, `.jsx`, `.go`, `.rs`, `.java`,
|
|
@@ -389,16 +566,75 @@ notification, migration) or falls back to a generic 4-task chain. Writes the
|
|
|
389
566
|
resulting task graph to `.codeconductor/current-goal.yml` with dependency
|
|
390
567
|
ordering. The orchestrator uses this file to delegate tasks in dependency order.
|
|
391
568
|
|
|
569
|
+
#### `ask` — recommend a slash command
|
|
570
|
+
|
|
571
|
+
```bash
|
|
572
|
+
npx cc-codeconductor ask "login fails on Safari"
|
|
573
|
+
npx cc-codeconductor ask "add invoice CRUD" --output json
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
Recommends a `/cc:` slash command from a natural-language problem. Does **not**
|
|
577
|
+
start the workflow; wait for human confirmation.
|
|
578
|
+
|
|
579
|
+
#### `ccep` — deterministic workflow contracts
|
|
580
|
+
|
|
581
|
+
```bash
|
|
582
|
+
npx cc-codeconductor ccep parse --command review "PR #42" --output json
|
|
583
|
+
npx cc-codeconductor ccep profile tdd-cycle --output json
|
|
584
|
+
npx cc-codeconductor ccep resolve --command feature "Add CRUD" --output json
|
|
585
|
+
npx cc-codeconductor ccep compile --command feature --phase intake --role task-coach "Add CRUD" --output json
|
|
586
|
+
npx cc-codeconductor ccep validate --command feature --phase implement --role implementer --output json \
|
|
587
|
+
--input @implementer-output.json
|
|
588
|
+
npx cc-codeconductor ccep evaluate --command feature --input @planner.json --output json
|
|
589
|
+
npx cc-codeconductor ccep consensus --input @verdicts.json
|
|
590
|
+
npx cc-codeconductor ccep taskcard --command feature --input @card.json
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
Subcommands: `parse` / `profile` / `resolve` / `compile` / `validate` /
|
|
594
|
+
`evaluate` / `consensus` / `taskcard`. `validate` checks agent JSON against the
|
|
595
|
+
Zod schema for that role. `consensus` exit codes: `0` APPROVED, `1` REJECTED,
|
|
596
|
+
`2` ESCALATED. Full protocol: [docs/CCEP.md](docs/CCEP.md).
|
|
597
|
+
|
|
598
|
+
#### `openspec` — backlog delivery loop
|
|
599
|
+
|
|
600
|
+
```bash
|
|
601
|
+
npx cc-codeconductor openspec validate
|
|
602
|
+
npx cc-codeconductor openspec scan
|
|
603
|
+
npx cc-codeconductor openspec plan BC-001
|
|
604
|
+
npx cc-codeconductor openspec status
|
|
605
|
+
npx cc-codeconductor openspec next
|
|
606
|
+
npx cc-codeconductor openspec start BC-001-discover
|
|
607
|
+
npx cc-codeconductor openspec done BC-001-discover
|
|
608
|
+
npx cc-codeconductor openspec block BC-001-implement --reason "waiting on design"
|
|
609
|
+
npx cc-codeconductor openspec archive BC-001
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
Subcommands: `validate` / `scan` / `plan` / `status` / `next` / `start` / `done`
|
|
613
|
+
/ `block` / `archive`. Illegal status transitions fail closed. See
|
|
614
|
+
[docs/SDD.md](docs/SDD.md) and the OpenSpec skill.
|
|
615
|
+
|
|
616
|
+
#### Product OS — `ingest` / `product` / `orchestrate` / `impact` / `verify`
|
|
617
|
+
|
|
618
|
+
```bash
|
|
619
|
+
npx cc-codeconductor ingest
|
|
620
|
+
npx cc-codeconductor product graph
|
|
621
|
+
npx cc-codeconductor orchestrate status
|
|
622
|
+
npx cc-codeconductor impact --files src/cli/router.ts
|
|
623
|
+
npx cc-codeconductor verify --task TC-001
|
|
624
|
+
```
|
|
625
|
+
|
|
626
|
+
Builds and queries the product graph in `.codeconductor/`. Details:
|
|
627
|
+
[docs/product-os.md](docs/product-os.md).
|
|
392
628
|
|
|
393
629
|
### Global options
|
|
394
630
|
|
|
395
|
-
| Flag
|
|
396
|
-
|
|
|
397
|
-
| `--force`
|
|
398
|
-
| `--dry-run`
|
|
399
|
-
| `--global`
|
|
400
|
-
| `--output json`
|
|
401
|
-
| `--locale=en`
|
|
631
|
+
| Flag | Description |
|
|
632
|
+
| --------------- | -------------------------------------------------- |
|
|
633
|
+
| `--force` | Overwrite existing files |
|
|
634
|
+
| `--dry-run` | Preview actions without writing |
|
|
635
|
+
| `--global` | Target home directory instead of project |
|
|
636
|
+
| `--output json` | Machine-readable JSON output |
|
|
637
|
+
| `--locale=en` | Agent instruction language: `en` (default) or `es` |
|
|
402
638
|
|
|
403
639
|
### Config directory
|
|
404
640
|
|
|
@@ -437,12 +673,12 @@ src/presets/models/
|
|
|
437
673
|
|
|
438
674
|
Agent template files contain placeholders replaced during `install`:
|
|
439
675
|
|
|
440
|
-
| Placeholder
|
|
441
|
-
|
|
|
442
|
-
| `{{MODEL_CLAUDE}}`
|
|
443
|
-
| `{{MODEL_OPENCODE}}`
|
|
444
|
-
| `{{MODEL_CODEX}}`
|
|
445
|
-
| `{{LANGUAGE_INSTRUCTIONS}}`
|
|
676
|
+
| Placeholder | Description |
|
|
677
|
+
| --------------------------- | --------------------------------------------- |
|
|
678
|
+
| `{{MODEL_CLAUDE}}` | Model for the Claude provider |
|
|
679
|
+
| `{{MODEL_OPENCODE}}` | Model for the OpenCode provider |
|
|
680
|
+
| `{{MODEL_CODEX}}` | Model for the Codex provider |
|
|
681
|
+
| `{{LANGUAGE_INSTRUCTIONS}}` | Locale-aware instruction injected by `locale` |
|
|
446
682
|
|
|
447
683
|
To customize models, edit the YAML file for your target before running
|
|
448
684
|
`install`. Each file maps agent roles to provider-specific model names.
|
|
@@ -453,10 +689,10 @@ Agent markdown files (`CLAUDE.md`, `AGENTS.md`, `README.md`) include a
|
|
|
453
689
|
`{{LANGUAGE_INSTRUCTIONS}}` placeholder that is replaced at install time based
|
|
454
690
|
on the active locale:
|
|
455
691
|
|
|
456
|
-
| Locale | Injected instruction
|
|
457
|
-
| ------ |
|
|
458
|
-
| `en` |
|
|
459
|
-
| `es` |
|
|
692
|
+
| Locale | Injected instruction |
|
|
693
|
+
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
694
|
+
| `en` | _Prose/docs/code comments: be terse and direct. Prefer concrete nouns over abstract ones. Omit filler phrases. One idea per sentence._ |
|
|
695
|
+
| `es` | _Spanish prose/docs/reports/Markdown: preserve natural Spanish orthography, including accents, `ñ`, `¿`, `¡`, and normal Unicode. The ASCII-only editing preference does not apply to these artifacts._ |
|
|
460
696
|
|
|
461
697
|
The locale is **sticky**: set it once with `init --locale=es` and every
|
|
462
698
|
subsequent `install preset` will use it automatically. Override per-run with
|
|
@@ -492,8 +728,11 @@ codeconductor/
|
|
|
492
728
|
│
|
|
493
729
|
├── src/ ← CLI source (TypeScript + Bun)
|
|
494
730
|
│ ├── cli/ ← entry point, router, error codes
|
|
495
|
-
│ ├── commands/ ← init, detect, install,
|
|
731
|
+
│ ├── commands/ ← init, detect, install, ccep, openspec, …
|
|
496
732
|
│ ├── core/ ← config, detection, filesystem, presets, goal
|
|
733
|
+
│ │ ├── ccep/ ← CCEP parse/profile/validate/evaluate
|
|
734
|
+
│ │ ├── openspec/ ← backlog loop and state machine
|
|
735
|
+
│ │ ├── product/ ← Product OS ingest and console
|
|
497
736
|
│ │ ├── context/ ← scoped context injection (Phase 5)
|
|
498
737
|
│ │ ├── compaction/ ← TDD history compaction hook (Phase 5)
|
|
499
738
|
│ │ ├── messages/ ← concise inter-agent formatter (Phase 5)
|
|
@@ -506,7 +745,7 @@ codeconductor/
|
|
|
506
745
|
│ └── presets/council/ ← bundled council.yml preset
|
|
507
746
|
│
|
|
508
747
|
├── test/
|
|
509
|
-
│ ├── cli.test.ts ← integration tests
|
|
748
|
+
│ ├── cli.test.ts ← integration tests
|
|
510
749
|
│ └── fixtures/ ← bun, node, django, spring projects
|
|
511
750
|
│
|
|
512
751
|
├── docs/
|
|
@@ -519,9 +758,10 @@ codeconductor/
|
|
|
519
758
|
│ ├── agent-scorecard.md
|
|
520
759
|
│ └── guides/
|
|
521
760
|
│
|
|
522
|
-
├── presets/ ←
|
|
761
|
+
├── presets/ ← runner presets (agents, commands, skills)
|
|
523
762
|
│ ├── opencode/
|
|
524
|
-
│
|
|
763
|
+
│ ├── claude/
|
|
764
|
+
│ └── cursor/
|
|
525
765
|
│
|
|
526
766
|
└── examples/
|
|
527
767
|
└── spring-boot-kotlin/
|
|
@@ -531,15 +771,12 @@ codeconductor/
|
|
|
531
771
|
|
|
532
772
|
## Roadmap
|
|
533
773
|
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
| **v0.4.0** | **Workflow Loop Core, stack-specific presets, 9 specialized skills, confidence thresholds + compliance veto in council consensus, goal orchestration, memory compression — shipped** ✅ |
|
|
539
|
-
| v0.5.0 | Scorecard CLI, prompt contracts v0.5.0 (Evaluation gate, 3 new agents, Grok fallback) — shipped ✅ |
|
|
540
|
-
| v1.0.0 | Stable contracts, stable routing, documented evaluation |
|
|
774
|
+
Published package: **1.0.0**. Remaining gaps (sandbox, policy compiler, full
|
|
775
|
+
stack-specific asset pruning): [docs/current-status.md](docs/current-status.md).
|
|
776
|
+
Product OS surface:
|
|
777
|
+
[docs/v1.0.0-release-notes.md](docs/v1.0.0-release-notes.md).
|
|
541
778
|
|
|
542
|
-
See [ROADMAP.md](ROADMAP.md) for
|
|
779
|
+
See [ROADMAP.md](ROADMAP.md) for historical notes.
|
|
543
780
|
|
|
544
781
|
---
|
|
545
782
|
|