pr-start

A command that begins a record of the coding conversation for a pull request, which is a proposed code change for review. It stores the ticket number, start time, and conversation transcript path in a tracking file.

In plain words
What is it for?
Use it when starting work tied to a ticket so the session can be tracked in pr-chats/.pr-tracking.json.
Why use it?
It makes it easier to connect later discussion and captured work to the correct ticket. It also records the actual start time instead of relying on an estimate.

Command for Claude Code

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/inadarei/claude-code-interactive-mode/pr-start
Clone the repo
git clone --depth 1 https://github.com/inadarei/claude-code-interactive-mode

Made for: Claude Code.

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 399 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.00399
Opus 5 $0.00000 $0.00199
Sonnet 5 $0.00000 $0.00080
Haiku 4.5 $0.00000 $0.00040

Measured 2d ago against content hash 1252020abca0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pr-start 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 2d ago.

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.

.claude/commands/pr-start.md · 21 lines

What it actually says

Start tracking a PR chat log for ticket: $ARGUMENTS

Follow these steps to start tracking a PR chat log for the specified ticket:

  1. Read the current tracking file at pr-chats/.pr-tracking.json if it exists, otherwise start with an empty JSON object {}.

  2. CRITICAL: run date -u +"%Y-%m-%dT%H:%M:%SZ" in the shell and use the output as the current UTC timestamp. Do NOT guess or estimate the time — you must use the actual command output.

  3. Find the current session's JSONL transcript file. Run this shell command to get the path:

    PROJECT_DIR="$(pwd)"; ENCODED="${PROJECT_DIR//\//-}"; ls -1t "$HOME/.claude/projects/$ENCODED"/*.jsonl 2>/dev/null | head -1
    

    Use the output as the session file path. If the command returns nothing, warn me but continue (the capture script will fall back to searching at capture time).

  4. Add an entry to the JSON object with the ticket ID "$ARGUMENTS" as the key, and an object value containing:

    • "start_ts": the UTC timestamp from step 2
    • "session_file": the JSONL file path from step 3 (or null if not found)

    Example: {"test-ticket-123": {"start_ts": "2026-03-26T21:08:21Z", "session_file": "/Users/me/.claude/projects/-Users-me-myproject/abc123.jsonl"}}

  5. Write the updated JSON to pr-chats/.pr-tracking.json.

  6. Confirm to me that PR chat tracking has started for ticket "$ARGUMENTS" at the recorded timestamp.

Important: if "$ARGUMENTS" is empty, ask me to provide a ticket ID.

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. 2d ago First seen · 21 lines · 0 tokens per session scan A 1252020abca0

Subscribe to this mod's changes

pr-start is a command published in the GitHub repository inadarei/claude-code-interactive-mode (11 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 399 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-30.