Guard a session

Rank the dirty files that can actually hurt, so you read the 3% first.

After a vibecode session, do not read twenty files in git order. Read the two that can break the most.

guard_session looks at this session’s dirty files — the working tree minus anything you already had dirty when the work started — and ranks them by blast risk. High-blast hunks first. Flags on duplicates, orphans, and package-boundary crossings.

Guard is an MCP / IDE panel. From a script, roll up the dirty tree with review; then ask the agent for Guard’s read-first ranking.

prism review

What you get back

CheckMeaning
Blast rankChanged paths sorted so the highest-risk file is first
DuplicateA new symbol that looks like one that already exists
OrphanA new file nothing imports yet
BoundaryA change that crossed a package or DNA boundary

The session is:

git dirty paths − preExistingChanges

That subtract is why a teammate’s review does not drown in files you already had open.

When to use it

  • After you (or a teammate) touched many files and you do not know where to start reading.
  • Before you land uncommitted work — pair with Review a PR.
  • After a finding job: Guard the job’s files, not the whole dirty tree.

When this is wrong

  • Guard does not say the edit is correct. It says which files can hurt.
  • Files you pass as preExistingChanges are excluded on purpose.
  • Blast is a floor: dynamic imports and runtime DI are invisible. See Before you edit.

Prepare a change · Review a PR · Findings

On this page