agent-shadow-mode
Toggle shadow mode for agent tool calls. When active, records the intended call and returns a safe placeholder without running real side-effecting code.
Usage
use ShadowMode;
use json;
let mut shadow = new; // start in shadow mode
let result = shadow.intercept;
assert_eq!;
// Later: toggle off for real execution
shadow.deactivate;
// Persist the shadow log
shadow.to_jsonl.unwrap;
License
MIT OR Apache-2.0