Designed and implemented a --rehearse mode for the agent-toolkit allowing developers to run real agents locally with a mocked Buzz relay and isolated environment. The feature uses a two-swap principle: replacing the relay connection with an in-process local relay and restricting environment variables and secrets to prevent accidental external access. Implementation included comprehensive tests, a complete review cycle fixing 6 issues identified by CodeRabbit and Greptile, and successful PR merge. Identified a pre-existing Node 22 compatibility issue in Ashby test suite that blocks follow-up monorepo CI expansion. Phased the work into three PRs: toolkit (merged as #162), monorepo Ashby bug fix (pending), and monorepo CI expansion (pending toolkit release).

