A Claude Code audit workflow that survives any model

If you maintain a pile of client stores, a model that vanishes after roughly 72 hours is more of a workflow problem than a benchmark curiosity. Anthropic launched Claude Fable 5, ran it for about three days, then suspended access on a US government order. Eivind Kjosbakken tested it for the whole window and wrote up his findings on Towards Data Science. The part I care about for agency work is a single Claude Code audit prompt he ran repo by repo, which turned up bugs and refactors his daily model kept missing.

He reports that Fable handled implementation tasks in one shot where Claude Opus 4.8 needed steering, and that the same scan prompt found security issues and real bugs Opus had missed in codebases Opus had already been through. The downsides he lists are token burn, much faster rate limit hits on a subscription, and an eagerness to change more lines than a fix needs. API pricing he cites is $10 per million input tokens and $50 per million output. I can’t verify any of that first hand because access is gone, so I’m going off his account.

What the review found

Scan thoroughly through the codebase to identify any potential bugs, issues, or refactoring opportunities, and come back to me with an HTML report with issues prioritized from most severe to least severe.

That’s the prompt he uses. Running the identical prompt through two models in the same repo is a clean comparison, and it’s what makes the review believable: Opus had months of bug hunting in those codebases already, so the low-hanging fruit was gone, and Fable still found severe issues.

A generic scan prompt has a ceiling on WordPress work, though. On a WooCommerce client repo it will happily report style-level findings while the expensive problems sit in places a generic prompt never names. You get around that by making the priorities repo-specific, and store repos have a short list that pays for itself:

  • missing nonce or capability checks on custom admin pages and AJAX handlers
  • order data written with update_post_meta instead of the order CRUD methods, which breaks under HPOS
  • output in template parts that skips esc_html and esc_attr

Put the Claude Code audit in the repo

I’m copying the routine rather than the model, because the command file is the part that lasts. Kjosbakken expects other labs and open source models to reach this capability within months, and Fable may come back. When that happens I want to type one command and change one flag, not rebuild a workflow around a model that might get suspended again.

Save the prompt as a project command

Claude Code exposes custom slash commands as markdown files, so the audit can ship with the repo instead of living in someone’s shell history. Project scope is .claude/commands/, which means every developer on the client project gets the same command. The newer skills format at .claude/skills/ does the same thing; the official docs cover both, and command files keep working. Mine looks like this:

---
description: Read-only audit. Report findings, change nothing.
allowed-tools: Read, Grep, Glob, Bash(php -l:*)
---

Scan this codebase and report findings, most severe first:
- security: missing nonce checks, missing capability checks
  on custom admin pages and AJAX handlers
- correctness: order data written with update_post_meta
  instead of the order CRUD methods (breaks under HPOS)
- output escaping in template parts
- refactors worth doing, ranked by payoff
For each finding give the file, the line, and a one-sentence fix.
Print the report in your response. Do not edit any file.

The allowed-tools frontmatter is the important line. Read, Grep, Glob and php -l can’t modify the codebase, so an eager model has nothing to be eager with. If you want linting on a theme or plugin, php -l per file is cheap and catches parse errors before anyone reviews a diff.

Keep the model out of the file

The command file says nothing about which model runs it. Claude Code keeps that separate, and the model configuration docs list the surfaces and their precedence:

  • /model during a session
  • claude --model at launch
  • the ANTHROPIC_MODEL environment variable
  • a model value in your settings files

I keep the cheap model as the default and call the expensive one per session for audit passes. The reviewer hit his subscription limit far faster on Fable, and at the API pricing he cites the economics only work if the expensive model is reserved for the pass where it matters. There’s a maintenance benefit too: when an alias disappears or a price doubles, you fix one flag in one place, and every client repo keeps its command file untouched.

Gate the fixes behind tests

The source’s own caveat is the model’s eagerness: it changes more lines than a fix needs and flags more issues than are severe. That’s an annoyance on your own repo, but on a client store it’s how a routine cleanup ships a checkout regression. So the audit stays read-only, and fixes happen in a second session that must run the suite before you review the diff. For a plugin scaffolded with tests that’s vendor/bin/phpunit; for store behavior, whatever browser suite you keep around. Models that can check their own work against tests produce smaller diffs, which is the argument I made about self-validation.

Once the audit command exists per repo, running it across every client is a scheduling problem, and I’ve written about running parallel Claude Code sessions on client sites for exactly that. If setting this up is something you’d rather hand off, it’s a small piece of work: one read-only command per repo, a pass over the first reports to separate severe from noise, and fixes shipped behind the test suite. If that’s useful on your stores, say so and I’ll set it up.

What stays and what swaps

The model layer is the part that will keep changing. Fable was a safeguarded version of Claude Mythos, it got suspended by government order, and I wouldn’t build a default on pricing that only the largest companies can absorb. Something with the same capability will show up from another lab or from open source, on the reviewer’s own estimate within months.

The repo layer doesn’t need to change. The audit command, the priority list, the read-only rule and the test gate don’t care which model runs them, and they’re safe to hand to a client’s in-house developer when the contract ends.

If you want somewhere to start, run mkdir -p .claude/commands, save the command above as audit.md in your biggest client repo, and type /audit with whatever model you already pay for. Read the top three findings before doing anything else. If nothing severe comes back, the prompt is the problem, so fix the prompt before you shop for a stronger model.

author avatar
Ahmad Wael
I'm a WordPress and WooCommerce developer with 15+ years of experience building custom e-commerce solutions and plugins. I specialize in PHP development, following WordPress coding standards to deliver clean, maintainable code. Currently, I'm exploring AI and e-commerce by building multi-agent systems and SaaS products that integrate technologies like Google Gemini API with WordPress platforms, approaching every project with a commitment to performance, security, and exceptional user experience.

Leave a Comment