What does it take to modernize an 8-year-old codebase? Stacks (on stacks). 🥞
- Source
- x.com
- Date
What does it take to modernize an 8-year-old codebase? Stacks (on stacks). 🥞 https://t.co/DHuaiLrzfX
Context
A GitHub post shows one way to keep an AI 's work reviewable when a task keeps growing: split it into stacked sessions and stacked pull requests in the GitHub Copilot app. A stack is a chain of pull requests in one repository where each targets the branch of the one below it, so later work builds on earlier changes and the chain eventually lands on the main branch.
In the post, credited to @cassidoo, the author modernized a personal dashboard app first built around 2014 that still used React 15, Less stylesheets and an old version of react-bootstrap. A first attempt, planned with Anthropic's Claude Opus 4.8 and reviewed by OpenAI's GPT-5.5, did not work because it branched from main while the deployed version ran from a partly modernized dev branch. On request, Copilot opened a new , closed that pull request and carried the styling decisions over to dev. Testing then surfaced warnings about old React functions, findDOMNode and componentWillReceiveProps, coming from react-bootstrap, and Copilot's plan recommended replacing the library entirely.
That replacement is where stacking came in. The author treats it as scope creep, noting that when an agent writes the code it is tempting to make "10,000 line pull requests" that do everything. One asked Copilot to open a pull request for the existing work and start a new session for the react-bootstrap replacement, branched off that work. The app opened the first pull request against dev, created a session that took the earlier , drafted a plan for the author to approve and ran it, then opened a second pull request stacked on the first. The styling changes and the library swap stayed separate pieces to review, while the second still built on the first.
This is one developer's account of a personal app, published by GitHub about its own product. It shows what the feature does rather than measuring time saved or review quality, and when the post was written the react-bootstrap pull request was still a draft. GitHub's later post on rendering huge pull requests in the same app deals with the opposite case, broad changes that have to land as one.
- Agent mode — A mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.
- Session — One conversation or piece of work as a harness keeps it: a record of messages, tool calls and observations that can be saved and resumed.
- Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.
- Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
Checking sign-in…
Loading comments…






