Skip to content

This is an attempt at a robust, flexible conversion/compatibility layer for coding agents like Claude Code, OpenCode, Windsurf, Cursor, etc.

License

Notifications You must be signed in to change notification settings

AIntelligentTech/cross-agent-compatibility-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

CACE (Cross-Agent Compatibility Engine) v2.5.5

CI npm version License: MIT TypeScript Test Coverage

๐Ÿš€ Version-aware cross-agent compatibility tool with automatic agent detection!

Convert and validate AI agent components between 6 major agents: Claude Code, OpenCode, Cursor, Windsurf, OpenAI Codex, and Google Gemini with version compatibility knowledge and beautiful visual outputs.

Now integrated with Business OS v9.6+ for automatic cross-agent scaffolding generation.


โœจ What's New in v2.3.0

๐Ÿง™ Multi-Select Wizard Mode (NEW!)

The ultimate way to manage complex multi-agent operations with an intuitive arrow-key interface:

cace wizard

Wizard Features:

  • Multi-select interface - Navigate with โ†‘โ†“, select with space, confirm with enter
  • Four operation modes: install, convert, migrate, sync
  • Visual progress tracking - Real-time progress bars with ETA
  • Intelligent detection - Auto-detects source agents from directory contents
  • Configuration intelligence - Finds scattered configs and version conflicts

๐Ÿ“ Full Directory Conversion (NEW!)

Convert entire agent setups in one command:

# Convert all Claude skills to Codex
cace convert-dir ~/.claude --to codex --backup

# Preview changes with dry-run
cace convert-dir ./.claude --to gemini --dry-run

# Filter with patterns
cace convert-dir ~/.claude/skills --to opencode --include "*.md" --exclude "test*"

Directory Conversion Features:

  • Recursive processing - Handles nested subdirectories
  • Batch operations - Convert hundreds of files
  • Dry-run mode - Preview without modifying
  • Auto-backup - Creates .backup.<timestamp> files
  • Per-file fidelity - Individual scores and warnings

๐ŸŽฎ Interactive REPL Mode

The easiest way to use CACE - guided prompts, rich visuals, and zero learning curve:

cace interactive

๐Ÿค– 6 Agent Support

Supports all major AI coding agents:

  1. Claude Code - Rich skills with agent delegation
  2. OpenCode - Permission-based security model
  3. Cursor - .mdc rules and commands
  4. Windsurf - Skills, Workflows, and Cascade
  5. OpenAI Codex - MCP servers and approval policies
  6. Google Gemini CLI - Code execution and multi-directory

๐Ÿš€ Quick Start (4 Options)

Option 1: Multi-Select Wizard โญ RECOMMENDED FOR COMPLEX OPERATIONS

Perfect for multi-agent installations and batch conversions with an intuitive arrow-key interface:

# Install globally
npm install -g cace-cli

# Start the wizard
cace wizard
# Or use the shortcut
cace w

Wizard Modes:

  • Install - Multi-select agents to install with intelligent level detection
  • Convert - Convert entire scaffolding directories with visual progress
  • Migrate - Full migration with validation and conflict detection
  • Sync - Sync user and project configurations

Example wizard session:

? Select operation mode: [Use arrows, space to select, enter to confirm]
โฏโ—ฏ Install    - Fresh installation with multi-agent selection
 โ—‰ Convert    - Convert entire scaffolding directories
 โ—ฏ Migrate    - Migration with validation
 โ—ฏ Sync       - Sync user and project configurations

? Select source agents: [Use arrows, space to select, enter to confirm]
 โ—‰ claude    โœ“ 12 components found
 โ—ฏ opencode  โœ— No components found
 โ—ฏ cursor    โœ“ 3 components found
 โ—ฏ windsurf  โœ— No components found
 โ—‰ codex     โœ“ 8 components found
 โ—ฏ gemini    โœ— No components found

Option 2: Directory Conversion โญ FOR BULK OPERATIONS

Convert entire agent setups in one command:

# Convert all Claude skills to Codex with backup
cace convert-dir ~/.claude --to codex --backup

# Preview changes (dry-run)
cace convert-dir ./.claude --to gemini --dry-run --verbose

# Convert with filters
cace convert-dir ~/.claude/skills --to opencode --include "*.md" --exclude "test*"

Option 3: Interactive Mode โญ FOR GUIDED WORKFLOWS

The easiest way to start with guided prompts and visual feedback:

