Advertisements

A changed CSV header can break a customer's import even when the exporter still runs. Claude Code 2.1.334 gives maintainers a way to place a review instruction near that code: local reviews now read REVIEW.md files in parent directories of a committed change, according to Anthropic's release notes. A rule in packages/export can apply to a review of a writer beneath that directory. A website change elsewhere in the repository need not carry the same instruction. [1][5]

Anthropic's documentation currently gives conflicting guidance. The general guide to local reviews still says the command follows CLAUDE.md and does not read REVIEW.md. The tagged release notes explicitly describe the new folder behavior and qualify it with the word committed. A test using the version number, a committed example and an expected finding can establish what happens on a particular installation. The managed service for GitHub pull request reviews follows a different set of rules, which matters when comparing its findings with a local result. [1][2][3]

Advertisements

Give the reviewer one local rule

The example repository has a CSV writer under packages/export and a separate directory for its website. Integrations read the first row of the exported file, so changing a column heading could break those consumers even if the web interface continues to work. One possible instruction for packages/export/REVIEW.md reads “When an exported column name changes, compare it with the expected header in the CSV fixture and report any mismatch.” The instruction should include the fixture's path in the repository. With that detail a reviewer can open the file and check the contract, even if the implementation and test have quite different names. [1]

The instruction belongs in the directory that owns the format, above the implementation file in the directory tree. For a file in packages/export/writers, packages/export is an ancestor. The same instruction under the website directory would sit on a different branch of the tree. Before running the review, a maintainer can trace the path from the changed file up to the repository root. That path should pass the instruction file. This quick check establishes whether the rule is in the right place, even in a large project. [1][5]

A disposable working branch provides a place for the deliberately broken example. The first commit can add the instruction; a second can change a sample header from account_id to customer_id while leaving the expected fixture untouched. Keeping those edits in separate commits makes the last commit contain only the discrepancy that the reviewer should find. Another maintainer can then inspect the same small diff without having to work through unrelated changes or determine which edit first altered the exported format. [2]

Advertisements

Ask for the change you intend to review

In the terminal, /code-review HEAD~1..HEAD targets the last commit when HEAD points at the example change. Anthropic documents revision ranges, paths and pull request numbers as possible targets. A plain /code-review normally takes in the current branch's work ahead of its upstream as well as uncommitted changes. On a busy development branch that can give the reviewer considerably more to read. The branch name and latest commit deserve a check before anyone interprets the result of this small experiment. [2]

The initial review should omit –fix if its purpose is to collect a finding. That flag also asks Claude to edit the working tree. The –comment option posts findings to a pull or merge request. In the ordinary terminal flow, a background subagent runs the review with its own context, then returns its findings to the conversation. A maintainer can inspect the diff while the review runs and compare the file named in Claude's response with the file changed by the commit. [2]

The fixture lets the maintainer check the finding directly. Claude should identify customer_id in the writer and account_id in the expected output. Those details provide evidence for a decision to restore the old name or coordinate a format change with consumers. A suggestion about the spelling of a nearby comment would miss the reason for the directory rule. If Claude reports no discrepancy, the maintainer should check that the selected commit contains the edit and that the instruction sits above the changed file. One missed finding does not establish that Claude ignored the instruction; an ordinary review miss could produce the same result. [1][2]

Keep local and hosted findings straight

A review started from a developer's terminal and a managed review posted on GitHub can examine the same proposed change under different conditions. Anthropic says the managed service reads its instructions from the base or default branch. It will not take instructions from the pull request's own changes. Adding a rule to a feature branch and immediately opening a pull request is therefore a poor way to test whether the hosted reviewer follows that rule. The relevant version is the instruction file that was already on the base branch. [3]

The hosted service reads the diff and nearby code without building or running the project. It posts inline findings and a check run on the pull request. Its check run does not conclude as a failure, so anyone responsible for the CSV format should still run the actual fixture comparison. A successful check run and a file with an unexpected header can coexist. In this example, keeping the fixture assertion in the project's regular tests gives maintainers a repeatable check on every later edit. [3]

Check the model and context before repeating a review

Version 2.1.334 adds search to the /model list when there are more than twenty-five entries. The search matches names and model identifiers. Colleagues with similarly named options in their pickers should record the model they used before comparing two review results. A list of twenty-five entries or fewer can look unchanged even after a successful update. The release also fixes requests on models that reject attempts to turn thinking off. Claude Code can resend the request without that setting, allowing the model to think. [1][5]

During a longer session, a maintainer can open /config to inspect the Auto-compact window row. It exposes the size also set by /autocompact. Earlier versions could show the compaction buffer as used space in /context while automatic compaction was off. The release addresses that display error as well as an unnecessary compaction that could follow a response exhausting its output allowance before producing visible text. An output limit and a full input context are different conditions. If the next response ends before any review text appears, the record should include that symptom alongside the context reading. The release notes describe the empty response as part of the old failure, a detail that a screenshot of the context meter alone would miss. [1][5]

Compaction replaces earlier conversation material with a structured summary. Repository instructions and the committed fixture give the next review evidence it can find again after that happens. A write-up for a colleague should include the Claude Code version, the commit range and the actual header discrepancy. Those details let someone open the two relevant files and repeat the review without reconstructing your whole terminal conversation. [2][4]

Sources

[1] Anthropic release of Claude Code v2.1.334

[2] Anthropic guide to local code reviews

[3] Anthropic guide to managed pull request reviews

[4] Anthropic explanation of context and compaction

[5] Versioned changelog for Claude Code 2.1.334

Advertisements

Have a correction or a useful perspective?
Get in touch with the publication.