untether: Command for Claude Code

.claude/commands/pr-main.md

pr-main is a command for Claude Code from littlebearapps/untether. It costs 111 tokens per session (2,923 once invoked), scanned A, original, MIT.

A release-preparation procedure for changing a development version into a stable software release and opening its release pull request.

In plain words
What is it for?
Use it to bump the version, update release notes, run release checks, and open one development-to-main pull request.
Why use it?
It checks that development is ready, updates version and changelog records, and stops before the final merge and publication decisions.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is littlebearapps/untether's own configuration. It tells Claude Code how to work on untether itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything untether configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Read Glob Grep Edit Write Skill ToolSearch Bash(git status:*) Bash(git branch:*) Bash(git rev-parse:*) Bash(git symbolic-ref:*) Bash(git log:*) Bash(git diff:*).

Reuse

Borrowing it

Nothing to install: this file belongs to littlebearapps/untether. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/littlebearapps/untether/master/.claude/commands/pr-main.md
Clone the repo
git clone --depth 1 https://github.com/littlebearapps/untether

Made for: Claude Code.

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 pr-main

README.md
[![agentmods](https://agentmods.dev/badge/commands/littlebearapps/untether/pr-main/github.svg)](https://agentmods.dev/commands/littlebearapps/untether/pr-main)
Your own site
<a href="https://agentmods.dev/commands/littlebearapps/untether/pr-main"><img src="https://agentmods.dev/badge/commands/littlebearapps/untether/pr-main/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 pr-main

Your own site · 80×15
<a href="https://agentmods.dev/commands/littlebearapps/untether/pr-main"><img src="https://agentmods.dev/badge/commands/littlebearapps/untether/pr-main.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,923 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00111 $0.02923
Opus 5.5 $0.00044 $0.01169
Sonnet 5.5 $0.00022 $0.00585
Haiku 4.5 $0.00011 $0.00292

Measured 18d ago against content hash 023d13dc187c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-main scanned grade A with 1 finding 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 18d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

exist; PyPI serves it (`curl -s https://pypi.org/pypi/untether/json | jq -r
.claude/commands/pr-main.md · 193 lines

How it starts

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

You are handling /pr-main. /pr-main prepares a stable release and opens the dev→master PR — then STOPS. The release itself (merging that PR → auto-tag-on-master.yml → release.yml → PyPI) happens only when Nathan explicitly approves it: then /pr-main X.Y.Z --merge merges and verifies the publish (#917).

User input: $ARGUMENTS

Untether adaptations (read first)

Load .claude/rules/workflow-commands.md (routing + cross-cutting rules) and .claude/rules/release-discipline.md (semver, changelog format, FAQ, staging vs release). Key points:

  • Authority boundary (mirrors release-guard.sh). gh pr create --base master is allowed. Merging the dev→master PR is allowed only after Nathan explicitly approves this release in the conversation ("merge it", "release X.Y.Z"), and only as gh pr merge <n> --squash --admin. The guard then checks the head is dev and CI is green, and asks Nathan to confirm in the permission prompt. A finished /pr-main X.Y.Z, a green CI or an earlier approval of a different version is NOT approval. git push master, git tag v*, gh release create and --delete-branch stay forbidden — the release pipeline tags and publishes. Never work around a block.
  • The version-bump commit lands on dev (pushing to dev is allowed; master is not). The PR is dev→master.
  • fleet-rollout.sh X.Y.Z runs only after PyPI has the version, and only when Nathan asks (it's a separate step from the merge). The attestation marker gates it.
  • Confirm-gated + idempotent. Surface the PR title + body and wait for a tap; a re-invoked /pr-main must not double-open the release PR (check for an existing open dev→master PR first).
  • Untether-mode. State the confirmation in text and STOP for a reply. Keep the report brief.

Sub-commands

Form Action
/pr-main X.Y.Z Prepare the stable release + open the dev→master PR, then STOP
/pr-main X.Y.Z --merge Only after Nathan's explicit go: merge the open release PR (ask-gated) + verify the PyPI publish (M-8)
/pr-main X.Y.Z --dry-run Prepare + validate + print the would-be PR body; open nothing
/pr-main --rc-summary Finalise the (unreleased) CHANGELOG section (M-3) + validate only; no bump, no PR
/pr-main --help Usage, then stop

Read the full file on GitHub · 193 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. 18d ago Changed · +57 lines · +12 tokens per session 023d13dc187c
  2. 1mo ago First seen · 136 lines · 99 tokens per session scan A d5381771150b

Subscribe to this mod's changes

pr-main is a command published in the GitHub repository littlebearapps/untether (74 stars, last pushed today), licensed MIT. It adds 111 tokens to every session and 2,923 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.