Have a coding agent report the current code before it builds a feature

A WordPress plugin maker told Claude Code to report on the current code and stop before a planned move of a Pro feature to free. The report showed the feature had been free since 1.10.38.

Done withClaude Code· Nov 19, 2026

What they did

Rapls maintains a WordPress caching plugin with free and Pro versions. A Pro setting that delays jQuery and inline scripts until the first visitor interaction had lifted PageSpeed mobile scores, so Rapls planned to move it into the free version. The plan was drafted in a chat with Claude and handed to Claude Code as a document. A section at the top told Claude Code to first answer five questions about the current state and stop: how the setting is implemented and named, what Pro excludes by default, how presets treat it, how to avoid double application with both versions installed, and which files would change.

How it went

Claude Code stopped and reported before writing code. Its first finding was that the setting had been in the free version since 1.10.38; the free version only scored lower because its Auto preset did not turn the setting on. Rapls rechecked the original measurements, saw they had compared free-only against Pro with the setting on, and cancelled the move. The new task was to have the free Auto preset enable it, only for tested themes.

Worth knowing

None of the five questions asked whether the work was needed; questions that can only be answered by reading the code were enough to surface the wrong premise. Both the author and the chat assistant had carried the mistaken belief into the handoff. The handoff was written in Japanese and quoted in translation.

Try it

With Claude Code· 4 parts to fill in

Before you change anything in [my repo], read the current code and report back, then stop. Answer: how is [the feature or setting] implemented today, with class, file and option names; where does it live across [editions, packages or services]; what turns it on by default and what does not; what would have to change for [my planned change], file by file. Flag anything that contradicts my plan. Do not write or edit code until I have read the report and told you to go ahead.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related