Repository navigation
Router 0.2.0
Pairs with Harness 0.2.0.
Added
- Add opt-in
install.sh --with-defaultsdelegation blocks for Claude and Codex, rendered from routes.json, refreshed by auto mode changes only while the file and block remain, and removed on uninstall while preserving user text, including a missing final newline. Announce the defaults backup path on installation. - Add shared
router auto off|suggest|nudge|enforcemodes, defaulting to nudge, with a persistent user setting and status output. - Add optional keyword role hints and main-session read/edit thresholds on both hosts, with spawn resets and documented Codex visibility limits.
Changed
- Remove Router's empty top-level hooks key on uninstall only when it was absent before first install, including when installed with Harness; preserve it for older manifests and shared hooks.
- Keep large-read protection and other rules with their own modes active when
router auto offdisables automatic routing. - Adopt Harness's nine shared role files and base Codex TOMLs verbatim.
- Generate tier Markdown and Codex TOMLs from shared bases and routing defaults, with a drift check.
- Use canonical role names for classification, worktree isolation and retry history on both hosts. Codex ladder history from 0.1 restarts after upgrade because its key uses the new role name.
- Claim identical shared files during install and preserve Harness claims during uninstall, failing safe on invalid manifests.
- Group equal delegation return limits from routes.json, remove hook events emptied by Router on uninstall, and name the instruction file when auto mode finds broken markers.
- Check both installation orders with Harness and preserve unrelated settings, hooks and files after each install and uninstall using
HARNESS_DIR=/path/to/harness bash tests/together.sh. - Record
asked_typealongside the routed role so the requested and actual seat remain visible. - Replace Router's own hook registrations when a reinstall changes their matcher, so reads are not counted twice.
- Drop the Explore, Plan and general-purpose built-in agent overrides; those names become aliases of
researcher,plannerandworker. - Count builder, worker, test-writer and docs-writer seats as execution rounds in dispatch-log.py.
Deprecated
- Previous Router role names are compatibility aliases until a later release. See the README's rename table.
- Codex calls using an uninstalled alias must retry with the canonical name supplied by the hook.