Agent Queue (AQ) runs AI coding agents against a backlog of tickets and delivers their work as merged pull requests. You file a ticket; AQ picks a model and a worker, runs the agent in a sandboxed checkout, judges the result, pushes a branch, opens the pull request, waits for CI, and merges through the merge queue. When a step fails it routes the work back to an agent with the evidence, so stuck tickets repair themselves instead of waiting for a person.
This repository is the umbrella for AQ v2, a Rust rewrite. Each component lives in its own repository and is included here as a Git submodule.
Looking for v1? The original Python Agent Queue (the Discord-driven orchestrator) is retired. Its final state is on the
v1branch and thearchive/v1-finaltag.
| Repository | What it does |
|---|---|
| aq-server | The central authority. It holds tasks, projects, settings and results in PostgreSQL. It schedules and routes work, grants it to workers, and drives delivery to GitHub through a GitHub App. It also serves the API and hosts supervisor agents. |
| aq-worker | The worker node. A node has a number of agent slots. It connects outward to the server, prepares a worktree per attempt, and runs the agent (Claude Code or Codex) in a sandbox inside tmux. It then hands the result back. |
| aq-git | The repository service. It handles binding, synchronization, cached queries, isolated workspaces, and conditional publication to the forge. Workers push their commits here, and delivery publishes from here. |
| aq-playbooks | The workflow compiler and runner. Policy, such as how work is routed and when a result is accepted, published or merged, is written as playbooks instead of being hard-coded in the server. |
| aq-graph | The task and knowledge graph service and CLI. It stores tasks, dependencies and readiness, with revision history. |
| aq-dashboard | The browser dashboard for tasks, agents, results, supervisors and settings. |
flowchart LR
T[Ticket] --> R[Routing playbook<br/>picks role, model, environment]
R --> W[Worker slot<br/>agent in a sandboxed worktree]
W -->|git push| G[aq-git]
G --> D[Delivery playbook<br/>judge · publish · PR · checks]
D -->|checks fail or conflict| W
D --> Q[GitHub merge queue] --> M[Merged]
- Routing chooses the agent role, model and execution environment for each ticket. It also places the attempt on a worker that can run it.
- Execution happens on a worker slot. Each slot is a Git worktree of the project, and the agent's commits go to aq-git, not straight to GitHub.
- Delivery judges the result against the ticket and publishes the branch. It opens the pull request, waits for the required checks, and merges. Failed checks and merge conflicts go back to an agent along with the failure output.
git clone --recurse-submodules https://github.com/aq-platform/agent-queue.git
cd agent-queueThe repositories link to each other's documentation with sibling paths such as
../aq-graph/docs/.... Those links resolve inside this checkout. Each
component builds and tests on its own; see its README. The submodules are not
build dependencies of one another.
The submodule pins follow each repository's main branch. A daily workflow
(.github/workflows/bump-submodules.yml) records the latest heads, and you can
run it by hand. To move your checkout to the latest heads yourself:
git submodule update --remoteAQ v2 runs in daily use on its owner's machines, and it helps build itself: many changes to these repositories arrive as pull requests that AQ delivered. There is no packaged installer or general setup guide yet. The components' own READMEs describe how to build and test each one.
The files in this umbrella repository are under the MIT License. That license covers this repository only, not the component repositories.