Skip to content

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 09:55
· 10 commits to main since this release
7370db9

Agntree v4.0.0

Added

  • Pi sessions — Pi is now a first-class harness alongside Claude Code, opencode, and Codex. Create, resume, import, auto-name, fork (in the same worktree and into a new one), and get finished-turn notifications for pi sessions from the sidebar. New chats choose their session ID up front (pi --session-id), forks use pi --fork, and sessions are read from Pi's documented JSONL records under ~/.pi/agent/sessions/ (or the directory set by PI_CODING_AGENT_DIR, PI_CODING_AGENT_SESSION_DIR, or the sessionDir setting) — never an internal database. Use agntree.harnessCommands.pi to override the command.
  • Find Session — Describe what you worked on ("the mod that shows context and usage limits") and a coding agent finds the session among your past ones, in any folder and across every installed agent. Hover a search in the new Find Session view to read the agent's answer and what it searched; each session it found can be resumed, shown in the Workspaces tree, or copied as a resume command. Claude Code, Codex, and Pi can run the search, each with read-only file tools and no saved search session. The search uses the model, effort, and other settings configured in that agent; the gear in the question box or the agntree.sessionSearch.* settings overrides the model or effort for searches only, and changing the agent clears the previous agent's model and effort. MCP servers declared in the agent's config are off for the run so the agent cannot call a configured tool that writes; prompts travel on stdin and the empty MCP config is a file, so a search also works on Windows. Claude Code transcripts, Codex rollouts, Pi records, and opencode sessions are all searched; opencode sessions are read through a short-lived snapshot made with opencode's documented CLI/API within a 45-second budget and a 4 MB cap, so its database is never opened, Stop cancels it, and nothing is indexed. Every session the agent names is checked against its own harness's record before it is shown. The view sits collapsed below Workspaces; set agntree.sessionSearch.alwaysShowView to false to show it only once you have searched.
  • Go to Next Session That Needs You — Ctrl+Alt+N (Ctrl+Cmd+N on macOS), also in the Agntree … menu, opens the open session that has waited longest since it finished a turn or asked you something while you were elsewhere. Visiting a session clears it, so pressing the key again walks through the rest. Finished turns are tracked for every agent; waiting-on-you for Claude Code.
  • Keyboard shortcuts — Ctrl+Alt+Enter starts a session with your default agent in the worktree you are in, Ctrl+Alt+F opens Find Session, and Ctrl+Alt+A shows the Agntree sidebar (Ctrl+Cmd+… on macOS). With the Workspaces tree focused, F2 renames the selected session, Delete removes the selected sessions from the list, and Ctrl+C copies the resume command; with All Files focused, F2, Delete, and Ctrl+C / Ctrl+X / Ctrl+V rename, delete, copy, cut, and paste. Agntree Keyboard Shortcuts… in the Agntree … menu opens the Keyboard Shortcuts editor on Agntree's commands, where every one can be changed or removed. Session and file row commands now act on the selected row when run from a key, so you can bind your own.
  • Act on several sessions at once — Select session rows with Shift or Ctrl/Cmd click, then Remove Session from List…, Close Session, Star Session, or Unstar Session applies to all of them. The confirmation counts and names the sessions being removed.
  • Copy Resume Command and Copy Session ID — On a session's right-click menu: the command that resumes it from any terminal, or its native session ID.
  • Default agent — Choose Set Default Agent… (in the New Session menu or the Agntree … menu) and the + on a worktree or folder starts that agent in one click instead of opening a menu. Every agent and surface stays available from the row's right-click New Session menu. Agntree: New Session in the Command Palette does the same, and asks which agent when no default is set or the default is not installed. Stored as agntree.defaultHarness; empty asks every time.

