Changes and Git
Inspect working-tree status and diffs, separate checkpoints from Git history, and commit through the correct boundary.
The Changes panel combines repository status and diff review with Agent V checkpoint actions. Git history and checkpoints remain separate systems.
Prerequisites
Open a workspace inside a Git repository. Without a repository, the panel can show file activity but Git status, diffs, and branch operations are unavailable.
Review a change
- Open Changes.
- Refresh if the working tree changed outside the app.
- Select a file and inspect the diff.
- Distinguish tracked modifications, new files, deletions, and repository-wide pre-existing changes.
- Run the relevant project verification.
Agent writes do not become safe merely because a diff renders. Review behavior and generated files as well as source text.
Keep and Discard
Keep and Discard act on an agent write checkpoint. Keep accepts that checkpoint state. Discard restores it. Neither stages files, creates a commit, or changes a remote.
The Files editor’s Discard/Reload applies to one editor buffer and is not this action.
Built-in Git tools
git_statusis read-only and available in Ask, Plan, and Agent.git_diffis read-only and available in Ask, Plan, and Agent.git_commitis Agent-only, stages files changed by the current run, and can optionally push when requested.
Before a commit, inspect both staged and unstaged changes. Do not include secrets or unrelated existing work. Git identity must already be configured outside the app; the agent must not invent it.
Remote work
A local commit does not create a pull request. Use the Pull Request panel or explicit GitHub CLI workflow after confirming branch, remote, authentication, and commit state. For missing repository, identity, remote, or GitHub errors, use Git and pull-request issues.