Skip to content

zapabob/codex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codex - AI-Native OS with 4D Git Visualization & VR/AR Support

Codex v2.0.0

v2.0.0 "Quantum Leap" - The World's First AI-Native Operating System

Version npm Rust License CUDA VR AR

English | 日本語


📖 English

🎉 What's New in v2.0.0 "Quantum Leap"

Release Date: November 6, 2025
Milestone: AI-Native OS with Kernel Integration

🌟 Revolutionary Features

🎯 Plan Mode (Blueprint→Plan Migration) - Complete renaming and enhancement

  • CLI: codex plan commands (create, list, execute, approve)
  • Execution strategies: Single / Orchestrated / Competition
  • Budget management with cost estimation
  • State persistence and resume capability

🌌 4D Git Visualization (xyz+t) - Surpassing Kamui4D

  • Terminal UI: 3D ASCII visualization with time axis
  • GUI (Tauri): Three.js-powered interactive 3D
  • CUDA-accelerated: 100,000+ commits in 0.05s
  • Real-time playback with timeline control
  • Heatmap visualization (commit frequency)
  • Dependency graph (node clustering)

🥽 VR/AR Support - Immersive code exploration

  • Meta Quest 2: WebXR, Controller-optimized, 90Hz
  • Meta Quest 3: Hand tracking, Color passthrough
  • Meta Quest Pro: Eye tracking, Face tracking
  • Apple Vision Pro: visionOS, RealityKit, Spatial Computing
  • SteamVR: Virtual Desktop integration

🔧 OS Kernel Integration - Deep system integration

  • Linux kernel modules: AI Scheduler, AI Memory, AI GPU
  • Windows kernel driver: WDM/KMDF, ETW tracing
  • eBPF monitoring: Real-time performance metrics
  • Direct GPU DMA control

⚡ CUDA Runtime - GPU acceleration everywhere

  • Git analysis: 100x faster
  • 3D rendering: Real-time 60fps
  • LLM inference: (Coming in v2.1.0)
  • Multi-GPU support: (Roadmap)

🤖 Enhanced Sub-Agent System - 8+ specialized agents

  • Parallel execution: 2.6x faster
  • Collaboration store: Agent communication
  • Conflict resolution: 3 merge strategies
  • Custom agent creation: YAML-driven

🔍 Deep Research Engine - Multi-source validation

  • 15+ MCP servers integrated
  • Citation management
  • Contradiction detection
  • 45x faster with caching

📦 Installation

Option 1: npm (Recommended)

# Install globally
npm install -g @zapabob/codex-cli

# Verify installation
codex --version  # codex-cli 2.0.0

Option 2: Cargo (From source)

# Prerequisites
rustup install stable
cargo install just

# Clone repository
git clone https://github.com/zapabob/codex.git
cd codex/codex-rs

# Build and install
cargo build --release -p codex-cli
cargo install --path cli --force

# Verify
codex --version

Option 3: Binary releases

Download pre-built binaries from GitHub Releases:

  • Windows: codex-windows-x64.exe
  • macOS: codex-macos-x64 (Intel), codex-macos-arm64 (Apple Silicon)
  • Linux: codex-linux-x64

🚀 Quick Start

1. Basic AI Coding

# Interactive TUI
codex

# Non-interactive execution
codex exec "Add error handling to main.rs"

# Resume last session
codex resume --last

2. Plan Mode (New in v2.0.0)

# Create a plan
codex plan create "Implement user authentication" \
  --mode=orchestrated \
  --budget-tokens=50000

# List plans
codex plan list

# Approve and execute
codex plan approve <plan-id>
codex plan execute <plan-id>

3. Sub-Agent Delegation

# Single agent
codex delegate code-reviewer --scope ./src

# Parallel agents (2.6x faster)
codex delegate-parallel code-reviewer,test-gen \
  --scopes ./src,./tests

4. Git 4D Visualization

# Terminal UI (3D+time)
codex git-analyze --cuda