Changed

  • New icon — Agntree has a new icon in the activity bar, the Extensions view, and the Marketplace: an upward prompt caret with a cursor block, which reads as the letter A.
  • Settings you can find and read — Agntree Settings… in the Agntree … menu opens the Settings editor on Agntree's settings, now grouped into Sessions, Notifications, Find Session, Window, and Agent Commands. Each one says what it does first, choices have plain names (Terminal / Agent's VS Code panel, Claude Code instead of claude), Find Session effort is a dropdown, and each agent's launch command is its own text box (agntree.harnessCommands.claude, …) instead of an object edited in settings.json. Existing settings keep working, including an agntree.harnessCommands object.
  • New Session from the palette starts where you are — Agntree: New Session uses the worktree the Changes and All Files panels show, and asks only when there is none.
  • Session rows stay for 15 quiet days — The default for agntree.autoImport.retentionDays is now 15 instead of 7. A value you set yourself is unchanged.
  • Starred Sessions shortcut moved — It is now Ctrl+Alt+S (Ctrl+Cmd+S on macOS); the old Ctrl+Shift+S / Cmd+Shift+S took over VS Code's Save As.
  • Check Out Pull Request… is in the Agntree … menu — It asks which repository when you have more than one, in addition to the repository's right-click menu.
  • New documentation and website — The README, the user documentation under docs/, and the website at subhashkhileri.github.io/agntree are rewritten from scratch: a page for every feature and agent, guides for running agents in parallel and resuming a session, and reference pages for settings, commands, and keyboard shortcuts.
  • Easier to find in the Marketplace — The extension is now listed as Agntree — Session & Git Worktree Manager for Claude Code, Codex, opencode, Pi, under the AI, Chat, and SCM Providers categories.
  • Clearer menus — Right-click menus are grouped the same way on every row: start or open, then edit, then git, with anything that removes something last. Names now say what the action does: Open in This Window (was Activate Workspace), Open Terminal Here, Check Out Pull Request…, Merge Branch into This Worktree…, Fork Session Here, Fork Session to New Worktree…, Remove Session from List…, Remove All Sessions from List… (was Clear All Sessions), Remove from Agntree…, Reveal in File Manager, and Find Session Settings…. A session row shows Star Session or Unstar Session by its state instead of Toggle Star, and the … menu says Turn On / Turn Off for Auto-Switch Workspace Folder and Focus on Startup.
  • A Command Palette that only lists what works there — Every command is filed under Agntree:, and actions that need a row under the cursor (rename, fork, delete a worktree, stage a file, …) no longer appear in the palette, where they did nothing.
  • Session details no longer show tokens or cost — The session tooltip and the Find Session view keep the last exchange, message count, model, and agent, and drop token counts and cost.
  • opencode previews load when you hover a row — An opencode session's last exchange is fetched when you hover its row, instead of an export running for every opencode row on the first render. The preview now also refreshes as the conversation continues; previously the first preview stayed in the tooltip until the window reloaded.
  • The Changes panel stays fast with many changed files — Listing changes takes two git calls per section instead of one extra git process for every changed file.
  • Cloning and fetching no longer freeze VS Code — Clone Repository, Create Worktree from upstream, and Rebase fetch in the background while the progress notification runs; previously the whole extension host waited for the network.
  • Opening or closing a session no longer re-reads every repository — A session terminal opening or closing updates its row only, instead of listing every repository's worktrees and asking GitHub for every branch's PR again.
  • One place for new worktrees — Fork to New Worktree now suggests the same <repo>-worktrees/<branch> folder as Create Worktree and PR checkout.
  • Removing a folder or deleting a worktree removes its session rows — The rows (and any running terminals in a deleted worktree) go away with it; the agents keep the conversations. The confirmation says so.
  • Rebase recommends origin when upstream has no main or master — The recommended target is the first of upstream/main, upstream/master, origin/main, origin/master that exists, and the remotes are fetched once instead of twice.

Removed

  • Search Sessions — The repository-wide session picker is gone. Import Existing Sessions adds a worktree's sessions, and Find Session finds a session in any folder by what you did in it.

Fixed

  • Claude session names and previews come only from your prompts — Text Claude adds to a conversation as if you had typed it (a skill's instructions, a message from another session, the summary /compact leaves) no longer becomes a session's name, preview, or last prompt.
  • Renamed and non-ASCII files in the Changes panel — A staged rename is listed as the deletion and addition you can stage, unstage, or discard, and a file whose name has non-ASCII characters (café.txt) shows as modified instead of deleted.
  • A deleted worktree forgets its pull request — Deleting a worktree checked out from a PR clears its PR mark, so a new worktree later created at the same path no longer shows the old PR number and icon.
  • Sessions of a re-added folder can be imported again — Removing a folder used to leave its session rows hidden in storage, where they kept the same sessions from ever being imported once the folder was added back.
  • Fork to New Worktree keeps your uncommitted work intact — Copying changes into the new worktree now carries edits to binary files and untracked files whose names contain spaces, quotes, or non-ASCII characters; previously those were silently skipped. The fork also finds its new worktree when the path you entered goes through a symlink.
  • Discard All lists unusual file names exactly — The confirmation shows untracked names with spaces or quotes as they are, instead of git's quoted form.
  • The All Files panel follows the session you open — Opening or forking a session now points both the Changes and All Files panels (and their titles) at its worktree; previously only the Changes panel followed.
  • Deleting a detached worktree never deletes a branch — A worktree with no branch checked out offers only Delete Worktree; previously Delete Worktree & Branch force-deleted any local branch that happened to share the folder's name. Session terminals now close before the directory is removed.
  • Untracked nested repositories are copied on Fork with Changes — An untracked folder that is itself a git repository was skipped when copying uncommitted work into a new worktree.
  • Your own session names are never replaced — A name you chose that starts with "New Session" is no longer overwritten by the agent's summary.
  • A staged new file opens with its staged content — Opening a newly added file under Staged Changes shows what will be committed instead of the working copy.
  • Rebase no longer offers the branch's own remote copy — origin/<branch> is left out of the rebase targets for <branch>.
  • Turn state recovers from a failed transcript read — A one-off read error no longer leaves a session's working/done state stale until the agent writes again.
  • Opening a change no longer rewrites your diff layout — The Changes panel used to switch the global diffEditor.renderSideBySide setting to inline on every open, for every diff in VS Code and across Settings Sync. Diffs now open in the layout you chose.
  • Sessions stay with the folder they belong to when roots nest — With a folder such as Documents added alongside a repository inside it, the repository's sessions also appeared under Documents, from auto-import, Import Sessions, and new opencode/Codex sessions. Each session now goes only to the deepest added folder that contains it, and rows already listed under the outer folder move to their repository, keeping names and stars.

Install

  • VS Code Marketplace
  • Manual: download the .vsix below, then run Extensions: Install from VSIX...