Overview
The Agent Operations API groups quality-assurance and maintenance endpoints for agents and projects:- Evaluations — run a dataset of test cases against an agent and grade the replies.
- Benchmark history — view aggregate evaluation scores over time.
- Factory tasks — create and approve/reject autonomous spec-driven tasks.
- GC agents — run repository-analyzer agents that find code-quality issues and compute entropy reduction.
Base URL
Authentication
All requests must include a valid bearer token in theAuthorization header.
Evaluations
List evaluations
Example response
Create an evaluation
Request body
A test case object has the following shape:
Example request
Example response
Run an evaluation
Example response
Get evaluation results
Example response
Same shape as therun response.
Benchmark history
Example response
Factory tasks
Factory tasks represent autonomous spec-driven work items that produce changes awaiting human approval.List factory tasks
Example response
Create a factory task
Request body
Example request
Example response
Approve a change
completed and progress 100.
Example response
Reject a change
rejected and progress 95.
Example response
GC agents
GC agents are repository analyzers that run against a cowork project’s git remote and report code-quality issues. Six agents are built in:
All GC endpoints require
?projectId=:project_id.
List GC policies
Example response
Update a GC policy
Request body
Example request
Example response
Get GC queue
Example response
Run a GC agent
Example request
Example response
Run GC cleanup
Example response
Get GC history
entropyScore.