🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

ccg-ros2-workflow

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ccg-ros2-workflow

ROS2 Multi-Model Collaborative Development Workflow - Codex (Low-level Control) + Antigravity (Upper-layer Application) + Claude (Orchestration)

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
26
-48%
Maintainers
1
Weekly downloads
 
Created
Source

CCG-ROS2 - Claude + Codex + Antigravity ROS2 Multi-Model Collaboration

CCG-ROS2 Workflow

npm version License: MIT Claude Code ROS2

简体中文 | English

CCG-ROS2 is a workflow engine for Claude Code that orchestrates multiple AI models (Codex for low-level control, Antigravity for upper-layer application, Claude for orchestration) with hook-based state tracking, automatic strategy selection, and Agent Teams parallel execution — specialized for ROS2 robotics development.

Fork from fengshao1227/ccg-workflow v3.1.0, customized for ROS2 Humble robotics development.

What's new in v3.0.0 (ROS2 Edition)

v3.0.0 brings the powerful v3.1.0 engine to ROS2 development with domain-specific enhancements:

  • ROS2-aware routing — Upper-layer tasks (Launch files, Python nodes, RViz, simulation) route to Antigravity. Low-level tasks (C++ nodes, hardware drivers, real-time control) route to Codex.
  • 7-phase workflow — Extended from 6 phases with dedicated hardware deployment phase (deployment scripts, hardware dependency checks, Gazebo simulation validation).
  • ROS2 system integrator — Replaces UI/UX designer with system-integrator agent specialized in ROS2 node architecture, Topic/Service design, and QoS configuration.
  • ROS2 domain skills — Perception (LiDAR/camera/point cloud), control (PID/trajectory/motor drivers), navigation (Nav2/SLAM/path planning), manipulation (MoveIt/grasp planning), hardware integration (CAN/serial/sensor drivers).
  • Codex Mode for ROS2 — Codex-led orchestration with ROS2 context (node boundaries, message selection, QoS decisions).
  • All v3.1.0 features — Hook engine, task persistence, Agent Teams, quality gates, domain knowledge hooks, Codex-Led Mode.

Quick Start

npx ccg-ros2-workflow

Requirements: Node.js 20+, Claude Code CLI
Optional: Codex CLI (low-level control), Antigravity CLI (upper-layer application)

The installer walks through 4 steps: API config, model routing, MCP tools, performance mode.

How it works (ROS2 Example)

You: /ccg:go implement autonomous navigation for differential drive robot

CCG-ROS2 Engine:
  1. Reads ROS2 project context (package.xml, colcon workspace, launch files)
  2. Classifies: feature / XL complexity / mixed (upper+lower) / high risk
  3. Selects strategy: full-collaborate
  4. Creates .ccg/tasks/autonomous-navigation/task.json
  5. Launches dual-model analysis:
     - Codex: motor driver, odometry, low-level control
     - Antigravity: Nav2 config, launch files, RViz setup
  6. Produces plan with node architecture + QoS design → HARD STOP for approval
  7. Spawns Agent Teams Builders for parallel implementation
  8. Runs quality gates (verify ROS2 message definitions, QoS policies, lifecycle)
  9. Hardware deployment phase: generates deployment scripts, checks CAN/serial, Gazebo sim
  10. Reports results

Every turn, a hook injects:
  <ccg-state>
  Task: autonomous-navigation (in_progress)
  Strategy: full-collaborate
  Phase: 4-implementation
  ROS2 Context: colcon workspace, 3 packages, Nav2 stack
  Next: Layer 1 Builders executing (motor_driver_node + nav2_config)
  </ccg-state>

ROS2 Model Routing

ModelRoleSuitable for
CodexLow-level Control AuthorityC++ nodes, hardware drivers, real-time control algorithms, message definitions
AntigravityUpper-layer Application AuthorityLaunch files, Python nodes, RViz configuration, simulation setup
ClaudeOrchestration + DeliveryPlan approval, code writing, quality control

Strategies (ROS2-aware)

The engine picks a strategy based on task type and complexity, with ROS2-specific context:

StrategyWhenExternal modelsTeamsROS2 Context
direct-fixSimple bug, single fileNoNoNode crash, topic mismatch
quick-implementSmall feature, clear scopeNoNoAdd parameter, simple service
guided-developMedium feature, needs planningSingle modelNoNew node, message definition
full-collaborateComplex feature, multi-moduleDual model parallelYesNavigation stack, perception pipeline
debug-investigateComplex bug, unknown causeDual model diagnosisNoQoS mismatch, lifecycle issue
refactor-safelyCode restructuringDual model reviewNoNode splitting, message refactor
deep-researchTechnical research, comparisonDual model explorationNoSLAM algorithm, control strategy
optimize-measurePerformance optimizationOptionalNoCPU/memory, QoS tuning
review-auditCode reviewDual model cross-reviewNoQoS policies, lifecycle, safety
git-actioncommit, rollback, branchesNoNoStandard git operations

Simple tasks run fast with no overhead. Complex ROS2 tasks get the full engine with hardware deployment phase.

Commands

Smart Entry Point

CommandDescription
/ccg:goDescribe what you want in plain language. The engine analyzes your intent, picks the right strategy, and executes it.

