mirror of
https://github.com/donlucasx/xscapes.git
synced 2026-10-20 08:43:32 +02:00
The brief's second adapter, verbatim: busy = alive + output activity, done = prompt back. internal/watch turns the hosted program's traffic into protocol events: Enter is a prompt, each second of continuous output is one tool event (a count, never a byte rate), and a burst of at least 1.5 s followed by 4 s of quiet is a done, with the last printed line on the sand, escapes stripped. It cannot tell a question from a finish, so the ask cue never rings from it, and it says so. The host grows two byte taps (OnOutput, OnInput). xscapes inside takes -watch=auto|on|off, auto by default: the adapter runs until an agent's hooks announce a session, and hooks outrank it. A reducer fed this way has no bus, so the frame loop no longer assumes one. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>