# Start interactive mode
cace interactive
# Or use the shortcut
cace i

Inside interactive mode:

cace> demo              # Run the guided tutorial
cace> convert my-skill.md   # Convert with visual guidance
cace> validate my-skill.md  # Validate interactively
cace> wizard            # Launch the multi-select wizard
cace> agents            # See all 6 supported agents
cace> help              # Show all commands

Option 4: Standard CLI (For Power Users)

Direct command-line usage with rich output:

# Convert with beautiful visual output
cace convert my-skill.md --to codex

# Validate with detailed report
cace validate my-skill.md --agent claude

# Check system with dashboard
cace doctor

Local Development

For contributing or testing:

# Clone the repository
git clone https://github.com/AIntelligentTech/cace-cli.git
cd cace-cli

# Install dependencies
npm install

# Run tests (428 tests passing!)
npm test

# Build and run locally
npm run build
node dist/cli/index.js wizard

๐Ÿ’ก Usage Examples

Converting Skills (Interactive Mode - Easiest!)

# Start interactive mode
cace interactive

# Then use guided prompts:
cace> convert .claude/skills/my-skill/SKILL.md
# ๐Ÿค– Select source agent: 1 (claude)
# ๐ŸŽฏ Select target agent: 5 (codex)
# โš ๏ธ  Proceed? yes

# Output shows:
# โœ… Conversion Complete
# ๐Ÿ“Š Fidelity Score: 92% [โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘]
# โš ๏ธ  Features Requiring Attention (2)
#    โ€ข context: fork not supported in Codex
# ๐Ÿ’ก Save now? yes

Converting Skills (CLI Mode - Fast!)

# Quick conversion
cace convert my-skill.md --to codex

# With optimization
cace convert my-skill.md --to gemini --optimize --risk high

