@losoft/taube 0.1.6 → 0.1.7
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 +123 -21
- package/dist/cli.js +811 -162
- package/package.json +3 -3
- package/plugins/taube/.claude-plugin/plugin.json +1 -1
- package/plugins/taube/.codex-plugin/plugin.json +1 -1
- package/plugins/taube/.cursor-plugin/plugin.json +1 -1
- package/plugins/taube/.grok-plugin/plugin.json +1 -1
- package/plugins/taube/skills/taube-dispatch/SKILL.md +22 -4
package/README.md
CHANGED
|
@@ -4,30 +4,42 @@ Taube lets Codex CLI, Claude Code, Cursor, and Grok Build hand tasks to each oth
|
|
|
4
4
|
|
|
5
5
|
> Ask Codex to review my current diff. Report any bugs with file names and line numbers.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Taube connects directly to target adapters through the Agent Client Protocol (ACP). Each task starts a fresh session. The `taube-dispatch` skill calls the same CLI from each host.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
## Run Taube
|
|
10
|
+
|
|
11
|
+
You need Node.js 22.13 or later and npm. Sign in to each target agent you plan to use.
|
|
12
|
+
|
|
13
|
+
Run Taube from a shell or script without a global install.
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npx @losoft/taube surfaces
|
|
11
17
|
```
|
|
12
18
|
|
|
13
|
-
|
|
19
|
+
In scripts, use `npx --yes @losoft/taube` to skip the npm install prompt. See the [CLI reference](#cli-reference) for dispatch examples and options.
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
### Install the skill on its own
|
|
16
22
|
|
|
17
|
-
|
|
23
|
+
```sh
|
|
24
|
+
npx skills add lorenzh/taube --skill taube-dispatch
|
|
25
|
+
```
|
|
18
26
|
|
|
19
|
-
|
|
27
|
+
Choose the host where you want to use the skill. For a project install in Codex without prompts, run the following command.
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
npx --yes skills add lorenzh/taube --skill taube-dispatch --agent codex --yes
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Install the CLI globally
|
|
20
34
|
|
|
21
35
|
```sh
|
|
22
36
|
npm install -g @losoft/taube
|
|
23
37
|
taube surfaces
|
|
24
38
|
```
|
|
25
39
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
### Install from GitHub
|
|
40
|
+
### Install the CLI from GitHub
|
|
29
41
|
|
|
30
|
-
|
|
42
|
+
You also need Git and Bun 1.4.2 or later. Keep `bun` on your `PATH` during installation. If you use npm 12, add `--allow-git=root` to the install command.
|
|
31
43
|
|
|
32
44
|
```sh
|
|
33
45
|
npm install --prefix "$HOME/.local/share/taube" github:lorenzh/taube
|
|
@@ -39,7 +51,7 @@ Add the `export PATH` line to your shell startup file to use Taube in future ses
|
|
|
39
51
|
|
|
40
52
|
### Install your host plugin
|
|
41
53
|
|
|
42
|
-
Choose the host you
|
|
54
|
+
Choose the host where you want to use `taube-dispatch`.
|
|
43
55
|
|
|
44
56
|
#### Codex
|
|
45
57
|
|
|
@@ -61,7 +73,7 @@ Start a new Claude Code session and run `/taube:taube-dispatch`.
|
|
|
61
73
|
|
|
62
74
|
#### Cursor
|
|
63
75
|
|
|
64
|
-
Add the GitHub marketplace from a terminal signed in to Cursor
|
|
76
|
+
Add the GitHub marketplace from a terminal signed in to Cursor.
|
|
65
77
|
|
|
66
78
|
```sh
|
|
67
79
|
cursor-agent plugin marketplace add https://github.com/lorenzh/taube.git
|
|
@@ -89,27 +101,117 @@ grok plugin install 'lorenzh/taube#plugins/taube' --trust
|
|
|
89
101
|
|
|
90
102
|
`--trust` confirms that you trust the plugin from this repository. Start a new Grok Build session and run `/taube-dispatch`.
|
|
91
103
|
|
|
92
|
-
##
|
|
104
|
+
## CLI reference
|
|
93
105
|
|
|
94
|
-
|
|
106
|
+
| Command | What it does |
|
|
107
|
+
| --- | --- |
|
|
108
|
+
| `npx @losoft/taube surfaces` | Lists targets, launchers, and the last authentication check as JSON. |
|
|
109
|
+
| `npx @losoft/taube dispatch <target> [--cwd DIR] [--model ID] [--effort LEVEL] [--dispatcher ID]` | Reads one instruction from stdin and sends it to a fresh target session. |
|
|
110
|
+
| `npx @losoft/taube sessions [options]` | Lists the current dispatcher’s sessions as JSON, newest first. |
|
|
111
|
+
| `npx @losoft/taube auth check <target>` | Checks the target CLI’s login status and saves the result. |
|
|
112
|
+
| `npx @losoft/taube --version` | Prints the package version. Short form: `-V`. |
|
|
113
|
+
| `npx @losoft/taube --help` | Shows usage. You can also use `-h`, `dispatch --help`, or `dispatch <target> --help`. |
|
|
95
114
|
|
|
96
|
-
|
|
115
|
+
If `taube` is on `PATH`, you can use it in place of `npx @losoft/taube`.
|
|
97
116
|
|
|
98
117
|
```sh
|
|
99
|
-
taube dispatch codex --cwd "$PWD" <<'BRIEF'
|
|
118
|
+
npx --yes @losoft/taube dispatch codex --cwd "$PWD" <<'BRIEF'
|
|
100
119
|
Review the recent changes for bugs. Return findings with file names and line numbers. Leave the files unchanged.
|
|
101
120
|
BRIEF
|
|
102
121
|
```
|
|
103
122
|
|
|
104
|
-
|
|
123
|
+
### Dispatch options
|
|
124
|
+
|
|
125
|
+
| Option | Default | What it sets |
|
|
126
|
+
| --- | --- | --- |
|
|
127
|
+
| `--cwd DIR` | Current directory | Working directory for the adapter and the new session. Relative paths start from the current directory. |
|
|
128
|
+
| `--model ID` | Target session default | A model ID advertised by the target adapter. |
|
|
129
|
+
| `--effort LEVEL` | Target session default | An effort value advertised by the target adapter. For Cursor, use a model variant with `--model`. |
|
|
130
|
+
| `--dispatcher ID` | Calling session identity, when available | Associate this dispatch with a caller so it can find its own work later. |
|
|
131
|
+
|
|
132
|
+
### List sessions
|
|
133
|
+
|
|
134
|
+
By default, `taube sessions` lists the work started by the calling conversation, across working directories. `--mine` makes that default explicit. Use `--dispatcher ID` to look up another dispatcher, or `--all` for all dispatches in the same Taube home. Each view accepts a status filter.
|
|
135
|
+
|
|
136
|
+
```sh
|
|
137
|
+
npx @losoft/taube sessions --status running
|
|
138
|
+
npx @losoft/taube sessions --dispatcher review-42 --status finished
|
|
139
|
+
npx @losoft/taube sessions --all
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
A session is `running` until the dispatch ends. The `finished` filter matches `completed`, `failed`, and `interrupted`. You can filter by each of those outcomes separately. Each record includes a Taube `id`, the target and dispatcher, working directory, timestamps, exit code, and the adapter's `acpSessionId` once available. After a hard process kill, the exit code and finish time can be unknown.
|
|
143
|
+
|
|
144
|
+
For a shell or host without a conversation ID, choose a dispatcher ID once and reuse it across calls. For example:
|
|
145
|
+
|
|
146
|
+
```sh
|
|
147
|
+
export TAUBE_DISPATCHER="review-$(node -p 'crypto.randomUUID()')"
|
|
148
|
+
printf '%s\n' 'Summarize the project.' | npx @losoft/taube dispatch grok
|
|
149
|
+
npx @losoft/taube sessions
|
|
150
|
+
```
|
|
105
151
|
|
|
106
|
-
Taube
|
|
152
|
+
Taube records the dispatcher when the dispatch starts. It uses, in order, an explicit `--dispatcher ID`, `TAUBE_DISPATCHER`, or a single host conversation ID from `CODEX_THREAD_ID` or `CLAUDE_CODE_SESSION_ID`. A dispatched agent receives its own Taube session ID as `TAUBE_DISPATCHER`. Its default list therefore shows its direct children. A process ID helps Taube detect interrupted work. It cannot reliably identify a conversation across shells or restarts.
|
|
153
|
+
|
|
154
|
+
If the caller has no identifiable conversation, a dispatch records a null dispatcher. It remains visible with `--all`. In that situation, the default list asks for a dispatcher ID or `--all`.
|
|
155
|
+
|
|
156
|
+
Taube stores session metadata and authentication results under `~/.taube`. Set `LOSOFT_TABE_HOME` to use another directory. Session records contain metadata only. Dispatcher filters share the file permissions of the local OS account.
|
|
157
|
+
|
|
158
|
+
### Targets and launchers
|
|
159
|
+
|
|
160
|
+
| Target ID | Agent | ACP launcher | Launcher profile | Effort option |
|
|
161
|
+
| --- | --- | --- | --- | --- |
|
|
162
|
+
| `codex` | Codex | `codex-acp` | `codex` | `reasoning_effort` |
|
|
163
|
+
| `claude` | Claude Code | `claude-agent-acp` | `claude` | `effort` |
|
|
164
|
+
| `cursor` | Cursor | `cursor-agent acp` | `cursor` | None |
|
|
165
|
+
| `grok` | Grok Build | `grok agent stdio` | `grok-build` | `reasoning_effort` |
|
|
166
|
+
|
|
167
|
+
If the Codex or Claude launcher is unavailable, Taube runs a pinned npm adapter through `npx`. Cursor needs `cursor-agent` on `PATH`. Grok Build needs `grok` on `PATH`. An explicit local launcher takes precedence over both.
|
|
168
|
+
|
|
169
|
+
Each `surfaces` entry includes the target ID, launcher profile, and built-in launcher command. `launcher.onPath` reports whether that executable is on `PATH`. `effortOption` names the adapter setting or is `null` for Cursor. Taube checks model IDs and effort values against the options the adapter advertises for the session.
|
|
107
170
|
|
|
108
171
|
### Authentication and permissions
|
|
109
172
|
|
|
110
|
-
|
|
173
|
+
`taube surfaces` reads the last known `authenticated` value and its UTC timestamp, `checkedAt`. A new target starts with `authenticated: false` and `checkedAt: null`, meaning it still needs a check. To refresh one target explicitly, run:
|
|
174
|
+
|
|
175
|
+
```sh
|
|
176
|
+
npx @losoft/taube auth check codex
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
The check queries the local target CLI and prints `target`, `authenticated`, and `checkedAt` as JSON. It exits with 0 for a confirmed login and 1 for a confirmed logout. An inconclusive check, such as a missing executable or unavailable service, exits with 1 and reports the reason on stderr. Some Grok Build versions cannot confirm login through their usage command. A successful Grok dispatch then supplies the first confirmation. The previous result remains available in `surfaces`.
|
|
180
|
+
|
|
181
|
+
A successful dispatch also records `authenticated: true` and refreshes the timestamp. If the adapter explicitly requests authentication, Taube records `false`. Other dispatch failures preserve the previous result. To sign in, use the target CLI. For Cursor, run `cursor-agent login`.
|
|
182
|
+
|
|
183
|
+
For Codex, `CODEX_PATH` selects the `codex` executable. If `CODEX_PATH` is unset, Taube looks for `codex` on `PATH`.
|
|
184
|
+
|
|
185
|
+
Taube declines interactive permission requests and fails the dispatch. The target controls permissions for its built-in tools. The calling host's Auto mode does not apply to the target. The calling host still controls access to the provider and local session files. Taube supplies no ACP file or terminal operations.
|
|
186
|
+
|
|
187
|
+
### Local launcher override
|
|
188
|
+
|
|
189
|
+
Taube reads `.acpxrc.json` directly in the working directory set by `--cwd`. It uses `agents[profile].argv` to set the launcher for the selected target. The first array item is the executable. The remaining items are arguments. Taube starts the executable directly, with no shell expansion.
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
{
|
|
193
|
+
"agents": {
|
|
194
|
+
"grok-build": {
|
|
195
|
+
"argv": ["/path/to/grok", "agent", "stdio"]
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Taube accepts only the `argv` key in the selected launcher profile. Taube uses this file only for local launcher configuration. Global acpx configuration and acpx permission policies have no effect. On Windows, use a native executable or an interpreter as the override command. Run Taube in a directory you trust because its local configuration can run an executable.
|
|
202
|
+
|
|
203
|
+
### Output and exit status
|
|
204
|
+
|
|
205
|
+
Taube streams the answer from the target to stdout and sends diagnostics to stderr. A failed dispatch can leave partial answer text on stdout. Some adapters put provider errors in the answer and report a complete turn.
|
|
206
|
+
|
|
207
|
+
| Status | Meaning |
|
|
208
|
+
| --- | --- |
|
|
209
|
+
| `0` | The command succeeded. For `dispatch`, the adapter reported `end_turn`. |
|
|
210
|
+
| `1` | Taube rejected the request or the adapter stopped early, for example at the token limit. |
|
|
211
|
+
| `130` | The adapter cancelled the turn or the process received `SIGINT`. |
|
|
212
|
+
| Other nonzero status | An adapter exited with an error or the process received another signal. Taube reports signal exits as `128` plus the signal number. |
|
|
111
213
|
|
|
112
|
-
|
|
214
|
+
If Taube reports an empty instruction, send a non-empty brief on stdin. If the adapter rejects a model or effort value, select a value it advertises. If a launcher fails to start, check `PATH` and the local launcher override. For a missing Codex or Claude adapter, also check that `npx` is available.
|
|
113
215
|
|
|
114
216
|
## Development
|
|
115
217
|
|