ROS2 Development Workflow (Legacy Commands)

CommandDescription
/ccg:workflow7-phase complete workflow (with hardware deployment)
/ccg:planMulti-model collaborative planning (Phase 1-2)
/ccg:executeMulti-model collaborative execution (Phase 3-5)
/ccg:frontendUpper-layer application focus (Antigravity-led: Launch/Python/RViz)
/ccg:backendLow-level control focus (Codex-led: C++/drivers/real-time)
/ccg:featSmart feature development
/ccg:analyzeDual-model technical analysis
/ccg:debugMulti-model problem diagnosis
/ccg:optimizeMulti-model performance optimization
/ccg:testSmart test generation
/ccg:reviewDual-model code review
/ccg:enhancePrompt enhancement
/ccg:initInitialize CLAUDE.md

OpenSpec Specification-Driven

CommandDescription
/ccg:spec-initInitialize OPSX environment
/ccg:spec-researchRequirements → Constraint set
/ccg:spec-planConstraints → Zero-decision plan
/ccg:spec-implExecute by specification + archive
/ccg:spec-reviewDual-model cross-review

Agent Teams Parallel Implementation

CommandDescription
/ccg:teamUnified workflow (recommended) — 8-phase full process with 7-role auto-orchestration
/ccg:team-researchParallel constraint set research (Codex low-level + Antigravity upper-layer)
/ccg:team-planZero-decision parallel implementation plan
/ccg:team-execSpawn Builder teammates for parallel coding
/ccg:team-reviewDual-model cross-review implementation output

Git Tools

CommandDescription
/ccg:commitSmart Git commit (conventional commit)
/ccg:rollbackInteractive Git rollback
/ccg:clean-branchesClean merged branches
/ccg:worktreeWorktree management

Project Management

CommandDescription
/ccg:contextProject context management (.context initialization/log/compress/history)
/ccg:codex-execCodex full execution plan (MCP + code + tests)

7-Phase ROS2 Workflow

Research → Ideation → Planning → Execution → Optimization → Review → Hardware Deployment
  • Phase 1-2 (Research/Ideation): Codex + Antigravity parallel analysis, dual-perspective evaluation
  • Phase 3 (Planning): Claude synthesizes solution, user approval then archive
  • Phase 4 (Execution): Claude leads code implementation
  • Phase 5 (Optimization): Codex + Antigravity parallel review, Claude integrates fixes
  • Phase 6 (Review): Final quality control
  • Phase 7 (Hardware Deployment): Generate deployment scripts, check hardware dependencies (serial/CAN/sensors), Gazebo simulation validation

Architecture

Claude (Orchestration + Final Code Writing)
  ├── Codex      → Read-only, returns patch (Low-level: C++/drivers/real-time)
  └── Antigravity → Read-only, returns patch (Upper-layer: Launch/Python/RViz)

External models have zero write permissions to the filesystem. All code is reviewed by Claude before landing.

Sub-Agents

AgentPurpose
system-integratorROS2 system integration designer (node architecture/Topic-Service/QoS design)
plannerROS2 task planner (WBS decomposition)
init-architectProject initialization architect
get-current-datetimeGet current time
team-architectTeam architect (v3.0+)
team-qaQA engineer (v3.0+)
team-reviewerCode reviewer (v3.0+)

Output Styles

After installation, choose AI output style via output-styles directory:

  • engineer-professional - SOLID/KISS/DRY professional engineer style
  • nekomata-engineer - Cat-girl engineer (UFO Meow)
  • laowang-engineer - Old Wang engineer
  • abyss-cultivator - Abyss cultivator
  • ojousama-engineer - Ojou-sama style
  • abyss-concise - Abyss concise report
  • abyss-command - Abyss iron command
  • abyss-ritual - Abyss ritual scroll

Fixed Configuration

ItemValue
ROS2 VersionHumble Hawksbill (LTS)
Target PlatformPhysical Robot
Upper-layer Application ModelAntigravity (default) / Gemini (fallback)
Low-level Control ModelCodex
Workflow Phases7 phases (with hardware deployment)

Codex-Led Mode (Optional)

Install via menu option X. Codex Mode. Codex CLI acts as lead orchestrator with ROS2 context:

  • ~/.codex/AGENTS.md — Adaptive decision framework with ROS2 context (node boundaries, message selection, QoS decisions)
  • ~/.codex/hooks/ccg-workflow.py — Intelligent guardrail hook with ROS2 checkpoints (package.xml, CMakeLists.txt, launch files, colcon build)
  • ~/.codex/config.toml — Multi-agent v2 enabled
  • ~/.codex/agents/ — Native sub-agent definitions with ROS2 context

MCP Tools Integration

Optional MCP tools for enhanced functionality:

  • fast-context (recommended) — Windsurf Fast Context for code retrieval
  • ace-tool — Code search + prompt enhancement
  • ContextWeaver — Local-first semantic code search
  • context7 (auto-installed) — Free library documentation query

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines.

License

MIT License - see LICENSE for details.

Version: 3.0.0
Last Updated: 2026-05-20

Keywords

ros2

FAQs

Package last updated on 21 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts