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.
Files changed (268) hide show
  1. package/README.md +387 -150
  2. package/dist/cli/errors.d.ts +65 -0
  3. package/dist/core/compilation/compile-checker.d.ts +53 -0
  4. package/dist/core/config/codeconductor-config.d.ts +42 -0
  5. package/dist/core/config/config-loader.d.ts +11 -0
  6. package/dist/core/filesystem/credential-guard.d.ts +18 -0
  7. package/dist/core/goal/goal-planner.d.ts +8 -0
  8. package/dist/core/goal/goal-state.d.ts +15 -0
  9. package/dist/core/loop/git-stats.d.ts +13 -0
  10. package/dist/core/loop/loop-engine.d.ts +82 -0
  11. package/dist/core/memory/episodic-store.d.ts +6 -0
  12. package/dist/core/memory/operational-state.d.ts +6 -0
  13. package/dist/core/orchestrator/runtime-orchestrator.d.ts +25 -0
  14. package/dist/core/planner/product-planner.d.ts +18 -0
  15. package/dist/core/presets/package-paths.d.ts +4 -0
  16. package/dist/core/product-graph/graph-store.d.ts +11 -0
  17. package/dist/core/product-graph/paths.d.ts +18 -0
  18. package/dist/core/verification/verification-runner.d.ts +57 -0
  19. package/dist/domain/loop/loop-state.d.ts +74 -0
  20. package/dist/domain/product/entities.d.ts +11 -0
  21. package/dist/index.d.ts +15 -0
  22. package/dist/index.js +24165 -15800
  23. package/dist/library.js +2744 -0
  24. package/dist/utils/result.d.ts +36 -0
  25. package/dist/validation/schemas.d.ts +4006 -0
  26. package/package.json +18 -2
  27. package/policy.yml +12 -11
  28. package/presets/agy/AGENTS.md +14 -5
  29. package/presets/agy/gates/pre-commit/GATE.md +137 -0
  30. package/presets/agy/skills/backlog/SKILL.md +91 -0
  31. package/presets/agy/skills/cc-fix/SKILL.md +2 -2
  32. package/presets/agy/skills/cc-tdd-cycle/SKILL.md +11 -0
  33. package/presets/agy/skills/openspec/SKILL.md +5 -1
  34. package/presets/agy/skills/security-ai-llm/SKILL.md +43 -0
  35. package/presets/agy/skills/security-blue-team/SKILL.md +43 -0
  36. package/presets/agy/skills/security-cloud/SKILL.md +43 -0
  37. package/presets/agy/skills/security-crypto/SKILL.md +43 -0
  38. package/presets/agy/skills/security-exploit-dev/SKILL.md +45 -0
  39. package/presets/agy/skills/security-grc/SKILL.md +43 -0
  40. package/presets/agy/skills/security-incident-response/SKILL.md +45 -0
  41. package/presets/agy/skills/security-log-analysis/SKILL.md +43 -0
  42. package/presets/agy/skills/security-malware-analysis/SKILL.md +44 -0
  43. package/presets/agy/skills/security-mobile/SKILL.md +43 -0
  44. package/presets/agy/skills/security-network/SKILL.md +43 -0
  45. package/presets/agy/skills/security-ot-ics/SKILL.md +43 -0
  46. package/presets/agy/skills/security-recon/SKILL.md +45 -0
  47. package/presets/agy/skills/security-red-team/SKILL.md +44 -0
  48. package/presets/agy/skills/security-reverse-engineering/SKILL.md +44 -0
  49. package/presets/agy/skills/security-soc-automation/SKILL.md +43 -0
  50. package/presets/agy/skills/security-threat-hunting/SKILL.md +43 -0
  51. package/presets/agy/skills/security-vuln-assessment/SKILL.md +45 -0
  52. package/presets/agy/skills/security-web/SKILL.md +44 -0
  53. package/presets/agy/workflows/cc-api-contract.md +12 -0
  54. package/presets/agy/workflows/cc-ask.md +56 -0
  55. package/presets/agy/workflows/cc-backlog.md +69 -0
  56. package/presets/agy/workflows/cc-clarify.md +33 -0
  57. package/presets/agy/workflows/cc-council.md +31 -7
  58. package/presets/agy/workflows/cc-db-migration.md +22 -9
  59. package/presets/agy/workflows/cc-explore.md +37 -0
  60. package/presets/agy/workflows/cc-feature.md +41 -19
  61. package/presets/agy/workflows/cc-fix.md +50 -23
  62. package/presets/agy/workflows/cc-handoff.md +42 -0
  63. package/presets/agy/workflows/cc-iterative.md +128 -0
  64. package/presets/agy/workflows/cc-openspec.md +16 -1
  65. package/presets/agy/workflows/cc-pagespeed.md +12 -0
  66. package/presets/agy/workflows/cc-prototype.md +39 -0
  67. package/presets/agy/workflows/cc-refactor.md +12 -0
  68. package/presets/agy/workflows/cc-review.md +12 -0
  69. package/presets/agy/workflows/cc-scorecard.md +12 -0
  70. package/presets/agy/workflows/cc-security.md +180 -0
  71. package/presets/agy/workflows/cc-tdd-cycle.md +24 -0
  72. package/presets/agy/workflows/cc-test-plan.md +12 -0
  73. package/presets/agy/workflows/cc-triage.md +35 -0
  74. package/presets/claude/CLAUDE.md +68 -0
  75. package/presets/claude/commands/cc/api-contract.md +12 -0
  76. package/presets/claude/commands/cc/ask.md +56 -0
  77. package/presets/claude/commands/cc/backlog.md +104 -0
  78. package/presets/claude/commands/cc/clarify.md +32 -0
  79. package/presets/claude/commands/cc/council.md +87 -0
  80. package/presets/claude/commands/cc/db-migration.md +22 -9
  81. package/presets/claude/commands/cc/explore.md +36 -0
  82. package/presets/claude/commands/cc/feature.md +49 -22
  83. package/presets/claude/commands/cc/fix.md +74 -20
  84. package/presets/claude/commands/cc/handoff.md +44 -0
  85. package/presets/claude/commands/cc/iterative.md +132 -0
  86. package/presets/claude/commands/cc/openspec.md +41 -1
  87. package/presets/claude/commands/cc/pagespeed.md +12 -0
  88. package/presets/claude/commands/cc/prototype.md +38 -0
  89. package/presets/claude/commands/cc/refactor.md +152 -1
  90. package/presets/claude/commands/cc/review.md +78 -16
  91. package/presets/claude/commands/cc/scorecard.md +12 -0
  92. package/presets/claude/commands/cc/security.md +179 -0
  93. package/presets/claude/commands/cc/tdd-cycle.md +53 -3
  94. package/presets/claude/commands/cc/test-plan.md +12 -0
  95. package/presets/claude/commands/cc/triage.md +34 -0
  96. package/presets/claude/gates/pre-commit/GATE.md +137 -0
  97. package/presets/claude/settings.json +8 -46
  98. package/presets/claude/skills/backlog/SKILL.md +91 -0
  99. package/presets/claude/skills/openspec/SKILL.md +5 -1
  100. package/presets/claude/skills/security/SKILL.md +382 -0
  101. package/presets/claude/skills/security-ai-llm/SKILL.md +43 -0
  102. package/presets/claude/skills/security-blue-team/SKILL.md +43 -0
  103. package/presets/claude/skills/security-cloud/SKILL.md +43 -0
  104. package/presets/claude/skills/security-crypto/SKILL.md +43 -0
  105. package/presets/claude/skills/security-exploit-dev/SKILL.md +45 -0
  106. package/presets/claude/skills/security-grc/SKILL.md +43 -0
  107. package/presets/claude/skills/security-incident-response/SKILL.md +45 -0
  108. package/presets/claude/skills/security-log-analysis/SKILL.md +43 -0
  109. package/presets/claude/skills/security-malware-analysis/SKILL.md +44 -0
  110. package/presets/claude/skills/security-mobile/SKILL.md +43 -0
  111. package/presets/claude/skills/security-network/SKILL.md +43 -0
  112. package/presets/claude/skills/security-ot-ics/SKILL.md +43 -0
  113. package/presets/claude/skills/security-recon/SKILL.md +45 -0
  114. package/presets/claude/skills/security-red-team/SKILL.md +44 -0
  115. package/presets/claude/skills/security-reverse-engineering/SKILL.md +44 -0
  116. package/presets/claude/skills/security-soc-automation/SKILL.md +43 -0
  117. package/presets/claude/skills/security-threat-hunting/SKILL.md +43 -0
  118. package/presets/claude/skills/security-vuln-assessment/SKILL.md +45 -0
  119. package/presets/claude/skills/security-web/SKILL.md +44 -0
  120. package/presets/codex/AGENTS.md +6 -6
  121. package/presets/codex/commands/cc-ask.md +56 -0
  122. package/presets/codex/gates/pre-commit/GATE.md +137 -0
  123. package/presets/cursor/AGENTS.md +8 -8
  124. package/presets/cursor/agents/business-agent.md +44 -0
  125. package/presets/cursor/agents/continuous-architect.md +37 -0
  126. package/presets/cursor/agents/docs.md +1 -0
  127. package/presets/cursor/agents/goal-planner.md +1 -1
  128. package/presets/cursor/agents/impact-analyst.md +43 -0
  129. package/presets/cursor/agents/orchestrator.md +6 -6
  130. package/presets/cursor/commands/cc/api-contract.md +12 -0
  131. package/presets/cursor/commands/cc/ask.md +56 -0
  132. package/presets/cursor/commands/cc/backlog.md +105 -0
  133. package/presets/cursor/commands/cc/clarify.md +32 -0
  134. package/presets/cursor/commands/cc/council.md +87 -0
  135. package/presets/cursor/commands/cc/db-migration.md +22 -9
  136. package/presets/cursor/commands/cc/explore.md +36 -0
  137. package/presets/cursor/commands/cc/feature.md +41 -19
  138. package/presets/cursor/commands/cc/fix.md +47 -20
  139. package/presets/cursor/commands/cc/handoff.md +41 -0
  140. package/presets/cursor/commands/cc/iterative.md +133 -0
  141. package/presets/cursor/commands/cc/openspec.md +38 -8
  142. package/presets/cursor/commands/cc/pagespeed.md +12 -0
  143. package/presets/cursor/commands/cc/prototype.md +38 -0
  144. package/presets/cursor/commands/cc/refactor.md +12 -0
  145. package/presets/cursor/commands/cc/review.md +12 -0
  146. package/presets/cursor/commands/cc/scorecard.md +12 -0
  147. package/presets/cursor/commands/cc/security.md +179 -0
  148. package/presets/cursor/commands/cc/tdd-cycle.md +24 -0
  149. package/presets/cursor/commands/cc/test-plan.md +12 -0
  150. package/presets/cursor/commands/cc/triage.md +34 -0
  151. package/presets/cursor/gates/pre-commit/GATE.md +137 -0
  152. package/presets/cursor/rules/orchestration.mdc +1 -1
  153. package/presets/cursor/skills/backlog/SKILL.md +91 -0
  154. package/presets/cursor/skills/openspec/SKILL.md +5 -1
  155. package/presets/cursor/skills/security-ai-llm/SKILL.md +43 -0
  156. package/presets/cursor/skills/security-blue-team/SKILL.md +43 -0
  157. package/presets/cursor/skills/security-cloud/SKILL.md +43 -0
  158. package/presets/cursor/skills/security-crypto/SKILL.md +43 -0
  159. package/presets/cursor/skills/security-exploit-dev/SKILL.md +45 -0
  160. package/presets/cursor/skills/security-grc/SKILL.md +43 -0
  161. package/presets/cursor/skills/security-incident-response/SKILL.md +45 -0
  162. package/presets/cursor/skills/security-log-analysis/SKILL.md +43 -0
  163. package/presets/cursor/skills/security-malware-analysis/SKILL.md +44 -0
  164. package/presets/cursor/skills/security-mobile/SKILL.md +43 -0
  165. package/presets/cursor/skills/security-network/SKILL.md +43 -0
  166. package/presets/cursor/skills/security-ot-ics/SKILL.md +43 -0
  167. package/presets/cursor/skills/security-recon/SKILL.md +45 -0
  168. package/presets/cursor/skills/security-red-team/SKILL.md +44 -0
  169. package/presets/cursor/skills/security-reverse-engineering/SKILL.md +44 -0
  170. package/presets/cursor/skills/security-soc-automation/SKILL.md +43 -0
  171. package/presets/cursor/skills/security-threat-hunting/SKILL.md +43 -0
  172. package/presets/cursor/skills/security-vuln-assessment/SKILL.md +45 -0
  173. package/presets/cursor/skills/security-web/SKILL.md +44 -0
  174. package/presets/opencode/agents/architect.md +22 -1
  175. package/presets/opencode/agents/complexity-auditor.md +16 -1
  176. package/presets/opencode/agents/contract-builder.md +17 -1
  177. package/presets/opencode/agents/devil.md +158 -0
  178. package/presets/opencode/agents/docs.md +19 -1
  179. package/presets/opencode/agents/goal-planner.md +32 -2
  180. package/presets/opencode/agents/implementer.md +32 -2
  181. package/presets/opencode/agents/orchestrator.md +79 -12
  182. package/presets/opencode/agents/planner.md +61 -0
  183. package/presets/opencode/agents/repo-explorer.md +16 -0
  184. package/presets/opencode/agents/reviewer.md +33 -3
  185. package/presets/opencode/agents/security-reviewer.md +31 -1
  186. package/presets/opencode/agents/task-coach.md +69 -1
  187. package/presets/opencode/agents/tester.md +18 -1
  188. package/presets/opencode/commands/cc-api-contract.md +12 -0
  189. package/presets/opencode/commands/cc-ask.md +56 -0
  190. package/presets/opencode/commands/cc-backlog.md +68 -0
  191. package/presets/opencode/commands/cc-clarify.md +31 -0
  192. package/presets/opencode/commands/cc-council.md +87 -0
  193. package/presets/opencode/commands/cc-db-migration.md +22 -9
  194. package/presets/opencode/commands/cc-explore.md +35 -0
  195. package/presets/opencode/commands/cc-feature.md +41 -19
  196. package/presets/opencode/commands/cc-fix.md +50 -23
  197. package/presets/opencode/commands/cc-handoff.md +40 -0
  198. package/presets/opencode/commands/cc-iterative.md +127 -0
  199. package/presets/opencode/commands/cc-openspec.md +16 -1
  200. package/presets/opencode/commands/cc-pagespeed.md +12 -0
  201. package/presets/opencode/commands/cc-prototype.md +37 -0
  202. package/presets/opencode/commands/cc-refactor.md +12 -0
  203. package/presets/opencode/commands/cc-review.md +12 -0
  204. package/presets/opencode/commands/cc-scorecard.md +12 -0
  205. package/presets/opencode/commands/cc-security.md +179 -0
  206. package/presets/opencode/commands/cc-tdd-cycle.md +24 -0
  207. package/presets/opencode/commands/cc-test-plan.md +12 -0
  208. package/presets/opencode/commands/cc-triage.md +33 -0
  209. package/presets/opencode/gates/pre-commit/GATE.md +137 -0
  210. package/presets/opencode/prompts/v0.1.0/DEPRECATED.md +11 -0
  211. package/presets/opencode/prompts/v0.2.0/DEPRECATED.md +11 -0
  212. package/presets/opencode/prompts/v0.3.0/DEPRECATED.md +11 -0
  213. package/presets/opencode/prompts/v0.4.0/DEPRECATED.md +11 -0
  214. package/presets/opencode/prompts/v0.5.0/goal-planner.md +1 -1
  215. package/presets/opencode/prompts/v0.5.0/orchestrator.md +6 -6
  216. package/presets/opencode/prompts/v0.6.0/implementer.md +35 -0
  217. package/presets/opencode/prompts/v0.6.0/planner.md +36 -0
  218. package/presets/opencode/prompts/v0.6.0/reviewer.md +40 -0
  219. package/presets/opencode/prompts/v1.0.0/README.md +47 -0
  220. package/presets/opencode/prompts/v1.0.0/architect.md +259 -0
  221. package/presets/opencode/prompts/v1.0.0/complexity-auditor.md +116 -0
  222. package/presets/opencode/prompts/v1.0.0/contract-builder.md +120 -0
  223. package/presets/opencode/prompts/v1.0.0/devil.md +169 -0
  224. package/presets/opencode/prompts/v1.0.0/docs.md +229 -0
  225. package/presets/opencode/prompts/v1.0.0/goal-planner.md +123 -0
  226. package/presets/opencode/prompts/v1.0.0/implementer.md +228 -0
  227. package/presets/opencode/prompts/v1.0.0/orchestrator.md +474 -0
  228. package/presets/opencode/prompts/v1.0.0/planner.md +72 -0
  229. package/presets/opencode/prompts/v1.0.0/repo-explorer.md +147 -0
  230. package/presets/opencode/prompts/v1.0.0/reviewer.md +295 -0
  231. package/presets/opencode/prompts/v1.0.0/security-reviewer.md +170 -0
  232. package/presets/opencode/prompts/v1.0.0/task-coach.md +235 -0
  233. package/presets/opencode/prompts/v1.0.0/tester.md +298 -0
  234. package/presets/opencode/skills/backlog/SKILL.md +91 -0
  235. package/presets/opencode/skills/openspec/SKILL.md +5 -1
  236. package/presets/opencode/skills/security-ai-llm/SKILL.md +43 -0
  237. package/presets/opencode/skills/security-blue-team/SKILL.md +43 -0
  238. package/presets/opencode/skills/security-cloud/SKILL.md +43 -0
  239. package/presets/opencode/skills/security-crypto/SKILL.md +43 -0
  240. package/presets/opencode/skills/security-exploit-dev/SKILL.md +45 -0
  241. package/presets/opencode/skills/security-grc/SKILL.md +43 -0
  242. package/presets/opencode/skills/security-incident-response/SKILL.md +45 -0
  243. package/presets/opencode/skills/security-log-analysis/SKILL.md +43 -0
  244. package/presets/opencode/skills/security-malware-analysis/SKILL.md +44 -0
  245. package/presets/opencode/skills/security-mobile/SKILL.md +43 -0
  246. package/presets/opencode/skills/security-network/SKILL.md +43 -0
  247. package/presets/opencode/skills/security-ot-ics/SKILL.md +43 -0
  248. package/presets/opencode/skills/security-recon/SKILL.md +45 -0
  249. package/presets/opencode/skills/security-red-team/SKILL.md +44 -0
  250. package/presets/opencode/skills/security-reverse-engineering/SKILL.md +44 -0
  251. package/presets/opencode/skills/security-soc-automation/SKILL.md +43 -0
  252. package/presets/opencode/skills/security-threat-hunting/SKILL.md +43 -0
  253. package/presets/opencode/skills/security-vuln-assessment/SKILL.md +45 -0
  254. package/presets/opencode/skills/security-web/SKILL.md +44 -0
  255. package/presets/seo-hotel/settings.json +0 -17
  256. package/src/presets/council/council.yml +12 -0
  257. package/src/presets/manifests/agy.yml +2 -2
  258. package/src/presets/manifests/claude.yml +2 -2
  259. package/src/presets/manifests/codex.yml +2 -2
  260. package/src/presets/manifests/cursor.yml +2 -2
  261. package/src/presets/manifests/gemini.yml +2 -2
  262. package/src/presets/manifests/opencode.yml +2 -2
  263. package/src/presets/models/agy.yml +93 -66
  264. package/src/presets/models/claude.yml +79 -53
  265. package/src/presets/models/codex.yml +79 -54
  266. package/src/presets/models/cursor.yml +72 -58
  267. package/src/presets/models/gemini.yml +79 -53
  268. 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
