DigestOps

How do you stop an agent that makes mistakes, stalls or goes beyond its brief?

25 posts

Playbook

Practitioners use multi-layered security hooks, human-in-the-loop approvals, and sandboxing to restrict agent autonomy and prevent operational errors.

  1. Implement multi-layer security gates

    Establish a three-layer defense consisting of rules, a stronger-model arbiter, and a human . This can include using 71 deny rules for git and gh alongside six regex hooks to catch phrases that rules miss . 23

  2. Execute external command blocking

    Move dangerous command blocking outside the model using a PreToolUse hook, which can match 37 dangerous commands . 1

  3. Restrict file access through settings

    Enable blockReadsOutsideWorkingDirectories and blockWritesOutsideWorkingDirectories in Claude Code to prevent agents from accessing files outside the project directory . 4

  4. Use time-limited, single-use authorizations

    Generate a single-use, time-limited authorization bound to a command digest when a user types /yes . 3

  5. Route low-confidence requests to humans

    Use models that output probabilities to identify low-confidence requests for human intervention while allowing high-confidence requests to run automatically . 10

  6. Ensure durability via database commits

    Save every agent step to a database before the agent moves on, with one save representing one commit, to allow resumes from the last commit after a crash . 7

Choosing between approaches

While agents can be given autonomy through locked agreements enforced by existing software 8, a crashed gate must default to denying everything 2.

Not covered yet

The material does not cover specific thresholds for determining what constitutes a 'dangerous' command beyond the 37 examples provided 1.

Drawn from the top 10 posts for this question; the numbers match the list below · updated 2026-11-27
Type

Posts

15 more posts to see