swe-agent[bot] 3ef288bfaa feat: implement enterprise workflow with multi-backend support
## Overview
Complete implementation of enterprise-level workflow features including
multi-backend execution (Codex/Claude/Gemini), GitHub issue-to-PR automation,
hooks system, and comprehensive documentation.

## Major Changes

### 1. Multi-Backend Support (codeagent-wrapper)
- Renamed codex-wrapper → codeagent-wrapper
- Backend interface with Codex/Claude/Gemini implementations
- Multi-format JSON stream parser (auto-detects backend)
- CLI flag: --backend codex|claude|gemini (default: codex)
- Test coverage: 89.2%

**Files:**
- codeagent-wrapper/backend.go - Backend interface
- codeagent-wrapper/parser.go - Multi-format parser
- codeagent-wrapper/config.go - CLI parsing with backend selection
- codeagent-wrapper/executor.go - Process execution
- codeagent-wrapper/logger.go - Async logging
- codeagent-wrapper/utils.go - Utilities

### 2. GitHub Workflow Commands
- /gh-create-issue - Create structured issues via guided dialogue
- /gh-implement - Issue-to-PR automation with full dev lifecycle

**Files:**
- github-workflow/commands/gh-create-issue.md
- github-workflow/commands/gh-implement.md
- skills/codeagent/SKILL.md

### 3. Hooks System
- UserPromptSubmit hook for skill activation
- Pre-commit example with code quality checks
- merge_json operation in install.py for settings.json merging

**Files:**
- hooks/skill-activation-prompt.sh|.js
- hooks/pre-commit.sh
- hooks/hooks-config.json
- hooks/test-skill-activation.sh

### 4. Skills System
- skill-rules.json for auto-activation
- codeagent skill for multi-backend wrapper

**Files:**
- skills/skill-rules.json
- skills/codeagent/SKILL.md
- skills/codex/SKILL.md (updated)

### 5. Installation System
- install.py: Added merge_json operation
- config.json: Added "gh" module
- config.schema.json: Added op_merge_json schema

### 6. CI/CD
- GitHub Actions workflow for testing and building

**Files:**
- .github/workflows/ci.yml

### 7. Comprehensive Documentation
- Architecture overview with ASCII diagrams
- Codeagent-wrapper complete usage guide
- GitHub workflow detailed examples
- Hooks customization guide

**Files:**
- docs/architecture.md (21KB)
- docs/CODEAGENT-WRAPPER.md (9KB)
- docs/GITHUB-WORKFLOW.md (9KB)
- docs/HOOKS.md (4KB)
- docs/enterprise-workflow-ideas.md
- README.md (updated with doc links)

## Test Results
- All tests passing 
- Coverage: 89.2%
- Security scan: 0 issues (gosec)

## Breaking Changes
- codex-wrapper renamed to codeagent-wrapper
- Default backend: codex (documented in README)

## Migration Guide
Users with codex-wrapper installed should:
1. Run: python3 install.py --module dev --force
2. Update shell aliases if any

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-09 15:53:31 +08:00
2025-12-02 15:50:49 +08:00
2025-12-05 10:28:18 +08:00

Claude Code Multi-Agent Workflow System

Run in Smithery

License: MIT Claude Code Version

AI-powered development automation with Claude Code + Codex collaboration

Core Concept: Claude Code + Codex

This system leverages a dual-agent architecture:

Role Agent Responsibility
Orchestrator Claude Code Planning, context gathering, verification, user interaction
Executor Codex Code editing, test execution, file operations

Why this separation?

  • Claude Code excels at understanding context and orchestrating complex workflows
  • Codex excels at focused code generation and execution
  • Together they provide better results than either alone

Quick Start

git clone https://github.com/cexll/myclaude.git
cd myclaude
python3 install.py --install-dir ~/.claude

Workflows Overview

The primary workflow for most development tasks.

/dev "implement user authentication with JWT"

6-Step Process:

  1. Requirements Clarification - Interactive Q&A to clarify scope
  2. Codex Deep Analysis - Codebase exploration and architecture decisions
  3. Dev Plan Generation - Structured task breakdown with test requirements
  4. Parallel Execution - Codex executes tasks concurrently
  5. Coverage Validation - Enforce ≥90% test coverage
  6. Completion Summary - Report with file changes and coverage stats

Key Features:

  • Claude Code orchestrates, Codex executes all code changes
  • Automatic task parallelization for speed
  • Mandatory 90% test coverage gate
  • Rollback on failure

Best For: Feature development, refactoring, bug fixes with tests


2. BMAD Agile Workflow

Full enterprise agile methodology with 6 specialized agents.

/bmad-pilot "build e-commerce checkout system"

Agents:

Agent Role
Product Owner Requirements & user stories
Architect System design & tech decisions
Tech Lead Sprint planning & task breakdown
Developer Implementation
Code Reviewer Quality assurance
QA Engineer Testing & validation

