Skip to content

guard

Stops the model from paying twice for the same result.

SurfacesPreToolUse hook
Specthe spec (replaces) column of the catalogue in plan.md §1
Defaulton

Mechanism

An identical Read or Bash call (same tool, same normalised input) within the last N turns of the same session is denied with a reason pointing at the earlier result:

guard: identical to toolu_… 2 turns ago — use rtok expand <archive_id> or change the input

Denials are lossless because the earlier result is archived; the model can always expand.

Config

[plugins.guard]
enabled = true
window_turns = 8

Tasks

See roadmap.md § guard. Checks in plan.md.

T2.6 deny duplicate Read/Bash within window_turns when an archive id exists.

Status

Manifest only.