Skip to main content

A terminal-based coding agent for lightweight, asynchronous development tasks

Project description

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

Overview

This agent is built on OpenAI's codex-mini model 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

  • --model, -m <model> — OpenAI model (default: codex-mini-latest)
  • --repo-path <path> — Target repository (default: current directory)
  • --prompt, -p <text | -> — Headless mode prompt (- for stdin)

Testing

uv run pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oai_coding_agent-0.0.1a0.tar.gz (111.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oai_coding_agent-0.0.1a0-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file oai_coding_agent-0.0.1a0.tar.gz.

File metadata

  • Download URL: oai_coding_agent-0.0.1a0.tar.gz
  • Upload date:
  • Size: 111.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.18

File hashes

Hashes for oai_coding_agent-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 5aa4572a446d5ea176eeb9818fd584e017b7e26c302264c9a109e5ca7acc71d7
MD5 d42fa1ea4020a08da5fc4223606a54f0
BLAKE2b-256 874be56b1bc7071fbceebd1af957f28d95140b6afe7e69110ec625de3242ea15

See more details on using hashes here.

File details

Details for the file oai_coding_agent-0.0.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for oai_coding_agent-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 863f31edcd8fd83038fb9132d85e4571ac6d3b8f0599fea6285ac4b50f2d8803
MD5 adde6ee0782c151d7806e0de6374e44b
BLAKE2b-256 c029bfddfb4724e453740c0226f49d987bdab32d24ae8b55f5cc7cc209e65900

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page