Process:

Requirements → Architecture → Sprint Plan → Development → Review → QA
     ↓              ↓             ↓            ↓          ↓       ↓
   PRD.md      DESIGN.md     SPRINT.md     Code      REVIEW.md  TEST.md

Best For: Large features, team coordination, enterprise projects


3. Requirements-Driven Workflow

Lightweight requirements-to-code pipeline.

/requirements-pilot "implement API rate limiting"

Process:

  1. Requirements generation with quality scoring
  2. Implementation planning
  3. Code generation
  4. Review and testing

Best For: Quick prototypes, well-defined features


4. Development Essentials

Direct commands for daily coding tasks.

Command Purpose
/code Implement a feature
/debug Debug an issue
/test Write tests
/review Code review
/optimize Performance optimization
/refactor Code refactoring
/docs Documentation

Best For: Quick tasks, no workflow overhead needed

Enterprise Workflow Features

  • Multi-backend execution: codeagent-wrapper --backend codex|claude|gemini (default codex) so you can match the model to the task without changing workflows.
  • GitHub workflow commands: /gh-create-issue "short need" creates structured issues; /gh-implement 123 pulls issue #123, drives development, and prepares the PR.
  • Skills + hooks activation: .claude/hooks run automation (tests, reviews), while .claude/skills/skill-rules.json auto-suggests the right skills. Keep hooks enabled in .claude/settings.json to activate the enterprise workflow helpers.

Installation

# Install all enabled modules (dev + essentials by default)
python3 install.py --install-dir ~/.claude

# Install specific module
python3 install.py --module dev

# List available modules
python3 install.py --list-modules

# Force overwrite existing files
python3 install.py --force

Available Modules

Module Default Description
dev ✓ Enabled Dev workflow + Codex integration
essentials ✓ Enabled Core development commands
bmad Disabled Full BMAD agile workflow
requirements Disabled Requirements-driven workflow

What Gets Installed

~/.claude/
├── CLAUDE.md              # Core instructions and role definition
├── commands/              # Slash commands (/dev, /code, etc.)
├── agents/                # Agent definitions
├── skills/
│   └── codex/
│       └── SKILL.md       # Codex integration skill
└── installed_modules.json # Installation status

Configuration

Edit config.json to customize:

{
  "version": "1.0",
  "install_dir": "~/.claude",
  "modules": {
    "dev": {
      "enabled": true,
      "operations": [
        {"type": "merge_dir", "source": "dev-workflow"},
        {"type": "copy_file", "source": "memorys/CLAUDE.md", "target": "CLAUDE.md"},
        {"type": "copy_file", "source": "skills/codex/SKILL.md", "target": "skills/codex/SKILL.md"},
        {"type": "run_command", "command": "bash install.sh"}
      ]
    }
  }
}

Operation Types:

Type Description
merge_dir Merge subdirs (commands/, agents/) into install dir
copy_dir Copy entire directory
copy_file Copy single file to target path
run_command Execute shell command

Codex Integration

The codex skill enables Claude Code to delegate code execution to Codex CLI.

Usage in Workflows

# Codex is invoked via the skill
codeagent-wrapper - <<'EOF'
implement @src/auth.ts with JWT validation
EOF

Parallel Execution

codeagent-wrapper --parallel <<'EOF'
---TASK---
id: backend_api
workdir: /project/backend
---CONTENT---
implement REST endpoints for /api/users

---TASK---
id: frontend_ui
workdir: /project/frontend
dependencies: backend_api
---CONTENT---
create React components consuming the API
EOF

Install Codex Wrapper

# Automatic (via dev module)
python3 install.py --module dev

# Manual
bash install.sh

Workflow Selection Guide

Scenario Recommended Workflow
New feature with tests /dev
Quick bug fix /debug or /code
Large multi-sprint feature /bmad-pilot
Prototype or POC /requirements-pilot
Code review /review
Performance issue /optimize

Troubleshooting

Common Issues

Codex wrapper not found:

# Check PATH
echo $PATH | grep -q "$HOME/bin" || echo 'export PATH="$HOME/bin:$PATH"' >> ~/.zshrc

# Reinstall
bash install.sh

Permission denied:

python3 install.py --install-dir ~/.claude --force

Module not loading:

# Check installation status
cat ~/.claude/installed_modules.json

# Reinstall specific module
python3 install.py --module dev --force

Documentation

Core Guides

Additional Resources


License

MIT License - see LICENSE

Support


Claude Code + Codex = Better Development - Orchestration meets execution.

Description
Claude Code and Codex orchestration workflow
Readme AGPL-3.0 9.2 MiB
Languages
Go 74.8%
Python 10.8%
JavaScript 6.6%
Shell 5.3%
Batchfile 1.3%
Other 1.2%