Alex and Sam cover Claude Code 2.1.329 and a review workflow that names the pull request, pins the changes, separates findings from tests and checks that the right code was examined. All worked scenarios are hypothetical. Includes a Railway affiliate advertisement. Sources: https://github.com/anthropics/claude-code/releases/tag/v2.1.329 Includes a Railway affiliate advertisement. Find our links at https://aishows.cc; we may earn a commission.
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Claude code could silently review your checked out branch when you asked it to review a different pull request. Anthropic says the latest release fixes that. Before you trust any review, check which changes it actually examined. Because a thoughtful review of the wrong code is still the wrong review. The practical answer is to name the pull request, record its revision, and make the review show its SCOE before it gives you a verdict. You're listening to Claude Codecast. I'm Alex. And I'm Sam today. We've got a specific bug fix, a deliberately small review exercise, and something to build
so the next review is easier to check. Anthropics release notes for version 2.1.329 describe the problem. The code review command, given a pull request number, could sometimes review the checked out branch without saying so. It now reads the pull request through the GitHub command line DIF or reports that it can't. That's the factual change. We haven't measured how often it happened, and the notes don't give us a failure rate. So let's not turn sometimes into Every review you've ever run was wrong. Exactly. But it gives us a very useful question to ask.
How do you know a review covered the change you requested rather than whatever code was easiest to find? I can picture the situation. I'm working on a checkout bug. Someone sends me a pull request for account deletion. I asked the agent to review that number while my local folder still contains the checkout work. Right, that's our hypothetical example. If it reviews the local changes instead, the answer may still sound completely plausible. It might mention real bugs. They just aren't bugs in the pull request you asked about. So a factual finding can actually make the mistake harder to spot. I see a genuine issue and think
great the reviewer is paying attention. Yes, the first thing I want is a scope statement. Which repository? Which pull request, which base and which proposed revision. Then a short list of changed files. You can compare those with the actual pull request before reading the findings. That's cheap to check if the account deletion review opens by listing checkout files. I know something is wrong before I spend 20 minutes arguing about its recommendation. Let's call the instructions a review contract. That's just our suggested format, not a new clawed feature. It states the target, the kind of review and the evidence the reviewer should return.
Start with the target. A pull request number by itself might be enough when the repository is obvious, but if I'm juggling several projects, I'd rather name the repository too. Exactly. Then say what matters for account deletion. That might include access control, removal of the correct account, and what happens to related records. Those are review questions, not claims that this particular code has those. Bugs. And what kind of review am I asking for? A security pass isn't the same as checking style. If the agent spends the whole answer renaming variables, it may have avoided the hard part. Right.
Ask it to prioritize behavior and risk with concrete references to the change. Suggestions can come afterward. That makes it easier to separate a defect from a preference. Give me an example of that separation. A defect claim would say that one account can trigger another accounts deletion, then show the path and conditions that make that possible. A preference would say a helper name could be clearer. Both may be worth discussing, but they shouldn't carry the same weight. And if the agent hasn't followed the path far enough to establish the defect, it should say that it's a question to investigate. Exactly. I mean, a useful review can
contain an unresolved question. It becomes less useful when an uncertainty gets promoted into a confident accusation just to make the answer feel complete. OK, suppose the agent is looking at the right pull request. The author pushes another commit halfway through. Now what? You need to know which version was reviewed. A pull request is a moving target. The review should record the proposed revision it examined and ideally the base it compared against. So the scope statement needs a version, not just a title. Otherwise, I can read yesterday's reassuring review
next to today's new code and assume they belong together. Right, you don't always need to restart the whole review after a new commit. You can review the additional changes, but first establish what changed since the earlier review and whether it affects an earlier conclusion. In our account deletion example, a new commit that changes the permission check absolutely affects the review. A documentation correction might be much narrower. Exactly, the decision depends on the actual DIF. Don't use the number of changed lines as the only signal. A1 line condition can change who is allowed to do something.
And a huge generated file can add thousands of lines without being the place where the behavior changed. The reviewer needs to look past the size of the patch. Yes, ask for excluded material too. If the agent skipped generated files, binary assets, or an unavailable dependency, the final answer should say that scope includes what wasn't examined. Let's. Turn this into something a listener can do without giving an agent access to a sensitive repository. What does the practice project look like? Use a small repository you control with two separate branches that change different
files. 1 branch changes a form, the other changes a deletion handler. Open a test pull request for one while keeping the other checked out locally. So we reproduce the possibility of a mismatch without assuming the fixed release will make the old mistake. Exactly. Ask for the pull request review and inspect its scope statement. It should name the files in the requested change. If it can't obtain that DIF, it should report the limitation rather than reviewing the local branch as a substitute. Then I can check whether the behavior matches the release notes in my own setup.
We're not claiming we've performed that test here. Right. Record the tool version, the repository, and the target revision when you do it. If something fails, you've got enough context to investigate without guessing which route you used. And make the practice change obvious. If both branches touch the same file in nearly the same way, you're making the first check harder than it needs to be. Exactly once the basic route is clear, try a more realistic change. The first rehearsal is about target selection. Later ones can examine whether the reviewer follows behavior across several files.
Quick Add Railway deploys your code and runs your services, so getting your app online isn't the hard part. To get $20 in railway credits when you start a paid plan, go to AI Shows dot CC. It's our affiliate link so we may earn a Commission. Right, back to the show. Now we've got the right DIF, What makes one of the reviews findings worth acting on? I want the trigger, the observed or predicted behavior and the reason it matters, then enough evidence to inspect the claim. A location in the code helps, but a location by itself isn't an explanation.
So this function is unsafe isn't enough? I need to know what input reaches it and what bad result follows. Exactly. In our invented deletion example, a reviewer might suspect that a missing ownership check let's one signed in account delete another. It should trace where the account identifier comes from and where authorization is enforced. Check happens in middleware. If the agent only reads the handler, it could report a missing check that already exists somewhere else. Right. That's why a diff review often needs some surrounding code. But reading context should support the target review. It shouldn't quietly turn into a
review of whatever files happened to be open. I mean, the scope can expand when there's a reason. The reviewer should just explain the reason. I followed this route into the middleware to verify the permission. Check exactly and if it couldn't inspect the middleware, it should state the conditional. If no earlier authorization check exists, this path may allow the wrong account to be deleted. That's a different claim from proving the exploit works. What about severity labels? Agents love calling things critical. Ask them to justify the label through impact and reachability. Who can trigger it? What must already be true? What data or action is affected?
A dramatic adjective doesn't answer those questions. And if the answer relies on a hypothetical deployment setting, say that. Otherwise, the team can waste time fixing an environment it doesn't actually have. Here's another distinction worth making. Reading a DIF isn't running a test. A review can explain a plausible bug without executing anything, but it mustn't resent that as a reproduced failure. O I'd like the final answer to have separate statements. Code inspected, tests run, tests not run. Not one big sentence saying everything was verified. Exactly. If it ran a focus test, say
which one and against which version. If it couldn't run because a service was unavailable, preserve that limitation. Don't quietly change the test environment just to obtain a green line. Let's say the unit tests pass, but the suspected bug is in how the web request reaches the handler. Passing unit tests might not cover that route at all. Right. Ask what the test actually exercises. In our example, a useful follow up might be a test using two different account identities through the relevant request path. That's a proposed check, not evidence we've already collected. And if the agent writes that
test, someone still needs to check that the test would fail for the bug we care about. Otherwise it might simply confirm the implementations own assumptions. Exactly. A small counterexample helps. What should be rejected? What should still work? Can the test distinguish the two? That makes the verification about intended behavior rather than a pleasant looking assertion. Right. And it keeps us from treating a long review as proof of a thorough review. The question is whether the evidence covers the risk. A review with no findings can be a good result, but it needs the
same scope and limitations as a review full of warnings. Otherwise no issues found can mean anything from Examined the whole change carefully to couldn't fetch the pull request and stared at the local folder. Exactly. I'd want it to say which changes it examined, which questions it checked, and what remains unverified. No actionable defects found within that scope is a much more useful conclusion. Would you force it to produce a finding so I know it worked? No, that rewards invented defects in the rehearsal. You can include a known issue in
a practice change to see whether it notices. In a real review, the right number of findings might be 0. So the test of the workflow is different from the demand we make on every review. We can evaluate it on a controlled example without insisting that every real patch contains a bug. Exactly, and keep a few examples with different outcomes. A clear defect, A harmless change, and a change that requires unavailable context. You want the reviewer to distinguish them rather than giving the same confident answer to all three. OK. What's the small thing we're building? A review header and a finding
template. The header says repository pull request, compared revisions, changed files, and exclusions. The finding says trigger consequence evidence and suggested verification. I'd also add a field for whether the defect was reproduced or inferred. That single distinction could save a lot of back and forth. Good, and one for the revision at the end of the review. If the pull request moved while the agent was working, flag that the latest version needs another look. How much should we automate? We could build a whole review platform around this and spend a week before anyone gets value. Start with a text template in the repository's normal review
instructions. Use your existing tools to obtain the DIF. Save the header with the review. Only automate repeated friction once you've seen what actually gets missed. So the first version could be 5 lines at the top of an ordinary review, plus consistent wording for findings. Exactly. Then ask another teammate to use it. Can they identify the reviewed change without opening the conversation? Can they reproduce a finding? Can they see what wasn't checked? If they can't improve the receipt before adding more agent steps, the point is to make review easier for the human who
has to decide whether the change is ready. Let's try one more situation. The agent finds a likely bug, but the author says the behavior is intentional. What should happen next? I'd go back to the requirement the reviewer and the author may be using different assumptions about who should be allowed to perform the. Action exactly. In the account deletion example, perhaps administrators have broader rights than ordinary users. The review needs to distinguish those roles. Calling every cross account operation a bug would be too broad. So ask for the role, the action and the intended boundary.
Then find the evidence in the code or the product requirement. If the requirement is missing, that itself is a decision the team needs to make. Right. An agent shouldn't settle an ambiguous product policy by confidently preferring one behavior. It can explain the consequences of the alternatives and identify the missing decision. And once the team decides, turn the boundary into a check that helps the next reviewer avoid relitigating the same question. Exactly. That's where the review can improve the project beyond one patch. A clarified requirement and a meaningful regression check are more durable than a comment that
only made sense in one conversation. There's a. Trap in that though, we shouldn't turn a small poll request into a demand to redesign every nearby subsystem. Agreed. Keep immediate defects separate from broader improvements. Fix what blocks the change, Record worthwhile follow-ups and explain any remaining risk. Scope discipline applies to recommendations as well as to which branch was read. Can we follow one invented finding all the way through? Because the review comment isn't the end of the job. Sure. Imagine the reviewer says a user identifier comes directly from the request, and the handler
deletes that account without checking ownership first. The author confirms whether that description matches the actual path. And if the reviewer missed an earlier check, the author can point to it. That's a correction to the finding, not a reason to pretend the whole review is useless. Exactly, if the finding is valid, agree on intended behavior. In our example, an ordinary account may delete itself while a separately authorized administrator has a different route. That boundary needs to be explicit before writing the fix. Then the author makes the change, but the original review applies to the old revision.
So we need to inspect the fix, not just mark the comment resolved because someone pushed to commit. Right. Recheck the affected path and the nearby valid behavior. A fix that blocks every deletion would prevent the reported misuse, but it would also break the legitimate feature. So the verification needs at least those contrasting cases. The unauthorized request fails, and the permitted request still behaves as intended. If the system has other roles, include the ones the change effects. Exactly. Then record what was actually run.
If the test only covered the handler in isolation, say that if a request level check also ran, name that separately. The final handoff should let a teammate understand the strength of the evidence. What if we can't reproduce the original bug locally because the needed service isn't available? Then don't claim reproduction. You can still reason about the path and propose a fix, but preserve the verification gap. Decide who will run the missing check in an appropriate environment before release. And if the agent suggests creating a fake service that can help with part of the behavior,
it doesn't automatically replace checking the real integration. Right. A substitute is useful when you understand what it represents and what it leaves out. The receipt should say that, so nobody later reads a simulated result as a production integration test. I like this because it gives the next person a stop point. The code has changed, the local checks pass this one. Integration remains. They can pick up the actual remaining work. Exactly. And if the author changes the fix again, the evidence follows the version. You don't need a dramatic ceremony, Just don't let an earlier green result drift onto
a later untested edit. So the complete chain is target finding, decision fix and verification. If we lose 1 link, the final approval can become more confident than the work supports. That's the habit worth building. The new branch selection fix helps with the first link. Your team's review process still needs to carry the rest. Here's my take away. Before I read the verdict, I want to know that the reviewer looked at the right thing. Exactly. Update to a version containing the fix where appropriate. Then verify the target in your own workflow, name the
repository and pull request, record the revision and compare the changed file list with what you expected. Then make the findings earn their place. What triggers the issue? What happens? Where's the evidence? Was it reproduced or is it a reasoned concern that still needs a test? And let no findings be an honest answer. The goal is a trustworthy review, not a longer list of things to worry about. The pro tip for this week is to put the reviewed revision at the top of the answer. If you only change one thing about your prompt, change that. Follow Claude Codecast for practical ways to check the work
your coding agent hands back. Next week, we'll look at verifying an agent's fix without letting its own test define success. Check the target first, then decide whether the review gives you enough evidence to act.
Microsoft gave AI coding agents the same breaking library upgrade, labelled either 1.4.3 or 2.0.0. Claude Sonnet 5.5 checked the major version in all 10 runs but the patch in only 2, often leaving the app broken, while...
Security firm Apiiro found secrets in more than 1,100 public copies of Claude Code's .claude/settings.local.json, the file where "Yes, and don't ask again" stores approved commands, sometimes with the password typed in....
Cursor confirmed a malicious package labelled Anthropic.claude-code 2.1.313 in its extension marketplace. Understand the confirmed scope, why an agent's permission prompt doesn't govern every editor component, and how...
Agent Skills is moving to the Agentic AI Foundation. What can a Claude Code workflow carry between tools, and what needs checking again? A practical, synthetic migration exercise separates a readable folder from a...
Claude Code 2.1.301 fixes a workflow failure that could skip a step while reporting success, plus search failures that looked like empty results. Fictional AI hosts Alex and Sam explain what the release notes establish,...