Testing & QA · Terminal CLI harness

Terminal-Native Automated Test Suite Generation and Execution

OpenAI Codex CLI runs locally in the terminal to inspect source files, generate unit and integration tests, execute test runners, and iteratively fix failures in a sandboxed environment.

Evidence DocumentedAgent Codex CLIHarness Terminal CLI harnessAdded 21 Nov 2026

What This Workflow Does

OpenAI Codex CLI runs locally in the terminal to inspect source files, generate unit and integration tests, execute test runners, and iteratively fix failures in a sandboxed environment.

Written for Engineers & QA reviewers. Goal: Testing & QA.

Agent, Harness & Requirements

The workflow runs on Codex CLI inside a Terminal CLI harness. The agent runs in your shell, reads the working directory, and executes commands you approve.

  • Node.js 22+
  • OpenAI API key
  • local Git repository

How It Works

  1. Install `@openai/codex` globally
  2. Export `OPENAI_API_KEY`
  3. Run `codex` in project root
  4. Prompt test generation and approve sandboxed test execution.

Command or prompt pattern

"Generate pytest unit tests for src/billing.py covering edge cases, run the suite, and fix any failures."

Evidence & Source

Documented The provider's own documentation describes this workflow, its requirements, and its setup steps. Zyvibe checked the linked source on 2026-11-21 and has not reproduced the workflow.

OpenAI Codex CLI

OpenAI documentation · checked 21 Nov 2026

Open the source

Limitations

  • Sandboxing behavior differs across macOS Seatbelt and Linux containers
  • requires active API billing.

This record describes what the source states. It is not a review, a benchmark, or a recommendation. If the tool has changed since the check date, report it.