Get started

Projects and worktrees

Add repositories, keep several open as projects, and work across branches and worktrees.

Home

Home is the first screen: Add repo… (⌘O) opens a folder picker, Clone from GitHub… and Clone from another host… clone into a folder you choose. You can also drop one or more folders anywhere on the window.

Recent lists the repos you opened, with a search box. Each row says whether it is Analyzed, Analyzing, Refining, Not analyzed, or New commit — re-analyzing. Remove from list forgets a repo; the folder stays on disk.

Several projects at once

Every repo you open becomes a project with its own tabs and state. Switch with ⌘` and ⌘⇧` (on Windows and Linux, Ctrl+Alt+] and Ctrl+Alt+[), or from the projects menu: Close other projects, Close all, Open another project… and Recent projects. When you start peekcode again it reopens the project and screen you left.

The left sidebar (⌃⌘S, or Ctrl+Alt+S) shows each project as a tree: project, then its branches and worktrees, then the agent sessions on each. Search it, fold old ones under History, or click New session on this branch.

Session chipMeans
Needs youThe agent is waiting for an answer or a permission.
RunningThe agent is working.
Done · unreadIt finished a turn you have not looked at.
Exited with errorThe process stopped with an error.
outsideA Claude Code or Codex session running outside peekcode. Opening it forks it into peekcode.

The bell at the top counts sessions that need you; ⌥⌘J jumps to the next one. A ~N nodes chip on a session shows the blocks it edited; click it to see them on the diagram.

Worktrees

A Git worktree gives an agent its own branch and folder, so several agents can work on one repo without stepping on each other.

  1. New worktree…

    In the session sidebar, click + and pick New worktree…. Type a branch name. peekcode creates the worktree beside the repo; it shows up in the tree, with its own diagram.

  2. Start in the branch

    Click Start in <branch> to open an agent session in that worktree.

  3. Delete worktree

    When you are done, Delete worktree removes it. If it has changes you are asked first (Delete with changes), and a branch that is not merged is kept.

Worktrees an agent creates appear under the session's branch. Worktrees with no changes are gathered under Empty worktrees, with Dismiss these worktrees.

Open a saved report

Open JSON report loads a peekcode report saved earlier, without the repo. Screens that need the code, such as Architecture, ask you to open the repo locally.