An open API service indexing awesome lists of open source software.

https://github.com/rohittcodes/claude-vs-codex


https://github.com/rohittcodes/claude-vs-codex

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# Claude vs Codex: AI Coding Comparison

A practical comparison between Claude Code and OpenAI Codex, testing their capabilities on real-world development tasks using Model Context Protocol (MCP) tools. Built with [Rube MCP](https://rube.composio.dev) by [Composio](https://composio.dev).

## Overview

This repository contains the complete code and results from a head-to-head comparison between two leading AI coding assistants:
- **Claude Code** (Sonnet 4) with native MCP support
- **OpenAI Codex** (GPT-5 Medium) with stdio-based MCP support

## Test Challenges

### 1. Figma UI Cloning (`claude-figma/` & `codex-figma/`)
**Task**: Recreate a complex landing page from Figma Community using Next.js + TypeScript + TailwindCSS v4

**Requirements**:
- Pixel-accurate fidelity
- Modular component structure
- Fully responsive design
- No inline styles or third-party UI libraries

**Results**:
- **Claude Code**: Better design structure but missed yellow theme
- **Codex**: Created original design, ignored Figma brief

### 2. Job Scheduler (`claude-scheduler/` & `codex-scheduler/`)
**Task**: Build a timezone-aware cron scheduler with persistence and catch-up execution

**Requirements**:
- Cron-style expressions (e.g., "0 9 * * 1" = every Monday at 9AM)
- Timezone awareness with IANA names
- SQLite/JSON persistence
- Catch-up execution for missed jobs
- Clean TypeScript interface

**Results**:
- **Claude Code**: Comprehensive solution with extensive documentation
- **Codex**: Concise, functional implementation

## MCP Setup

This comparison used **Rube MCP** (Universal MCP Server by Composio) for Figma integration.

### For Claude Code:
1. Visit [rube.composio.dev](https://rube.composio.dev/)
2. Click "Add to Claude Code"
3. Run the provided command
4. Authenticate with `/mcp`

### For Codex:
Requires a proxy layer for HTTP-based MCPs (stdio support only). See `rube-mcp-adapter-auth.js` in this repo.

## Key Findings

### Claude Code Strengths
- Better design fidelity with Figma (when following instructions)
- More comprehensive documentation and reasoning
- Production-ready code structure
- Educational value with detailed explanations

### Codex Strengths
- Faster raw generation (~2-3x speed)
- More cost-effective token usage
- Direct, concise solutions
- Good for rapid prototyping

### Cost Comparison
- **Claude Code**: Higher token usage due to detailed explanations
- **Codex**: More efficient, lower cost per task