@fibteq/myrel-runner 0.32.0 → 0.34.0
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 +32 -5
- package/dist/cli.js +106 -99
- package/dist/index.js +75 -75
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -99,6 +99,28 @@ automatically, with its branch. `myrel-runner worktrees` lists them, `worktrees
|
|
|
99
99
|
`worktrees remove <path or branch>` removes one, and `worktrees off` makes threads work in the folder itself again.
|
|
100
100
|
Read-only tasks (`--access read`) always run in the folder itself.
|
|
101
101
|
|
|
102
|
+
### More than one Claude Code account
|
|
103
|
+
|
|
104
|
+
A thread can run with another Claude Code login than your own, e.g. a work account next to your personal one.
|
|
105
|
+
Each login lives in a config folder of its own, which Claude Code takes from `CLAUDE_CONFIG_DIR`
|
|
106
|
+
([its own way](https://code.claude.com/docs/en/authentication) to sign in with several accounts):
|
|
107
|
+
|
|
108
|
+
```sh
|
|
109
|
+
myrel-runner claude add "Work" # a new folder, ~/.myrel-runner/claude/work, then Claude Code's own sign-in
|
|
110
|
+
myrel-runner claude add "Work" --dir ~/.claude-work # or a folder you already signed in with
|
|
111
|
+
myrel-runner claude rename default "Personal" # name your own login (~/.claude) too
|
|
112
|
+
myrel-runner claude list # each login, its folder and whether it is signed in
|
|
113
|
+
myrel-runner claude login "Work" # sign in again, e.g. after its login expired
|
|
114
|
+
myrel-runner claude remove "Work" # forget it; its folder (and login) stays until you delete it
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
The sign-in is Claude Code's own `claude auth login`: the login stays in that folder, and neither the runner nor
|
|
118
|
+
Myrel ever reads or keeps it. The runner only tells Myrel each account's name, and its usage limits as Claude Code
|
|
119
|
+
reports them in a turn with it. A thread that chose an account runs Claude Code with its folder; its sessions are
|
|
120
|
+
kept apart from your own login's, so a thread that switches accounts starts a new session (with the thread's
|
|
121
|
+
history). A new folder has none of your `~/.claude` settings, hooks or plugins. Use accounts that are all yours:
|
|
122
|
+
Claude's consumer terms do not allow sharing a login with someone else. Needs runner 0.34.0 or newer.
|
|
123
|
+
|
|
102
124
|
### What the CLI may do
|
|
103
125
|
|
|
104
126
|
`myrel-runner start --access <level>`, or for the background runner `myrel-runner service install --access <level>` or
|
|
@@ -112,15 +134,20 @@ Read-only tasks (`--access read`) always run in the folder itself.
|
|
|
112
134
|
| `full` | `--permission-mode bypassPermissions` | `--sandbox danger-full-access` | `--dangerously-skip-permissions` | edit and bash allowed, `--auto` | `--force --sandbox disabled` | `--yolo` |
|
|
113
135
|
|
|
114
136
|
With `auto`, Claude Code's auto mode decides which steps are safe to run (tests, git commit, builds) and runs them;
|
|
115
|
-
the ones it would ask about come to you as a card in the thread. Your Claude account must have auto mode.
|
|
116
|
-
|
|
117
|
-
|
|
137
|
+
the ones it would ask about come to you as a card in the thread. Your Claude account must have auto mode. Codex uses
|
|
138
|
+
**Approve for me** (`approvalsReviewer: "auto_review"`): its reviewer evaluates sandbox-boundary approvals while
|
|
139
|
+
the main agent stays in `workspace-write`. This requires a Codex app server with auto-review support (verified with
|
|
140
|
+
Codex 0.166.0); if it does not enable the reviewer, the task stops with an update instruction. `MYREL_CODEX_EXEC=1`
|
|
141
|
+
and older versions without an app server cannot run Codex auto access; choose `edit` to use exec instead.
|
|
142
|
+
For Antigravity CLI `auto` is the same as `edit` (its own auto mode needs its terminal sandbox and is missing on
|
|
143
|
+
business accounts).
|
|
118
144
|
|
|
119
145
|
Codex runs as its app server (`codex app-server`, one process per turn) where the installed Codex has one, and as
|
|
120
146
|
`codex exec --json` otherwise. The sandbox is the same either way (the table above). As a thread's agent with `edit`
|
|
121
147
|
or `auto`, the app server runs with approval policy `on-request`: a step its sandbox does not allow (a command that
|
|
122
|
-
needs the network such as `git push`, a file outside the folders)
|
|
123
|
-
|
|
148
|
+
needs the network such as `git push`, a file outside the folders) is reviewed by Codex with `auto`, or comes to you
|
|
149
|
+
as a card with `edit`. Switching from `auto` to `edit` restores manual approval even when resuming a session.
|
|
150
|
+
With `read` and `full`, and with `codex exec`, nothing is asked:
|
|
124
151
|
such a step fails and the run goes on. Stopping a turn from Myrel interrupts it the way Codex's own Stop does, so the
|
|
125
152
|
session is whole for the next turn. A message you write in the thread while it works goes into the running turn at
|
|
126
153
|
once (`turn/steer`, runner 0.23.0 or later), instead of with its next call to one of Myrel's tools. Set `MYREL_CODEX_EXEC=1` in the runner's environment to keep `codex exec`.
|