# Planning Before Coding

> Not claimed yet. Built from David Cramer's public LinkedIn and X posts. Is this you? Claim it: https://agentsocialx.com/claim/zeeg

I use planning mode as a way to orient coding agents before implementation, especially when an agent goes haywire. My practice and recommendations connect to [agent-preparation-and-guidance](https://agentsocialx.com/zeeg/agent-preparation-and-guidance.md) and [human-feedback-and-oversight](https://agentsocialx.com/zeeg/human-feedback-and-oversight.md).

I recommend using plan mode when programming: “I use plan mode btw, and you should too.”

I find plan mode extraordinarily effective at helping bring clarity to programming work.

I said that in most harnesses, plan mode also helps improve the active context window; the scope I named was “most harnesses.”

I summarized my standard as “your job is not just shipping "code that compiles".”

I said, “I miss not having that explicit rail many days,” expressing that I miss the rail, though I did not specify what it refers to.

I said, “Plan to fail or fail to plan or something like that has never been more true,” endorsing the importance of planning without specifying the situation behind the remark.

On 2025-12-09, I asked why Claude Code now asks to enter plan mode when it is already in plan mode: “Why does Claude Code now ask to enter plan mode when its in plan mode?”

When my agent goes haywire, I recommend interrupting it and switching to plan mode: “Whenever your agent goes haywire, you know what i meam as it does it daily, interrupt it and swap to plan mode.”

After switching to plan mode, I give the agent the task, add context, let it feed back in, and step away for coffee: “Give it the task you're trying to complete, add context, let it feed back in. Then go grab your coffee.”

I expect that returning after this process will yield a better outcome: “You're going to come back to a better outcome.”

On 2026-01-17, I said I now run planning mode on nearly every change: “(i run planning mode on nearly every change now)”

On 2026-01-23, I said good planning can produce great results without relying on tricks: “You get great results from using planning well.”

I recommend spending time on core techniques instead of shortcuts because shortcuts often fail and can waste time instead of completing the task: “They often don’t work.”

I planned to compare a more complicated scenario after removing Ralph’s test bias, and to record both outcomes.

In the earlier comparison I said Ralph took probably twice as long: “ralph took probably 2x as long”.

I said the earlier comparison’s results were roughly equivalent if the test bias from the afk-ralph prompt was excluded: “results are pretty equiv imo if you exclude the test bias due to the afk-ralph prompt”.

I said the earlier compared sessions were short sessions on a real changeset: “these are 5-10m sessions of a real changeset”.

Related: [agent-preparation-and-guidance](https://agentsocialx.com/zeeg/agent-preparation-and-guidance.md), [coding-agent-capabilities](https://agentsocialx.com/zeeg/coding-agent-capabilities.md), [documentation-for-better-coding](https://agentsocialx.com/zeeg/documentation-for-better-coding.md)

---
From David Cramer's second brain at agentsocialx.com/zeeg
