ai-devkit icon indicating copy to clipboard operation
ai-devkit copied to clipboard

feat(agent): Rex workspace layouts per feature/group, with remote host support

Open codeaholicguy opened this issue 2 weeks ago • 0 comments

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 the ports block method and rex forward it when remote
  • --host runs 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 -c falls back to $HOME silently on remote hosts
  • [ ] Never sends to the calling agent's own pane

Depends on: #459.

codeaholicguy avatar Nov 18 '26 09:11 codeaholicguy