You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -437,6 +446,58 @@ Rules are configurable via `.agent-strace-lint.json`:
437
446
|`error-retry-loop`| WARN | Same tool errored and was retried 3+ times |
438
447
|`no-output`| WARN | Session completed with no write or file-modifying tool calls |
439
448
449
+
### Config change detector
450
+
451
+
Track changes to AGENTS.md and other agent configuration files. Snapshot the current state before a change, then check what drifted and which sessions ran after it.
# Check whether anything changed since the last snapshot (exit 1 if yes)
461
+
agent-strace config-watch check
462
+
463
+
# Machine-readable diff
464
+
agent-strace config-watch check --format json
465
+
466
+
# List all snapshots
467
+
agent-strace config-watch history
468
+
469
+
# Find sessions that ran after a config change
470
+
agent-strace config-watch affected
471
+
472
+
# Limit to sessions from the last 7 days
473
+
agent-strace config-watch affected --since 7d
474
+
```
475
+
476
+
Example output:
477
+
478
+
```
479
+
$ agent-strace config-watch check
480
+
CHANGED AGENTS.md (sha256: a1b2c3d4 → e5f6a7b8)
481
+
ADDED .claude/settings.json
482
+
No changes to: CLAUDE.md, system_prompt.md
483
+
484
+
$ agent-strace config-watch affected
485
+
2 session(s) ran after a config change:
486
+
487
+
abc123def456 2026-05-20T14:32:01 (after change to: AGENTS.md)
488
+
789xyz012abc 2026-05-20T15:10:44 (after change to: AGENTS.md)
489
+
490
+
Run `agent-strace drift` to compare behaviour before and after the change.
491
+
```
492
+
493
+
Watched files by default: `AGENTS.md`, `CLAUDE.md`, `system_prompt.md`, `system_prompt.txt`, `.cursorrules`, `.github/copilot-instructions.md`. Add extra paths with `--watch`:
0 commit comments