Skip to content

v0.23.0 — Rule-Based Kill Switch for Runaway Sessions

Choose a tag to compare

@Siddhant-K-code Siddhant-K-code released this 19 Apr 11:42

Rule-Based Kill Switch for Runaway Sessions

Agents can go off the rails — burning tokens, modifying files they should not touch, or looping on failing tests. This release adds a declarative rules engine to agent-strace watch that can pause, kill, or alert when a session crosses a threshold.

agent-strace watch --rules .watch-rules.json
agent-strace watch --rules .watch-rules.json --dry-run

Rule conditions:

  • files_modified — number of distinct paths written
  • cost_usd — estimated spend so far
  • consecutive_test_failures — repeated test failures in a row
  • duration_minutes — wall-clock session length
  • file_path — glob match on any file touched

Actions:

  • pause — SIGSTOP the agent process (resume with SIGCONT)
  • kill — SIGTERM, then SIGKILL after 5s; auto-generates a postmortem
  • alert — log only, no interruption

--dry-run evaluates rules without acting — useful for tuning thresholds before going live.