Solution · Headless CI
Your agent runs on every pull request. Pay 20% to 23% less for each run.
Teams run a coding agent on every pull request and issue. Add two env lines to the job: same agent, same prompt, same model, and each run costs 20% to 23% less on 5 measured CI jobs.
Tests pass 16 of 16 direct, 15 of 16 with Context Mode (McNemar p = 1). Workflow · Tasks
Tests pass 9 of 19 direct, 10 of 19 with Context Mode (McNemar p = 1). Workflow · Tasks
Label F1 0.499 direct, 0.478 with Context Mode, inside the 0.05 margin. Workflow · Tasks
Tests pass 8 of 8 direct, 8 of 8 with Context Mode (McNemar p = 1). Workflow · Tasks
Tests pass 3 of 8 direct, 3 of 8 with Context Mode (McNemar p = 1). Workflow · Tasks
Teams that run an agent in CI on every PR or issue.
A job that runs often pays for the same prompt again and again. We scanned 3,530 GitHub repos with 12k+ stars. 167 of them run an agent in CI, in 374 workflows.
The jobs teams run, and who runs them.
69 popular repos, such as storybookjs/storybook, astral-sh/uv, strapi/strapi and expo/expo.
81 repos let an agent turn an issue into a PR, such as anthropics/claude-code and ggml-org/llama.cpp.
19 repos, such as n8n-io/n8n, firecrawl/firecrawl and pytorch/pytorch.
31 repos, such as openai/codex, google-gemini/gemini-cli and microsoft/playwright.
25 repos, such as openclaw/openclaw, openai/codex and astral-sh/uv.
Census 2026-10-31, public workflow files.
Lower cost per run, and money kept per 1,000 runs.
| CI job | Context Mode | Direct | Lower | 95% range | Saved per 1,000 runs |
|---|---|---|---|---|---|
| CI failure fix, Sonnet 5.5 | $0.0420 | $0.0502 | 22.8% | 11.6 to 32.2% | $8 |
| @claude fix (issue to PR), Sonnet 5.5 | $0.0872 | $0.1113 | 21.8% | 10.3 to 32.1% | $24 |
| Issue triage and labels, Sonnet 5.5 | $0.0223 | $0.0281 | 22.4% | 15.5 to 27.7% | $6 |
| CI failure fix, Opus 5.5 | $0.1320 | $0.1691 | 19.7% | 4.1 to 31.5% | $37 |
| @claude fix (issue to PR), Opus 5.5 | $0.2759 | $0.3350 | 21.4% | 7.1 to 35.4% | $59 |
Claude Code headless on Sonnet 5.5 and Opus 5.5, 2026-11-01. Each task ran direct and through Context Mode, back to back. Tests and labels came out equal.
The plan came first. The raw rows are public.
The plan, written before the first paid run · the results · the raw rows · Method and sources →
What this uses.
The two commands, the env lines and each agent's install.
Long tool output is shortened before the model reads it.
Every paired run, with its evidence file.
Your own account pays the model.
Keep your agent in CI. Pay for less of what it sends.
npx @context-mode/cli ci init writes the job. 10,000 requests free every month, no card.