claude-codex-pair 0.1.0 → 0.1.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.
- package/README.md +22 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,8 +61,9 @@ writable_roots = ["/Users/you/.pair"]
|
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
After setup, start Claude Code and Codex in separate terminals in the same worktree of this repo. Each
|
|
64
|
-
worktree has its own channel, so an agent started in another checkout won't see the messages
|
|
65
|
-
that were already open so they load the new
|
|
64
|
+
worktree has its own channel, so an agent started in another checkout won't see the messages
|
|
65
|
+
(see [Worktrees](#worktrees)). Restart any sessions that were already open so they load the new
|
|
66
|
+
instructions and sandbox settings.
|
|
66
67
|
|
|
67
68
|
## Use
|
|
68
69
|
|
|
@@ -73,6 +74,25 @@ that were already open so they load the new instructions and sandbox settings.
|
|
|
73
74
|
4. The thread ends when the reviewer approves. If findings are still open after 3 rounds, the thread
|
|
74
75
|
is **escalated** and both agents stop and ask you.
|
|
75
76
|
|
|
77
|
+
## Worktrees
|
|
78
|
+
|
|
79
|
+
The channel comes from the worktree root, so each git worktree gets its own. You can run one pair
|
|
80
|
+
per worktree in parallel without them seeing each other's messages.
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
git worktree add ../your-repo-feature -b feature/x
|
|
84
|
+
cd ../your-repo-feature
|
|
85
|
+
pair init # needed unless AGENTS.md and .claude/skills/pair/ are committed on this branch
|
|
86
|
+
pair status # worktree: /Users/you/your-repo-feature
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Then start Claude Code and Codex in `../your-repo-feature`, not in the main checkout. If one agent
|
|
90
|
+
never receives the other's messages, ask each agent to run `pair status` and compare the `channel:`
|
|
91
|
+
lines. Pair needs no extra sandbox config, because every channel lives under `~/.pair` (or `$PAIR_HOME`).
|
|
92
|
+
|
|
93
|
+
`git worktree remove` leaves the worktree's channel in `~/.pair`. To delete it too, run
|
|
94
|
+
`pair status` in the worktree first to get its `channel:` path, then remove that directory.
|
|
95
|
+
|
|
76
96
|
## Commands
|
|
77
97
|
|
|
78
98
|
The agents run `send` and `wait` themselves. You'll mostly use `init`, `status`, `history` and `clean`.
|