Skip to content

pi-issues

  • Use it for: Picking up a GitHub issue in its own branch and worktree, with the branch linked to the issue on GitHub and the issue marked In progress, and setting issue statuses without Projects field IDs.
  • Enable: Select packages/pi-issues/src/index.ts with pi config.
  • Controls: /issue [number...] (no number: pick an open issue; Tab completes numbers) asks for the branch and asks the agent to start it. The agent’s issue tool: action=start (issues, optional branch) and action=status (issues, status name, optional repo).
  • Settings: Optional .pi/issues.json in a checkout: base (default: GitHub’s default branch), land ("merge", the default, or "push"), task (text appended to every issue session’s task).
  • Requirements, cost & privacy: gh signed in with the repo scope, git and network access to GitHub. No model calls of its own; it reads issues and writes linked branches and issue statuses through gh.
  • Integrations & limits: pi-herdr is optional: with it the agent opens the worktree session with herdr action=spawn where=worktree; without it, open a session in the checkout yourself. pi-tool-gate is optional: the issue tool is a write, so plan and chat workflows block it. pi-issues does not open pull requests, land branches, wait for CI or create cross-repository sub-issues; the session does those with gh and git as its task says.

Choose packages/pi-issues/src/index.ts from the suite using Install & select. Installing the suite loads every entry by default; pi config narrows the selection, then /reload applies it. Do not load another copy of the component alongside the suite.

From a local suite checkout, try only this component for one run:

Terminal window
pi --no-extensions -e ./packages/pi-issues
Step Who does it Status
issue action=start: gh issue develop <n> --base <base> --name <branch>, then git worktree add in <repo>/.worktrees/<branch> pi-issues In progress (setIssueStatus)
The session works there, then opens a pull request whose body says Closes #N the session, with gh pr create In review (GitHub)
The branch lands in the default branch, by gh pr merge or a fast-forward push the session, when you ask Done, issue closed (GitHub)

The branch is the one given, else the issue’s linked branch (or the head branch of its open pull request), else one the issue body’s first lines name (Branch `trip-day` ), else a short slug of the title. An existing worktree at that path is reused. A branch that already exists on GitHub but is not linked to the issue is refused, so a name is never taken over by accident.

When base is not the default branch, GitHub does not close issues on merge, and the task tells the session to set them Done with the issue tool. Repositories without issue statuses skip the status steps.

The defaults fit a repository whose pull requests merge into its default branch. A repository that integrates in a dev branch, made the default branch on GitHub, and lands by fast-forwarding it needs only:

{ "land": "push" }

Repository-specific steps (checks, preview URLs, e2e rules) stay in its AGENTS.md, which the task tells the session to read; task adds a line every session should see.

GitHub source