The argument in one line.
Breaking large Claude Code projects into multi-phase plans with concision rules and GitHub Issues as context bridges lets you ship complex features without context window anxiety.
Read if. Skip if.
- A TypeScript or JavaScript engineer shipping features through Claude Code who wants to structure multi-phase work within single context windows.
- Someone already using Claude Code but frustrated with verbose plans, unclear next steps, or losing work across context resets and GitHub Issues.
- A developer managing complex features that exceed one context window and needs a repeatable system to stay on track without manual overhead.
- You're working in a language or domain Claude Code doesn't handle well — this workflow is tightly coupled to TypeScript and web/CLI tooling.
- You're looking for how to build the initial prompt or specification — this assumes you already know how to brief an AI tool and focuses only on execution workflow.
The full version, fast.
Claude Code becomes useful for non-trivial features when you front-load planning instead of jumping straight to code. Activate plan mode before the first prompt, force the model to explore the codebase and surface clarifying questions, then demand a multi-phase plan it can execute one chunk at a time. A single CLAUDE.md rule � be extremely concise, sacrifice grammar for concision � makes the plans and questions readable, and a second rule requiring unresolved questions after every plan keeps ambiguity visible. Monitor context usage between phases, stage diffs as you go, and persist the multi-phase plan as a GitHub Issue so you can clear context mid-feature and resume cleanly in a fresh window without losing progress.
Chat with this breakdown.
Modern Creator members can chat with any breakdown — ask for the hook, quote a framework, find the exact transcript moment. Unlocks at T2: refer 3 friends + add your own API key.
Create a free account →Where the time goes.

01 · Cold open + premise
Building a get-diffs CLI command for AI Hero courses. Frame: what I'm doing is less important than how I'm doing it.

02 · Plan mode explores, surfaces clarifying questions
Claude explores codebase via sub-agents, returns an interactive multi-step form. Matt answers: required option, flexible matching, diff sequence numbering.

03 · Rules file reveal — the concision rule
Escapes to /memory, shows 43-line CLAUDE.md. Key rule highlighted: be extremely concise and sacrifice grammar for the sake of concision. Called his favourite rule ever.

04 · Make the plan multi-phase
Rejects single-plan output. 5-phase plan appears. Context check: 83.7% free. Switches to accept-edits, types execute phase one.

05 · Execution loop: phases 1-3
Phase 1 done in 3k tokens. Opens VS Code, reviews diff, stages. Returns with claude continue. Phases 2 and 3 follow same rhythm. Handles accidental formatter run by telling Claude to re-read files.

06 · GitHub Issue as context bridge
Creates gh issue with full plan including checked-off phases. Clears context to 16k tokens. Types: Get the GitHub issue 24 and enact phase 4 of that plan.

07 · Phases 4-5 from fresh context
Claude fetches issue, reads correct file, implements. Issue stays in context so phase 5 needs no second fetch.

