pr-submit

pr-submit is a command for Claude Code from dagster-io/dagster. It costs 20 tokens per session (298 once invoked), scanned A, original, Apache-2.0.

A command that commits the current branch and submits it as a pull request through Graphite, a tool for managing stacked branches and pull requests. It can generate the commit message and update the PR details.

In plain words
What is it for?
Use it to commit changes, squash and rebase a Graphite stack, submit a PR, and receive its GitHub and Graphite links.
Why use it?
It combines several submission steps and handles Graphite's branch-stack workflow. It also reports common submission failures without trying to hide them.

Command for Claude Code

About the project

Dagster is a platform for developing, running, and observing data assets, such as datasets and the processes that produce them. It is used to organize and automate data workflows.

dagster-io/dagster · 16,073 stars · on GitHub

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/dagster-io/dagster/pr-submit
Clone the repo
git clone --depth 1 https://github.com/dagster-io/dagster

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-submit

README.md
[![agentmods](https://agentmods.dev/badge/commands/dagster-io/dagster/pr-submit.svg)](https://agentmods.dev/commands/dagster-io/dagster/pr-submit)
Your own site
<a href="https://agentmods.dev/commands/dagster-io/dagster/pr-submit"><img src="https://agentmods.dev/badge/commands/dagster-io/dagster/pr-submit.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 298 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.00020 $0.00298
Opus 5 $0.00010 $0.00149
Sonnet 5 $0.00004 $0.00060
Haiku 4.5 $0.00002 $0.00030

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

Security

Grade A, and why

pr-submit 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 4d 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/erk/pr-submit.md · 59 lines

What it actually says

Submit PR

Automatically create a git commit with a helpful summary message and submit the current branch as a pull request.

Note: This command squashes commits and rebases the stack. If you prefer a simpler workflow that preserves your commit history, use /erk:git-pr-push instead.

Usage

# Invoke the command (description argument is optional but recommended)
/erk:pr-submit "Add user authentication feature"

# Without argument (will analyze changes automatically)
/erk:pr-submit

Implementation

This command delegates to erk pr submit which handles everything:

  • Preflight checks (auth, squash commits, submit to Graphite)
  • AI-powered commit message generation
  • PR metadata update with title and body
  • PR validation

Execute

Run the full submit workflow:

erk pr submit

Report Results

The command outputs:

  • PR URL
  • Graphite URL
  • Success message

Error Handling

If erk pr submit fails, display the error and stop. The Python implementation handles all error cases including:

  • Authentication issues (Graphite/GitHub)
  • Merge conflicts
  • No commits to submit
  • Submission failures

Do NOT attempt to auto-resolve errors. Let the user fix issues and re-run.

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. 4d ago First seen · 59 lines · 20 tokens per session scan A 4bcb22da46b0

Subscribe to this mod's changes

pr-submit is a command published in the GitHub repository dagster-io/dagster (16,073 stars, last pushed 7d ago), licensed Apache-2.0. It adds 20 tokens to every session and 298 once invoked, about $0.0001 per session on Opus 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-08-30.