# Batch conversion
cace convert .claude/skills/* --to opencode --output ./.opencode/

Validating Components

# Interactive validation (recommended)
cace interactive
cace> validate my-skill.md

# CLI validation with detailed report
cace validate my-skill.md --agent claude --strict

# Auto-detect agent
cace validate component.md

Installing Scaffolding

# Interactive installation
cace interactive
cace> install

# Or use CLI:
# Install all 6 agents
cace install all

# Install specific agents
cace install claude codex gemini

# Install at user level (global config)
cace install all --user

# Generate a new component
cace install claude --single my-skill --type skill

System Health Check

# Beautiful dashboard with 6ร—6 matrix
cace doctor

# Shows:
# - System compatibility checks
# - Agent configurations
# - Conversion fidelity matrix (all 6 agents!)
# - Personalized recommendations

๐Ÿ”„ Supported Conversions (All 30 Paths!)

From โ†’ To Fidelity Notes
Claude โ†’ OpenCode 98% โญ Native compatibility
Claude โ†’ Cursor 92% Tool restrictions approximated
Claude โ†’ Windsurf 87% Skills vs Workflows mapping
Claude โ†’ Codex 92% โญ NEW - Strong mapping
Claude โ†’ Gemini 88% โญ NEW - Good mapping
OpenCode โ†’ Claude 95% Excellent reverse
Cursor โ†’ Claude 90% Good .mdc mapping
Windsurf โ†’ Claude 85% Multi-level hooks handled
Codex โ†’ Claude 90% โญ NEW - Excellent reverse
Gemini โ†’ Claude 87% โญ NEW - Good reverse
Any โ†’ AGENTS.md 95% Universal format (recommended)

Average Fidelity: 91% across all 30 conversion paths!


๐Ÿ›ก๏ธ Risk Levels for Optimization

When optimizing conversions, choose your risk level:

Level Use Case Changes Made
--safe CI/CD, automation Syntax fixes only
--medium Production with review Best practices, defaults
--high Maximum fidelity Body rewrites, safety guardrails
--dangerous Prototyping Major restructuring

Recommendation:

  • New users: Use cace interactive (handles this automatically)
  • CI/CD: Use --safe for automation
  • Production: Use --high for manual conversions with review

๐ŸŽฎ Interactive Mode Deep Dive

Why Use Interactive Mode?

โœ… Zero Learning Curve - Guided prompts for every operation
โœ… Visual Feedback - Beautiful output with colors, emojis, and progress bars
โœ… Safety First - Warnings and confirmations before actions
โœ… Discoverability - Explore all features through the help system
โœ… Session Memory - Set defaults and preferences that persist

Interactive Commands Reference

cace interactive     # Start the REPL
cace i               # Shortcut alias

Available Commands:

  • convert [file] - Convert files with guided agent selection
  • validate [file] - Validate with interactive reporting
  • agents - Browse all 6 agents and their features
  • config - Configure verbose, strict, default agents
  • demo - Run the guided tutorial (great for first-time users!)
  • status - View current session status
  • disclaimer - Show important safety information
  • help or ? - Show available commands
  • clear - Clear the screen
  • quit, exit, or q - Exit interactive mode

Example Interactive Session

$ cace interactive

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘                CACE - Interactive Mode v2.3.0                โ•‘
โ•‘  Cross-Agent Compatibility Engine - 6 Agents + Wizard Mode   โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿš€ Welcome to CACE Interactive Mode!

Type 'help' for available commands or 'quit' to exit.

โš ๏ธ  IMPORTANT DISCLAIMER โš ๏ธ

โ€ข Conversions may lose agent-specific features
โ€ข Security settings (allowed-tools, sandbox modes) require manual review
โ€ข Always validate converted files before use
โ€ข Test in a safe environment first

cace> demo
๐ŸŽฎ Guided Demonstration

This demo will walk you through a typical conversion workflow.

Press Enter to start...

[Interactive demo continues with step-by-step guidance]

๐Ÿ“š Documentation

Getting Started

Development

Research & Analysis


๐Ÿงช Testing

# Run all tests (428 tests passing!)
npm test

# Run specific test file
bun test tests/codex-parser.test.ts

# Build and test
npm run build && npm test

# Check test coverage
npm run test:coverage

Test Metrics:

  • โœ… 428 tests passing (100%)
  • โœ… 899 expect() calls
  • โœ… 18 test files
  • โœ… ~147ms execution time
  • โœ… 85% code coverage

๐Ÿค Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Quick Contribute

# Fork and clone
git clone https://github.com/YOUR_USERNAME/cace-cli.git
cd cace-cli

# Install and test
npm install
npm test

# Make changes and commit
git checkout -b feature/my-feature
# ... make changes ...
npm test

git commit -m "feat: add new feature"
git push origin feature/my-feature

# Open Pull Request

๐Ÿ“Š Project Stats

  • Test Coverage: 85%
  • Test Pass Rate: 100% (428/428) โœ…
  • Agents Supported: 6 (Claude, OpenCode, Cursor, Windsurf, Codex, Gemini) โญ
  • Conversion Paths: 30 (6 agents ร— 5 targets each)
  • Component Types: 12
  • Lines of Code: ~14,000
  • TypeScript: 100% strict mode
  • License: MIT

๐Ÿ—บ๏ธ Roadmap

v2.1.x (Current)

  • โœ… Interactive REPL mode
  • โœ… 6 agent support (Codex, Gemini added)
  • โœ… Rich visual outputs
  • โœ… Safety disclaimers and guidance

v2.3.0 (Planned)

  • Plugin system for custom agents
  • Web interface for visual conversion
  • Batch operations with progress tracking
  • Import resolution and inlining

v2.3.0 (Planned)

  • Aider integration
  • Continue.dev support
  • Custom optimizer plugins
  • Performance optimizations

v3.0.0 (Future)

  • Real-time sync
  • AI-powered migration recommendations
  • Collaborative editing
  • Enterprise features

๐Ÿ› Bug Reports

Report bugs at GitHub Issues.

Include:

  • Description of the bug
  • Steps to reproduce
  • Expected vs actual behavior
  • Environment details (Node version, OS)
  • Minimal code example
  • Run cace doctor output

๐Ÿ’ฌ Community


๐Ÿ™ Acknowledgments

  • Anthropic - Claude Code and agent delegation concepts
  • OpenAI - Codex, MCP servers, and approval policies
  • Google - Gemini CLI and ADK
  • Exafunction - Windsurf and Cascade
  • Cursor - .mdc format and rule system
  • OpenCode - Permission-based security model
  • Community - Feedback, testing, and contributions

๐Ÿ“œ License

MIT ยฉ AIntelligent Tech


โญ Star us on GitHub if you find CACE useful! โญ

GitHub โ€ข npm โ€ข Quick Start โ€ข Changelog

About

This is an attempt at a robust, flexible conversion/compatibility layer for coding agents like Claude Code, OpenCode, Windsurf, Cursor, etc.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •