Skip to content

Strategies — 10 AI Coding Strategies Auto-Selected by CCG

The engine picks a strategy based on task type and complexity. Simple tasks run fast with no overhead. Complex tasks get the full engine.

StrategyWhenExternal ModelsTeams
direct-fixSimple bug, single fileNoNo
quick-implementSmall feature, clear scopeNoNo
guided-developMedium feature, needs planningSingle modelNo
full-collaborateComplex feature, multi-moduleDual model parallelYes
debug-investigateComplex bug, unknown causeDual model diagnosisNo
refactor-safelyCode restructuringDual model reviewNo
deep-researchTechnical research, comparisonDual model explorationNo
optimize-measurePerformance optimizationOptionalNo
review-auditCode reviewDual model cross-reviewNo
git-actioncommit, rollback, branchesNoNo

Trigger: S complexity + bugfix type, single file change

The lightest strategy. Claude locates the problem and fixes it directly. No external models, no task directory. Suitable for typos, simple logic fixes, config adjustments.

Phases: Locate → Fix → Verify


Trigger: S complexity + feature type, clear scope (1-2 files)

Small feature implementation without external model assistance. Claude codes directly without creating a persistent task. Suitable for adding a utility function, a simple API endpoint, etc.

Phases: Understand → Implement → Verify


Trigger: M complexity, needs planning but not dual-model

Invokes a single external model for analysis assistance. Creates a task directory with HARD STOP checkpoints. Suitable for medium features involving 2-5 files.

Phases: Analyze → Plan → HARD STOP → Implement → Verify


Trigger: L/XL complexity + cross-module feature

The most complete strategy. Dual model parallel analysis + Agent Teams parallel implementation + quality gates. Always creates a task directory with multiple HARD STOP checkpoints.

Phases:

  1. Context collection
  2. Dual-model parallel analysis (Codex + Gemini)
  3. Synthesize plan → HARD STOP
  4. Spawn Agent Teams Builders for parallel implementation
  5. Quality gates (verify-security / verify-quality)
  6. Dual-model cross-review
  7. Output report

Trigger: bugfix type + M/L complexity, unknown cause

Dual models diagnose from different angles. Codex analyzes backend logic and data flow; Gemini analyzes frontend interaction and state. Suitable for complex cross-layer bugs.

Phases: Reproduce → Dual-model diagnosis → Root cause → Fix proposal → HARD STOP → Fix → Verify


Trigger: refactor type

Dual models review before and after refactoring to ensure behavioral equivalence. One model reviews the pre-refactor behavior semantics, the other verifies the post-refactor code maintains consistency.

Phases: Impact analysis → Dual review (before) → Refactor → Dual review (after) → Verify


Trigger: research type (technical investigation, comparison, architecture exploration)

Dual models explore in parallel on the same question from different angles. Claude synthesizes the final conclusions. Produces a research report, not code.

Phases: Define problem → Dual-model parallel exploration → Synthesize comparison → Output conclusions


Trigger: Performance optimization tasks

Emphasizes measurability — must have baseline data before and after optimization. External model invocation is optional (for bottleneck analysis).

Phases: Baseline measurement → Bottleneck analysis → Optimization plan → HARD STOP → Implement → Re-measure → Comparison report


Trigger: review type (code review request)

Dual-model cross-review. Codex and Gemini independently review the same code, finding their own issues. Claude merges and deduplicates for a unified review report.

Phases: Get diff → Dual-model independent review → Merge findings → Graded report (Critical / Warning / Info)


Trigger: Git operations (commit, rollback, clean-branches, worktree)

Direct Git operation execution. No external models, no task directory. Pure utility strategy.

Phases: Analyze current git state → Execute operation → Confirm result

After receiving a /ccg:go command, the engine follows this decision tree:

Receive task description
├── Is it a Git operation? → git-action
├── Intent classification
│ ├── bugfix
│ │ ├── S complexity → direct-fix
│ │ └── M/L complexity → debug-investigate
│ │
│ ├── feature
│ │ ├── S complexity → quick-implement
│ │ ├── M complexity → guided-develop
│ │ └── L/XL complexity → full-collaborate
│ │
│ ├── refactor → refactor-safely
│ ├── research → deep-research
│ ├── review → review-audit
│ └── optimize → optimize-measure