How fengshao1227/ccg-workflow works
CCG is a Claude Code development-workflow system, with a parallel DeepSeek Harness plugin. The main documented journey is a user request routed by Claude through project/task analysis, strategy selection, optional model analysis, approval, implementation, quality and cross-review, and reporting. Hooks preserve workflow and task context; the Go wrapper runs external backend work and can stream it to a local web UI. Setup and configuration are a separate product branch. The README documents workflow stages not present in the sampled source; those links reflect documentation, not inspected implementation wiring.
Main entry points: index.js DSH plugin · init.ts Setup commands · hooks Workflow engine · main.go Backend wrapper
Components 21
Setup and config
- CCG CLI
bin/ccg.mjs - Setup commands
src/commands/init.ts - Install workflows
src/utils/installer.ts - Routing config
src/utils/config.ts
Claude workflow
- Workflow engine
templates/hooks - Skill tools
templates/skills/tools
Context hooks
- Task context
templates/hooks/task-utils.js - State injection
templates/hooks/workflow-state.js - Skill routing
templates/hooks/skill-router.js - Agent context
templates/hooks/subagent-context.js
Model execution
- Backend wrapper
codeagent-wrapper/main.go - Backend executor
codeagent-wrapper/executor.go - Live output UI
codeagent-wrapper/server.go
DeepSeek Harness
- DSH plugin
dsh-ccg/src/index.js - Role routing
dsh-ccg/src/roles.js - Team API
dsh-ccg/src/api.js
Other components
- Developer
- Claude Code
- AI backends
- DeepSeek Harness
- Provider APIs
Connections 19
- Developer → CCG CLI: starts setup
- CCG CLI → Setup commands: dispatches
- Setup commands → Install workflows: installs workflows
- Setup commands → Routing config: configures routing
- Developer → Claude Code: requests work
- Claude Code → Workflow engine: orchestrates
- Workflow engine → Task context: reads task state
- Workflow engine → Backend wrapper: dispatches model work
- Backend wrapper → Backend executor: runs backend
- Backend executor → AI backends: calls
- Backend wrapper → Live output UI: streams output
- State injection → Task context: reads task state
- Skill routing → Skill tools: loads skill content
- Agent context → Task context: reads task context
- Claude Code → Agent context: spawns agents
- DeepSeek Harness → DSH plugin: mounts plugin
- DSH plugin → Role routing: resolves roles
- DSH plugin → Team API: registers team route
- DSH plugin → Provider APIs: delegates by API