The same review comments kept coming back, so I gave Claude Code a map of my project

2026-11-30来源 dev.toEnglish

I build most of my projects with Claude Code now, and the code it writes is good. Yet the same review comments kept coming back on tasks it had declared finished: the filter doesn't work, this field needs the same select as the others, this screen broke when that service changed.

They came back for two reasons. My rules lived as prose in CLAUDE.md files, re-read and applied from memory in an already loaded context. And before any rule could help, something more basic was missing: a structured answer to "what does this change touch?"

So I built DevTools, an open-source CLI (MIT) that gives a project a .devtools/ folder, versioned next to .git, in which Claude Code keeps an exact map of what the project does.

The map

devtools workflows:inspect finds every entry point (routes, console commands, async handlers, front-end screens) and keeps one Markdown page per workflow, with Mermaid diagrams, plus a tracking file listing the source files each workflow goes through.

Symfony, Laravel, plain PHP, Angular and Express have native adapters. For other stacks, Claude maps the entry points from the files, and DevTools checks its draft before accepting it.

A re-scan rewrites only the workflows whose files changed. On a 300-route project with no change, it takes 0.7 s and modifies nothing.

The impact

devtools workflows:impact src/Service/OrderPricing.php answers which workflows a file, a commit or a branch reaches, and how: the workflow goes through the file, the file tests it, or the file declares a listener running inside it. It reads two XML files, so it answers in milliseconds.

A Claude Code hook asks it before every edit, and an MCP server lets Claude read one workflow page instead of a whole directory.

The gate

devtools gate judges what the change reaches: the map must be fresh, and the scenarios of the affected routes are replayed in Chrome and compared with their screenshots. The Claude Code Stop hook runs it, so while it fails, Claude cannot call the task finished. The moment a human opens the browser and finds the bug moves before the human.

Where it stands

The map runs on three of my projects; the largest holds close to 300 workflows. The impact, the hooks, the MCP server and the gate are built and now run in my daily Claude Code sessions. The feedback loop is built too: a typed review comment becomes a rule the second time it comes back, then an assertion the gate checks.

Try it

composer global require jul6art/devtools devtools init # creates .devtools/ devtools claude:install # the skill that writes the pages devtools workflows:inspect # finds the workflows, asks Claude for the pages it can't write 

Then /devtools-inspect in Claude Code writes the pages. The analysed project doesn't need PHP, and there is also a phar and a Docker image.

I'd like to hear from people who use Claude Code on real projects: does a map like this match how you work, and what would you want the gate to check?

DevTools is open source (MIT). If it's useful to you, a star on GitHub is very welcome: it helps other Claude Code users find it.

原文:https://www.a8q9.cn/en/article/the-same-review-comments-kept-coming-back-so-i-gave-claude-code-a-map-of-my-proj-fa2c1e.html

相关文章