AyCode

Docs / Working

Changes, diffs and git

See what an agent changes while it works, comment on single lines, ask a second model for a review and commit when you are happy.

3 min readAyCode 8.0.1
On this page
  1. Watching edits live
  2. The changes panel
  3. Comments on lines
  4. A second opinion
  5. Commit, push, pull request
  6. Worktrees: starting and tidying up

Watching edits live

  • While an answer runs, a small card above the input field shows the file being edited, with rolling line counts and the first changed lines.
  • Hover a +1 −1 on a step to see exactly which lines changed.
  • Running chats show their +/− in the sidebar too.

The changes panel

Fig. 1 Changes: every changed file of this turn or the whole chat, line by line.

Open Changes in the right sidebar or click the changed-files chip of an answer. Switch between This turn and All changes in this chat.

  • A bar shows how the changed lines split between code, tests and docs; the chips Code, Tests and Docs show or hide those files.
  • The circle next to a file marks it as viewed, and the panel counts along (“0 of 3 viewed”); Mark all viewed ticks them all.
  • List or Folders shows the files flat or in their folders.

Comments on lines

Hover a line and click the comment button. Send to chat puts your comment into the input field as a quote with file, line and code, so the agent knows exactly what you mean.

Tick Save to Brain and the comment is also added to Reviews/<project>.md in your vault, so the next agent learns from it.

A second opinion

Second opinion … in the changes panel lets another provider review the changes of a turn or the whole chat. It reads only, sorts findings by importance with file and line, and ends with a clear yes or no.

Fig. 2 The review mode: findings by file and importance, read only, with a way back into the reviewed chat.

In review mode the reviewer stays read only (“Read only”). Its findings stand as a card, grouped by file and sorted by importance (P1 high, P2 medium, P3 low), each with file and line.

  • Show in diff jumps to exactly the lines the finding names.
  • Fix puts exactly this one finding as a quote into the input field of the reviewed chat; nothing is sent. Fix all open takes all open ones into one quote.
  • Done ticks a finding off, Reopen takes it back. Open chat leads into the reviewed chat.

Commit, push, pull request

  1. Click Commit … in the changes panel.
  2. Suggest a message drafts a commit message from the diff.
  3. Choose Commit, Commit & push or Commit, push & open PR.

A chat in its own worktree gets Merge into “<Branch>”: its work lands as one commit on your branch, without push or PR. AyCode never overwrites uncommitted work there; on a conflict nothing changes and the files are named.

Start a worktree chat from the start screen (Worktree) or with ⌘K New chat in a worktree. A setup command per project (e.g. npm ci) can run in every new worktree.

Worktrees: starting and tidying up

  • A new chat starts from a chosen base branch, from origin (fetching the branch first) or in an existing worktree. You pick branch and place in the start screen’s field.
  • AyCode refuses a merge across unresolved conflicts or foreign commits and names the reason.
  • Settings → General → Advanced → Storage sets where worktrees are created and tidies up those of archived chats: after a number of days without an answer you choose, only those without uncommitted changes, the branch stays, and you see the list first.
  • Optionally a maximum number applies: beyond it the oldest worktrees of archived chats go too, once their chat has been in the archive for a day. A chat you restore in the meantime keeps its own.

Besides GitHub AyCode knows GitLab: add GitLab.com or your own instance, clone repositories and follow merge requests with their CI checks. Where it is GitLab, AyCode says “merge request” instead of “pull request”.