GitHub Copilot Stacked Sessions: Parallel Agent Workflows
GitHub shipped two features on July 31, 2026 that change how Copilot handles multi-step coding work: stacked sessions and stacked pull requests. Stacked sessions let you run multiple isolated Copilot agents in parallel, each on its own branch. Stacked PRs bring native stacked-diff workflows to GitHub, no third-party tooling required.
These are not flashy AI breakthroughs. They’re workflow infrastructure. But for anyone who uses Copilot as more than a fancy autocomplete, they make the difference between Copilot being a tool you consult and a tool that does real work while you do something else.
How stacked sessions work
A Copilot agent session is an isolated workspace: one branch, one task, one set of tool permissions. Before this update, you could only run one session at a time. You’d give Copilot a task, watch it work, review the result, then start the next one.
Stacked sessions remove the “watch it work” part. You can now launch multiple sessions simultaneously, each with its own configuration — different models, different tool access, different session modes. One session refactors your authentication module on Claude Sonnet. Another generates test coverage on GPT-5. A third updates the README and changelog on Copilot’s default model.
Each session runs independently. They don’t block each other. They don’t share state. When all sessions finish, you review the branches and merge what works.
The practical workflow: you open the Copilot app, describe three separate changes, and assign each to its own session. Then you switch to something else — a meeting, another repo, lunch. You come back to three branches ready for review. If one session went off the rails, you discard that branch. The other two are fine.
This matters because AI coding agents are slow. Not slow in the latency sense — slow in the human sense. A non-trivial refactor takes 5-15 minutes. Running three in sequence means 15-45 minutes of waiting. Running them in parallel means 5-15 minutes total.
Stacked pull requests: native stacked diffs on GitHub
Stacked PRs entered public preview on the same day. If you’ve used Graphite, Sapling, or git-branchless, you know the pattern: break a large change into an ordered chain of smaller, dependent pull requests. Each PR represents one logical layer. Reviewers can approve layers independently. The whole stack merges in a single operation.
Before this, stacked diffs on GitHub required third-party tooling. Graphite built a whole company around it. Facebook built Sapling internally. Countless engineering blogs have posts titled “How we do stacked PRs at [Company]” because the workflow is powerful but GitHub didn’t support it natively.
Now it does. The GitHub Copilot app integrates directly: you can create a stacked PR from your agent sessions, manage the dependency chain, and merge the entire stack from the app interface. The underlying GitHub feature works with any PR, but the Copilot integration makes it seamless for agent-generated changes.
The official docs describe stacked PRs as “an ordered series of pull requests, each representing one focused layer of a larger change, reviewable in parallel and mergeable in a single operation.” That’s accurate. The killer feature is parallel review — your teammate can review the authentication refactor while someone else looks at the database migration, because they’re separate PRs with separate diffs.
What this changes about Copilot’s role
Copilot started as autocomplete. Then it became a chat sidebar. Then it became an agent that edits files and runs commands. Stacked sessions push it further: Copilot becomes a task dispatcher.
The mental model shifts from “I’m coding with AI assistance” to “I’m delegating work to AI agents and reviewing the results.” This is not new — Claude Code and Codex have worked this way for months — but Copilot has GitHub’s distribution. It’s built into the platform where the code lives, where the PRs happen, where the review takes place.
The advantage over standalone coding agents: session state lives in branches. You don’t need to export patches or copy files between tools. The Copilot session creates a branch in your repo, commits to it, and when you’re happy, you open a PR — or a stacked PR — without leaving GitHub. For teams already on GitHub, this removes the friction of juggling an external agent tool alongside the existing workflow.
Configuration and isolation
Each stacked session gets its own configuration:
- Model selection. You can run one session on GPT-5 for complex logic and another on Claude Sonnet for boilerplate. Different models for different tasks, all within the same Copilot app instance.
- Tool access. Per-session tool permissions. One session gets filesystem access for refactoring. Another gets read-only access for documentation generation. Another gets terminal access for running tests.
- Session mode. Copilot supports different agent modes — plan mode for architecture discussions, code mode for implementation, review mode for PR feedback. Each session picks its own mode.
Isolation is the design principle that makes this work. Sessions don’t share memory. Session A doesn’t know what Session B is doing. If Session A deletes a file and Session B needs it, Session B fails — exactly as it should, because you want to catch conflicts at review time, not have silent corruption from two agents fighting over the same codebase.
The Graphite question
Graphite, the most popular third-party stacked-diff tool, raised $50M and built its entire product around making stacked PRs work on top of GitHub. Native stacked PRs on GitHub pose an obvious threat.
But Graphite does more than stacked PRs. It has a dedicated CLI, a review UI that’s more opinionated than GitHub’s, and integrations with linear, Jira, and Slack. Teams that have built their workflow around Graphite won’t switch overnight.
What changes: teams considering stacked diffs now have a native option. No CLI to install, no third-party service to provision, no additional billing line item. For smaller teams and solo developers, native stacked PRs are a default choice. For larger teams with established Graphite workflows, the calculus depends on how much they value Graphite’s UI polish and integrations over GitHub’s zero-friction setup.
The more interesting question: does Graphite build on top of GitHub’s stacked PRs API, or compete against it? The API exists now. Graphite could use it as a backend and focus on the review experience. Or they could keep their own stack and position against the native feature. My guess: they integrate, because fighting a platform feature on the platform’s own territory rarely ends well.
Who should use this
If you use Copilot for multi-file changes that span concerns — refactoring authentication while updating tests while revising docs — stacked sessions turn a serial waiting game into a parallel workflow. You’ll finish your work in the time it takes to complete the slowest session, not the sum of all three.
If you work on a team that reviews PRs, stacked PRs make large changes reviewable. Instead of one massive PR with 40 files and 2,000 lines, you get four PRs with 10 files and 500 lines each. Reviewers can approve individual layers without understanding the entire change. When all layers are approved, one merge operation brings everything in.
If you’re a solo developer, stacked sessions are useful for batching work across your project. Refactor one module, add tests to another, update docs — all in parallel while you work on something else.
Who should skip
If you use Copilot only for inline completions and occasional chat questions, stacked sessions add complexity you don’t need. The feature is designed for agent-mode workflows, not autocomplete.
If your changes are always small — single-file edits, quick fixes, minor updates — parallel sessions are overkill. One session finishes before you’d finish configuring the second.
If your team is not on GitHub or uses a different code host (GitLab, Bitbucket), these features are GitHub-specific and won’t help you.
The open question: cost
GitHub hasn’t published specific pricing for stacked sessions, but the economics are straightforward: each session consumes AI Credits independently. Running three sessions in parallel costs roughly 3x the credits of running one session in sequence — you pay in credits what you save in time.
For individual developers on the Copilot Pro plan, this could hit the monthly credit cap faster. For teams on Business or Enterprise plans with pooled credits, the tradeoff between speed and cost is a team-level decision.
What would make this compelling: a “session budget” that lets you allocate credits per session, so you can run the risky experimental refactor on a cheap model and reserve the expensive model for the critical logic change. The per-session model selection already supports this in principle — you just need to know your model costs and budget accordingly.
Bottom line
Stacked sessions and stacked PRs are not the most exciting AI announcements of July 2026. No new model, no benchmark breakthrough, no research paper. But they’re the kind of feature that changes how people actually use AI tools day to day. The shift from “AI helps me write code” to “AI does the work while I review” is not a technology problem — it’s a workflow problem. GitHub just solved a chunk of it.
How this compares to other coding agents
Claude Code and Codex both support parallel agent runs, but through different mechanisms. Claude Code uses terminal sessions — you open multiple terminal tabs, each running a separate Claude Code instance. Codex uses its own session management. Copilot’s advantage is that the sessions are native to GitHub: branches, PRs, reviews — all in the same system where the code lives.
Cursor and Windsurf have taken a different approach. They focus on the IDE experience — inline edits, real-time suggestions, tight editor integration. Copilot’s stacked sessions lean the other direction: background processing, fire-and-forget tasks, asynchronous review. Neither approach is better. They serve different moments in a developer’s day.
The feature I want next: session dependencies. Right now, stacked sessions are truly isolated — Session A can’t depend on Session B’s output. But some workflows are naturally sequential. Refactor the database schema, then update the API layer, then fix the frontend. I’d want to chain sessions so that Session B starts only after Session A’s branch is ready. You can approximate this by waiting and launching sessions manually, but native dependency chains would make the dispatcher metaphor complete.
Sources:
- GitHub Blog: Stacked sessions and pull requests in the GitHub Copilot app (July 31, 2026)
- GitHub Docs: Stacked pull requests
- GitHub Docs: Working with agent sessions in the GitHub Copilot app
- explainx.ai: GitHub Stacked PRs Public Preview (July 2026)