Turn one giant AI-generated pull request to a reviewable stack
Stacked pull requests split a large, agent-generated feature diff into a chain of small, dependency-ordered PRs that are each scoped to one concern. A worked example adds product search to a shopping assistant as four layers: catalog data, search API, chat wiring, and grounded UI. Each layer is built by a scoped custom agent and reviewed by a different owner using the gh-stack CLI (init, add, push, submit, rebase, sync). The recommended review flow is to read top-down for context and review bottom-up. Fixes to a lower layer are propagated with gh stack sync. Prefer local gh stack rebase over the web Rebase button, because the server-side rebase resets the committer and produces unsigned commits that can break branch protection.
Related posts
- How AI Assistants Can Decode GitHub Repos for UI Writers
Docker mediumAdeptAn LLM agent can reliably flag user-facing copy changes in a branch when it is given narrow tools and expert hints about what "user-facing" means. GitHub Copilot's repo chat could not even count open PRs. A first prompt that gave the model bash and raw git diff also failed: diffs were huge, important files were buried and extra tools invited hallucination. The working two-step flow first lists only likely UI files (using --files-only and --no-pager with an alpine/git container) and saves the list. It then diffs just those files against main with --no-color --minimal, guided by frontend-engineer hints about JSX text nodes, notifications, toasts and Error constructors. This produced an accurate list of copy changes on a real Docker PR.
- Keeping code moving with clearer review expectations
Sourcegraph mediumAdept
Sourcegraph is experimenting with an AI agent that routes each pull request to one of three review paths: Ship (no review), Show (review after merge) or Ask (review before merge). The agent inspects the diff, surrounding code and the author's history, and application code applies explicit rules to pick a path. Familiarity requires two merged, reviewed PRs plus a relevant contribution in the past 30 days, and changes to authentication or sensitive-data exposure always require review. Early lessons: familiarity must be scoped to specific components, visible reasoning makes decisions contestable, and the bot's own comments can become interruptions. Fewer stamp requests so far says little about review quality.
- Automating cross-repo documentation with GitHub Agentic Workflows
GitHub Engineering mediumAdeptAspire's team uses GitHub Agentic Workflows to auto-draft documentation pull requests in a separate docs repo whenever a product pull request merges, with the shipping engineer assigned as reviewer. The agent gets read-only access and emits intent, while a narrowly scoped safe-outputs handler with a two-repo GitHub App token, branch allow-lists, protected files and draft-only PRs performs the writes. A deterministic bash resolver maps milestones to docs release branches before the agent runs. Over 30 days, 396 runs produced 82 docs PRs, all merged, at a median 44.8 hours, after the prompt was tightened with negative examples to cut an initial ~13% false-positive rate.
- A practical guide to shipping with Claude Code
claude.dev mediumAdeptClaude Code's /ship command commits pending changes, opens a PR, runs /code-review and fixes valid findings, then watches the PR for up to seven days. While watching it fixes failing checks, resolves conflicts and addresses review comments, and it escalates design-level questions after at most three attempts on an issue. The guide covers the /code-review effort levels and flags, /steward for existing PRs, and the security caveats of the local watch. Merging the base branch runs code under your credentials, and git hooks are bypassed. Recurring feedback should be encoded in CLAUDE.md, REVIEW.md, and verify and steward skill files before asking admins to pilot Claude Ship team-wide with protected branches.
- Accelerating Delivery: How AI Agents Can Own the Initial Code Draft
8th Light easyNoviceA multi-agent workflow turns a Jira ticket prompt like "Let's work on FEAT-123" into a review-ready pull request. An orchestrator spawns narrowly scoped planning, coding and review agents to avoid context rot. Safety comes from branch permissions, scoped hooks and mandatory human merge. Reliability comes from a hierarchy of hooks/scripts, then specialized agents, then repository context files, along with caps on review rounds and build-repair attempts that hand control to a developer. Adversarial plan review, holistic changeset review and a retrospective that writes lessons back to agent context files produced a fourfold increase in PRs opened without flooding reviewers, though the text gives little implementation detail.