Stages
- Sets up the environment. Checks the repository and installs its dependencies using a standard command.
- Runs the test suite to establish a baseline. This identifies failures that existed before the agent makes any changes. Existing failures are treated as out of scope unless they match the behavior described in your task.
- Turns your brief into a specification. The issue text is the complete task description. The agent expands it into a working specification based on the repository’s structure, then plans the changes.
- Implements the changes.
- Runs tests to verify the changes. It starts with the narrowest test that covers the changes, then runs the broader suite at most once at the end. The goal is to ensure that no test that passed before the changes fails afterward.
- Reviews its own diff. A separate review pass checks the changes against your brief and the specification. It looks for unrelated file changes, leftover debug output, scaffolding, and broken references. The agent fixes cleanup issues and retries incomplete changes before presenting the result.
- Opens a pull request. Once the changes pass its checks, the agent opens a pull request for you to review.

