Skip to content

Commit f860dd8

Browse files
worktrunk-botclaude
andcommitted
Trim Codex PR scope per review
Simplify the Codex addition based on review feedback (#2512 review): - Revert claude→codex find-replaces in unrelated docs (README.md, worktrunk.md, tips-patterns.md, faq.md, SKILL.md, config marker doc) so existing Claude examples stay as Claude examples. - Fold docs/content/codex.md into docs/content/claude-code.md as a combined "Claude Code & Codex Integration" page; drop the standalone codex docs page, codex llms.txt entry, lychee codex exemption, and .codex-plugin/README.md. - Move hooks/hooks.json under .codex-plugin/hooks/hooks.json so the only new top-level paths are .codex-plugin/ (parallels the existing .claude-plugin/) and .agents/plugins/marketplace.json (the path Codex looks for when adding a repo as a marketplace). Co-Authored-By: Claude Opus 4.7 <[email protected]>
1 parent 61549bd commit f860dd8

27 files changed

Lines changed: 141 additions & 366 deletions

‎.codex-plugin/README.md‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎.codex-plugin/plugin.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
"name": "Worktrunk",
66
"url": "https://github.com/max-sixty/worktrunk"
77
},
8-
"homepage": "https://worktrunk.dev/codex/",
8+
"homepage": "https://worktrunk.dev/claude-code/",
99
"repository": "https://github.com/max-sixty/worktrunk",
1010
"license": "MIT OR Apache-2.0",
1111
"keywords": ["git", "worktree", "codex", "agent"],
1212
"skills": "./skills/",
13-
"hooks": "./hooks/hooks.json",
13+
"hooks": "./.codex-plugin/hooks/hooks.json",
1414
"interface": {
1515
"displayName": "Worktrunk",
1616
"shortDescription": "Git worktree workflows for parallel Codex sessions.",
1717
"longDescription": "Use Worktrunk from Codex to manage linked worktrees, set up LLM commit workflows, configure hooks, and bundle activity markers for wt list.",
1818
"developerName": "Worktrunk",
1919
"category": "Productivity",
2020
"capabilities": ["Interactive", "Write"],
21-
"websiteURL": "https://worktrunk.dev/codex/"
21+
"websiteURL": "https://worktrunk.dev/claude-code/"
2222
}
2323
}

