start-ticket

start-ticket is a command for Claude Code from MadAppGang/magus. It costs 52 tokens per session (1,590 once invoked), scanned A, original, MIT.

A command that opens a tracked work item in a separate terminal session and Git worktree, then starts a manager session and marks the item as in progress.

In plain words
What is it for?
Starting one ticket, creating its worktree, launching its development session, and updating its tracker status.
Why use it?
It keeps ticket work isolated from the main checkout and gives each ticket its own working session.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the orchestrator plugin — 3 skills, 1 command shipped together

Good fit Starting one ticket, creating its worktree, launching its development session, and updating its tracker status.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MadAppGang/magus
Claude Code
/plugin install orchestrator

Made for: Claude Code.

Or install orchestrator, the plugin that ships this one along with the rest of its 3 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for start-ticket

README.md
[![agentmods](https://agentmods.dev/badge/commands/madappgang/magus/start-ticket/github.svg)](https://agentmods.dev/commands/madappgang/magus/start-ticket)
Your own site
<a href="https://agentmods.dev/commands/madappgang/magus/start-ticket"><img src="https://agentmods.dev/badge/commands/madappgang/magus/start-ticket/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for start-ticket

Your own site · 80×15
<a href="https://agentmods.dev/commands/madappgang/magus/start-ticket"><img src="https://agentmods.dev/badge/commands/madappgang/magus/start-ticket.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,590 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00052 $0.01590
Opus 5.5 $0.00021 $0.00636
Sonnet 5.5 $0.00010 $0.00318
Haiku 4.5 $0.00005 $0.00159

Measured today against content hash da381b29d37e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

start-ticket 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 today.

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.

plugins/orchestrator/commands/start-ticket.md · 105 lines

How it starts

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

/orchestrator:start-ticket

Start ticket $ARGUMENTS in a new tmux window or herdr tab. Do every step yourself, and never run git pull, a plugin update or a worktree command in your own Bash: the window runs them.

Only triage runs this. Triage alone starts ticket sessions; in a manager or child session the hook refuses it and names triage as the route.

One ticket at a time. The window's git pull, plugin update and worktree creation all work on one main checkout, so two starts together race. With several tickets, finish steps 1 to 7 for the first before beginning the next. Never run two launcher calls in parallel, not as two Bash calls in one message and not as background jobs. The launcher also holds a lock per checkout, so a start from another session waits for the one before it.

The tracker, its four actions and the script below are specified in the "Tracker" section of ${CLAUDE_PLUGIN_ROOT}/references/three-levels.md. Read that section before step 1.

  1. Find the tracker. Use the one the product repo's CLAUDE.md names. Otherwise run

    bun --env-file=/dev/null "${CLAUDE_PLUGIN_ROOT}/scripts/ticket-ref.ts" '<ticket-ref>' --dir <the repo's main checkout>
    

    with the reference single-quoted: unquoted, #123 starts a shell comment.

    and take the tracker from its tracker field as the Tracker section says. A bare key with no single Linear MCP server, or exit 1 (a reference it does not recognise): ask the user once and store the answer as that section says.

  2. Read the ticket through the tracker: title, URL, state, labels. Done or Canceled in Linear, or CLOSED on GitHub: stop and say so.

  3. Get the colour and name from the script, with the ticket's labels and 2 to 4 words from the title that say what the ticket is:

    bun --env-file=/dev/null "${CLAUDE_PLUGIN_ROOT}/scripts/ticket-ref.ts" '<ticket-ref>' --dir <main checkout> \
        --labels "<labels, comma-separated>" --words "<w1> <w2> <w3>"
    

    Use its colour and name as printed. For example, issue #229 "a slot that writes its answer to a file is reported empty", labelled bug, gives red and gh-229-slot-file-answer. A null colour: ask once (red = bug fix, green = feature, blue = improvement), add a label of that kind through the tracker, and run the script again. Exit 1 on the words: choose fewer or shorter ones.

  4. Build the prompt: /orchestrator:manager <id> <url> — <title>, with the script's id and the ticket's real URL. The manager picks the workflow from the same colour.

  5. Open the window with one foreground Bash call and timeout: 600000:

    bun --env-file=/dev/null "${CLAUDE_PLUGIN_ROOT}/scripts/ticket-window.ts" --name <name> --colour <colour> \
        --ticket '<id>' --ticket-url '<url>' \
        --prompt "/orchestrator:manager <id> <url> — <title>"
    

    --ticket and --ticket-url go into the launch claim, so the new session starts as this ticket's manager in your family and the status band lists it at once. Single-quote both.

    Inside tmux it opens a window in the current session; inside herdr, a tab in the current workspace that does not take focus. Either way it sits at the main checkout of the current repo; pass --dir <main checkout> when the ticket's repo is another one. --session is tmux only. When both are in play (herdr inside tmux, or tmux with herdr installed) the launcher follows the answer triage stored. Set ORCHESTRATOR_MULTIPLEXER=tmux (or herdr) only when the user asks for the other one.

    The window runs git pull --ff-only, then magus sync when magus is installed, then starts Claude Code in a new worktree. The call first waits, up to 16 minutes, while another start in the same checkout holds the lock, and returns once the window is open. A detached second stage waits for Claude Code to come up, releases the lock, types the prompt, and logs SENT, TIMEOUT, GONE or UNTRUSTED to the launcher's log in its state directory ($ORCHESTRATOR_STATE_DIR, else ~/.claude/orchestrator/).

Read the full file on GitHub · 105 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. today Changed da381b29d37e
  2. 20d ago Changed · +1 lines 96db82b5fb12
  3. 21d ago Changed · +12 lines 53676e382d03
  4. 24d ago First seen · 92 lines · 52 tokens per session scan A 5779a0d8bad0

Subscribe to this mod's changes

start-ticket is a command published in the GitHub repository MadAppGang/magus (16 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 1,590 once invoked, about $0.0002 per session on Opus 5.5. 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-11-07.

Related

start-ticket compared with commands from other repositories

start-ticket next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
start-ticketMadAppGang/magusCommand16todayMITA52Claude Code
session-reportdamusix/atomic-claudeCommand1172d agoMITA31Claude Code
standupvvedantb/evaCommand100todayMITA0Claude Code
pr-riskkumaran-is/claude-code-onboardingCommand37todayMITA0Claude Code
commitechoVic/blade-codeCommand18115d agoMITA8Claude Code
gitazrtydxb/procoderCommand21222d agoApache-2.0A20Claude Code
git-workflowHermeticOrmus/LibreUIUX-Claude-CodeCommand1151mo agoMITA14Claude Code