| name | qagent |
| description | Orchestrate parallel AI agents for Qcut development. Use when spawning agents on issues, checking session status, handling CI failures, managing PRs, or batch-processing multiple tasks. Covers all qagent CLI commands configured for Qcut. |
QAgent — Agent Orchestrator for Qcut
Use the qagent CLI to spawn and manage parallel AI coding agents for Qcut development. The config is at qagent.yaml in the repo root.
Quick Start
qagent dashboard --no-open
ROOT="$(git rev-parse --show-toplevel)"
cd "$ROOT/packages/qagent/packages/web"
QAGENT_CONFIG_PATH="$ROOT/qagent.yaml" ./node_modules/.bin/next dev -p 3000
cd "$ROOT"
qagent spawn qcut 170
qagent batch-spawn qcut 170 171 172 173
qagent status
Common Workflows
Spawn an agent on an issue
qagent spawn qcut <issue-number>
Creates a git worktree, launches a Claude Code session, and starts working on the issue. The agent gets Qcut-specific rules (Bun, Biome, Electron conventions) injected automatically.
Batch spawn for parallel development
qagent batch-spawn qcut 170 171 172 173
Spawns 4 agents simultaneously in isolated worktrees. Each gets its own branch, PR, and CI pipeline. Duplicate detection prevents re-spawning already-active issues.
Monitor all sessions
qagent status
qagent status -p qcut
qagent status --json
Send a message to a running agent
qagent send qcut-170 "Focus on the FFmpeg handler, not the UI"
qagent send qcut-170 "CI is failing on lint, please fix"
Team inbox messaging (filesystem queue)
qagent team init qcut-team team-lead observer
qagent team add-member qcut-team reviewer
qagent team members qcut-team
qagent team send qcut-team observer team-lead "Observer reporting in"
qagent team send qcut-team observer team-lead --protocol idle_notification --payload '{"idleReason":"available"}'
qagent team inbox qcut-team team-lead --unread --json
qagent team ack qcut-team team-lead
Harness-style runtime controls
qagent harness spawn codex "Audit failing tests and fix them"
qagent harness status
qagent harness sessions
qagent harness steer "tighten logs and continue"
qagent harness cancel
qagent harness model openai/gpt-5.2
qagent harness permissions strict
qagent harness timeout 120
qagent harness cwd /path/to/dir
qagent harness set <key> <value>
qagent harness reset-options
qagent harness relay --team qcut-team --member codex
qagent harness close
qagent harness doctor
qagent harness install
Inspect workflow policy gates
qagent policy check
qagent policy check -p qcut
qagent policy check qcut-170
qagent policy explain qcut-170
qagent policy workflow lint
Check and handle PR reviews automatically
qagent review-check qcut
qagent review-check qcut --dry-run
Export and forward PR comments
qagent pr-comments export Quriosity-agent/qcut 170
qagent pr-comments export-all Quriosity-agent/qcut 170
qagent pr-comments forward qcut-170
qagent pr-comments preprocess <dir>
qagent pr-comments analyze <dir>
qagent pr-comments resolve Quriosity-agent/qcut 170 <id>
Session management
qagent session ls
qagent session kill qcut-170
qagent session cleanup qcut
qagent session restore qcut-170
Open session in terminal
qagent open qcut-170
Start/stop the orchestrator
qagent start qcut
qagent stop qcut
What Happens Automatically
When qagent start is running, the orchestrator polls all sessions and:
- CI failures: Sends fix instructions to the agent (retries 2x, then notifies you)
- Bot review comments (CodeRabbit etc.): Waits 2 min for comments to settle, then forwards them to the agent as structured tasks. After the review loop converges, sends
/buildit instructions to verify CI, then notifies you when ready to merge.
- Review changes requested: Forwards human review comments to the agent
- Approved + green: Sends desktop notification to merge (or auto-merges if configured)
- Agent stuck: Notifies you if an agent needs input or is stuck
- Policy gates: Blocks or warns on merge if workflow policy violations exist (enforced/advisory modes)
- All complete: Notifies when every session has merged or been killed
Setup (first time)
qagent init
Or manually:
bun run qagent:setup
cd packages/qagent
bun install
bun run build