leopalatto20

Rex Agent Launcher — Git skill for Claude Code

Git community

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:

  1. Which agent? Claude Code, Kiro or OpenCode.
  2. Where? The current checkout, or a new worktree branched from a freshly fetched origin/ (or local HEAD when the repo has no origin).

Outside a git repo the second question is skipped and the agent starts in the pane's folder.

Requirements

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`:

  1. Copy Kiro's default agent to `~/.kiro/agents/rex-launcher.json` and set `"name": "rex-launcher"`.

  2. Add the autonomy note to its `resources`:

    "file:///absolute/path/to/rex-agent-launcher/instructions/autonomy.md"
  3. 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.md

    The note only applies on `agent/` bra