Inspect

Reviewing changes

The Changes tab of a session shows what the agent changed, commit by commit, while you can still redirect it with full context. Use it before a pull request exists and after.

Reviewing session changes

Read the diff

  • Changes shows the session's working-tree diff while the agent is running, and the pushed diff afterwards. Switch between unified and split views per file.
  • Select a single commit to see only what it changed.
  • A file's menu has Copy link to file, Copy full path, Copy filename, Copy file contents, and Open file in GitHub.
  • Mark files Viewed as you go. Viewed state is yours alone, saved per session or pull request. When a later commit changes a file, its mark clears, so you only re-read what moved.

The same diff is available from the API as a raw unified diff: GET /api/v2/sessions/{session_id}/diff.

Ask for revisions

Select lines in the diff and click + to open a follow-up composer on those lines. Sending it prompts the agent right away with the commit, file, and selected lines attached, so the agent knows exactly which code you mean. Each follow-up is its own prompt; to cover several spots in one request, describe them in a single follow-up or in the session composer.

Write a revision as a decision the agent can act on ("return 404 here, not 500") instead of a question.

Open the pull request

The agent usually opens the pull request itself once its work is pushed. If the session has pushed changes without one, Create PR opens it.

  • The pull request uses the session title and the agent's description. If Inspect cannot generate a title, it says so in the description so you can fix it.
  • It opens as a draft unless the session owner turned on Create Pull Requests as Ready for Review in Settings → Agent. Ask the agent to mark it ready when you want reviewers notified.
  • Inspect cannot open a pull request from the repository's default branch, and it does not reuse a merged or closed pull request. After a merge, ask for more work and the agent starts a new branch and pull request.

After the pull request exists, View PR links to it on GitHub.

Review, merge, and resolve conflicts

When the pull request is open, Changes offers GitHub actions you have permission for:

  • Submit review / Approve submits a GitHub review on the pull request.
  • Merge merges right away if the pull request is ready; otherwise it adds it to the merge queue or turns on GitHub auto-merge, depending on the repository.
  • Disable auto-merge turns off a pending auto-merge or leaves the merge queue.
  • Fix conflicts prompts the session to rebase its branch onto the latest base branch and resolve conflicts.
  • Fix conflicts & merge does the same rebase, then the agent pushes, compares the diff with the pre-rebase diff, and merges only if no changes were dropped or picked up from the base branch.
  • Resolve on GitHub opens GitHub's conflict editor.

You can also ask in the prompt ("merge it"). The agent merges only when asked.

Deploys

When your deploy pipeline reports deployments of a session's pull request through the deployments API, Deploys appears next to Reviews. The API accepts deployed and failed statuses, each tagged with an optional environment name. Deploys lists each environment's latest status, the deployed commit, a link when one was reported, and the error for a failed deploy. A deploy of an older commit on an open pull request is marked outdated.

Checks and reviews

The pull request's CI checks, reviewers, and approvers appear with the session, including the Review agent. Fix CI failures asks the session to fix failing checks. Verification agent results are covered on their own page. How the session responds to review comments and CI failures on its own is covered in Code review.

Troubleshooting