github

A command that creates separate Git worktrees from GitHub issues or pull requests. A Git worktree is an additional working directory connected to the same repository.

In plain words
What is it for?
Use it to list issues and pull requests, create a worktree for one, and open it in a tmux window or split pane.
Why use it?
It avoids manually finding GitHub work and creating branches and worktrees for it. You can also add comments to the related issue or pull request.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/mirinodev/maestro/github
Clone the repo
git clone --depth 1 https://github.com/mirinodev/maestro
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,721 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.03721
Opus 5 $0.00000 $0.01861
Sonnet 5 $0.00000 $0.00744
Haiku 4.5 $0.00000 $0.00372

Measured yesterday against content hash e39051dbd657, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

github scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/github.md · 535 lines

How it starts

The opening of the file, as written. The whole thing — 535 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🔸 github

Command to create orchestra members (Git worktrees) directly from GitHub Issues or Pull Requests. Integrates with GitHub CLI to seamlessly integrate development workflows.

Overview

mst github [type] [number] [options]
mst gh [type] [number] [options]  # alias

# Direct type selection (no type selection prompt)
mst github pr [number]    # Shows PR list directly
mst github issue [number] # Shows Issue list directly

# Full interactive mode (shows type selection prompt)
mst github               # Shows "What would you like to summon performers from?"

Usage Examples

Basic Usage

# List all GitHub PRs and Issues
mst github list
mst gh list

# Create orchestra member from Pull Request
mst github checkout 123
mst gh 123  # shorthand

# Create orchestra member from Issue (shows Issue list directly)
mst github issue 456

# Create orchestra member from PR (shows PR list directly)
mst github pr 123

# Interactive selection (shows type selection first)
mst github

# Add comment to PR/Issue
mst github comment 123 -m "LGTM!"

Advanced Usage

# Create and open in tmux
mst github 123 --tmux

# Create and open in vertical split
mst github 123 --tmux-v

# Create and open in horizontal split
mst github 123 --tmux-h

# Create with multiple horizontal panes
mst github 123 --tmux-h-panes 3

# Create with multiple vertical panes
mst github 123 --tmux-v-panes 4

# Create with specific tmux layout
mst github 123 --tmux-h-panes 3 --tmux-layout even-horizontal
mst github 123 --tmux-v-panes 2 --tmux-layout main-vertical

# Create with automatic setup and explicitly open in editor
mst github 123 --open --setup

Options

Option Short Description Default
--open -o Open in editor after creation (only when explicitly specified) false
--setup -s Execute environment setup false
--message <message> -m Comment message (for comment subcommand) none
--reopen Reopen PR/Issue false
--close Close PR/Issue false
--tmux -t Open in new tmux window false
--tmux-vertical --tmux-v Open in vertical split pane (legacy, use --tmux-v) false
--tmux-horizontal --tmux-h Open in horizontal split pane (legacy, use --tmux-h) false
--tmux-h Create horizontal tmux panes false
--tmux-v Create vertical tmux panes false
--tmux-h-panes <number> Create specified number of horizontal panes none
--tmux-v-panes <number> Create specified number of vertical panes none
--tmux-layout <type> Apply tmux layout (even-horizontal, even-vertical, main-horizontal, main-vertical, tiled) none

Read the full file on GitHub · 535 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 535 lines · 0 tokens per session scan A e39051dbd657

Subscribe to this mod's changes

github is a command published in the GitHub repository mirinodev/maestro (9 stars, last pushed 11mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,721 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.