# GUI (Three.js)
codex-gui  # Tauri app

# VR mode (Quest 2/3/Pro)
# Open in browser and click "Enter VR"
open http://localhost:3000/git-vr

5. Deep Research

# Research with citations
codex research "Rust async best practices" \
  --depth 3 \
  --strategy comprehensive

# Output: Markdown report with sources

🎮 VR/AR Setup

Meta Quest 2/3/Pro

  1. Enable Developer Mode

    • Install Meta Quest app on phone
    • Go to Settings → Developer → Enable
  2. Install Codex VR App

    # Build WebXR app
    cd codex/codex-rs/tauri-gui
    npm install
    npm run build
    
    # Start local server
    npm run serve
  3. Access in Quest

    • Open browser in Quest
    • Navigate to http://YOUR_PC_IP:3000/git-vr
    • Click "Enter VR" button

Apple Vision Pro

  1. Install visionOS app

    # Build visionOS app (macOS only)
    cd codex-visionos
    xcodebuild -scheme CodexVision
    
    # Install via TestFlight or Xcode
  2. Pair with Mac

    • Enable Spatial Computing
    • Connect to Codex server

🏗️ Architecture Overview

Codex v2.0.0 Architecture

┌─────────────────────────────────────────────────────┐
│  VR/AR Layer: Quest 2/3/Pro, Vision Pro, SteamVR    │
├─────────────────────────────────────────────────────┤
│  UI Layer: CLI, TUI, Tauri GUI, VSCode Extension    │
├─────────────────────────────────────────────────────┤
│  Application: Codex Core (Rust), Plan Orchestrator  │
├─────────────────────────────────────────────────────┤
│  AI Layer: 8+ Sub-Agents, Deep Research, MCP (15+)  │
├─────────────────────────────────────────────────────┤
│  Integration: Kernel FFI, CUDA Runtime, WebXR       │
├─────────────────────────────────────────────────────┤
│  Kernel: Linux modules, Windows driver, eBPF        │
├─────────────────────────────────────────────────────┤
│  Hardware: CPU (16+ cores), GPU (CUDA 12), VR/AR HMD│
└─────────────────────────────────────────────────────┘

📚 Documentation


🔧 Configuration

# ~/.codex/config.toml
model = "gpt-5-codex"

[sandbox]
default_mode = "read-only"

[approval]
policy = "on-request"

[gpu]
cuda_enabled = true
device_id = 0

[vr]
enabled = true
default_device = "quest3"  # quest2, quest3, questpro, visionpro
refresh_rate = 90  # Hz

🧪 Testing

# Run all tests
cd codex-rs
cargo test --all-features

# Specific crate
cargo test -p codex-core

# Coverage report
cargo tarpaulin --all-features --out Html

🤝 Contributing

We welcome contributions! Please read CONTRIBUTING.md.

Development workflow:

# Setup
git clone https://github.com/zapabob/codex.git
cd codex/codex-rs

# Install tools
cargo install just
cargo install cargo-insta
cargo install sccache

# Build with sccache
export RUSTC_WRAPPER=sccache
cargo build --release

# Run tests
cargo test

# Format code
just fmt

# Fix lints
just fix

📊 Performance Benchmarks

Metric v1.0.0 v2.0.0 Improvement
Git analysis (CUDA) 5s 0.05s 100x
Sub-agent parallel 1.0x 2.6x 160%
Deep research (cache) 1.0x 45x 4500%
TUI rendering 30fps 60fps 200%
4D visualization N/A 60fps New
VR rendering (Quest 2) N/A 90fps New

🗺️ Roadmap

  • v2.0.0 (Nov 2025): Plan mode, Git 4D viz, VR basic (Quest 2) ✅
  • v2.1.0 (Jan 2026): GPU LLM inference, CI/CD, Quest 3/Pro full support
  • v2.2.0 (Mar 2026): Cost dashboard, Vision Pro, SteamVR
  • v2.3.0 (Jun 2026): Agent learning, Distributed orchestration
  • v3.0.0 (2026): Full distributed P2P agents, Quantum computing

