Skip to main content

Deterministic loop-driven Codex CLI orchestration for project delivery.

Project description

Project Agent Framework

project-agent-framework is a Python package and CLI for running a deterministic Codex loop against a target repository. The intended distribution model is PyPI:

pip install project-agent-framework

It exposes the project-agent command.

This repository's own PRD.md describes the framework itself. When you use the tool on your own project, you point it at your project's own PRD and TODO files.

Core Model

  • The target repo owns PRD.md and TODO.yml.
  • The framework owns orchestration, validation, retries, logs, and git checkpoints.
  • Architect can revise backlog structure.
  • Coder can implement one selected task and update only coder_note.
  • QA can verify one selected task and update only qa_result and qa_note.

Runtime artifacts are written under .project_agent/ in the target repo unless you override the log path.

Installation

Published-package workflow:

pip install project-agent-framework

Local development workflow from this checkout:

python -m venv .venv
source .venv/bin/activate
pip install -e .[dev]

You can also run directly from the checkout without installing:

python scripts/run_framework.py <command> ...

New Project Workflow

Bootstrap a fresh repository:

project-agent init --project-dir /path/to/project --write-agent-overrides

That creates starter files:

  • PRD.md
  • TODO.yml
  • AGENTS.shared.md
  • AGENTS.architect.md
  • AGENTS.coder.md
  • AGENTS.qa.md

Initialize git in the target repo if needed:

cd /path/to/project
git init

Then run the framework:

project-agent run --project-dir /path/to/project

Important CLI Arguments

The normal command is:

project-agent run --project-dir /path/to/project

Useful overrides:

project-agent run \
  --project-dir /path/to/project \
  --prd docs/PRD.product.md \
  --todo planning/TODO.yml \
  --todo-backup planning/TODO.backup.yml \
  --shared-agents AGENTS.shared.md \
  --architect-agents AGENTS.architect.md \
  --coder-agents AGENTS.coder.md \
  --qa-agents AGENTS.qa.md \
  --model gpt-5.4 \
  --max-retries 3 \
  --loop-limit 20

Available commands:

  • project-agent init
  • project-agent run
  • project-agent validate
  • project-agent task-read
  • project-agent task-update
  • project-agent project-qa-update
  • project-agent demo
  • project-agent materialize-demo

AGENTS Overrides

The package ships with default role instructions inside the wheel. You can layer project-specific constraints on top of them by passing:

  • --shared-agents
  • --architect-agents
  • --coder-agents
  • --qa-agents

Those files are appended to the packaged defaults before each agent run.

Minimal TODO.yml

tasks:
  - id: T-001
    title: Build CLI entrypoint
    description: Implement the operator-facing command.
    acceptance_criteria:
      - Command exits with status 0
    priority: 1
    status: Ready
    qa_result: Pending
    coder_note: ""
    qa_note: ""
    depends_on: []
project_qa:
  result: Pending
  note: ""

Allowed status values:

  • Pending
  • Ready
  • In Progress
  • Blocked
  • Done
  • Removed

Allowed qa_result values:

  • Pending
  • Pass
  • Fail
  • Blocked
  • Not Applicable
  • Removed

Demo

Run the packaged sample project demo without spending live Codex calls:

project-agent demo --workspace /tmp/project-agent-demo --force

From a raw checkout:

python scripts/run_demo.py --workspace /tmp/project-agent-demo --force

The demo materializes a bundled sample target repo, initializes git, runs a deterministic Architect/Coder/QA loop, and leaves logs in the demo workspace.

Publishing Notes

This repo is structured for GitHub Actions Trusted Publishing. The release workflow is release.yml, and the step-by-step release runbook is PUBLISHING.md.

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

project_agent_framework-0.1.0.tar.gz (39.6 kB view details)

Uploaded Source

Built Distribution

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

project_agent_framework-0.1.0-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file project_agent_framework-0.1.0.tar.gz.

File metadata

  • Download URL: project_agent_framework-0.1.0.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for project_agent_framework-0.1.0.tar.gz
Algorithm Hash digest
SHA256 10bda419e161a6309499b037646ba4f0455f540548071d8a725054d29c8c74ad
MD5 3c9650c077b463bef3e9fd3a1ad7a906
BLAKE2b-256 bbb17009bccb8274b95c757d458a634de12391e7820e5a0fe1781e3b67894b8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for project_agent_framework-0.1.0.tar.gz:

Publisher: release.yml on coolrazor007/project-agent-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file project_agent_framework-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for project_agent_framework-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e3b81156694144d1cfc4810383e2436424fff615f648cf284b0161d19c5f4eb
MD5 da5fc535f3e5b87f225add33cef33387
BLAKE2b-256 984734760a1cbf185958c10a5e991c5f4d58fee8248e8cad8a166d8a430b3fa2

See more details on using hashes here.

Provenance

The following attestation bundles were made for project_agent_framework-0.1.0-py3-none-any.whl:

Publisher: release.yml on coolrazor007/project-agent-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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