Contributing to codex-collab

March 1, 2026 ยท View on GitHub

Prerequisites

Development Setup

git clone https://github.com/Kevin7Qi/codex-collab.git
cd codex-collab
bun install
./install.sh --dev    # symlink for live iteration

On Windows (PowerShell):

powershell -ExecutionPolicy Bypass -File install.ps1 -Dev

Running Tests

bun test              # run all tests (integration tests are skipped by default)
bun run typecheck     # type checking

RUN_INTEGRATION=1 bun test   # include integration tests (requires codex CLI + credentials)

All tests must pass and type checking must be clean before submitting a PR.

Code of Conduct

This project follows the Contributor Covenant code of conduct.

Architecture

The codebase is organized into focused modules:

FilePurpose
src/cli.tsCLI commands, argument parsing, output formatting
src/protocol.tsJSON-RPC client for Codex app server
src/threads.tsThread lifecycle, short ID mapping
src/turns.tsTurn lifecycle, event wiring
src/events.tsEvent dispatcher, log writer
src/approvals.tsApproval handler abstraction
src/types.tsProtocol types
src/config.tsConfiguration constants

Pull Requests

  • Keep PRs focused โ€” one feature or fix per PR
  • Run bun test and bun run typecheck before submitting
  • Write tests for new functionality
  • Follow existing code style and patterns