Changes, Git and review
Elyra runs your own git and gh commands, so your Git configuration, hooks and
credentials apply.
The Changes tab
Open it with ⇧⌘G, or with the tools panel (⌥⌘B) and the Changes tab. It shows the Git state of the active thread's folder.
Toolbar
- Branch menu: the current branch. Pick another branch to switch to it. If your uncommitted changes would conflict, Elyra stashes them first and tells you. New branch… creates a branch from the current one and switches to it.
- Fetch and refresh (refresh icon). When the branch is behind its upstream, a Pull button appears (fast-forward only).
- Push: pushes the branch. A branch without an upstream is published to the remote.
↓2 ↑1: commits behind and ahead of the upstream.
Files
Files are listed in two groups:
- STAGED: what the next commit will contain.
- CHANGES: everything else.
Hover a file to Stage / Unstage it, or Discard changes (asks first). Stage all and Unstage all act on a whole group. Click a file to see its diff.
Diffs
- Side by side shows old and new next to each other. Otherwise the diff is unified.
- Wrap lines and Ignore whitespace can be switched on.
- ⌥↓ / ⌥↑, or the arrow buttons, jump to the next or previous change. Copy diff copies the patch.
- Very large diffs are cut off with a notice. Binary files are only listed.
Click a line in a diff to see who last changed it (Git blame: commit, author, date and message). Lines that aren't committed yet have no blame. When an agent in Elyra Workspace wrote the line, a second line says which thread (Written by the agent in “Fix totals” · Claude Code · 2026-10-09 14:02); click it to open the thread. You can also write a comment about the line and press Add to chat. The comment and the line's location are added to the thread's message box, so you can collect several and send them to the agent together.
Ask why
When an agent wrote the line, Ask why asks that agent about it. Type your question in the comment field first, or leave it empty for Why is this line the way it is?. A side chat opens with the same agent and model that wrote it, picked up where the turn that wrote it ended:
- It has that thread's conversation up to the end of that turn, and nothing that came after, so it answers from what it knew and decided then.
- It sees what that turn changed in the file and the code around the line as it is now, so it can say whether it would do it differently today.
- It is read-only (plan mode): asking doesn't change any files. The side chat's buttons put its answer in your thread's message box, or open it as a thread of its own.
Agents can do the same with the gateway's ask_author tool before they change
code they don't understand.
When a turn takes out another instruction's lines
Every turn's removed lines are looked up in the same record. When a turn removes or rewrites lines that an agent wrote for another instruction (in another thread, or earlier in this one), the thread shows a card after the turn: This turn took out lines written for other instructions, with each instruction, its thread and agent, how many lines in which files, and a few of the lines as they were. A guard condition quietly dropped in a cleanup, with no test that would have caught it, shows up here.
- Ask the author opens a side chat with the agent that wrote those lines, picked up where it wrote them, with how the later turn changed them. It is asked whether the new code still does what it was asked to do, and to name what is lost if not. Open the answer goes back to it.
- Open its thread opens the thread that wrote them.
- The agent that took them out hears of it with your next message, and is asked to restore the behaviour or say plainly what is gone and why.
Lines that only moved within a file don't count, and neither do lines the turn's own instruction wrote.
Lines nobody has read
Elyra Workspace remembers which lines agents wrote, so it can also show which of them nobody has looked at yet:
- A file with such lines says how many in the file list (3 unread), and in its
diff each of them has a dot instead of
+. - Mark as read, at the top of the diff, marks everything agents wrote in the file as read. The dots go away.
- If an agent writes a line again later, it's unread again.
- Before you commit, a line above the message box says how many lines agents wrote in the commit that haven't been read. It's a reminder; it doesn't stop the commit.
Only you marking a file counts as reading it. An agent's review doesn't. The marks
stay on this Mac with the rest of the record; nothing is added to the repository.
Agents see them too: why says whether a person has read the line.
Lines no test guards
When Test the tests changed a line the thread's agent wrote and the checks still passed, Changes shows it where you review the code:
- The file says how many such lines it has in the file list (1 unguarded),
and in its diff each of them has a flask instead of
+. - Click the line: No test guards this line: the checks still passed with
&&→||, and Ask for a test has the agent add a test that fails with that change, without changing the code. - A line is marked as long as the file still has it, until a later run of the gate catches the change (after the test is written, say).
Scopes
The scope menu chooses what the diff compares:
- Working tree: all uncommitted changes (the default).
- Agent turns: what one turn changed, based on the checkpoint saved before each turn. Use this to review the agent's work one step at a time.
- Compare with branch or commit…: the working tree against any branch, tag or
commit, for example
main.
Committing
- Commit staged / Commit all: commits the staged files, or everything when nothing is staged.
- The sparkle button writes a commit message from the diff with the thread's agent. You can edit it before committing.
- The first line of a commit message follows the same Conventional Commits format as pull request titles; Commit says what to fix if it doesn't.
- Commit and push (⌃⌘P, from anywhere) commits and pushes in one go.
Merge conflicts
When a merge, a pull or Use this one in Best of N leaves conflicts, a bar
over the files says how many. Resolve, knowing why puts a message for the
agent in the thread's message box: each conflict with both sides, and for each
side the instruction that had an agent write those lines (the message, its
thread and agent), from the record Elyra keeps. The agent then resolves it so
that what both sides were asked to do still holds, instead of picking one block
of text. Read it, add to it if you like, and send it. Lines no agent wrote are
marked as such. Agents can ask for the same with the gateway's conflict_context
tool.
Conventional Commits
Commit messages (their first line) and pull request titles are written as
Conventional Commits: type(scope): summary,
for example fix(nightwatch-exceptions): employee service create.
- type is one of
feat,fix,refactor,perf,test,docs,build,ci,chore,styleorrevert.feat!orfeat(api)!marks a breaking change. - scope is the area that changed, in lowercase kebab-case.
- summary is a short lowercase phrase without a trailing period; the whole line is at most 72 characters.
What the agent generates is written that way and tidied up (lowercase type and scope, no trailing period). Turn the format off in Settings → Code → Commits and pull requests.
Worktrees
When you start a thread with New worktree, Elyra creates a Git worktree for
it under ~/.elyra/worktrees, on a new branch. The thread, its terminal and its
Changes tab all work there. The project folder itself is not touched, so several
threads can work in parallel.
- The choice is made before the first message; it can't be changed afterwards.
- File → Manage Worktrees… lists the worktrees Elyra created and their threads. Remove ones you no longer need (their branches are kept).
- When you delete a thread that has a worktree, Delete with worktree removes both.
- What Git leaves out comes along when the worktree lacks it:
.env, the agents' setup files (.mcp.json,AGENTS.mdand the like, when not in Git), and the dependencies as APFS clones, which take no extra space until they change: Composer'svendor/andnode_modules/(a workspace's links to its own packages then point into the worktree), so the tests run there right away. A Python virtualenv isn't copied, since an editable install in it names the project folder: make one in the worktree. The thread says what was copied.
Worktrees with their own running app
When Elyra Grove runs the project as an app, Grove
makes the worktree instead (grove try --new, under ~/.grove/try): on the
same new branch, but with its own copy of the database, migrated, and its
own address, such as shop--elyra-1a2b3c4d.test. The thread says
where it runs, and the address opens in the thread's browser. Each thread can
change data and run migrations without touching yours, and with
best of N every candidate runs as its own
app you can look at.
Removing such a worktree (deleting its thread with the worktree, or in Manage Worktrees) takes its site and database copy down with it; the branch stays. If Grove can't start the branch, the thread gets a plain worktree and says why. Turn this off in Settings → Agents & MCP → Grove → Grove runs worktrees.
Pull requests
The PR tab in the tools panel works with GitHub through the
gh CLI (installed and logged in with gh auth login).
If the branch has no pull request yet, you can create one:
- Write a title and description, or press Generate to have the agent write them from the branch's commits. From instructions writes them without a model, from what the branch does: the instruction behind the most lines is the title, and the description has one section per instruction with its files, whether the checks passed, and the lines no agent wrote.
- Titles follow Conventional Commits; Create pull request says what to fix if a title doesn't.
- Tick Draft to open it as a draft.
- Press Create pull request. The branch is pushed first if needed.
What this branch does
Below the form, the tab shows what the branch adds compared with main (or
master), its commits and anything not committed yet, grouped by the
instruction behind it. This only needs Git, so it shows also when the project
has no GitHub remote. Elyra Workspace remembers which lines every agent wrote
for which message, so this works for every agent and across threads, also when
an agent committed on its own. Each group shows:
- the message, its thread, agent and date
- how many lines it added and in which files
- whether the project's checks passed after that turn (and its automatic fixes), and what the turn cost
- how many of its lines nobody has marked as read
Lines no agent in Elyra Workspace wrote, by hand or before the record started,
are listed last. Agents get the same with the gateway's changes_by_instruction
tool, for instance to write the pull request themselves.
Review step by step
Review step by step (below the groups, or Review this branch step by step in the command palette) goes through the branch one instruction at a time, oldest first, starting at the first one with something unread:
- What was asked: the message, with its thread, agent, date, cost and whether the checks passed after it.
- What the agent said: its reply at the end of that turn, its own account of what it did and why.
- The lines it wrote, per file with their line numbers as they are now; the ones nobody has read have a dot.
Mark as read and next marks the step's lines as read (as Mark as read in Changes does) and moves on; Open thread shows the conversation. The list on the left shows every instruction, with a check when it's read. The lines no agent wrote come last.
Restack by instruction
Restack by instruction (next to Review step by step) rewrites the branch
as one commit per instruction, in the order they were asked: each commit has the
folder as that instruction's turns (and their automatic fixes) left it, the
message as its title (with Conventional Commits on, a chore: when the message
doesn't follow them) and the thread and agent in its body, dated when it was
asked. A last commit, Other changes, holds what came after or what no agent
wrote. However the agent committed along the way, in one big commit or many
small ones, the branch then reads as the story of what was asked.
- A dialog shows the new commits and the ones they replace before anything happens.
- Your files stay exactly as they are; what wasn't committed is committed.
- Only the branch's commits since it left
main(ormaster) are replaced. A branch with commits already pushed needs a force push afterwards; Elyra doesn't push for you. Onmainitself, only uncommitted work is restacked. - Put the old commits back undoes it: the old commits return, and what wasn't committed before is uncommitted again.
- It waits while a merge or rebase is in progress or there are conflicts.
Only turns made on this branch count. Agents can see how a branch would be split
with the gateway's restack_preview tool.
When the branch has a pull request, the tab is labelled PR #n and shows:
- status, checks and reviews
- review comments, including those on specific lines
- Comment to reply
- Merge, choosing Squash and merge, Create a merge commit or Rebase and merge
- Ready for review (for drafts), Close and Reopen
- Ask agent to address feedback: puts the review comments in the message box as a task for the agent
Code review inbox
⇧⌘R (or the pull request button at the top of the sidebar) opens the inbox: open pull requests and issues from the GitHub repositories of all your projects.
- Switch between pull requests and issues, and open or closed.
- Filter by project, or search by title, number, author or label.
- Select an item to read its description, checks and comments.
- Send to agent starts a new thread in that project with the pull request or issue already described in the message box, ready to send. Pull requests get a new worktree so the review doesn't disturb your checkout.
- Open on GitHub opens it in the browser.
The text of pull requests and issues is written by other people. Elyra tells the agent to treat it as reference, not as instructions.
Following up a review
When a thread reviewed a pull request (the agent posted a review or review
comments with gh), Elyra follows that pull request. Every five minutes it asks
GitHub, as you (gh), whether the author pushed commits since your review or asked
for a review again. When that happens:
- a card in the review thread says so (PR #463: 2 new commits since your review, review requested again), you get a notification, and it is in While you were away and on your phone;
- the pull request is marked Changed since your review in the code review inbox and listed first.
Review the changes on the card gives the agent only what changed since the commit you reviewed, with your earlier comments and the replies to them. It goes through them point by point (addressed, partly, not yet), lists anything new in the changed code, and asks you before it posts a follow-up review or approves. Stop following ends it for that thread. A pull request that is merged or closed is no longer followed. Reviewing again (yourself or through the agent) makes that review the new starting point.