+ [![Socket Badge](https://badge.socket.dev/npm/package/cc-codeconductor/1.0.0)](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
- > What works today:
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
- > generates and writes preset files; supports `--global` to install to
23
- > `~/.opencode/`, `~/.claude/`, `~/.codex/`, `~/.agents/`
24
- > - `npx cc-codeconductor install lsp --target <opencode|claude|codex|gemini|cursor|agy|all>`
25
- > installs LSP servers and configures AI coding tools; auto-detects project
26
- > languages or use `--lang` to override
27
- > - `npx cc-codeconductor detect` — detects project stack and recommends presets
28
- > - `npx cc-codeconductor doctor` — validates configuration and installed runner
29
- > directories
30
- > - `npx cc-codeconductor update`re-applies the council preset for the configured
31
- > target
32
- > - `npx cc-codeconductor seo audit --url <url>` — runs a comprehensive SEO audit
33
- > on a single page (meta tags, schema.org, GEO readiness) and generates a
34
- > markdown report
35
- > - `npx cc-codeconductor seo audit --sitemap <url>` — batch audits all URLs from
36
- > a sitemap.xml with rate limiting and SSRF prevention
37
- > - `npx cc-codeconductor seo llms --sitemap <url>` generates a `llms.txt` file
38
- > for AI-search readiness from sitemap content
39
- > - `npx cc-codeconductor help` (alias: `cc-help`) — shows preset inventory
40
- > (skills, subagents, commands) for the active or specified target
41
- > - `npx cc-codeconductor debt-harvest` (alias: `harvest`) — scans source files
42
- > for `// defer` comments and writes `.codeconductor/debt-ledger.md`
43
- > - `npx cc-codeconductor goal "<objective>"` (alias: `cc-goal`) — decomposes an
44
- > objective into a dependency-ordered task graph, writes
45
- > `.codeconductor/current-goal.yml`
46
- > - `/cc-pagespeed --url <url>` — audits web performance using the PageSpeed
47
- > Insights API; applies the 80/20 principle to produce a prioritized report of
48
- > Core Web Vitals (LCP, TBT, CLS, FCP, TTFB) with framework-specific fixes;
49
- > requires `PAGESPEED_API_KEY` env var for full CrUX field data (optional but
50
- > recommended)
51
- > - `npx cc-codeconductor install preset --target <opencode|claude|codex|agy|all>` —
52
- > installs the full preset (agents, prompts, skills, commands, settings) for the
53
- > chosen runner; use `--locale=es` to inject Spanish-aware instructions into
54
- > agent files, or rely on the locale saved during `init`
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
- > See [docs/v0.4.0-release-notes.md](docs/v0.4.0-release-notes.md) for the
88
- > full v0.4.0 feature breakdown.
62
+ > Experimental (library only, not a CLI runtime):
89
63
  >
90
- > What does not exist yet:
64
+ > - `runWorkflowPipeline()` 8-phase loop in
65
+ > `src/core/pipeline/workflow-loop.ts`
91
66
  >
92
- > - Runtime sandbox enforcement
93
- > - Policy compiler
94
- > - Automated agent evaluation
95
- > - Safe Merger
67
+ > What does not exist yet:
96
68
  >
97
- > Security note:
69
+ > - Runtime sandbox / OS-level isolation
70
+ > - Policy compiler / uniform target enforcement
71
+ > - Full stack-specific asset pruning
98
72
  >
99
- > CodeConductor currently provides declarative policies and documented
100
- > guardrails. It does not yet enforce OS-level isolation, shell sandboxing, or
101
- > runtime permission boundaries by itself. Treat all agent execution as
102
- > dependent on the capabilities and limitations of the target tool.
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 preset
158
- - Claude Code-compatible preset (see [Claude Environment Options & Best Practices](file:///c:/Users/R2D2/Documents/GitHub/codeconductor/docs/claude-env-options.md))
159
- - Codex preset
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
- - 12 core Conductor Agents
163
- - Routing Policy v0.4.0
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 Claude, OpenCode, Codex, and Agy
169
- - Council consensus engine (`councilConsensus()`) for multi-agent governance with majority/unanimous algorithms, security veto, **compliance veto**, and **agent confidence thresholds** (v0.4.0)
170
- - Phase 5 runtime modules scoped context injection, TDD history compaction, concise inter-agent messaging, and token budget enforcement in the compile-fix loop
171
- - **Workflow Loop Core (v0.4.0)** — 8-phase pipeline (`runWorkflowPipeline`) with wall-clock / files-modified / lines-changed guardrails and STOP gates at Design and Council Verdict
172
- - **Stack-specific presets (v0.4.0)** `ts-next-drizzle`, `spring-kotlin-jpa`, `laravel-tall`, `python-data-api`
173
- - **9 specialized skills (v0.4.0)**drizzle-schema-architect, tailwind-responsive-auditor, seo-analytics-injector, jpa-nplusone-detector, spring-auth-auditor, livewire-alpine-bridge, fastapi-pydantic-strict, tdd-mutation-tester, auth-token-inspector
174
- - **Goal orchestration (v0.4.0)** `goal` planner + `goal-state` writer feed the orchestrator's dependency-order delegation loop
175
- - **Memory compression + escalation emitter (v0.4.0)** — keeps inter-agent context within token budget and surfaces guardrail breaches as escalation reports
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 modulesscoped 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
- > run `init --locale=en --force` or edit `defaults.locale` in your config.
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
- `architect.md` and `implementer.md` for a single stack, plus the matching
268
- specialized skills (see below).
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 | Contracts included |
271
- | ------------------- | ---------------------------------------------------------- | ------------------------- |
272
- | `ts-next-drizzle` | Next.js / Astro, Tailwind, Drizzle ORM, Bun, Postgres | `architect`, `implementer`|
273
- | `spring-kotlin-jpa` | Spring Boot, Kotlin/Java, Gradle, JPA, Hibernate | `architect`, `implementer`|
274
- | `laravel-tall` | Laravel, Blade, Livewire, Alpine.js | `architect`, `implementer`|
275
- | `python-data-api` | Python, FastAPI, Django, uv | `architect`, `implementer`|
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
- matching specialized skills automatically when you run `install preset`.
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
- Supported targets: opencode, claude, codex, gemini, cursor, agy.
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 that `AGENTS.md` and `CLAUDE.md` do not exceed the 40KB size limit, and checks if updates are available for installed presets, target runner configurations, or skills.
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, and skills (from `skills-lock.json`), preserving user edits outside managed blocks. Also validates that `AGENTS.md` and `CLAUDE.md` do not exceed the 40KB size limit.
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` — show preset inventory
525
+ #### `help` / `cc-help` distinct help contracts
351
526
 
352
527
  ```bash
353
- npx cc-codeconductor help # show inventory for active target
354
- npx cc-codeconductor help --target claude # show inventory for specific target
355
- npx cc-codeconductor cc-help # alias
356
- npx cc-codeconductor help --output json # machine-readable output
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
- Lists the skills, subagents, commands, and workflows available in the active
360
- preset. Reads from `presets/<target>/` in the project root.
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
- into `.codeconductor/debt-ledger.md`, grouped by optional tag
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 | Description |
396
- | ---------------- | -------------------------------------------------------- |
397
- | `--force` | Overwrite existing files |
398
- | `--dry-run` | Preview actions without writing |
399
- | `--global` | Target home directory instead of project |
400
- | `--output json` | Machine-readable JSON output |
401
- | `--locale=en` | Agent instruction language: `en` (default) or `es` |
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 | Description |
441
- | ------------------------------ | --------------------------------------------- |
442
- | `{{MODEL_CLAUDE}}` | Model for the Claude provider |
443
- | `{{MODEL_OPENCODE}}` | Model for the OpenCode provider |
444
- | `{{MODEL_CODEX}}` | Model for the Codex provider |
445
- | `{{LANGUAGE_INSTRUCTIONS}}` | Locale-aware instruction injected by `locale` |
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` | *Prose/docs/code comments: be terse and direct. Prefer concrete nouns over abstract ones. Omit filler phrases. One idea per sentence.* |
459
- | `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.* |
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, doctor, update
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 (32 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/ ← manual preset files (pre-CLI)
761
+ ├── presets/ ← runner presets (agents, commands, skills)
523
762
  │ ├── opencode/
524
- └── claude/
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
- | Version | Focus |
535
- | ---------- | ----------------------------------------------------------- |
536
- | **v0.2.0** | **CLI: init, detect, install, doctor, update — shipped** ✅ |
537
- | v0.3.0 | Next.js, FastAPI, generic presets, monorepo support |
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 details.
779
+ See [ROADMAP.md](ROADMAP.md) for historical notes.
543
780
 
544
781
  ---
545
782