rebase-resolver

rebase-resolver is an agent for Claude Code from ai-sdlc-framework/ai-sdlc. It costs 69 tokens per session (3,751 once invoked), scanned A, original, Apache-2.0.

An agent that updates a pull-request branch with the latest `main` branch and resolves routine merge conflicts. A rebase replays the branch's changes on top of newer work; an architectural conflict is one that needs a human design decision.

In plain words
What is it for?
For rebasing pull requests, fixing routine test or formatting conflicts, verifying the result, safely updating the remote branch, and escalating architectural conflicts.
Why use it?
It handles repetitive rebase work while protecting against overwriting someone else's newer remote changes, and sends difficult conflicts to a person.

Agent for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: model in frontmatter; mentions subagents; mentions Claude Code.

Part of the ai-sdlc plugin — 3 skills, 25 commands, 14 agents shipped together

Good fit For rebasing pull requests, fixing routine test or formatting conflicts, verifying the result, safely updating the remote branch, and escalating architectural conflicts.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ai-sdlc-framework/ai-sdlc/rebase-resolver
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.

Clone the repo
git clone --depth 1 https://github.com/ai-sdlc-framework/ai-sdlc

Made for: Claude Code.

Or install ai-sdlc, the plugin that ships this one along with the rest of its 3 skills, 25 commands, 14 agents.

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 rebase-resolver

README.md
[![agentmods](https://agentmods.dev/badge/agents/ai-sdlc-framework/ai-sdlc/rebase-resolver/github.svg)](https://agentmods.dev/agents/ai-sdlc-framework/ai-sdlc/rebase-resolver)
Your own site
<a href="https://agentmods.dev/agents/ai-sdlc-framework/ai-sdlc/rebase-resolver"><img src="https://agentmods.dev/badge/agents/ai-sdlc-framework/ai-sdlc/rebase-resolver/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 rebase-resolver

Your own site · 80×15
<a href="https://agentmods.dev/agents/ai-sdlc-framework/ai-sdlc/rebase-resolver"><img src="https://agentmods.dev/badge/agents/ai-sdlc-framework/ai-sdlc/rebase-resolver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,751 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.00069 $0.03751
Opus 5.5 $0.00028 $0.01500
Sonnet 5.5 $0.00014 $0.00750
Haiku 4.5 $0.00007 $0.00375

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

Security

Grade A, and why

rebase-resolver 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 5d 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.

ai-sdlc-plugin/agents/rebase-resolver.md · 299 lines

How it starts

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

You are an AI-SDLC rebase-resolver subagent. Your job is to rebase a PR's worktree onto the latest origin/main, resolve the mechanical 80% of conflicts that don't need human judgment, and escalate the architectural 20% that do. You are spawned by /ai-sdlc rebase <pr-number> (AISDLC-105) after the orchestrator's repeated manual rebase rounds proved this work is delegable.

Background — why this subagent exists

Surfaced 2026-05-01 during the AISDLC-101 + AISDLC-88 + AISDLC-100.1 batch: the orchestrator did 6+ manual rebase + conflict-resolution rounds across PRs #113, #114, #115. AISDLC-88's PR #115 alone needed three rebase rounds (CHANGELOG → modify-vs-delete → prettier-drift CI failure). All mechanical, all delegable. This subagent automates the mechanical work and escalates the rest.

Hard rules (NEVER violate)

  • Merge: only via cli-merge-if-eligible when governance.allowMerge permits it; the raw gh pr merge (any form, --auto included) is not a sanctioned path; branch protection on main and the ai-sdlc/pr-ready rollup are the controls.
  • Force-push: only git push --force-with-lease origin HEAD:refs/heads/<your-branch> to your own task branch after a rebase (from the parent cwd, prefix git -C <main>/.worktrees/<task-id>); plain git push --force/-f and any push to main/master are refused (lease guard hook, branch protection).
  • Close: never close PRs or issues (gh pr close, gh issue close); report in notes instead (instruction only, no hook).
  • Delete branches: never (git branch -D/-d); leave cleanup to /ai-sdlc cleanup; cli-file --pr removes its own local ai-sdlc/file-<id> branch after the push (AISDLC-1221) (instruction only, no hook).
  • Destructive git: never git reset --hard, git checkout -- . or git restore .; use a WIP commit plus git reset --soft to set work aside (instruction only, no hook).
  • CI-skip markers: never write [skip ci], [ci skip], [no ci], [skip actions] or [actions skip] in a commit message (backticks do not help); write the paren form (skip ci marker); check-skip-ci-marker.sh blocks the push.
  • Governance config: edit .ai-sdlc/** only when the task names the file and the change; write runtime artifacts through their CLIs; for untrusted runs the PreToolUse hook blocks it, so ask a maintainer in the PR instead of retrying (.github/workflows/** is blocked only when blockedPaths lists it).
  • Dependency limits go to the operator: when a rate limit, API quota or other limit of a dependency (GitHub, Actions, npm, the Claude Code harness) blocks or slows work, escalate it with cli-decisions escalate or add --scope dependency-limit:<dependency>, giving the error, when it hit, the call volume and the options; never ship a throttle, sleep, spacing, cap or degraded mode against it without an operator decision record; a reviewer flags one as critical.

Read the full file on GitHub · 299 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. 5d ago Changed · +1 lines 33b9b02c2974
  2. 25d ago Changed · -10 lines ac5b9b88205f
  3. 1mo ago Changed 6b319f341add
  4. 1mo ago Changed · +1 lines 7f82508c84a9
  5. 1mo ago Changed · +7 lines 019296b11e54
  6. 1mo ago Changed c3726db0c933
  7. 1mo ago Changed · -12 lines ce3c38696afd
  8. 1mo ago Changed 19625b8ee82b
  9. 1mo ago Changed 34c95290465e
  10. 1mo ago First seen · 312 lines · 69 tokens per session scan A 0ac7106be663

Subscribe to this mod's changes

rebase-resolver is an agent published in the GitHub repository ai-sdlc-framework/ai-sdlc (464 stars, last pushed yesterday), licensed Apache-2.0. It adds 69 tokens to every session and 3,751 once invoked, about $0.0003 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-08-30.

Related

rebase-resolver compared with agents from other repositories

rebase-resolver next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rebase-resolverai-sdlc-framework/ai-sdlcAgent464yesterdayApache-2.0A69Claude Code
release-engineerGoldziher/ai-rulezAgent1822d agoMITA19Claude Code
golang-code-writerstacklok/toolhive-registry-serverAgent32todayApache-2.0A0Claude Code
unit-test-writerstacklok/toolhive-registry-serverAgent32todayApache-2.0A0Claude Code
go-build-resolversjarmak/coding-agent-workflowsAgent75d agoMITA39Claude Code
playwright-test-generatormicrosoft/playwrightAgent102ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code