@cestoliv/wt 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/commands/skill.ts
4
+ function printSkill() {
5
+ console.log('---\nname: wt-worktree-manager\ndescription: Use the wt CLI to create, browse, open, and delete git worktrees across repos. Use when the user asks to manage worktrees, create isolated branches, or configure worktree defaults.\n---\n\n# wt \u2014 Git Worktree Manager\n\n`wt` is a CLI for managing git worktrees. It provides an interactive TUI to browse, create, open in your IDE, and delete worktrees across multiple repos.\n\n## Commands\n\n### `wt` (no subcommand)\n\nLaunch the interactive TUI. Shows worktrees for the current repo (repo mode) or all registered repos (global mode, when run outside a repo).\n\n**Keybindings in the TUI:**\n\n- Arrow keys \u2014 navigate\n- `Enter` \u2014 open worktree in IDE (exits the TUI)\n- `D` \u2014 delete worktree (the main worktree is tagged `(main)` and cannot be deleted \u2014 only linked worktrees can)\n- `P` \u2014 prune all merged worktrees (per-branch confirmation)\n- `C` \u2014 create a new worktree (works in both repo and global mode)\n- `A` \u2014 create a worktree and start an AI agent in it (works in both modes)\n- type to search \xB7 `Backspace` \u2014 edit search\n- `Q` / `Esc` \u2014 quit\n\n`C` and `A` are step-by-step wizards. In global mode (run from outside a repo /\n"home") they start by prompting for the repo (picker), then the branch; in repo\nmode the repo is fixed so they start at the branch. `A` then adds two more\nsteps:\n\n- `C` \u2014 **worktree (repo \u2192 branch)**\n- `A` \u2014 **worktree (repo \u2192 branch) \u2192 plan prompt \u2192 permission mode**\n\nPressing `Esc` at any step goes back to the previous step (your earlier answers\nare preserved); pressing `Esc` on the first step returns to the list.\n\nAfter a create or agent action the TUI **refreshes and stays open** on the list\n(your search and cursor are preserved) rather than exiting \u2014 only `Enter` (open)\nand `Q`/`Esc` exit.\n\nBecause `a`/`A`, `c`/`C`, `d`/`D`, and `p`/`P` are reserved as command keys,\nthose letters can\'t be typed into the search box.\n\n### `wt create [branch]`\n\nCreate a new worktree. If `branch` is omitted, prompts interactively.\n\nThe worktree is created as a sibling directory to the repo: `<parent>/<repo-name>-<branch-name>`.\n\nAfter creation, `wt` runs any configured `setup_commands` and opens the worktree in your IDE.\n\nIf the worktree path already exists, `wt create` doesn\'t error \u2014 it prompts you\nto **open it in the IDE** or **quit**. (In a non-interactive shell it errors\nwith a non-zero exit instead of prompting.)\n\n### `wt agent <branch> <plan_prompt> [--mode <mode>]`\n\nCreate a worktree (same as `wt create`) **and** auto-start an AI agent in Zed\'s\nintegrated terminal, pre-filled with `<plan_prompt>` and left interactive for\nyou to take over.\n\n```bash\nwt agent feature/login \'Read the codebase, then propose a plan for login.\'\nwt agent feature/fix \'Fix the bug in payment processing\' --mode auto\nwt agent refactor/api \'Refactor the API layer\' --mode default\n```\n\nThe `--mode` flag sets Claude Code\'s permission mode (defaults to `default`;\nchange the default with the `agent_mode` config key):\n\n- `default` \u2014 Standard interactive mode with approval for each action (default)\n- `acceptEdits` \u2014 Allow file changes but keep command execution controlled\n- `plan` \u2014 Architecture-first mode with no surprise mutations\n- `auto` \u2014 Claude\'s safety model makes decisions instead of prompting\n- `dontAsk` \u2014 Minimal interruptions in trusted environments\n- `bypassPermissions` \u2014 Skip all permission checks (dangerous, CI/sandbox only)\n\nIt writes a temporary `.zed/tasks.json` running\n`<agent_command> --permission-mode <mode> \'<plan_prompt>\'`, ensures a global Zed keymap chord\n(`agent_trigger_chord`) spawns that task, opens Zed, presses the chord via\n`osascript`, then removes the temporary task so the repo is left clean.\n\n**macOS + Zed only.** Requires Accessibility permission for the app that runs\n`wt` (Zed itself, when run from its integrated terminal). If it isn\'t granted,\n`wt agent` opens the _Privacy & Security \u2192 Accessibility_ settings pane and waits\nfor you to grant it and confirm, then retries automatically. On other platforms\n(or when `ide` is not `zed`) the worktree is still created and opened, but the\nagent is not auto-started.\n\nOver SSH it still works, provided the same user has an active graphical login on\nthe Mac: the keystroke is run inside the GUI session via Launch Services\n(`open -a Terminal` briefly flashes a Terminal window). Grant Accessibility to\nTerminal (not Zed) the first time. With no one logged in graphically there is\nnothing to drive, so it falls back to the manual "press the chord in Zed"\nmessage.\n\nIf the worktree path already exists, `wt agent` prompts you to **open it in the\nIDE**, **open it and start the agent**, or **quit** \u2014 instead of erroring. (In a\nnon-interactive shell it errors with a non-zero exit instead of prompting.)\n\n### `wt prune`\n\nRemove every worktree whose branch has already been merged into the base\nbranch (`base_branch`, default `origin/main`). Each candidate is confirmed\nindividually \u2014 and force-confirmed when git refuses (submodules / uncommitted\nchanges), exactly like a manual `d` delete. The branch itself is left intact;\nonly the worktree is removed.\n\n```bash\nwt prune # review and remove merged worktrees, one prompt per branch\n```\n\nMerge detection works in tiers. A branch whose diff already exists in base by\npatch id (via `git cherry`, so a single-commit branch **squash-merged** through a\nPR is recognized offline) is merged. For the ambiguous case \u2014 the branch tip is\nan ancestor of base but 0 commits ahead, which a **fast-forward / merge-commit**\nmerge and a worktree holding only *uncommitted* work both produce \u2014 it consults\nthe **forge**: a merged PR/MR (via `gh` for GitHub, `glab` for GitLab incl.\nself-hosted, auto-detected from the remote) is the only reliable signal. If the\nforge can\'t answer (CLI missing, offline, branch unpushed, no merged PR/MR) the\nbranch is left alone. A worktree still sitting exactly on the base commit is\nnever offered. `wt prune` also best-effort fetches the remote first so detection\nsees up-to-date refs; if the\nbase ref can\'t be resolved (e.g. offline), nothing is removed. Works in repo\nmode (current repo) and global mode (all registered repos, each against its own\n`base_branch`). The TUI exposes the same action under the `p` key.\n\n### `wt config`\n\nOpen the global config file in `$EDITOR` (defaults to `nano`).\n\n```bash\nwt config # open in editor\nwt config --path # print config file path only\n```\n\n### `wt skill`\n\nPrint this skill file to stdout. Useful for piping to agents or copying to a project.\n\n## Configuration\n\nConfig is stored as JSON. Get the path with `wt config --path`.\n\n### Schema\n\n| Key | Type | Default | Description |\n| --------------------- | ---------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `worktree_path` | `string` | `"../"` | Where to place new worktrees, relative to the repo root |\n| `base_branch` | `string` | `"origin/main"` | Branch to base new worktrees on |\n| `setup_commands` | `string[]` | `[]` | Commands to run in a new worktree after creation (e.g. `["npm install"]`) |\n| `teardown_commands` | `string[]` | `[]` | Commands to run in a worktree just before it is deleted (e.g. `["docker compose down -v"]`); on failure you are prompted whether to delete anyway |\n| `ide` | `string` | `"zed"` | IDE command to open worktrees with |\n| `ide_open_args` | `string[]` | `["-n"]` | Arguments passed to the IDE command |\n| `agent_command` | `string` | `"claude"` | Base command `wt agent` runs in Zed; `--permission-mode <mode>` is injected (any existing one replaced), then `<plan_prompt>` is appended single-quoted |\n| `agent_mode` | `string` | `"default"` | Default Claude Code permission mode for `wt agent`; the `--mode` flag overrides it. One of `default`, `acceptEdits`, `plan`, `auto`, `dontAsk`, `bypassPermissions` |\n| `agent_trigger_chord` | `string` | `"ctrl-shift-cmd-c"` | Zed keymap chord `wt agent` installs/presses to spawn the agent task |\n| `auto_refresh_minutes`| `number` | `5` | How often the interactive list (`wt`) re-fetches worktrees and updates the "last refreshed" header; `0` disables auto-refresh |\n| `repos` | `string[]` | `[]` | Registered repo paths (auto-populated on first use) |\n| `repo_overrides` | `object` | `{}` | Per-repo config overrides (see below) |\n\n### Per-repo overrides\n\nOverride any field (`worktree_path`, `base_branch`, `setup_commands`, `teardown_commands`, `ide`, `ide_open_args`, `agent_command`, `agent_mode`, `agent_trigger_chord`, `auto_refresh_minutes`) for a specific repo:\n\n```json\n{\n "base_branch": "origin/main",\n "ide": "zed",\n "repo_overrides": {\n "/path/to/my-repo": {\n "base_branch": "origin/develop",\n "setup_commands": ["npm install", "npm run build"]\n }\n }\n}\n```\n\n## Common workflows\n\n### Create a worktree for a new feature\n\n```bash\ncd /path/to/repo\nwt create feature/my-branch\n```\n\n### Configure setup commands for a repo\n\n```bash\nwt config\n# Then add to the JSON:\n# "repo_overrides": {\n# "/path/to/repo": {\n# "setup_commands": ["npm install"]\n# }\n# }\n```\n\n### Browse all worktrees across repos\n\nRun `wt` from any directory outside a git repo to see worktrees from all registered repos.\n');
6
+ }
7
+ export {
8
+ printSkill
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cestoliv/wt",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Fast, interactive TUI to browse, create, open, and delete git worktrees across repos.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,204 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- getRegisteredRepos,
4
- getRepoRoot,
5
- listWorktreeDirtyFiles,
6
- listWorktrees,
7
- openIde,
8
- registerRepo,
9
- removeWorktree,
10
- runBranchInput,
11
- runCommands,
12
- runInteractiveList,
13
- runRepoPicker,
14
- runWizard
15
- } from "./chunk-GHYUCETL.js";
16
- import {
17
- createStore,
18
- getEffectiveConfig
19
- } from "./chunk-FNAMNRUH.js";
20
-
21
- // src/commands/list.ts
22
- import * as clack from "@clack/prompts";
23
- import pc from "picocolors";
24
- function buildWorktreeSteps(repoRoot, store, state) {
25
- const steps = [];
26
- if (!repoRoot) {
27
- const repos = getRegisteredRepos(store);
28
- steps.push(async () => {
29
- const picked = await runRepoPicker(repos, state.pickedRepo);
30
- if (!picked) return false;
31
- state.pickedRepo = picked;
32
- return true;
33
- });
34
- }
35
- steps.push(async () => {
36
- const entered = await runBranchInput(
37
- state.pickedRepo,
38
- state.branch ?? ""
39
- );
40
- if (!entered) return false;
41
- state.branch = entered;
42
- return true;
43
- });
44
- return steps;
45
- }
46
- async function prepareListItems(options = {}) {
47
- const { cwd = process.cwd(), store = createStore() } = options;
48
- let repoRoot = null;
49
- try {
50
- repoRoot = getRepoRoot(cwd);
51
- } catch {
52
- }
53
- if (repoRoot) {
54
- registerRepo(repoRoot, store);
55
- const items2 = listWorktrees(repoRoot, cwd);
56
- return { items: items2, mode: "repo", repoRoot };
57
- }
58
- const repos = getRegisteredRepos(store);
59
- const items = repos.flatMap((repo) => {
60
- try {
61
- return listWorktrees(repo, cwd);
62
- } catch {
63
- return [];
64
- }
65
- });
66
- return { items, mode: "global", repoRoot: null };
67
- }
68
- async function runList(options = {}) {
69
- const { store = createStore(), cwd = process.cwd() } = options;
70
- const { items, mode, repoRoot } = await prepareListItems({ cwd, store });
71
- if (items.length === 0 && mode === "global") {
72
- console.log(
73
- pc.dim(
74
- "No repos registered. Run `wt create` inside a repo to get started."
75
- )
76
- );
77
- return;
78
- }
79
- await runInteractiveList(items, mode, {
80
- onOpen: (item) => {
81
- const config = getEffectiveConfig(item.repoRoot, store);
82
- openIde(config.ide, config.ide_open_args, item.path);
83
- },
84
- onDelete: async (item) => {
85
- const confirmed = await clack.confirm({
86
- message: `Remove worktree ${pc.bold(item.branch)}? This cannot be undone.`
87
- });
88
- if (clack.isCancel(confirmed) || !confirmed) return false;
89
- const config = getEffectiveConfig(item.repoRoot, store);
90
- if (config.teardown_commands.length > 0) {
91
- console.log(pc.dim("Running teardown commands..."));
92
- const result = await runCommands(config.teardown_commands, item.path);
93
- if (!result.success) {
94
- clack.log.warn(
95
- `Teardown command failed: ${result.failedCommand} (exit code ${result.exitCode})`
96
- );
97
- const proceed = await clack.confirm({
98
- message: `Delete ${pc.bold(item.branch)} anyway?`
99
- });
100
- if (clack.isCancel(proceed) || !proceed) return false;
101
- }
102
- }
103
- try {
104
- removeWorktree(item.repoRoot, item.path);
105
- console.log(pc.green(`\u2713 Removed ${item.branch}`));
106
- return true;
107
- } catch (err) {
108
- const msg = String(err);
109
- if (msg.includes("cannot be moved or removed")) {
110
- clack.log.warn(
111
- "Worktree contains git submodules, which prevent standard removal."
112
- );
113
- const force = await clack.confirm({
114
- message: `Force delete ${pc.bold(item.branch)}? The worktree directory will be removed directly.`
115
- });
116
- if (clack.isCancel(force) || !force) return false;
117
- try {
118
- removeWorktree(item.repoRoot, item.path, true);
119
- console.log(pc.green(`\u2713 Force-removed ${item.branch}`));
120
- return true;
121
- } catch (err2) {
122
- console.error(pc.red(`\u2717 Failed to force-remove: ${String(err2)}`));
123
- return false;
124
- }
125
- }
126
- if (msg.includes("modified or untracked files")) {
127
- const dirty = listWorktreeDirtyFiles(item.path);
128
- if (dirty.length > 0) {
129
- clack.log.warn(
130
- `Worktree has uncommitted changes:
131
- ${dirty.map((f) => ` ${f}`).join("\n")}`
132
- );
133
- }
134
- const force = await clack.confirm({
135
- message: `Force delete ${pc.bold(item.branch)}? All changes will be lost.`
136
- });
137
- if (clack.isCancel(force) || !force) return false;
138
- try {
139
- removeWorktree(item.repoRoot, item.path, true);
140
- console.log(pc.green(`\u2713 Force-removed ${item.branch}`));
141
- return true;
142
- } catch (err2) {
143
- console.error(pc.red(`\u2717 Failed to force-remove: ${String(err2)}`));
144
- return false;
145
- }
146
- }
147
- console.error(pc.red(`\u2717 Failed to remove: ${msg}`));
148
- return false;
149
- }
150
- },
151
- onCreate: async () => {
152
- const state = { pickedRepo: repoRoot ?? void 0 };
153
- const steps = buildWorktreeSteps(repoRoot, store, state);
154
- if (!await runWizard(steps)) return;
155
- if (state.pickedRepo === void 0 || state.branch === void 0) return;
156
- const { createWorktree } = await import("./create-XKF574AL.js");
157
- await createWorktree(state.branch, { cwd: state.pickedRepo, store });
158
- },
159
- onAgent: async () => {
160
- const { createAgentWorktree, VALID_MODES } = await import("./agent-Z3YCY245.js");
161
- const state = {
162
- pickedRepo: repoRoot ?? void 0,
163
- mode: "plan"
164
- };
165
- const steps = buildWorktreeSteps(repoRoot, store, state);
166
- steps.push(async () => {
167
- const entered = await clack.text({
168
- message: "Plan prompt for the agent:",
169
- initialValue: state.plan,
170
- validate: (v) => !v || v.length === 0 ? "Required" : void 0
171
- });
172
- if (clack.isCancel(entered)) return false;
173
- state.plan = entered;
174
- return true;
175
- });
176
- steps.push(async () => {
177
- const chosen = await clack.select({
178
- message: "Permission mode:",
179
- initialValue: state.mode,
180
- options: VALID_MODES.map((m) => ({ value: String(m), label: m }))
181
- });
182
- if (clack.isCancel(chosen)) return false;
183
- state.mode = chosen;
184
- return true;
185
- });
186
- if (!await runWizard(steps)) return;
187
- if (state.pickedRepo === void 0 || state.branch === void 0 || state.plan === void 0)
188
- return;
189
- await createAgentWorktree(state.branch, state.plan, {
190
- cwd: state.pickedRepo,
191
- store,
192
- mode: state.mode
193
- });
194
- },
195
- refreshItems: async () => {
196
- const refreshed = await prepareListItems({ cwd, store });
197
- return refreshed.items;
198
- }
199
- });
200
- }
201
- export {
202
- prepareListItems,
203
- runList
204
- };
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // src/commands/skill.ts
4
- function printSkill() {
5
- console.log('---\nname: wt-worktree-manager\ndescription: Use the wt CLI to create, browse, open, and delete git worktrees across repos. Use when the user asks to manage worktrees, create isolated branches, or configure worktree defaults.\n---\n\n# wt \u2014 Git Worktree Manager\n\n`wt` is a CLI for managing git worktrees. It provides an interactive TUI to browse, create, open in your IDE, and delete worktrees across multiple repos.\n\n## Commands\n\n### `wt` (no subcommand)\n\nLaunch the interactive TUI. Shows worktrees for the current repo (repo mode) or all registered repos (global mode, when run outside a repo).\n\n**Keybindings in the TUI:**\n\n- Arrow keys \u2014 navigate\n- `Enter` \u2014 open worktree in IDE (exits the TUI)\n- `D` \u2014 delete worktree\n- `C` \u2014 create a new worktree (works in both repo and global mode)\n- `A` \u2014 create a worktree and start an AI agent in it (works in both modes)\n- type to search \xB7 `Backspace` \u2014 edit search\n- `Q` / `Esc` \u2014 quit\n\n`C` and `A` are step-by-step wizards. In global mode (run from outside a repo /\n"home") they start by prompting for the repo (picker), then the branch; in repo\nmode the repo is fixed so they start at the branch. `A` then adds two more\nsteps:\n\n- `C` \u2014 **worktree (repo \u2192 branch)**\n- `A` \u2014 **worktree (repo \u2192 branch) \u2192 plan prompt \u2192 permission mode**\n\nPressing `Esc` at any step goes back to the previous step (your earlier answers\nare preserved); pressing `Esc` on the first step returns to the list.\n\nAfter a create or agent action the TUI **refreshes and stays open** on the list\n(your search and cursor are preserved) rather than exiting \u2014 only `Enter` (open)\nand `Q`/`Esc` exit.\n\nBecause `a`/`A`, `c`/`C`, and `d`/`D` are reserved as command keys, those\nletters can\'t be typed into the search box.\n\n### `wt create [branch]`\n\nCreate a new worktree. If `branch` is omitted, prompts interactively.\n\nThe worktree is created as a sibling directory to the repo: `<parent>/<repo-name>-<branch-name>`.\n\nAfter creation, `wt` runs any configured `setup_commands` and opens the worktree in your IDE.\n\nIf the worktree path already exists, `wt create` doesn\'t error \u2014 it prompts you\nto **open it in the IDE** or **quit**. (In a non-interactive shell it errors\nwith a non-zero exit instead of prompting.)\n\n### `wt agent <branch> <plan_prompt> [--mode <mode>]`\n\nCreate a worktree (same as `wt create`) **and** auto-start an AI agent in Zed\'s\nintegrated terminal, pre-filled with `<plan_prompt>` and left interactive for\nyou to take over.\n\n```bash\nwt agent feature/login \'Read the codebase, then propose a plan for login.\'\nwt agent feature/fix \'Fix the bug in payment processing\' --mode auto\nwt agent refactor/api \'Refactor the API layer\' --mode default\n```\n\nThe `--mode` flag sets Claude Code\'s permission mode (defaults to `plan`):\n\n- `default` \u2014 Standard interactive mode with approval for each action\n- `acceptEdits` \u2014 Allow file changes but keep command execution controlled\n- `plan` \u2014 Architecture-first mode with no surprise mutations (default)\n- `auto` \u2014 Claude\'s safety model makes decisions instead of prompting\n- `dontAsk` \u2014 Minimal interruptions in trusted environments\n- `bypassPermissions` \u2014 Skip all permission checks (dangerous, CI/sandbox only)\n\nIt writes a temporary `.zed/tasks.json` running\n`<agent_command> --permission-mode <mode> \'<plan_prompt>\'`, ensures a global Zed keymap chord\n(`agent_trigger_chord`) spawns that task, opens Zed, presses the chord via\n`osascript`, then removes the temporary task so the repo is left clean.\n\n**macOS + Zed only.** Requires Accessibility permission for the app that runs\n`wt` (Zed itself, when run from its integrated terminal). If it isn\'t granted,\n`wt agent` opens the _Privacy & Security \u2192 Accessibility_ settings pane and waits\nfor you to grant it and confirm, then retries automatically. On other platforms\n(or when `ide` is not `zed`) the worktree is still created and opened, but the\nagent is not auto-started.\n\nOver SSH it still works, provided the same user has an active graphical login on\nthe Mac: the keystroke is run inside the GUI session via Launch Services\n(`open -a Terminal` briefly flashes a Terminal window). Grant Accessibility to\nTerminal (not Zed) the first time. With no one logged in graphically there is\nnothing to drive, so it falls back to the manual "press the chord in Zed"\nmessage.\n\nIf the worktree path already exists, `wt agent` prompts you to **open it in the\nIDE**, **open it and start the agent**, or **quit** \u2014 instead of erroring. (In a\nnon-interactive shell it errors with a non-zero exit instead of prompting.)\n\n### `wt config`\n\nOpen the global config file in `$EDITOR` (defaults to `nano`).\n\n```bash\nwt config # open in editor\nwt config --path # print config file path only\n```\n\n### `wt skill`\n\nPrint this skill file to stdout. Useful for piping to agents or copying to a project.\n\n## Configuration\n\nConfig is stored as JSON. Get the path with `wt config --path`.\n\n### Schema\n\n| Key | Type | Default | Description |\n| --------------------- | ---------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `worktree_path` | `string` | `"../"` | Where to place new worktrees, relative to the repo root |\n| `base_branch` | `string` | `"origin/main"` | Branch to base new worktrees on |\n| `setup_commands` | `string[]` | `[]` | Commands to run in a new worktree after creation (e.g. `["npm install"]`) |\n| `teardown_commands` | `string[]` | `[]` | Commands to run in a worktree just before it is deleted (e.g. `["docker compose down -v"]`); on failure you are prompted whether to delete anyway |\n| `ide` | `string` | `"zed"` | IDE command to open worktrees with |\n| `ide_open_args` | `string[]` | `["-n"]` | Arguments passed to the IDE command |\n| `agent_command` | `string` | `"claude --permission-mode plan"` | Base command `wt agent` runs in Zed; any `--permission-mode` flag is replaced by the `--mode` option (defaults to `plan`), then `<plan_prompt>` is appended single-quoted |\n| `agent_trigger_chord` | `string` | `"ctrl-shift-cmd-c"` | Zed keymap chord `wt agent` installs/presses to spawn the agent task |\n| `repos` | `string[]` | `[]` | Registered repo paths (auto-populated on first use) |\n| `repo_overrides` | `object` | `{}` | Per-repo config overrides (see below) |\n\n### Per-repo overrides\n\nOverride any field (`worktree_path`, `base_branch`, `setup_commands`, `teardown_commands`, `ide`, `ide_open_args`, `agent_command`, `agent_trigger_chord`) for a specific repo:\n\n```json\n{\n "base_branch": "origin/main",\n "ide": "zed",\n "repo_overrides": {\n "/path/to/my-repo": {\n "base_branch": "origin/develop",\n "setup_commands": ["npm install", "npm run build"]\n }\n }\n}\n```\n\n## Common workflows\n\n### Create a worktree for a new feature\n\n```bash\ncd /path/to/repo\nwt create feature/my-branch\n```\n\n### Configure setup commands for a repo\n\n```bash\nwt config\n# Then add to the JSON:\n# "repo_overrides": {\n# "/path/to/repo": {\n# "setup_commands": ["npm install"]\n# }\n# }\n```\n\n### Browse all worktrees across repos\n\nRun `wt` from any directory outside a git repo to see worktrees from all registered repos.\n');
6
- }
7
- export {
8
- printSkill
9
- };