Skip to main content

OAI Coding Agent

A terminal-based coding agent designed for lightweight, asynchronous development tasks. Unlike traditional coding agents that require constant steering, this agent can work independently or collaboratively, enabling developers to run entire agent fleets for parallel development workflows.

Status: Work in progress, not yet stable.

Getting Started

uv tool install oai-coding-agent

Navigate to your project

cd your-projects-repo

Start the agent

oai
oai --help
oai -p "tell me what you can do in 2-3 sentences"

Overview

This agent uses OpenAI models (default: gpt-5) and supports three distinct modes that enable a progressive trust-building journey:

  1. Default Mode - Interactive agent that checks in when decisions are needed
  2. Async Mode - Fully autonomous agent that completes tasks independently
  3. Plan Mode - Read-only brainstorming mode to create tasks for agent fleets

Features

  • Agent Fleets - Run multiple agents in parallel using git worktrees locally or GitHub runners in CI
  • Progressive Workflow - Start interactive, build trust, then scale to autonomous agent fleets
  • Environment Integration - Automatically loads .env files from your project directory
  • MCP Support - Leverages Model Context Protocol for enhanced tool capabilities

The Progressive Workflow

Most developers follow this natural progression:

  1. Start with Default Mode - Get familiar with the agent's capabilities and build trust through interactive sessions
  2. Scale with Multiple Agents - Run parallel agents using git worktrees for independent tasks
  3. Deploy Agent Fleets - Use plan mode to design workflows, then spawn agents on GitHub runners for automated PR generation

Installation

1. Clone and install

git clone https://github.com/MattMorgis/oai-coding-agent.git
cd oai-coding-agent
uv venv

Usage

Navigate to any codebase and run:

oai [OPTIONS]

Configure your environment

The agent will automatically load environment variables from your project's .env file. At minimum, you'll need:

# In your project directory (not the agent's directory)
echo "OPENAI_API_KEY=your-key-here" >> .env

Optional variables:

  • OPENAI_BASE_URL - Custom OpenAI API endpoint

Agent Modes

Default Mode (Interactive)

The agent works alongside you, checking in when decisions are needed:

oai  # or explicitly: oai --mode default

Async Mode (Autonomous)

The agent completes tasks independently, documenting assumptions and alternatives:

oai --mode async --prompt "Add error handling to all API endpoints"

Plan Mode (Brainstorming)

Read-only mode for designing tasks that async agents can execute:

oai --mode plan

Running Agent Fleets

Local Fleet with Git Worktrees

# Create worktrees for parallel development
git worktree add -b feature-1 ../agent-1
git worktree add -b feature-2 ../agent-2

# Run agents in each worktree
cd ../agent-1 && oai --mode async --prompt "Implement user authentication"
cd ../agent-2 && oai --mode async --prompt "Add API rate limiting"

GitHub Runner Fleet

  1. Use plan mode to create independent tasks
  2. Agents spawn on GitHub runners
  3. Review PRs in 5-20 minutes

Common Options

  • --version, -v — Show the version and exit

  • --model, -m <model> — OpenAI model (default: gpt-5)

  • --repo-path <path> — Target repository (default: current directory)

  • --prompt, -p <text | -> — Headless mode prompt (- for stdin)

Testing

uv run pytest

Release files for oai-coding-agent 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oai-coding-agent 0.0.4
File Size Uploaded
oai_coding_agent-0.0.4.tar.gz 117.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oai-coding-agent 0.0.4
File Interpreter ABI Platform
oai_coding_agent-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 168.9 kB

Release files / oai_coding_agent-0.0.4.tar.gz

Download URL oai_coding_agent-0.0.4.tar.gz
Size 117.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e5eaa79d210edc067b59ab4c2cce40160f29d4fcf123ed40d2a16788e755528e
BLAKE2b-256 checksum
How to use checksums
a1a831643f3c2866f560bce02765f05b7847d9025e72adbcde6c7f398b024904
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.8.8

Release files / oai_coding_agent-0.0.4-py3-none-any.whl

Download URL oai_coding_agent-0.0.4-py3-none-any.whl
Size 51.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01ff887b20bacef03acb993d3c189444e8f91a8f1638a16bb1f9e5c627c1ef85
BLAKE2b-256 checksum
How to use checksums
13e4b998751f145a8355a66d8e9dd716736f7594b34067064c28f94edc832168
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.8.8

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page