stacked PRs for agent-scale review

GitHub ships stacked PRs to GA with atomic merge, VS Code support, and gh stack CLI GitHub
TL;DW
  • Stacked PRs now generally available on all github.com plans; repos using stacks see 9% increase in merged code and 5% improvement in time to merge.
  • GH Stack CLI handles complex Git operations including cascading rebases; designed for agents and AI swarms to execute in parallel work trees.
  • Stack merge requires not only current PR to be green but all PRs below it; blocks upstack PRs if lower PRs fail CI or lack approval.
  • Keyboard shortcuts (Vim-like) navigate between stack layers during code review; dedicated stack link provides bird's-eye view of all PRs, CI status, and reviews.
  • Auto-merge now available for stacked PRs—watches entire group and merges atomically once all PRs ready, coordinating multiple changes automatically.
  • Branch protection rules and CI workflows from merge target (e.g., main) automatically apply to all PRs in stack regardless of intermediate targets.
  • VS Code integration enables viewing stacked PR statuses, switching branches, and resolving conflicts during cascading rebases natively in editor.
  • Atomic merge operations allow merging multiple stacked PRs as single transaction with single push; retargets and rebases upstack PRs automatically.
  • Stack rebase ensures linear commit history across all branches; available via CLI, Copilot app, VS Code, and github.com with signed commits.
  • Monorepo full-stack changes (database, API, frontend) can split into separate PRs by code ownership group, enabling parallel review and faster approval.

Stacked PRs let teams break large diffs into dependent chains that review in parallel and merge atomically. Repos using the feature show 9% higher merged code volume and 5% faster merge times; new additions include auto-merge for entire stacks and git worktree support for parallel agent work.

autonomous agentic coding safety

Anthropic shifts Claude Code from manual approval to autonomous multi-agent sessions AI Engineer
TL;DW
  • Opus 55 and Claude 3.5 Fable handle long-running tasks and self-verification; shift from steering mid-session to autonomous workflows managing dozens of parallel sessions.
  • Modern Claude.md files should only include what Claude cannot infer from code; remove "important!" markers and stack details—use `doctor prompt audit` to optimize for current models.
  • Auto mode blocks ~89% of dangerous commands versus 14% caught by humans; use deny rules in project settings for irreversible actions (reading .env, SSH keys, forced pushes).
  • Sandbox shell commands to restrict file access and network reach; run long sessions in Cloud sessions (not local) to isolate environment—CI secrets use network secrets, not model context.
  • Set up verification points (tests, builds, screenshots) that Claude checks between tasks; failing checks must exit with code 2, not 1, to trigger Claude's self-fixing loop.
  • Hooks guarantee execution at specific points: run linter on every file edit, tests on task completion, full suite before finishing—gives more control than prompting alone.
  • CI auto-fix and merge-when-ready eliminate human review for low-risk changes (docs, copy); higher-risk changes need 1–2 reviewers; always run checks regardless of session setup.
  • Orchestrator pattern with Claude Code Projects (beta): single main session splits work into parallel threads, each with separate models—Fable for orchestration, Opus 55 for execution.
  • Anthropic increased daily code changes from 2,500 (May) to 30,000+ (September) by moving developers from approving every command to managing orchestrated autonomous workflows.
  • Best practices shifted entirely: models now steer, auto mode + deny rules approve, environment restricts, tests verify—humans start the first session and review the final output.

As Claude models improved, Anthropic moved from human approval of every command to auto-mode orchestration: safety now enforced at three layers—model intent, harness deny rules, and sandboxed environments. One orchestrator session spawns dozens of workers; CI hooks and tests replace manual review before merge.