← Plugins

Tree Sidebar

An agent tree sidebar for Paseo: sub-agents nest under the agent that started them, even across git worktrees and projects. One capsule per row, pins per level or to the top, and a General project for chats outside any project.

$ clisbot plugin add nightwatcher314/tree-sidebar
Report a bug
nightwatcher314Sidebar0installs06f54396ece5Source
Tree Sidebar screenshot 1Tree Sidebar screenshot 2Tree Sidebar screenshot 3

Tree Sidebar is for people who run many coding agents at once in Paseo, such as Claude Code, Codex, OpenCode and Pi. Sub-agents nest under the agent that started them, so a multi-agent run reads as one tree.

Agent tree sidebar

Turn it on under Settings, Sidebar, Sidebar view, Tree Sidebar. Lineage comes first: sub-agents show under the agent that started them, at any depth, even when they run in another worktree or another project. Rows show the provider and whether an agent is running, waiting for permission or failed.

  • A workspace row stands for the first agent in it; any other top-level agent in the same workspace gets its own row. Rows count the workspace's open terminals and scripts (press one to open it) and show its diff.
  • When a project's sessions sit under another project's agent, the project shows a pointer row instead ("2 in acme-web · Ship the checkout redesign"). Press it to jump to that agent's row, which lights up for a moment; its chevron lists the sessions here.
  • Each project ends with one Inactive group, closed by default: empty workspaces that no agent claims, and sessions with no activity, theirs or below them, for a week (General only by default; settings can cover every project or none, and change the number of days). The open session and rows pinned in their level never fold, and nothing is archived. The group remembers whether it is open.
  • Worktree badges show which git worktree and branch each session works in, with one color per worktree. Paseo’s default sidebar can also show the badge from its Show menu.
  • Drag projects and sessions to set your own order, which every client sees; a project added later joins at the end. On mobile, long-press a project header instead.
  • Rename a row: the name becomes the workspace's Paseo title and the agent's name, so Paseo's tabs agree. Agents on other hosts keep their name (only this plugin's host can rename them). When the Custom Title plugin writes an AI title, the row's agent takes that name too.
  • A row with anything under it carries one capsule, such as "● 2 / 27": how many are busy (or waiting for input) out of how many, counting nested sessions and the agent's own running work together. Folded, it turns amber or red when one below waits or failed, and the line under the row names the busiest branches. Press the capsule to fold or open the row; the row keeps its provider's logo.
  • Work an agent runs inside its own session (provider sub-agents, shells, monitors, heartbeats) shows under its row. On a row without nested sessions it starts open while something works and folded when it only waits; heartbeats between runs do not spin.
  • Choose the buttons a row shows on hover in the plugin settings: pin within this level, rename, AI rename, copy reference, copy path and archive. On hover a row's pins join the buttons; press one to unpin.
  • Pin a row within its level to keep it first among its siblings (grey pin), or pin it to the top to keep it in the pinned section (accent-colored pin). A project's top row pinned to the top shows only there; nested rows stay under their parent. Pinned rows are the same rows, nested sessions included, and fold on their own.
  • Archiving a row archives its agent and leaves the workspace. Clean up worktree removes the workspace with its worktree folder, after asking; it is unavailable while something there is running.
  • Hide a project from the Tree Sidebar and bring it back from Hidden projects; nothing in Paseo changes. Remove from Paseo (projects on this plugin's host) archives the project's sessions, stopping running ones, closes its terminals and removes the project from Paseo. Folders and files on disk stay.
  • Chats that belong to no project live in General, drawn like any project with the same rows, menus and pins. It sits last until you move it, and its quiet chats fold into its Inactive group. New chats start from its + button. Settings can turn General off: it is then not shown and ~/.paseo-chat is not created.

Setup

Requires Paseo 0.16.1 or later. Only the tree needs to be turned on (see above).

  • Worktree badges need git on the daemon host and are left out without it.
  • To switch from Atrium, install Tree Sidebar, choose it as the sidebar view, then disable Atrium.

The sidebar is available in English and Simplified Chinese, following the app language; other languages show English.

Data access and limits

Tree Sidebar runs on the daemon host with your user's permissions. It sends nothing to its author and collects no telemetry.

Network requests

None of its own. It reads sessions, workspaces and projects through the Paseo plugin API.

Commands it runs on the daemon host (separate processes, no shell, each argument passed on its own)

  • The Paseo CLI against this daemon's home (--home from PASEO_HOME): agent update --name when you rename a row or an AI title arrives, and project delete only after you confirm Remove from Paseo.
  • Read-only git (rev-parse, worktree list, symbolic-ref, for-each-ref) in each session's folder for worktree badges and the default branch. It runs against the session's folder, not any GIT_DIR or similar variables set for the daemon, and each folder's answer is reused for a few seconds.

Files it reads

  • ~/.paseo/config.json (or $PASEO_HOME/config.json) to see whether the Custom Title plugin is enabled, for AI rename. Tree Sidebar checks $PASEO_HOME/server-id when the daemon API cannot provide its host ID for worktree badges and project visibility changes.

Files it writes

  • ~/.paseo/tree-sidebar/project-order.json (or under $PASEO_HOME) stores project and session order and hiddenProjects, a list of host and project IDs. If the file does not exist yet, the copy saved under an earlier name in the same daemon home (atrium/, then nested-agents/) is copied once; the old file is left in place.
  • ~/.paseo/tree-sidebar/sidebar-state.json (or under $PASEO_HOME) stores which rows and projects are folded or open, rows pinned within their level, and rows pinned to the top (agent references: host and agent IDs). Pins to the top saved by 0.8.1 and earlier in agent metadata (tree-sidebar.pinnedAt, or atrium.pinnedAt) move here once, and the key is then removed from those agents.
  • The ~/.paseo-chat folder for General chats (not created while General is turned off).