Ouroboros

Ouroboros is an open-source autonomous CLI coding agent developed by razzant. Built primarily in Python, the agent is engineered to execute self-directed code modification loops, automate complex engineering tasks, and validate changes through structured preflight checks and review panels. In standard workflows, Ouroboros operates directly against a target repository worktree. It manages task planning, file edits, and multi-runtime test execution across Python and Node.js test suites. The agent uses configurable model backends (including Claude Sonnet variants) and enforces automated review cycles and task-acceptance verification before staging or committing modifications. What differentiates Ouroboros from basic interactive assistants is its focus on hermetic validation, process containment, and benchmark reproducibility. It incorporates strict commit gating with budget-capped test runs, a process container isolation layer to mitigate side effects, and native integration with benchmark evaluation suites like SWE-bench Pro, OSWorld, GAIA, and ProgramBench. Ouroboros is available as an open-source project hosted on GitHub, with ongoing maintenance centered around automated test gates, CI integration, and benchmark performance.

Tags: ai agent, cli, coding agent, developer tools, experiments, OpenSource

Visit Ouroboros

Key features

  • Hermetic commit gate — Validates candidate worktrees through gated, budget-controlled preflight test passes prior to finalizing changes. - Multi-runtime test execution — Natively runs and isolates both Pytest and Node.js (node --test) test suites within candidates. - Configurable review cycles — Enforces multi-pass review bounds and acceptance panels via configurable caps like OUROBOROS_REVIEW_MAX_CYCLES. - Process containment — Spawns and monitors execution tasks inside isolated process wrappers (ProcessContainer) to ensure clean cleanup and execution boundaries. - Benchmark harness compatibility — Includes built-in configuration scaffolds for evaluation against SWE-bench Pro, GAIA, OSWorld, and ProgramBench suites. - Autonomous self-iteration — Executes iterative task generation, execution, and self-review loops designed to handle long-running development workflows.

Use cases

Use Case: Autonomous Bug Fixing and Refactoring Developers can assign repository-level issues to Ouroboros, allowing the agent to inspect the code, modify files, and run hermetic preflight test suites to ensure bug fixes do not introduce regressions before generating a commit.

Use Case: Benchmark and Agent Evaluation AI researchers and benchmark engineers can run standardized evaluation campaigns across SWE-bench Pro, GAIA, or OSWorld datasets using Ouroboros's parameterized review settings and execution harnesses.

Use Case: Automated Multi-Language Test Validation Teams maintaining hybrid Python and JavaScript/TypeScript codebases can run Ouroboros in environments requiring synchronized verification across Pytest and Node test runners under strict timeout and failure policies.

Who it is for

Ouroboros is suited for software engineers, AI researchers, and framework maintainers seeking an autonomous, test-gated agent architecture with support for rigorous benchmark evaluation. It is less suited for developers looking for a lightweight, interactive conversational IDE autocomplete plugin.

Install guide

Installation Clone the repository and install the project dependencies in a virtual environment: bash git clone https://github.com/razzant/ouroboros.git cd ouroboros python3 -m venv .venv source .venv/bin/activate pip install -e . Ensure required runtimes (Python >= 3.10 and Node.js >= 20.11 if testing browser/node modules) are installed on your path.

First Run Set your model API key and configure runtime environment variables: bash export ANTHROPIC_API_KEY="your-api-key-here" # Optionally configure maximum review cycles (default is 2, or 'unlimited' for long bench runs) export OUROBOROS_REVIEW_MAX_CYCLES="2"

Example Session Run Ouroboros against a repository task with preflight verification: bash ouroboros --task "Fix failing test in tests/test_preflight_node.py and ensure Node runner stays green"

Part of CLI Coding Agents

Categories: AI Coding Agents, Developer Tools, Experiments

Related CLI agents

  • Claw Code — Claw Code is an open-source terminal-based AI coding assistant developed by Ultraworkers. Built on a hybrid architecture featuring a high-performance…
  • g3 — g3 is an open-source, Rust-based command-line coding agent framework developed by Dhanji Prasanna. It is designed to orchestrate LLM-driven software…
  • Unship — Unship is an open-source agent harness and plugin integration framework developed by mbenhard. It is designed to package and orchestrate…
  • OpenHands — OpenHands (formerly OpenDevin) is an open-source autonomous AI software development agent and orchestration platform. It provides an extensible runtime environment…
  • SWE-agent — SWE-agent is an open-source autonomous software engineering agent harness built and maintained by researchers from Princeton University and Stanford University.…
  • OpenCode — OpenCode is an open-source AI coding agent developed by Anomaly that operates across terminal environments, desktop applications, and IDE extensions.…
  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories