cc-codeconductor 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/index.js +1333 -1008
- package/package.json +1 -1
- package/presets/agy/AGENTS.md +35 -2
- package/presets/claude/CLAUDE.md +28 -2
- package/presets/codex/AGENTS.md +28 -2
- package/presets/opencode/agents/implementer.md +2 -2
- package/presets/opencode/agents/orchestrator.md +11 -4
- package/presets/opencode/agents/reviewer.md +2 -0
package/package.json
CHANGED
package/presets/agy/AGENTS.md
CHANGED
|
@@ -6,6 +6,26 @@ This file configures CodeConductor for **Google Antigravity CLI (agy)** and Anti
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## Behavioral Discipline
|
|
10
|
+
|
|
11
|
+
These principles apply to **all agents** in every workflow. They reduce common
|
|
12
|
+
LLM coding mistakes and bias toward caution over speed.
|
|
13
|
+
|
|
14
|
+
1. **Think Before Coding** — State assumptions explicitly. If uncertain, ask. If
|
|
15
|
+
multiple interpretations exist, present them — don't pick silently. If a
|
|
16
|
+
simpler approach exists, say so.
|
|
17
|
+
2. **Simplicity First** — Minimum code that solves the problem. No features
|
|
18
|
+
beyond what was asked. No abstractions for single-use code. No speculative
|
|
19
|
+
"flexibility." Ask: "Would a senior engineer say this is overcomplicated?"
|
|
20
|
+
3. **Surgical Changes** — Touch only what you must. Don't "improve" adjacent
|
|
21
|
+
code. Match existing style. Remove only what YOUR changes made unused. Every
|
|
22
|
+
changed line must trace directly to the user's request.
|
|
23
|
+
4. **Goal-Driven Execution** — Transform tasks into verifiable goals with
|
|
24
|
+
success criteria. For multi-step tasks, state a plan with verification
|
|
25
|
+
checks. Loop until verified.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
9
29
|
## Workflow Contract
|
|
10
30
|
|
|
11
31
|
Do not touch a single file until you understand the task contract.
|
|
@@ -101,8 +121,13 @@ When multiple signals apply, take the highest risk level. Do not average.
|
|
|
101
121
|
1. Validate the Task Card before doing anything else.
|
|
102
122
|
2. Classify the risk level using the table above.
|
|
103
123
|
3. Select and document the agent route.
|
|
104
|
-
4.
|
|
105
|
-
|
|
124
|
+
4. Enforce **Behavioral Discipline Gates**:
|
|
125
|
+
- **Think Before Coding Checkpoint**: Verify assumptions are explicitly documented before architect starts.
|
|
126
|
+
- **Simplicity Gate**: Review Technical Plan to ensure no speculative code or abstractions are planned.
|
|
127
|
+
- **Surgical Changes Audit**: Audit reviewer report and diff to verify only planned files were modified.
|
|
128
|
+
- **Goal-Driven Verification**: Confirm all acceptance criteria have passing tests.
|
|
129
|
+
5. Surface blockers rather than working around them.
|
|
130
|
+
6. Declare completion only when all Deliverables are produced and verified.
|
|
106
131
|
|
|
107
132
|
**Task Card validation — required fields before routing:**
|
|
108
133
|
- Title (short description, max 80 chars)
|
|
@@ -263,6 +288,10 @@ High-risk checkpoint: [yes | no — if yes, describe what triggers a stop]
|
|
|
263
288
|
3. Read the target files.
|
|
264
289
|
4. Verify tests pass before starting.
|
|
265
290
|
|
|
291
|
+
**Surgical Changes Rules:**
|
|
292
|
+
- Modify ONLY planned files. Do not improve adjacent code, comments, or formatting.
|
|
293
|
+
- Match existing style. Remove imports/variables/functions made unused by YOUR changes. Do not touch existing dead code.
|
|
294
|
+
|
|
266
295
|
**Implementation Summary format:**
|
|
267
296
|
```markdown
|
|
268
297
|
## Implementation Summary
|
|
@@ -323,6 +352,10 @@ High-risk checkpoint: [yes | no — if yes, describe what triggers a stop]
|
|
|
323
352
|
|
|
324
353
|
**Model:** `{{MODEL_GEMINI}}`
|
|
325
354
|
|
|
355
|
+
**Review Axes & Gates:**
|
|
356
|
+
- **Simplicity Gate**: Flag overcomplicated/speculative code. Ask: "Would a senior engineer say this is overbuilt?"
|
|
357
|
+
- **Surgical Changes**: Verify no adjacent or unrelated code was changed.
|
|
358
|
+
|
|
326
359
|
**Review Report format:**
|
|
327
360
|
```markdown
|
|
328
361
|
## Review Report
|
package/presets/claude/CLAUDE.md
CHANGED
|
@@ -6,6 +6,24 @@ This is a framework, not a prompt collection. When you receive a `/command`, you
|
|
|
6
6
|
orchestrate a structured multi-agent workflow. Each step is executed by a
|
|
7
7
|
specialized role. Roles do not overlap. Steps are not skipped.
|
|
8
8
|
|
|
9
|
+
## Behavioral Discipline
|
|
10
|
+
|
|
11
|
+
These principles apply to **all agents** in every workflow. They reduce common
|
|
12
|
+
LLM coding mistakes and bias toward caution over speed.
|
|
13
|
+
|
|
14
|
+
1. **Think Before Coding** — State assumptions explicitly. If uncertain, ask. If
|
|
15
|
+
multiple interpretations exist, present them — don't pick silently. If a
|
|
16
|
+
simpler approach exists, say so.
|
|
17
|
+
2. **Simplicity First** — Minimum code that solves the problem. No features
|
|
18
|
+
beyond what was asked. No abstractions for single-use code. No speculative
|
|
19
|
+
"flexibility." Ask: "Would a senior engineer say this is overcomplicated?"
|
|
20
|
+
3. **Surgical Changes** — Touch only what you must. Don't "improve" adjacent
|
|
21
|
+
code. Match existing style. Remove only what YOUR changes made unused. Every
|
|
22
|
+
changed line must trace directly to the user's request.
|
|
23
|
+
4. **Goal-Driven Execution** — Transform tasks into verifiable goals with
|
|
24
|
+
success criteria. For multi-step tasks, state a plan with verification
|
|
25
|
+
checks. Loop until verified.
|
|
26
|
+
|
|
9
27
|
---
|
|
10
28
|
|
|
11
29
|
## Core Terminology
|
|
@@ -45,8 +63,13 @@ verified.
|
|
|
45
63
|
1. Validate the Task Card before doing anything else.
|
|
46
64
|
2. Select the routing path based on the Routing Policy.
|
|
47
65
|
3. Execute the correct agent sequence.
|
|
48
|
-
4.
|
|
49
|
-
|
|
66
|
+
4. Enforce **Behavioral Discipline Gates**:
|
|
67
|
+
- **Think Before Coding Checkpoint**: Verify assumptions are explicitly documented before architect starts.
|
|
68
|
+
- **Simplicity Gate**: Review Technical Plan to ensure no speculative code or abstractions are planned.
|
|
69
|
+
- **Surgical Changes Audit**: Audit reviewer report and diff to verify only planned files were modified.
|
|
70
|
+
- **Goal-Driven Verification**: Confirm all acceptance criteria have passing tests.
|
|
71
|
+
5. Surface blockers rather than working around them.
|
|
72
|
+
6. Declare completion only when all Deliverables are produced and verified.
|
|
50
73
|
|
|
51
74
|
**Task Card validation — required fields before routing:**
|
|
52
75
|
|
|
@@ -302,6 +325,7 @@ branch, declare done before running tests.
|
|
|
302
325
|
- **No scope creep.** If the plan says "add one endpoint," add one endpoint.
|
|
303
326
|
- **Run tests before declaring done.** If any test fails, investigate and fix
|
|
304
327
|
before completing.
|
|
328
|
+
- **Surgical Changes.** Modify ONLY planned files. Do not improve adjacent code, comments, or formatting. Match existing style. Remove imports/variables/functions made unused by YOUR changes. Do not touch existing dead code.
|
|
305
329
|
|
|
306
330
|
**Implementation Summary format:**
|
|
307
331
|
|
|
@@ -400,6 +424,8 @@ code.
|
|
|
400
424
|
| Error handling | Are failure cases handled explicitly and safely? |
|
|
401
425
|
| Test coverage | Do the tests verify all acceptance criteria? |
|
|
402
426
|
| Technical debt | Does the implementation introduce debt without acknowledging it? |
|
|
427
|
+
| Simplicity | Flag overcomplicated or speculative code (overbuilt patterns). |
|
|
428
|
+
| Surgical | Verify that NO adjacent or unrelated code/comments were changed. |
|
|
403
429
|
|
|
404
430
|
**Finding categories:**
|
|
405
431
|
|
package/presets/codex/AGENTS.md
CHANGED
|
@@ -8,6 +8,24 @@ project root as `AGENTS.md` (or merge it into an existing `AGENTS.md`).
|
|
|
8
8
|
Codex reads `AGENTS.md` recursively from the project root. All agent roles are
|
|
9
9
|
embedded here as workflow instructions.
|
|
10
10
|
|
|
11
|
+
## Behavioral Discipline
|
|
12
|
+
|
|
13
|
+
These principles apply to **all agents** in every workflow. They reduce common
|
|
14
|
+
LLM coding mistakes and bias toward caution over speed.
|
|
15
|
+
|
|
16
|
+
1. **Think Before Coding** — State assumptions explicitly. If uncertain, ask. If
|
|
17
|
+
multiple interpretations exist, present them — don't pick silently. If a
|
|
18
|
+
simpler approach exists, say so.
|
|
19
|
+
2. **Simplicity First** — Minimum code that solves the problem. No features
|
|
20
|
+
beyond what was asked. No abstractions for single-use code. No speculative
|
|
21
|
+
"flexibility." Ask: "Would a senior engineer say this is overcomplicated?"
|
|
22
|
+
3. **Surgical Changes** — Touch only what you must. Don't "improve" adjacent
|
|
23
|
+
code. Match existing style. Remove only what YOUR changes made unused. Every
|
|
24
|
+
changed line must trace directly to the user's request.
|
|
25
|
+
4. **Goal-Driven Execution** — Transform tasks into verifiable goals with
|
|
26
|
+
success criteria. For multi-step tasks, state a plan with verification
|
|
27
|
+
checks. Loop until verified.
|
|
28
|
+
|
|
11
29
|
---
|
|
12
30
|
|
|
13
31
|
## Workflow Contract
|
|
@@ -111,8 +129,13 @@ a complete plan before implementation.
|
|
|
111
129
|
1. Validate the Task Card before doing anything else.
|
|
112
130
|
2. Classify the risk level using the table above.
|
|
113
131
|
3. Select and document the agent route.
|
|
114
|
-
4.
|
|
115
|
-
|
|
132
|
+
4. Enforce **Behavioral Discipline Gates**:
|
|
133
|
+
- **Think Before Coding Checkpoint**: Verify assumptions are explicitly documented before architect starts.
|
|
134
|
+
- **Simplicity Gate**: Review Technical Plan to ensure no speculative code or abstractions are planned.
|
|
135
|
+
- **Surgical Changes Audit**: Audit reviewer report and diff to verify only planned files were modified.
|
|
136
|
+
- **Goal-Driven Verification**: Confirm all acceptance criteria have passing tests.
|
|
137
|
+
5. Surface blockers rather than working around them.
|
|
138
|
+
6. Declare completion only when all Deliverables are produced and verified.
|
|
116
139
|
|
|
117
140
|
**Task Card validation — required fields before routing:**
|
|
118
141
|
|
|
@@ -400,6 +423,7 @@ tests.
|
|
|
400
423
|
module structure already present in the codebase.
|
|
401
424
|
- **No scope creep.** If the plan says "add one endpoint," add one endpoint.
|
|
402
425
|
- **Run tests before declaring done.** If any test fails, investigate and fix.
|
|
426
|
+
- **Surgical Changes.** Modify ONLY planned files. Do not improve adjacent code, comments, or formatting. Match existing style. Remove imports/variables/functions made unused by YOUR changes. Do not touch existing dead code.
|
|
403
427
|
|
|
404
428
|
**Completion Summary format:**
|
|
405
429
|
|
|
@@ -527,6 +551,8 @@ changes.
|
|
|
527
551
|
| Error handling | Are failure cases handled explicitly and safely? |
|
|
528
552
|
| Test coverage | Do the tests verify all acceptance criteria? |
|
|
529
553
|
| Technical debt | Does the implementation introduce debt without acknowledging it? |
|
|
554
|
+
| Simplicity | Flag overcomplicated or speculative code (overbuilt patterns). |
|
|
555
|
+
| Surgical | Verify that NO adjacent or unrelated code/comments were changed. |
|
|
530
556
|
|
|
531
557
|
**Finding categories:**
|
|
532
558
|
|
|
@@ -55,9 +55,9 @@ invent an approach and proceed. The plan exists to prevent exactly that.
|
|
|
55
55
|
**Work in a worktree.** Create a session worktree before touching any file. All
|
|
56
56
|
edits happen inside it. Include the worktree path in the Implementation Summary.
|
|
57
57
|
|
|
58
|
-
**Minimal diff.** Change only what the Technical Plan specifies. If you notice
|
|
58
|
+
**Minimal diff (Surgical Changes).** Change only what the Technical Plan specifies. If you notice
|
|
59
59
|
something unrelated that could be improved, do not fix it. Log it as a
|
|
60
|
-
suggestion in your completion summary and move on.
|
|
60
|
+
suggestion in your completion summary and move on. Modify ONLY planned files. Do not improve adjacent code, comments, or formatting. Match existing style. Remove imports/variables/functions made unused by YOUR changes. Do not touch existing dead code.
|
|
61
61
|
|
|
62
62
|
**Follow existing patterns.** If the codebase uses a specific naming convention,
|
|
63
63
|
error-handling approach, or module structure, match it. Do not introduce a new
|
|
@@ -44,9 +44,14 @@ Your only output is routing decisions, status reports, and escalations.
|
|
|
44
44
|
2. Validate that the request is a complete, actionable Task Card
|
|
45
45
|
3. Classify the risk level
|
|
46
46
|
4. Select and document the agent route
|
|
47
|
-
5.
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
5. Enforce **Behavioral Discipline Gates**:
|
|
48
|
+
- **Think Before Coding Checkpoint**: Verify assumptions are explicitly documented before architect starts.
|
|
49
|
+
- **Simplicity Gate**: Review Technical Plan to ensure no speculative code or abstractions are planned.
|
|
50
|
+
- **Surgical Changes Audit**: Audit reviewer report and diff to verify only planned files were modified.
|
|
51
|
+
- **Goal-Driven Verification**: Confirm all acceptance criteria have passing tests.
|
|
52
|
+
6. Delegate to the first agent in the route
|
|
53
|
+
7. Monitor outputs and escalate when a step produces unexpected results
|
|
54
|
+
8. Report the final outcome to the human
|
|
50
55
|
|
|
51
56
|
---
|
|
52
57
|
|
|
@@ -319,7 +324,9 @@ Show this routing decision to the human before delegating to any agent.
|
|
|
319
324
|
### Mandatory stops (always wait for human confirmation)
|
|
320
325
|
|
|
321
326
|
- After the Routing Decision is produced
|
|
322
|
-
- After `
|
|
327
|
+
- After `repo-explorer` maps the repo but before `architect` starts (verify "Think Before Coding" assumptions are documented)
|
|
328
|
+
- After `architect` produces a Technical Plan (perform the "Simplicity Gate" review before `implementer` is invoked)
|
|
329
|
+
- After `reviewer` produces a report (perform "Surgical Changes Audit" and verify "Goal-Driven Verification" of tests)
|
|
323
330
|
- After `reviewer` produces a CRITICAL finding
|
|
324
331
|
- When any agent reports unexpected complexity or a new risk that was not in the
|
|
325
332
|
original Task Card
|
|
@@ -49,6 +49,8 @@ reference axis is an opinion, not a review finding.
|
|
|
49
49
|
| Context discipline | Was `/new` executed when context_scope was `isolated`? |
|
|
50
50
|
| Test coverage | Do the tests verify all acceptance criteria? |
|
|
51
51
|
| Technical debt | Does the implementation introduce debt without acknowledging it? |
|
|
52
|
+
| Simplicity | Flag overcomplicated or speculative code (overbuilt patterns). |
|
|
53
|
+
| Surgical | Verify that NO adjacent or unrelated code/comments were changed. |
|
|
52
54
|
|
|
53
55
|
## Finding Categories
|
|
54
56
|
|