CircleCI built Chunk to fix broken code checks. The agent writes patches and tests them. Teams must verify that repairs solve root causes instead of deleting safety checks.
Autonomous maintenance in software pipelines
CircleCI runs a platform that tests code for software teams. Customers build, test, and ship code every day. Broken builds create big maintenance backlogs. Teams spend too much time fixing pipelines.
CircleCI made an AI agent named Chunk to fix broken runs. Chunk uses Claude to read errors and write code repairs. A team of eight engineers built Chunk.
CircleCI reported that ninety percent of its engineers use Claude Code. Daily usage jumped nine times after rollout. The company wants agents to handle routine chores so teams can focus on new features.
How Chunk repairs broken test runs
Chunk runs in a closed loop. A broken test run starts the agent. Chunk gets run logs and old test results. It inspects the error to find the cause.
Chunk spins up a sandbox environment from the setup file. It writes a repair for the broken code. The pipeline runs the full check again on that patch.
If the check fails, Chunk tries a new fix. If it passes, Chunk opens a pull request. The developer gets a pull request that already passed all tests.
Vendor claims and internal adoption numbers
CircleCI reported that four in five Chunk tasks start on their own. The rate of tasks turned into pull requests doubled since launch. One large customer saw analysis time drop from fourteen hours to eighteen minutes.
CircleCI also offers Smarter Testing. It runs only the tests affected by new code changes. The company reported that this cut run time by seventy-five percent on average.
CircleCI built an AI pull request review tool in weeks. Claude prompt cache efficiency reached over ninety percent in production. These metrics show how the team uses AI tools inside their work.
Preventing weakened safety gates in automated fixes
An AI agent could pass by removing hard checks. An agent might delete a test rule to make a build green. That hides a real bug. Teams must make sure tests stay intact.
Some failed tests pass on retry just by luck. A team should confirm the patch fixed the true fault. Avoid accepting a fix that turns off a test warning.
Test logs can hold secret keys and passwords. A team trying this could filter private keys from logs before sending them. For a similar project, check permissions so agents touch only test branches.
Evaluating automated repair agents in practice
A team testing this could build a pipeline with a known bug. Set strict test rules that the tool cannot edit. Ask the repair agent to fix the break.
For a similar project, check that old test files remain unchanged. Track how long an engineer takes to review the AI fix. Note how many tries the agent needed to pass.
A team could require human review for changes to core settings. Count how often an automated fix causes a new issue. Run small pilots before letting an agent touch production branches.
Sources
Applying the CircleCI case
Use these questions to assess a similar task in your own team.
| Evaluation Step | Required Evidence | Risk Indicator |
|---|---|---|
| Rule protection | Original test cases remain intact in the pull request | The agent deleted failing assertions to force a pass |
| Sandbox execution | Pipeline passes completely in an isolated test environment | The fix passes locally but fails standard pipeline checks |
| Secret safety | Logs sent to the model have credentials masked | Unfiltered build output exposes environment API keys |
YOUR OWN TEST PLAN
Try a small test
A suggested plan inspired by this case. Try it with your own data and track each step below.
Questions this case answers
Does Chunk require human approval before applying fixes?
CircleCI reported that Chunk runs tests in a sandbox and submits a passing pull request, leaving review to developers.
How does Smarter Testing relate to the Chunk agent?
Smarter Testing is CircleCI's predictive test selection feature that runs impacted tests to cut feedback time.
Tools in this story
Want to learn more about these tools? Open a guide below where a link is shown.
Quick recap
CircleCI developed Chunk, an autonomous agent built using Claude, to identify and resolve continuous integration failures. Chunk analyzes logs, generates code fixes, and validates them in continuous delivery pipelines before opening a pull request.
CircleCI reported that over eighty percent of tasks trigger automatically at failure points and that daily internal usage grew significantly. Engineering teams must confirm that automated repair agents fix root causes rather than bypassing tests.
What to learn from this story
- CircleCI built Chunk to find and fix broken continuous delivery pipeline errors.
- The agent validates fixes by running the pipeline again before opening a pull request.
- Teams must ensure automated repairs do not weaken or delete required safety checks.
Related case studies
Explore more ai helpers stories, with different products and teams.
Plan your task. Build a draft. Check the work and its cost.