📜 License

Apache License 2.0 - See LICENSE

🙏 Acknowledgments


📖 日本語

🎉 v2.0.0 "Quantum Leap" の新機能

リリース日: 2025年11月6日
マイルストーン: カーネル統合型AI-Native OS

🌟 革命的機能

🎯 プランモード (Blueprint→Plan移行完了)

  • CLIコマンド: codex plan (create, list, execute, approve)
  • 実行戦略: 単一/中央集権型/コンペ型
  • 予算管理とコスト推定
  • 状態永続化とレジューム機能

🌌 4次元Git可視化 (xyz+時刻軸) - Kamui4D超え

  • TUI: 3D ASCII可視化+時刻軸
  • GUI (Tauri): Three.jsインタラクティブ3D
  • CUDA加速: 100,000+コミットを0.05秒で解析
  • リアルタイム再生(タイムラインスライダー)
  • ヒートマップ可視化(コミット頻度)
  • 依存関係グラフ(ノードクラスタリング)

🥽 VR/AR対応 - 没入型コード探索

  • Meta Quest 2: WebXR、コントローラー最適化、90Hz
  • Meta Quest 3: ハンドトラッキング、カラーパススルー
  • Meta Quest Pro: アイトラッキング、フェイストラッキング
  • Apple Vision Pro: visionOS、RealityKit、空間コンピューティング
  • SteamVR: Virtual Desktop統合

🔧 OSカーネル統合 - 深いシステム統合

  • Linuxカーネルモジュール: AIスケジューラー、AIメモリ、AI GPU
  • Windowsカーネルドライバー: WDM/KMDF、ETWトレーシング
  • eBPFモニタリング: リアルタイム性能メトリクス
  • GPU DMA直接制御

⚡ CUDAランタイム - あらゆる場面でGPU加速

  • Git解析: 100倍高速化
  • 3D描画: リアルタイム60fps
  • LLM推論: (v2.1.0で実装予定)
  • マルチGPU: (ロードマップ)

🤖 強化されたサブエージェントシステム - 8種類以上の専門エージェント

  • 並列実行: 2.6倍高速化
  • コラボレーションストア: エージェント間通信
  • コンフリクト解決: 3種類のマージ戦略
  • カスタムエージェント作成: YAML駆動

🔍 Deep Researchエンジン - マルチソース検証

  • 15+ MCPサーバー統合
  • 引用管理
  • 矛盾検出
  • キャッシュで45倍高速化

📦 インストール方法

オプション1: npm(推奨)

# グローバルインストール
npm install -g @zapabob/codex-cli

# インストール確認
codex --version  # codex-cli 2.0.0

# 初期設定
codex login  # API key設定

システム要件:

  • Node.js 18+ (npm使用時)
  • Windows 10/11, macOS 12+, Ubuntu 20.04+
  • 8GB RAM (推奨: 16GB+)
  • NVIDIA GPU (CUDA 12.x) - オプション

オプション2: Cargo(ソースから)

# 前提条件
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup install stable
cargo install just

# リポジトリクローン
git clone https://github.com/zapabob/codex.git
cd codex/codex-rs

# sccache導入(ビルド高速化)
cargo install sccache
export RUSTC_WRAPPER=sccache

# ビルド&インストール
cargo build --release -p codex-cli --jobs 12
cargo install --path cli --force

# 確認
codex --version

ビルド時間:

  • 初回: 15-20分 (sccache使用)
  • 差分: 1-3分

オプション3: バイナリ

GitHub Releases からダウンロード:

  • Windows: codex-windows-x64.exe (30MB)
  • macOS: codex-macos-x64 (35MB), codex-macos-arm64 (32MB)
  • Linux: codex-linux-x64 (28MB)
# Linux/macOS
chmod +x codex-*
sudo mv codex-* /usr/local/bin/codex

# Windows
# codex-windows-x64.exeをC:\Program Files\Codex\に配置
# 環境変数PATHに追加