‎.config/lychee.toml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ exclude = [
2424
# Zola internal links use @/ syntax (validated by `zola check`, not lychee)
2525
"/@/",
2626

27-
# New docs pages can 404 on worktrunk.dev until the PR is merged and deployed.
28-
# Source links are still validated by Zola and doc sync tests.
29-
"worktrunk\\.dev/codex(\\.md)?(/|#|$)",
30-
3127
# Private or authenticated GitHub resources
3228
"github\\.com/anthropics/claude-code/issues",
3329

‎README.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ Worktrees are addressed by branch name; paths are computed from a configurable t
5858
<td><pre>cd ../repo.feat</pre></td>
5959
</tr>
6060
<tr>
61-
<td>Create + start an agent</td>
62-
<td><pre>wt switch -c -x codex feat</pre></td>
61+
<td>Create + start Claude</td>
62+
<td><pre>wt switch -c -x claude feat</pre></td>
6363
<td><pre>git worktree add -b feat ../repo.feat && \
6464
cd ../repo.feat && \
65-
codex</pre></td>
65+
claude</pre></td>
6666
</tr>
6767
<tr>
6868
<td>Clean up</td>
@@ -96,7 +96,7 @@ git branch -d feat</pre></td>
9696

9797
A demo with some advanced features:
9898

99-
![Worktrunk omnibus demo: multiple agents in Zellij tabs with hooks, LLM commits, and merge workflow](https://raw.githubusercontent.com/max-sixty/worktrunk-assets/main/assets/docs/light/wt-zellij-omnibus.gif)
99+
![Worktrunk omnibus demo: multiple Claude agents in Zellij tabs with hooks, LLM commits, and merge workflow](https://raw.githubusercontent.com/max-sixty/worktrunk-assets/main/assets/docs/light/wt-zellij-omnibus.gif)
100100

101101
<!-- END AUTO-GENERATED -->
102102

@@ -201,9 +201,9 @@ $ wt merge main
201201
For parallel agents, create multiple worktrees and launch an agent in each:
202202

203203
```bash
204-
wt switch -x codex -c feature-a -- 'Add user authentication'
205-
wt switch -x codex -c feature-b -- 'Fix the pagination bug'
206-
wt switch -x codex -c feature-c -- 'Write tests for the API'
204+
wt switch -x claude -c feature-a -- 'Add user authentication'
205+
wt switch -x claude -c feature-b -- 'Fix the pagination bug'
206+
wt switch -x claude -c feature-c -- 'Write tests for the API'
207207
```
208208

209209
The `-x` flag runs a command after switching; arguments after `--` are passed to it. Configure [post-start hooks](https://worktrunk.dev/hook/#hook-types) to automate setup (install deps, start dev servers).
@@ -213,8 +213,8 @@ The `-x` flag runs a command after switching; arguments after `--` are passed to
213213
- Learn the core commands: [`wt switch`](https://worktrunk.dev/switch/), [`wt list`](https://worktrunk.dev/list/), [`wt merge`](https://worktrunk.dev/merge/), [`wt remove`](https://worktrunk.dev/remove/)
214214
- Set up [hooks](https://worktrunk.dev/hook/) for automated setup
215215
- Explore [LLM commit messages](https://worktrunk.dev/llm-commits/), [interactive
216-
picker](https://worktrunk.dev/switch/#interactive-picker), [Codex integration](https://worktrunk.dev/codex/), [Claude Code
217-
integration](https://worktrunk.dev/claude-code/), [CI status & PR links](https://worktrunk.dev/list/#ci-status)
216+
picker](https://worktrunk.dev/switch/#interactive-picker), [Claude Code integration](https://worktrunk.dev/claude-code/), [CI
217+
status & PR links](https://worktrunk.dev/list/#ci-status)
218218
- Browse [tips & patterns](https://worktrunk.dev/tips-patterns/) for recipes: aliases, dev servers, databases, agent handoffs, and more
219219
- [Extending Worktrunk](https://worktrunk.dev/extending/) — customize workflows with hooks & aliases
220220
- Run `wt --help` or `wt <command> --help` for quick CLI reference

‎docs/content/claude-code.md‎

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
11
+++
2-
title = "Claude Code Integration"
3-
description = "Worktrunk plugin for Claude Code: configuration skill, worktree isolation for agents, and activity tracking for wt list."
2+
title = "Claude Code & Codex Integration"
3+
description = "Worktrunk plugins for Claude Code and Codex: configuration skill, agent worktree isolation, and activity tracking for wt list."
44
weight = 23
55

66
[extra]
77
group = "Reference"
88
+++
99

10-
The worktrunk Claude Code plugin provides three features:
10+
Worktrunk ships plugins for Claude Code and Codex. Both bundle:
1111

12-
1. **Configuration skill** — Documentation Claude Code can read, so it can help set up LLM commits, hooks, and troubleshoot issues
13-
2. **Worktree isolation** — When Claude Code agents create isolated worktrees, the plugin routes creation and removal through `wt` instead of raw `git`
14-
3. **Activity tracking** — Status markers in `wt list` showing which worktrees have active Claude sessions (🤖 working, 💬 waiting)
12+
1. **Configuration skill** — Documentation the agent can read, so it can help set up LLM commits, hooks, and troubleshoot issues
13+
2. **Activity tracking** — Status markers in `wt list` showing which worktrees have active agent sessions (🤖 working, 💬 waiting)
1514

16-
Using Codex? See [Codex Integration](@/codex.md) for the Codex plugin and Worktrunk skill.
15+
The Claude Code plugin additionally routes agent-created isolated worktrees through `wt switch --create` / `wt remove`. Codex does not currently expose equivalent worktree-lifecycle hooks, so Codex users invoke `wt` directly for `--create` / `remove`.
1716

1817
## Installation
1918

20-
Recommended:
19+
### Claude Code
2120

2221
{{ terminal(cmd="wt config plugins claude install") }}
2322

2423
Manual equivalent:
2524

2625
{{ terminal(cmd="claude plugin marketplace add max-sixty/worktrunk|||claude plugin install worktrunk@worktrunk") }}
2726

27+
### Codex
28+
29+
{{ terminal(cmd="wt config plugins codex install") }}
30+
31+
This configures the Worktrunk marketplace in Codex. Then run `/plugins` in Codex and install Worktrunk from the marketplace. Manual equivalent:
32+
33+
{{ terminal(cmd="codex plugin marketplace add max-sixty/worktrunk") }}
34+
35+
To remove the marketplace entry, run `wt config plugins codex uninstall`. Already-installed plugins and global Codex hook feature flags are left unchanged.
36+
37+
If activity markers do not appear after installing the plugin, Codex may be gating plugin-bundled hooks. Run `codex features list`; if `plugin_hooks` is `false`, enable it (`codex features enable plugin_hooks`), or copy this repo's `.codex-plugin/hooks/hooks.json` to `~/.codex/hooks.json`.
38+
2839
## Configuration skill
2940

30-
The plugin includes a skill — documentation that Claude Code can read — covering worktrunk's configuration system. After installation, Claude Code can help with:
41+
The plugin includes a skill — documentation the agent can read — covering Worktrunk's configuration system. After installation, the agent can help with:
3142

3243
- Setting up LLM-generated commit messages
3344
- Adding project hooks (pre-start, pre-merge, pre-commit)
@@ -38,7 +49,7 @@ Claude Code is designed to load the skill automatically when it detects worktrun
3849

3950
## Activity tracking
4051

41-
The plugin tracks Claude sessions with status markers in `wt list`:
52+
The plugins track agent sessions with status markers in `wt list`:
4253

4354
<!-- ⚠️ AUTO-GENERATED from tests/snapshots/integration__integration_tests__list__list_with_user_marker.snap — edit source to update -->
4455

@@ -55,8 +66,10 @@ The plugin tracks Claude sessions with status markers in `wt list`:
5566

5667
<!-- END AUTO-GENERATED -->
5768

58-
- 🤖 — Claude is working
59-
- 💬 — Claude is waiting for input
69+
- 🤖 — agent is working
70+
- 💬 — agent is waiting or idle
71+
72+
If an agent process exits without firing its stop hook, the marker can remain. Clear it manually with `wt config state marker clear`.
6073

6174
### Manual status markers
6275

@@ -68,11 +81,13 @@ Set status markers manually for any workflow:
6881
<span class="cmd">git config worktrunk.state.feature.marker '{"marker":"💬","set_at":0}' # Direct</span>
6982
{% end %}
7083

71-
## Worktree isolation
84+
## Worktree isolation (Claude Code only)
7285

7386
Claude Code agents can run in isolated worktrees (`isolation: "worktree"`). By default, Claude Code creates these with `git worktree add`. The plugin's `WorktreeCreate` and `WorktreeRemove` hooks route this through `wt switch --create` and `wt remove` instead, so worktrees created by agents get worktrunk's naming conventions, hooks, and lifecycle management.
7487

75-
## Statusline
88+
Codex does not currently expose equivalent hook events, so Codex users should invoke `wt switch --create` and `wt remove` directly.
89+
90+
## Statusline (Claude Code only)
7691

7792
`wt list statusline --format=claude-code` outputs a single-line status for the Claude Code statusline. When the CI status cache is stale, this fetches from the network — typically 1–2 seconds — making it suitable for async statuslines but too slow for synchronous shell prompts. If a faster version would be helpful, please [open an issue](https://github.com/max-sixty/worktrunk/issues).
7893

‎docs/content/codex.md‎

Lines changed: 0 additions & 106 deletions
This file was deleted.

‎docs/content/config.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ Markers appear at the end of the Status column, after git symbols:
979979
### Use cases
980980

981981
- **Work status** — `🚧` WIP, `✅` ready for review, `🔥` urgent
982-
- **Agent tracking** — The [Codex](@/codex.md) and [Claude Code](@/claude-code.md) plugins can set markers automatically when their hooks are active
982+
- **Agent tracking** — The [Claude Code](@/claude-code.md) plugin sets markers automatically
983983
- **Notes** — Any short text: `"blocked"`, `"needs tests"`
984984

985985
### Storage

‎docs/content/faq.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+++
22
title = "FAQ"
33
description = "Common questions about Worktrunk: comparison to git worktree and branch switching, bare repos, TUI support, and more."
4-
weight = 26
4+
weight = 25
55

66
[extra]
77
group = "Reference"
@@ -64,14 +64,14 @@ Not natively — stacked-branch workflows are a large design space, so Worktrunk
6464

6565
## There's an issue with my shell setup
6666

67-
If shell integration isn't working (auto-cd not happening, completions missing, `wt` not found as a function), the fastest path to a fix is using an agent with the Worktrunk plugin:
67+
If shell integration isn't working (auto-cd not happening, completions missing, `wt` not found as a function), the fastest path to a fix is using Claude Code with the Worktrunk plugin:
6868

69-
1. Install the Worktrunk plugin in [Codex](@/codex.md) or [Claude Code](@/claude-code.md)
70-
2. Ask the agent to debug the Worktrunk shell integration
69+
1. Install the [Worktrunk plugin](@/claude-code.md) in Claude Code
70+
2. Ask Claude to debug the Worktrunk shell integration
7171

72-
The agent will run `wt config show`, inspect the shell config files, and identify the issue.
72+
Claude will run `wt config show`, inspect the shell config files, and identify the issue.
7373

74-
If the agent can't fix it, please [open an issue](https://github.com/max-sixty/worktrunk/issues/new?title=Shell%20setup%20issue&body=%23%23%20Shell%20and%20OS%0A%0A-%20Shell%3A%20%0A-%20OS%3A%20%0A%0A%23%23%20Output%20of%20%60wt%20config%20show%60%0A%0A%60%60%60%0A%0A%60%60%60%0A%0A%23%23%20What%20the%20agent%20found%20%28if%20available%29%0A%0A) with the output of `wt config show`, the shell (bash/zsh/fish), and OS. (And even if it fixes the problem, feel free to open an issue: non-standard success cases are useful for ensuring Worktrunk is easy to set up for others.)
74+
If Claude can't fix it, please [open an issue](https://github.com/max-sixty/worktrunk/issues/new?title=Shell%20setup%20issue&body=%23%23%20Shell%20and%20OS%0A%0A-%20Shell%3A%20%0A-%20OS%3A%20%0A%0A%23%23%20Output%20of%20%60wt%20config%20show%60%0A%0A%60%60%60%0A%0A%60%60%60%0A%0A%23%23%20What%20Claude%20found%20%28if%20available%29%0A%0A) with the output of `wt config show`, the shell (bash/zsh/fish), and OS. (And even if it fixes the problem, feel free to open an issue: non-standard success cases are useful for ensuring Worktrunk is easy to set up for others.)
7575

7676
## What files does Worktrunk create?
7777

0 commit comments

Comments
 (0)