08 · Three top tips
Explicit recap: (1) concision rule in memory, (2) unresolved questions at end of each plan, (3) GitHub CLI for cross-context plan persistence.
Lines worth screenshotting.
- Starting every large task in plan mode forces the agent to explore the codebase and ask clarifying questions before writing a single line of code.
- A single CLAUDE.md rule — be extremely concise and sacrifice grammar for the sake of concision — produces dramatically more readable and actionable plans.
- Asking for clarifying questions before execution, then forcing a multi-phase breakdown, is the two-step that prevents context window overruns on large features.
- Monitoring context usage before starting execution phase gives you the signal to either proceed or reset before the conversation degrades.
- Saving the plan as a GitHub Issue before resetting the context window is the cleanest way to bridge information across sessions without re-explaining everything.
- Breaking a build into named phases (Phase 1, Phase 2) and executing them sequentially produces tighter, more reviewable diffs than letting the agent sprawl.
- Dictating your initial prompt and your answers to clarifying questions is faster and produces better specifications than typing them from scratch.
- Using Control-C to exit, running a CLI command, and then running claude continue picks the conversation back up seamlessly — no need to re-explain the plan.
- Unresolved questions at the end of a plan are a feature, not a failure — they surface design decisions that would otherwise silently bake in the wrong assumptions.
- Auto-accepting edits during the execution phase and reviewing the diff at the end is faster than approving each change individually on large features.
- The status line showing repo, branch, and staged/unstaged/new file counts gives you a live map of what the agent has touched without opening a file browser.
- Plan mode plus multi-phase breakdown is a replicable workflow that works for any feature size, not just large ones — the overhead is lower than most developers assume.
Steal the GitHub Issue trick.
The plan that survives a context reset is a plan stored outside the context window.
- Add one rule to your CLAUDE.md right now: be extremely concise and sacrifice grammar for the sake of concision. That single line makes plans scannable and questions answerable.
- Tell Claude to end every plan with a list of unresolved questions. Turns planning into a form you can answer fast.
- When a feature spans more than one session, type make the plan multi-phase before executing anything.
- Before your context fills: gh issue create with the full plan, checkboxes intact. Clear context. Resume with get GitHub issue N and enact phase X.
- Check context between phases with /context — not obsessively, but before each major execution block.
- If a file changes outside Claude (formatter, linter, manual save): tell it directly to pull the files into context. One line, done.
Terms worth knowing.
- Claude Code
- Anthropic's command-line coding assistant that runs in a terminal, reads and edits files in a project, and executes shell commands on the developer's behalf.
- CLI
- Command-line interface — a text-based program operated by typing commands in a terminal rather than clicking through a graphical interface.
- Plan mode
- A Claude Code setting, toggled with shift-tab, where the assistant explores the codebase and proposes a written plan instead of immediately editing files.
- Sub-agent
- A secondary Claude instance spawned to handle a focused task such as searching a codebase, returning a summary so the main session preserves its context window.
- Context window
- The fixed amount of text a language model can hold in memory at once, including prior messages, files read, and tool output; once full, older content must be dropped or summarized.
- LLM
- Large language model — the underlying AI system, such as Claude, that generates text responses based on a prompt and the contents of its context window.
- Token
- The unit of text a language model processes, roughly three-quarters of a word; context window size and usage are measured in tokens.
- Memory file
- A persistent rules file Claude Code loads at the start of every session, used to inject standing instructions about style, tools, and workflow preferences.
- User memory vs project memory
- Two scopes for Claude Code's rules file — user memory applies across every project on the machine, while project memory only loads inside a specific repository.
- Positional argument vs required option
- Two ways to pass input to a CLI command — a positional argument is supplied by order with no flag, while a required option must be passed with a named flag such as --repo.
- Multi-phase plan
- A plan deliberately broken into sequential implementation steps so each phase can be executed and reviewed in its own context window without overflowing the model's memory.
- Auto accept edits
- A Claude Code mode that applies file edits without pausing for human approval on each change, used once the developer trusts the direction of the work.
- Status line
- A customizable bar at the bottom of the Claude Code terminal that surfaces session info such as current repo, git branch, and counts of staged or unstaged files.
- Staged vs unstaged files
- Git states for changes — staged files are queued for the next commit via git add, while unstaged files have been modified but not yet marked for commit.
- Git diff
- A view that shows line-by-line differences between two versions of files, used to review what changed before committing.
- GitHub CLI
- A command-line tool (gh) that talks to GitHub directly from the terminal to create issues, open pull requests, and read repository data without using the web interface.
- GitHub Issue
- A trackable note attached to a GitHub repository, used here as durable storage for a multi-phase plan so the work can survive a cleared context window.
- Changeset
- A tool that records intended version bumps and release notes per pull request, then bundles them into a versioned release when merged.
- pnpm
- A fast Node.js package manager that installs dependencies using a shared content-addressable store, reducing disk use compared with npm or yarn.
- TypeScript
- A typed superset of JavaScript that catches type mismatches at compile time; a TypeScript error indicates the compiler flagged a type problem in the code.
Things they pointed at.
Lines you could clip.
“What I'm doing is less important than how I'm doing it.”
“It's 100% my favorite thing I've added to rules and I'm never taking it out.”
“My spidey senses are tingling here.”
“I'm being very direct with it. Pull the files into your context.”
Word for word.
The bait, then the rug-pull.
Matt Pocock opens mid-task — prompt already typed, plan mode already on. No setup, no definitions. The contract is stated in the second sentence: this is a real session, not a demo.
Named ideas worth stealing.
Multi-Phase Plan Loop
- Dictate rough prompt (no polish needed)
- Plan mode — explore codebase, surface clarifying questions
- Answer unresolved questions inline
- Force multi-phase if feature spans a context window
- Execute phase by phase, check context between each
- gh issue create with full plan before context fills
- Clear context, resume: get GitHub issue N and enact phase X
Seven-step loop for shipping large features without losing the plan to context resets.
CLAUDE.md Concision Rule
Single rule: In all interactions and commit messages be extremely concise and sacrifice grammar for the sake of concision. Makes plans scannable, questions answerable, diffs reviewable.
Unresolved Questions Pattern
Rule in memory: At the end of each plan, give me a list of unresolved questions to answer if any. Make the questions extremely concise. Turns planning into a form you fill out.
GitHub Issue as Context Store
Before clearing context, gh issue create with the full plan including checkboxes. Survives resets, commentable async, shareable with collaborators.
How they asked for the click.
“Thanks for watching. This ended up being a pretty chunky video, and I will see you in the next one.”
No explicit subscribe ask. No product pitch mid-video. Newsletter mentioned only in description.








































































