P

pi-session-worktrees

Free

Pi extension that maps the git worktrees your session is working in, shows them in the footer, and publishes them as JSON for tmux pickers and other external tools. - marcoskichel/pi-session-worktrees

Visit Website
Related by shared tags and keywordsnanobrowser1HelmKlaatAI
ai-toolsaiai-agentsgitpiai assistantautomation

Overview

pi-session-worktrees is a pi extension that maps the git worktrees the current session is working in. It shows them in the footer as ⑂ feat/a fix/b and publishes them as JSON so outside tools (tmux pickers, shell scripts) can offer the same list. Worktrees are detected automatically: the session cwd, every path in a tool call, and every path in a ! bash command are resolved to their worktree root. Only linked worktrees are mapped — the main checkout is left out because external tools already know it.

The footer shows ⑂ ci/d fix/b chore/c +1 , newest first, up to 3 entries plus a +n overflow count. The /worktrees command allows picking a worktree from this session and opening it in a new tmux window (falls back to showing the path). Each session writes ~/.pi/session-worktrees/<session-id>.json with details including session_id, cwd, updated_at, and a list of worktrees with branch, path, repo_root, and opened_at. Entries pointing at deleted directories are dropped on every write, and registry files untouched for 7 days are pruned at session start.

Pricing

Free

Detailed plans have not been confirmed in our catalog. Check the official website for current limits and billing terms.

Visit Website

Prices and limits may change. Confirm the currency, billing period, seat minimum and usage caps on the official website.

Use Cases

  • Teams use pi-session-worktrees to see the git worktrees the current session is working in directly in the footer.
  • Teams use pi-session-worktrees to publish the list of worktrees as JSON for external tools like tmux pickers and shell scripts.
  • Teams use pi-session-worktrees to pick a worktree from the session and open it in a new tmux window.
  • Teams use pi-session-worktrees to automatically detect worktrees from session cwd, tool calls, and bash commands.
  • Teams use pi-session-worktrees to map only linked worktrees, excluding the main checkout.

Features

Detect worktrees used by session

Resolve tool paths to worktree roots

Display recent worktrees in footer

Publish worktree lists as JSON

Open selected worktrees in tmux

Exclude the main Git checkout

Reviews

No reviews yet. Be the first to share your experience!

Rankings & collections