Files, editor & Git
The plan, the diff, your files and git, in one place
Read the plan, check the diff and commit beside your agents: Files, an editor pane, Search, and Git with staging, history and each agent’s turns.
An agent writes a plan, edits a dozen files and says it's done. Everything you need to check that work sits beside its terminal: a Files tree, an editor pane, Search, and Git in the dock on the right. Files and diffs open as tabs, so you can split them next to the agent like any other pane.
Files
- Open it — ⇧⌘E shows or hides Files, in the right dock beside Git. Every folder the project works in is a root in the tree, and names take the colour of their git state.
- Click to preview — a click opens the file in a preview tab, its title in italics, and the next click replaces it. Edit it or double-click its tab to keep it.
- Right-click — New File…, New Folder…, Rename, Duplicate, Move to Trash, Copy Relative Path, New Terminal Here and Search in Folder.
- Go to File — ⇧⌘O finds any file in the project by name, and accepts
name:line.
The editor pane
- A plan that reads well — a Markdown file opens rendered, with tables and code blocks in your theme's colours. Tick a task box in the preview and the source changes too.
- Edit, Preview, Split — ⇧⌘V cycles them. Split puts the source beside the rendering and scrolls the two together.
- Git in the gutter — bars mark lines added or changed since the last commit, and a wedge marks deleted ones. Click a bar to see the old lines, then Revert or Stage Hunk.
- Everyday keys — ⌘S saves, ⌥⌘Z wraps lines, ⌘/ comments, ⌃G goes to a line, and ⌘-click opens a definition.
Images, PDFs, HTML pages, audio and video open as previews in the same pane.
Git, in the right dock
⌃⇧G, or Git → Show Git Panel in the menu bar, opens Git for the focused terminal's repo. It has four tabs:
- Changes — every changed file with its +/− counts. A checkbox stages a file or a whole section. Write a message, or leave the suggested one, and click Commit (⌘↩ in the message).
- History — recent commits; click one to open it in a tab. The graph button opens the Git Graph: every branch and its lanes, with search.
- Turns — what each agent turn changed. Click Turn on once; from then on each turn that changed something is recorded under
refs/termary/turns, without touching your working tree, index or branches. - PR — the branch's pull request through your
ghCLI: checks and unresolved review comments, with Fix failing checks and Address review comments to hand them to an agent.
The Commit button's menu has Amend, Signoff and Skip Hooks. The ↶ under the last commit uncommits it and puts its message back. Fetch, pull and push are in the dock's footer and in the Git menu.
The Changes pane
- ⌃⇧D (Git → Open Changes) or View Diff in the dock opens every change as one diff in a pane beside your terminal.
- Choose the scope at the top when there is more than one: All changes, This turn (what the agent changed since your last prompt) or This branch (everything since the default branch).
- Point at a hunk for Stage or Revert; a staged hunk shows Unstage. ⌥⌘↓ and ⌥⌘↑ move between hunks.
- Click + in the gutter to leave a note on a line, and ⇧-click another line to cover a range. Then Send to the agent: your notes arrive as one prompt, each with its file, its lines and the code quoted.
If a merge leaves conflicts, a bar above the diff hands them to an agent the same way.
Search
⇧⌘F opens Search in the sidebar. It finds text in the project's files as you
type, with match case, whole word and regular expression switches and a
files to include filter such as *.swift, src/**, !tests. Results are
coloured like the code; click one to open the file at that line. When a project works in
several folders, search one of them or all.
Away from your Mac? The same diff, with line notes, is in the iPhone app: see Review changes. To arrange these panes beside your agents, see Panes, tabs & projects.
Not what you were after? Browse the manual or email us.