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

Replacing Kafka, Redis, and RabbitMQ with NATS: A Developer's Experience
A developer replaced Kafka, Redis, and RabbitMQ with NATS in their architecture, sharing specific implementation details and lessons learned from consolidating multiple messaging systems into one tool.

MCP Server Indexes Codebases into Knowledge Graph for 10x Token Reduction
A new MCP server called codebase-memory-mcp parses codebases into a persistent knowledge graph using tree-sitter, reducing token usage by at least 10x for structural queries. Benchmarked across 35 real-world repositories, it replaces file-by-file exploration with graph queries.

Claw Compactor: 14-stage token compression engine for LLM pipelines
Claw Compactor is an open-source LLM token compression engine using a 14-stage Fusion Pipeline to achieve 54% average compression with zero LLM inference cost. It includes specialized compressors for code, JSON, logs, diffs, and search results with reversible compression capabilities.

Claude Code Skill Converts Stitch Designs to Next.js with Zero Pixel Drift
A Claude Code skill converts Google Stitch AI designs to Next.js components with mandatory verification checkpoints to prevent pixel drift, preserving exact values and handling assets.