🎮 VR/ARセットアップ

Meta Quest 2/3/Pro

ステップ1: 開発者モード有効化

  1. Meta Questアプリ(スマホ)をインストール
  2. 設定 → 開発者 → 開発者モードON

ステップ2: Codex VRアプリ起動

# Tauri GUIビルド
cd codex/codex-rs/tauri-gui
npm install
npm run build

# ローカルサーバー起動
npm run serve
# → http://192.168.x.x:3000 で起動

ステップ3: Questブラウザでアクセス

  1. Quest内でブラウザ起動
  2. PCのIPアドレスに接続: http://192.168.x.x:3000/git-vr
  3. 「Enter VR」ボタンをクリック

操作方法:

  • Quest 2:

    • 左スティック: 移動
    • 右スティック: 回転
    • トリガー: ノード選択
    • グリップ: タイムラインスクラブ
  • Quest 3/Pro:

    • ハンドトラッキング: ピンチ→選択
    • 手のひら: メニュー表示
    • コントローラーも利用可能

Apple Vision Pro

# visionOSアプリビルド (macOS必須)
cd codex-visionos
open CodexVision.xcodeproj

# Xcodeでビルド → Vision Proへインストール

SteamVR(PCVR)

# Virtual Desktop使用
# Quest側: Virtual Desktopアプリ起動
# PC側: Virtual Desktop Streamerインストール

# SteamVR起動
steam://run/250820

# Codex VRアプリ起動
codex-vr.exe

🛠️ 設定ファイル詳細

~/.codex/config.toml

# モデル設定
model = "gpt-5-codex"

[model_providers.openai]
base_url = "https://api.openai.com/v1"
env_key = "OPENAI_API_KEY"

# サンドボックス
[sandbox]
default_mode = "read-only"  # read-only, workspace-write, danger-full-access

[approval]
policy = "on-request"  # never, on-failure, on-request, untrusted

# GPU設定
[gpu]
cuda_enabled = true
device_id = 0  # RTX 3080
memory_fraction = 0.8  # VRAM使用率

# VR/AR設定
[vr]
enabled = true
default_device = "quest3"  # quest2, quest3, questpro, visionpro, steamvr
refresh_rate = 90  # Hz (Quest 2: 90, Quest 3: 120)
passthrough_enabled = true  # Quest 3+ only
hand_tracking = true  # Quest 3/Pro

# 可視化設定
[visualization]
max_commits = 100000  # 最大コミット数
cuda_acceleration = true
fps_target = 60
node_detail_level = "high"  # low, medium, high

# Plan mode
[plan]
data_directory = "~/.codex/plans/"
default_mode = "orchestrated"
default_budget_tokens = 100000
default_budget_time_minutes = 30

📖 使用例

例1: コードレビュー

# サブエージェントに委任
codex delegate code-reviewer \
  --scope ./src \
  --output ./review-report.md

# マルチエージェント並列実行
codex delegate-parallel \
  code-reviewer,sec-audit,test-gen \
  --scopes ./src,./src,./tests

例2: Git 4D可視化

# TUI(ターミナル)
codex git-analyze \
  --cuda \
  --commits 100000 \
  --time-range "2024-01-01..2025-11-06"

# GUI(Tauri)
codex-gui
# → Git Visualizationタブ選択

# VR(Quest 3)
# ブラウザで http://PC_IP:3000/git-vr
# → Enter VRボタン

例3: プラン実行

# プラン作成
codex plan create "Add authentication system" \
  --mode=competition \
  --budget-tokens=200000

# 出力: plan-abc123.json

# 承認
codex plan approve plan-abc123

# 実行(3つのworktreeで並列)
codex plan execute plan-abc123

# 進捗確認
codex plan status plan-abc123

# 実行ログ
codex plan executions --plan-id plan-abc123

🔬 技術仕様

システム要件

