Added
- New
mode: "monitor"forinteractive_shellto run headless background commands and wake the agent only when output lines matchmonitorFilter. - New
monitorFiltertool parameter supporting plain-text substring matching and/regex/flagsmatching. - Monitor event notifications now wake the agent with
triggerTurnand includesessionId, matched text, and the matched line. - Regression coverage for monitor mode startup validation and ANSI-stripped line matching.
- Regression coverage for suppressing repeated wakeups when the exact same cleaned matching line is emitted more than once in a single monitor session.
Changed
- README, tool help, and the bundled
examples/skills/interactive-shell/SKILL.mdnow document monitor mode usage, event-driven behavior, and monitor session lifecycle with existing background-session APIs. - Monitor mode now suppresses repeated wakeups for the exact same cleaned matching line within a single monitor session, while still waking on distinct matching lines.
Fixed
- Slash-prefixed plain-text filters like
/tmp/logare now treated as literal text instead of being misparsed as regex literals. - Invalid monitor regex errors now preserve the underlying parser message for easier debugging.