Skip to content

Writing code

Connect GitHub and name the repository. State the problem, required behavior, and required proof.

In acme/web, make the invoice table sortable by due date. Preserve the current mobile layout. Add the test that proves the sort order, run the focused checks, and open a pull request. Do not merge it.

State:

  • The repository and base branch.
  • The behavior that must change.
  • Constraints, affected environments, and files that must not change.
  • The tests or manual checks required.
  • Whether the agent may commit, push, open a pull request, or merge.

The agent reads repository instructions before it changes code. If the repository contains AGENTS.md, those instructions apply to files in its scope.

The final result must name the changed behavior, tests, and pull request. A local passing test proves neither CI nor merge state.

Ask the agent to keep watching when the required outcome includes CI or review:

Watch this pull request until all required checks and reviews finish. Fix failures caused by this branch. Do not merge it.

Check the product behavior and the diff. For a visual change, ask for browser proof at the important widths. For a data change, ask for proof from realistic input through durable state to a result that a member can use.

See the complete code change recipe.