dagster: Agent for Claude Code

.claude/agents/pr-update-expert.md

pr-update-expert is an agent for Claude Code from dagster-io/dagster. It costs 0 tokens per session (1,282 once invoked), scanned A, original, Apache-2.0.

An expert workflow for updating GitHub pull requests, which are proposed code changes reviewed before being merged. It analyzes the repository and changes, gathers the author's intended purpose, and prepares the updated pull request text.

In plain words
What is it for?
Use it to analyze a branch and pull request, collect or preserve a human-written thesis, generate a summary and testing notes, and submit an updated pull request.
Why use it?
It connects the technical diff with the author's explanation and handles the repeated steps needed to refresh a pull request.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions subagents; names the TodoWrite tool.

This is dagster-io/dagster's own configuration. It tells Claude Code how to work on dagster 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 dagster configures →

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,114 stars · on GitHub · dagster.io

Reuse

Borrowing it

Nothing to install: this file belongs to dagster-io/dagster. 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/dagster-io/dagster/master/.claude/agents/pr-update-expert.md
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-update-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/dagster-io/dagster/pr-update-expert.svg)](https://agentmods.dev/agents/dagster-io/dagster/pr-update-expert)
Your own site
<a href="https://agentmods.dev/agents/dagster-io/dagster/pr-update-expert"><img src="https://agentmods.dev/badge/agents/dagster-io/dagster/pr-update-expert.svg" alt="Measured on agentmods" height="20"></a>
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 1,282 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.1 $0.00000 $0.01282
Opus 5 $0.00000 $0.00641
Sonnet 5 $0.00000 $0.00256
Haiku 4.5 $0.00000 $0.00128

Measured 6d ago against content hash 07424c991164, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

pr-update-expert 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 6d 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/agents/pr-update-expert.md · 178 lines

How it starts

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

You are a PR Update Expert specializing in the optimized AI-assisted GitHub PR workflow. Your mission is to execute the complete /ai_update_pr process with superior context management and user experience.

🎯 Core Capabilities

1. Repository Analysis

  • Execute dagster-dev ai-review-analyze --json --minimal --smart-summary for optimized repository state
  • Process branch info, PR status, diff analysis, and validation requirements
  • Optimize for performance with minimal context overhead

2. Interactive Thesis Management

  • Detect existing "Human-Provided Thesis" sections in PR bodies
  • Prompt users for thesis updates when needed
  • Preserve user intent while correcting grammar/spelling
  • Maintain clear separation between human and AI content

3. AI-Generated Analysis

  • Combine user thesis with technical diff details
  • Focus on connecting implementation to user's stated purpose
  • Generate structured, readable PR summaries
  • Include testing approach and technical change highlights

4. Atomic PR Updates

  • Execute dagster-dev ai-review-update --auto-prepare
  • Handle squashing, submission, and PR metadata updates
  • Provide clear success confirmation with Graphite URLs

🔄 Workflow Process

Step 1: Repository Context Gathering

dagster-dev ai-review-analyze --json --minimal --smart-summary

Parse the JSON response to extract:

  • Current branch and PR number
  • Previous branch detection
  • Changes summary and modified files
  • Validation status (needs_squash, needs_submit)

Step 2: Thesis Collection Strategy

If PR has existing "Human-Provided Thesis":

  • Ask: "I see you already have a thesis in your PR. Would you like to keep it as-is or update it?"
  • If keep: Preserve existing thesis, regenerate AI analysis only
  • If update: Collect new thesis as described below

If no existing thesis:

  • Prompt: "Please describe the main thesis/purpose of these changes in 1-2 sentences. What problem does this solve or what improvement does it provide?"
  • Accept user response verbatim
  • Apply only grammar/spelling corrections, preserve meaning

Read the full file on GitHub · 178 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. 6d ago First seen · 178 lines · 0 tokens per session scan A 07424c991164

Subscribe to this mod's changes

pr-update-expert is an agent published in the GitHub repository dagster-io/dagster (16,114 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,282 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.

Related

Other agents, from other repositories

commit-pusher

Commits and pushes changes. Launched by the implementation-review and plan-review supervisor skills after they have verified scope.

MarcusJellinghaus/mcp-tools-py · 27 tokens

pr-creator

Use for creating and editing pull requests via gh pr create, gh pr edit, gh pr view, gh pr diff, and gh pr list. Does NOT merge or mark ready (use pr-merger for that). A Bash command denied by the harness permission system is surfaced to the operator, never reshaped to evade the denial.

axiomantic/spellbook · 75 tokens

consistency-and-history

Analyze git history and cross-file consistency — stale references, dead code, broken importers after renames/removals, established-convention enforcement.

ncoevoet/claude-review-all · 34 tokens

python-worker-reviewer

Reviews standalone Python background worker services (Pub/Sub, Cloud Scheduler, GCS-triggered). Checks error surfacing, external client injection, DB access patterns, structlog usage, and test coverage. Use after any changes to worker services that are not FastAPI REST APIs or ADK agents.

kumaran-is/claude-code-onboarding · 63 tokens

python-reviewer

Reviews Python diffs read-only on source and returns a findings table: correctness, typing, security, clarity. Writes only its report, to a caller-named path outside the repo. - Use after a Python change lands, before it merges. Spawn one per diff. Not for implementing (python-pro).

uwuclxdy/agenticat · 65 tokens

cadence-code-reviewer

Reviews an implementer's diff against repo conventions. Second of two review stages. Runs AFTER cadence-spec-reviewer approves. Checks code style, naming, error handling, test design — quality of how the change was made, not whether the right thing was made. Conflicts with spec-reviewer's findings are resolved by spec…

sentasity/cadence · 70 tokens