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

Meera: A Fully Offline AI Assistant for Linux Gnome Built on Qwen3.5-2B
Meera is an offline AI assistant for Gnome Desktop that uses Qwen3.5-2B-Q4_K_M (1.2 GB) and llama-cpp with Vulkan support. It leverages a second tiny embedding model for tool selection and RAG, avoiding prompt embedding bloat. Works on Ubuntu 24.04 with RTX 5090 and Fedora Silverblue on Intel i3.

alogin: A Go-based Security Gateway for AI Agents with Human-in-the-Loop
alogin is an open-source Go-based security gateway that provides a secure conduit between AI agents and infrastructure, featuring built-in MCP server support for Claude Desktop, human-in-the-loop safety rails, and encrypted credential storage.

Hollow AgentOS: Run Claude-like agents locally on RTX 5070 using Qwen 3.5 9B
A self-modifying agent system running Qwen 3.5 9B on local hardware cuts Claude API costs by 50%. Uses iterative testing and self-improvement loop to develop software without human intervention.

200+ App Design Specs in Markdown – Drag into Claude or Cursor for Exact UI Clones
A curated library of 200+ popular apps as structured markdown design specs with exact hex codes, type scale, spacing, every screen state, and nav graph. Drop into Claude, Cursor, or any AI agent to generate SwiftUI, Jetpack Compose, or Expo UI clones without guessing colors or spacing.