Open-source CLI tool sdf uses Claude to manage stacked GitHub PRs

sdf (Stacked Diffs Flow) is an open-source CLI tool that automates stacked pull request workflows on top of git and gh. The tool uses Claude CLI as its engine to handle complex operations, with Claude listed as a proper dependency alongside git and gh, version-checked at startup. AI features degrade gracefully if Claude CLI is not present.
Key commands and features
The tool provides several commands where Claude does the heavy lifting:
sdf split— Decomposes a big branch into a stack. Claude analyzes the full diff, identifies semantic themes, and proposes a layered split plan with hunk-level precision, including when the same file spans multiple concerns. It then creates each branch in dependency order, verifies the split is lossless, and opens the PRs.sdf sync— Handles conflict resolution during cascade rebase. When an upstream PR merges and a downstream branch has a conflict,sdfbuilds a prompt with full stack context (what each branch was trying to do, what changed upstream, and actual conflict markers) and hands it to Claude CLI. Claude resolves conflicts semantically, understanding why they exist, not just where.sdf sync --with-content— Claude reads the diff for each branch and writes a title and description that explains the what and why, useful when you don't want to context-switch into writing prose.sdf ai intro— Creates a skill file so Claude Code understandssdf's commands, workflows, and conventions across sessions.
Installation and availability
The tool is free and MIT licensed, with source available on GitHub. It can be installed via Homebrew with brew install pavelpascari/tap/sdf. Documentation is available at stacked-diffs-flow.com/docs/getting-started.
This type of tool is useful for developers working with complex codebases who need to manage multiple dependent pull requests efficiently. The integration with Claude CLI allows for semantic understanding of code changes rather than just textual manipulation.
📖 Read the full source: r/ClaudeAI
👀 See Also

Decision Passport: An Audit Layer for AI Agent Execution Governance
The Claude Code leak highlights a gap in AI agent governance. Decision Passport addresses this with append-only execution records, portable proof bundles, and offline verification for tamper-evident audit trails.

Building a Geological Clock with Claude Code: Single HTML + Three.js
A product designer built eona.earth, a geological clock that maps Earth's 4.5 billion years onto 12 hours, using Claude Code, Three.js, and custom WebGL shaders — all as a single HTML file with no build step.

AgentTransfer: Open Source Tool Lets OpenClaw Agents Email Files to Each Other
AgentTransfer is an open-source single-binary server that gives each AI agent an email address and folder, enabling file sharing between OpenClaw instances via MCP. It supports upload, send, long-poll inbox, and download with SHA256 verification.
Balloon That Pops When Claude Finishes: Physical Agent UI with whisper.cpp
A desktop balloon inflates as you speak a task, then floats across your screen while Claude Code runs the agent. Transcription runs locally via whisper.cpp, agents use your existing Claude Code login. Open source.