Rex Agent Launcher — Git skill for Claude Code
Rex plugin that launches Claude Code, Kiro or OpenCode in a new tab, in the current checkout or a self-cleaning git worktree.
How to install Rex Agent Launcher
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open leopalatto20/rex-agent-launcher and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Rex Agent Launcher does
Rex plugin that launches Claude Code, Kiro or OpenCode in a new tab, in the current checkout or a self-cleaning git worktree.
Alternatives in Git
- Worktree Deliver — Commit all work, push, and create a pull request from the current worktree 23.4k ★
- Create Worktrees — by evmts - Creates git worktrees for all open PRs or specific branches, handling branches with slashes, cleani 440 ★
- Memorix — Open-source cross-agent memory layer for coding agents via MCP 392 ★
README
rex-agent-launcher
A Rex plugin that starts a coding agent in a new tab, either in your current checkout or in a fresh git worktree that cleans itself up when the agent exits.
It adds one palette action, **Agent: New Session…**, which asks two questions:
- Which agent? Claude Code, Kiro or OpenCode.
- Where? The current checkout, or a new worktree branched from a freshly fetched
origin/(or localHEADwhen the repo has noorigin).
Outside a git repo the second question is skipped and the agent starts in the pane's folder.
Requirements
- Rex with Lua plugin support
git- Worktrunk (
wt) for worktree mode - At least one of the supported agents on your
PATH:- Claude Code (
claude) - Kiro CLI (
kiro-cli) - OpenCode (
opencode)
- Claude Code (
Install
Clone the repo anywhere:
git clone https://github.com/leopalatto20/rex-agent-launcher.git ~/code/tools/rex-agent-launcher
Load it from `~/.config/rex/init.lua`:
dofile(os.getenv("HOME") .. "/code/tools/rex-agent-launcher/init.lua").setup({ key = "ctrl+cmd+n" })
`key` is optional. Without it, run the action from the palette or with `rex do agent_new`. Check the config with `rex config check`.
Kiro setup
Kiro has no flag for extra instructions, so the launcher starts it with a dedicated agent profile named `rex-launcher`:
Copy Kiro's default agent to `~/.kiro/agents/rex-launcher.json` and set `"name": "rex-launcher"`.
Add the autonomy note to its `resources`:
"file:///absolute/path/to/rex-agent-launcher/instructions/autonomy.md"For worktree mode, link the branch-rename note into Kiro's steering folder:
ln -s /absolute/path/to/rex-agent-launcher/instructions/worktree-branch.md ~/.kiro/steering/agent-launcher-branch.mdThe note only applies on `agent/` bra
Related Skills
Rex Launch
A composer popup for Rex that starts Claude Code or Codex in a new git worktree
Checkout Branch
Switch to an existing branch by checking out its worktree, or creating one if needed.
Ponos
Write the ticket, it comes back done. A self-hosted harness around Claude Code that runs your tasks — code, wr
Agent Loop Runtime
Headless runtime for running coding agents (Codex, Claude Code, Devin, Qwen Code, OpenCode, Aider, custom CLIs
Hoxi
Native macOS 多 Agent 研发工作台:统一 OpenCode / Claude Code / Antigravity / Gemini CLI / Qoder / CodeBuddy 于同一 worksp
Topics App
A desktop workspace for CLI coding agents. Run Claude Code, Codex, OpenCode and Gemini CLI side by side — each
Related Agents
Duel Fix Builder
Use when one established cause of a defect has a failing repro test and needs the smallest fix that makes that
Consult Agent
Execute cross-tool AI consultations via Task spawning. Use when agents or workflows need a second opinion from
Scala Coder
Implements a single coding task end-to-end in an assigned git worktree for this Scala project. Owns the FULL l