最小要件:

  • CPU: x64, 4コア
  • RAM: 8GB
  • Storage: 10GB
  • OS: Windows 10, macOS 12, Ubuntu 20.04

推奨要件:

  • CPU: x64, 16+コア
  • RAM: 32GB+
  • GPU: NVIDIA RTX 3080+ (CUDA 12.x)
  • Storage: NVMe SSD 50GB+
  • VR: Meta Quest 3 or Vision Pro

サポートプラットフォーム

Platform Status Notes
Windows 11 ✅ Full Kernel driver, CUDA, VR
Windows 10 ✅ Full Requires updates
macOS 14+ ✅ Full Apple Silicon, Vision Pro
Ubuntu 22.04+ ✅ Full Kernel modules, CUDA
Arch Linux ⚠️ Beta Manual kernel module
FreeBSD ❌ Planned v3.0.0

VR/AR デバイス

Device Resolution Refresh Hand Tracking Status
Quest 2 1832x1920/eye 90Hz ✅ Supported
Quest 3 2064x2208/eye 120Hz ✅ Supported
Quest Pro 1800x1920/eye 90Hz ✅ Supported
Vision Pro 3660x3200/eye 96Hz 🔄 In Progress
SteamVR Varies Varies Device-dependent 🔄 Planned

📅 変更履歴(時系列)

v2.0.0 (2025-11-06) - "Quantum Leap"

🎯 Major Changes:

  • Blueprint → Plan完全移行: 全コマンド、構造体、ドキュメント更新
  • Git 4D可視化: xyz+時刻軸の4次元表現
  • VR基本対応: Quest 2 WebXR実装
  • Tauri GUI強化: Three.js統合
  • カーネル統合: Linux/Windows深化

Breaking Changes:

  • codex blueprintcodex plan
  • データディレクトリ: ~/.codex/blueprints/~/.codex/plans/
  • 後方互換性なし(移行スクリプト提供)

詳細: CHANGELOG.md

v1.0.0 (2025-11-02) - "Spectrum"

  • サブエージェントシステム
  • Deep Research Engine
  • 多言語/review
  • Webhook統合

v0.52.0 (2025-10-15)

  • CUDA Runtime初版
  • Windows AIカーネル統合
  • Plan mode Phase 1

🏆 ベンチマーク

Git解析性能(CUDA RTX 3080):

コミット数    CPU時間   GPU時間   高速化率
10,000       0.5s     0.005s    100x
100,000      5.0s     0.050s    100x
1,000,000    50.0s    0.500s    100x

サブエージェント並列実行:

タスク数   逐次実行   並列実行   高速化率
1         10.0s     10.0s     1.0x
2         20.0s     12.0s     1.67x
4         40.0s     15.2s     2.63x
8         80.0s     30.4s     2.63x

🎯 今後の実装方針

詳細は 改善ロードマップ 参照

v2.0.0必須:

  1. ✅ Plan mode完全移行
  2. 🔄 Git 4D可視化(実装中)
  3. 🔄 VR基本対応(Quest 2)
  4. 🔄 npmパッケージ化

v2.1.0目標:

  1. GPU LLM推論(TensorRT/vLLM)
  2. CI/CD完全構築
  3. Quest 3/Pro完全対応
  4. テストカバレッジ80%

評価の芳しくない部分:

  • CUDA LLM推論未実装 → v2.1.0で対応
  • CI/CDパイプライン不在 → v2.1.0で構築
  • テストカバレッジ60%未満 → v2.1.0で80%達成
  • Vision Pro対応未完成 → v2.1.0-v2.2.0で完成

📧 コンタクト


🌟 スターお願いします!

もしCodexが役に立ったら、GitHubでスターをお願いします!⭐

GitHub stars


Built with ❤️ by @zapabob | Based on OpenAI/codex

About

Lightweight coding agent that runs in your terminal

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 89.2%
  • TypeScript 5.6%
  • Python 2.3%
  • PowerShell 0.8%
  • Shell 0.7%
  • HTML 0.7%
  • Other 0.7%