ai-devkit
ai-devkit copied to clipboard
feat(agent): Rex workspace layouts per feature/group, with remote host support
Summary
Create a Rex workspace per feature or agent group: one Rex session with each worktree's agent in a split, plus Tests, Diff, and dev-server panes. Optionally run it on another machine with rex -S <host>.
Proposed UX
ai-devkit agent start --group checkout-v2 --layout rex [--host devbox]
- One Rex session per group/feature (
rex new <feature> --json), labelled after the feature - One pane per agent (from the dev-worktree worktree), using
session.new_split/rex split --ratio - Optional panes: tests (
rex run --keep-open --wait), diff tab (git --no-pager diff), dev server; dev-smoke can find the server's port through theportsblock method andrex forwardit when remote --hostruns everything on a Rex host so long runs keep going after this machine disconnects, and the user can attach from any client (including iOS)
Acceptance criteria
- [ ] Layout created from a group definition, with IDs saved so later commands target exact blocks
- [ ] Re-running doesn't duplicate panes (inspect before create)
- [ ] Remote host path: cwd set inside the command, since
-cfalls back to$HOMEsilently on remote hosts - [ ] Never sends to the calling agent's own pane
Depends on: #459.