Repository navigation
Gate vs Claude Code Auto Mode
Short answer: both stop risky actions right before they run. They differ in how they decide, which way they fail when the check itself breaks, what they leave behind, and whose rules they apply. They are meant to be stacked, not chosen between.
Claude Code's auto mode asks a model classifier, action by action: "is this risky?" FH's gates sit underneath that question. They fix in advance which spots always need a person, and which way the system should fall when a judgment is uncertain. They also record why each stop happened.
- Same goal. A person should not have to approve every action, but risky ones should not slip through.
- Same moment. Both act right before a tool call runs. An agent-side gate hook runs in the same session as auto mode, so the two can be on at once.
- Same worry. Deleting remote branches, force-pushing, and rewriting history are high-risk in both.
| Claude Code auto mode | FH gates | |
|---|---|---|
| How it decides | A model classifier judges each action | Written rules plus mechanical checks. Whether a rule applies comes from the actual file list or command, never from the agent saying "this only touches docs" |
| When the check itself fails | The classifier's call stands | The direction is fixed per surface. Irreversible actions (publish, delete, history rewrite) stop; reversible ones warn and continue |
| File edits inside the project | Some in-project edits do not go through the classifier (reported in external research) | Also only partly covered: FH guards its own gate configuration, not every edit. Both have a gap here |
| After a stop | The action is refused | The agent gets why it stopped and a way to fix it, so it can repair and retry instead of hitting the same wall |
| What is left behind | The decision itself | A record of why it stopped and what was checked, so the stop can be audited or replayed later |
| Whose rules | General-purpose | A team can add its own ("this project must never call that API") |
Auto mode is the layer that judges whether this action is risky now. FH gates are the layer underneath that decides where a person must stand, which way to fail when judgment wobbles, and keeps the record. FH treats a better classifier as useful on reversible surfaces, but never as a reason to remove the person from irreversible ones.
- That FH gates catch more than auto mode. Not measured.
- Any numbers from the external research above. Those are the authors' figures, not FH's.
- A three-way comparison (allow-all, classifier only, classifier plus gate) is being prepared. Until it reports, the combined effect, including whether stacking causes extra unnecessary stops, is unmeasured.
- The rules that set the failure direction per surface:
CLAUDE.md§Irreversibility Gates - Why mechanism belongs only at irreversible edges and channels:
CLAUDE.md§Mechanization Boundary - Related failure pattern: When a check cannot measure, it must say so