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 the Authorization header.

Evaluations

List evaluations

Returns the caller’s evaluation definitions.

Example response

Create an evaluation

Request body

A test case object has the following shape:

Example request

Example response

Run an evaluation

Runs each case in a throwaway Gizzi session, grades the reply, and persists the results. Evaluations are capped at 10 cases and 20 seconds per case.

Example response

Get evaluation results

Returns the most recent run for the evaluation.

Example response

Same shape as the run response.

Benchmark history

Returns daily aggregate scores and total test counts for the last 30 days.

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

Approves a pending change, marking the task completed and progress 100.

Example response

Reject a change

Rejects a pending change, marking the task 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

Seeds default policies for the project if they do not exist, then returns them.

Example response

Update a GC policy

Request body

Example request

Example response

Get GC queue

Returns agents with outstanding issues from their last run.

Example response

Run a GC agent

Clones or pulls the project’s repository into a cached workspace, runs the analyzer, and persists the results.

Example request

Example response

Run GC cleanup

Runs all enabled GC agents for the project and returns aggregated results.

Example response

Get GC history

Returns daily aggregate GC metrics for the last 30 days and a computed entropyScore.

Example response

Error codes