Claude Code Pipeline (CCP) is a visual orchestration and automation system for Claude Code that transforms manual AI agent interactions into automated, configurable, and monitorable workflows through a ComfyUI-inspired graphical interface.
- Automatic execution of predefined prompt sequences
- Support for conditions, loops, and branching
- Event-based trigger system (file watcher, webhook, schedule)
- State and memory management between tasks
- Specialized agents for specific tasks (CodeReviewer, Architect, Tester, etc.)
- Inter-agent communication through message passing
- Load balancing and resource management
- Intelligent task parallelization
- ComfyUI-style drag-and-drop interface
- Configurable nodes for each type of operation
- Real-time execution flow visualization
- Preview of intermediate results
- Library of predefined pipelines for common tasks
- Customizable template system
- Import/export of pipelines in JSON/YAML format
- Community marketplace for sharing pipelines
┌─────────────────────────────────────────────────────────┐
│ Web UI (React/TypeScript) │
│ ┌─────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Editor │ │ Monitor │ │ Library │ │
│ │ Canvas │ │ Dashboard │ │ Manager │ │
│ └─────────────┘ └──────────────┘ └──────────────┘ │
└─────────────────────────────────────────────────────────┘
│
WebSocket/REST API
│
┌─────────────────────────────────────────────────────────┐
│ Pipeline Orchestrator (Node.js) │
│ ┌─────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Scheduler │ │ Executor │ │ State │ │
│ │ Engine │ │ Engine │ │ Manager │ │
│ └─────────────┘ └──────────────┘ └──────────────┘ │
└─────────────────────────────────────────────────────────┘
│
Agent Interface
│
┌─────────────────────────────────────────────────────────┐
│ Claude Code Agent Pool │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Agent 1 │ │ Agent 2 │ │ Agent N │ ... │
│ └──────────┘ └──────────┘ └──────────┘ │
└─────────────────────────────────────────────────────────┘
- Node.js 20+
- Python 3.10+
- Claude Code CLI installato e configurato
- Docker (optional, for containerized deployment)
- Backend: Express.js, Socket.io, Bull Queue, PostgreSQL
- Frontend: React, Redux Toolkit, React Flow, Monaco Editor
- Agent Layer: Claude Code SDK (wrapper custom), AsyncIO
# Clone repository
git clone https://github.com/yourusername/claude-code-pipeline.git
cd claude-code-pipeline
# Install backend dependencies
cd backend
npm install
# Install frontend dependencies
cd ../frontend
npm install
# Setup database
cd ../backend
npm run db:migrate
# Environment configuration
cp .env.example .env
# Edit .env with your configurations
# Start development
npm run devname: "Auto Code Review"
trigger:
type: "git_push"
branch: "develop"
nodes:
- id: "fetch_changes"
type: "git_diff"
- id: "review_code"
type: "claude_agent"
config:
prompt: "Review this code for security, performance, and best practices"
- id: "create_pr_comment"
type: "github_comment"
depends_on: ["review_code"]name: "Legacy Code Modernization"
nodes:
- id: "analyze_codebase"
type: "claude_agent"
config:
role: "architect"
prompt: "Analyze codebase structure and identify refactoring opportunities"
- id: "parallel_refactor"
type: "parallel_group"
children:
- id: "refactor_module_a"
type: "claude_agent"
- id: "refactor_module_b"
type: "claude_agent"
- id: "run_tests"
type: "test_runner"
- id: "generate_report"
type: "report_generator"- FileInput: Load files/directories
- GitInput: Fetch from repository
- APIInput: HTTP/webhook calls
- FileOutput: Save results
- NotificationOutput: Email/Slack/Discord
- ClaudeAgent: Execute prompts on Claude Code
- CodeAnalyzer: Static code analysis
- TestRunner: Test suite execution
- Transformer: Data manipulation (JSON, CSV, etc.)
- Conditional: If/else branching
- Loop: Iteration over collections
- Parallel: Parallel execution
- Wait: Delay or event waiting
- Merge: Merge multiple results
- GitHub: PR, Issues, Actions
- GitLab: MR, CI/CD
- Jira: Ticket management
- Database: Query/Update
- Custom: Custom scripts
server:
port: 3000
host: "0.0.0.0"
claude:
max_concurrent_agents: 5
timeout_seconds: 300
retry_attempts: 3
pipeline:
max_parallel_nodes: 10
default_timeout: 600
state_persistence: "postgresql"
storage:
type: "local"
bucket: "ccp-artifacts"
monitoring:
enabled: true
metrics_port: 9090- Real-time execution visualization
- Performance metrics per node
- Aggregated and searchable logs
- Alerts on errors or timeouts
- Execution history with replay
- Execution time per node/pipeline
- Tokens used per agent
- Success/failure rate
- Resource utilization
- Queue depth
- Authentication: OAuth2/SAML support
- Authorization: RBAC for pipelines and resources
- Secrets Management: Vault integration
- Audit Logging: Complete action tracking
- Sandboxing: Isolated agent execution
- Pipeline executor base
- Agent pool management
- State persistence
- Basic REST API
- React Flow integration
- Node library
- Drag & drop interface
- Pipeline validation
- Multi-agent orchestration
- Conditional logic
- Event triggers
- Template system
- GitHub/GitLab
- Cloud providers
- Monitoring tools
- Custom plugins API
- High availability
- Distributed execution
- Advanced security
- Compliance tools
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Discord: Join our server
- Email: support@claudecodepipeline.dev
Unlicense - see LICENSE for details
- Claude Code team for the excellent CLI
- ComfyUI for the UI/UX inspiration
- The open source community
Note: This project is in active development. API and features may change. For production, use stable tagged versions.
To start development with Claude Code:
# In project root
claude-code "Start implementing the base Pipeline Executor following the architecture described in the README. Begin with the Node.js backend structure and agent management system."Suggested prompts for incremental development:
- "Create the base project structure with Node.js backend and React frontend"
- "Implement the Pipeline Executor with support for sequential nodes"
- "Add the Agent Pool system to manage multiple Claude Code instances"
- "Develop the visual editor with React Flow to create pipelines graphically"
- "Implement the template system and pipeline persistence"