AGPair
A local task lifecycle and evidence layer that lets Codex or Claude Code delegate bounded work to external CLI agents with structured receipts and retry.
At a Glance
AGPair core CLI is released under the MIT License and can be used, modified and distributed free of charge. External executor CLIs and model/API costs are separate.
Engagement
Available On
Alternatives
Listed Nov 2026
About AGPair
AGPair is an open-source, MIT-licensed Python CLI published by logicrw. It lets AI controllers such as Codex or Claude Code delegate bounded work to external CLI agents, then wait, verify, adopt, retry, or fall back using structured evidence. The current README describes version 1.0.0 and lists macOS as the platform.
What It Is
AGPair is a local task lifecycle and evidence layer for AI coding workflows. The controller plans and verifies, while AGPair dispatches external CLI executors, persists task state in SQLite with a journal and receipts, and waits cheaply on long-running tasks. The listed executors are grok-cli, antigravity-cli, claude-code, and codex. AGPair is explicitly not a semantic controller: the AI controller still owns planning, scope decisions, review, and final verification.
How the Workflow Runs
A task is started with agpair task start, specifying an executor, task kind, wait policy, authorization profile, and completion policy. The lease wait policy gives the controller a bounded, adaptively polled wait. If the executor is still running, AGPair returns a structured background-running result instead of forcing the controller to poll. agpair task watch --json emits state-change events and paths to raw logs and receipts rather than streaming full logs.
For implementation work, an isolated worktree can be used. Changes are then reviewed with task diff and applied with task apply. If an executor returns blocked(approval_required), task retry --from-block starts a new attempt with structured blocked context.
Routing, Fanout, and Review Gate
Controller-aware routing suppresses self-executors by default, so Codex controllers do not choose the external codex worker and Claude Code controllers do not choose the external claude-code worker unless --allow-self-executor is used. agpair workflow fanout runs multiple lanes for review, research, or design and returns lane cards plus a synthesis and gate evidence pack. Statuses such as ready_for_review, evidence_ready, and committed are not treated as automatic success; the controller must inspect artifact_result, agent_result, recovery_decision, and diff or commit evidence. Authorization profiles (local_readonly, local_mutating, local_test_heavy, external_network) limit what each executor may do.
Controller Setup
AGPair provides config commands that install advisory hooks and sync skills for Codex, Claude Code, and Hermes. agpair doctor and doctor --fresh check the environment, including a live Claude auth probe. Runtime state is stored under ~/.agpair by default, overridable with AGPAIR_HOME.
Community Discussions
Be the first to start a conversation about AGPair
Share your experience with AGPair, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
AGPair core CLI is released under the MIT License and can be used, modified and distributed free of charge. External executor CLIs and model/API costs are separate.
- MIT License
- Local task lifecycle and evidence layer
- Dispatch to external CLI executors (grok-cli, antigravity-cli, claude-code, codex)
- Structured receipts, state-aware retry, wait/watch
- Self-hosted install from source (Python ≥3.12, macOS)
Capabilities
Key Features
- Delegates bounded tasks to external CLI executors
- Persistent task state with SQLite, journal, and receipts
- Low-token wait and watch with lease wait policy
- State-aware retry from blocked(approval_required)
- Isolated worktrees with diff and apply review
- Fusion-style multi-lane fanout with synthesis evidence pack
- Authorization profiles for read-only, mutating, test-heavy, and network tasks
- Controller-aware self-executor suppression
- Codex, Claude Code, and Hermes controller config with skill sync
- Doctor diagnostics with live auth probe
- Declarative multi-task workflows
