@losoft/taube 0.1.7 → 0.1.9

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 CHANGED
@@ -1,238 +1,53 @@
1
1
  # Taube
2
2
 
3
- Taube lets Codex CLI, Claude Code, Cursor, and Grok Build hand tasks to each other from the terminal. You stay in the original conversation and get the other agent’s answer there.
4
-
5
- > Ask Codex to review my current diff. Report any bugs with file names and line numbers.
3
+ Taube lets Codex CLI, Claude Code, and Grok Build hand tasks to each other from the terminal. You stay in the original conversation and get the other agent's answer there.
6
4
 
7
5
  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
6
 
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
17
- ```
18
-
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.
20
-
21
- ### Install the skill on its own
22
-
23
- ```sh
24
- npx skills add lorenzh/taube --skill taube-dispatch
25
- ```
26
-
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
34
-
35
- ```sh
36
- npm install -g @losoft/taube
37
- taube surfaces
38
- ```
39
-
40
- ### Install the CLI from GitHub
41
-
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.
43
-
44
- ```sh
45
- npm install --prefix "$HOME/.local/share/taube" github:lorenzh/taube
46
- export PATH="$HOME/.local/share/taube/node_modules/.bin:$PATH"
47
- taube surfaces
48
- ```
49
-
50
- Add the `export PATH` line to your shell startup file to use Taube in future sessions.
51
-
52
- ### Install your host plugin
53
-
54
- Choose the host where you want to use `taube-dispatch`.
55
-
56
- #### Codex
57
-
58
- ```sh
59
- codex plugin marketplace add https://github.com/lorenzh/taube.git
60
- codex plugin add taube@taube-plugins
61
- ```
62
-
63
- Start a new Codex session. Type `$` and select `taube-dispatch`.
64
-
65
- #### Claude Code
66
-
67
- ```sh
68
- claude plugin marketplace add https://github.com/lorenzh/taube.git
69
- claude plugin install taube@taube-plugins
70
- ```
71
-
72
- Start a new Claude Code session and run `/taube:taube-dispatch`.
73
-
74
- #### Cursor
75
-
76
- Add the GitHub marketplace from a terminal signed in to Cursor.
77
-
78
- ```sh
79
- cursor-agent plugin marketplace add https://github.com/lorenzh/taube.git
80
- ```
81
-
82
- Start `cursor-agent`, open `/plugins`, and install **Taube** from **taube-plugins**. In a fresh session, ask Cursor to use `taube-dispatch` to list the available targets. If you use the `agent` command, check `agent --version` first. Both Cursor and Grok can provide that name.
83
-
84
- For a single CLI session, Cursor can also load the plugin included with a global npm installation.
85
-
86
- ```sh
87
- cursor-agent --plugin-dir "$(npm root -g)/@losoft/taube/plugins/taube"
88
- ```
89
-
90
- If you installed from GitHub with the prefix above, use this path.
91
-
92
- ```sh
93
- cursor-agent --plugin-dir "$HOME/.local/share/taube/node_modules/@losoft/taube/plugins/taube"
94
- ```
7
+ [![Poster for the silent Taube dispatch demo video. Select it to open the video.](docs/media/dispatch-demo.jpg)](docs/media/dispatch-demo.mp4)
95
8
 
96
- #### Grok Build
9
+ <details>
10
+ <summary>Play the demo in this README</summary>
97
11
 
98
- ```sh
99
- grok plugin install 'lorenzh/taube#plugins/taube' --trust
100
- ```
12
+ ![Animated demo of the Taube dispatch workflow](docs/media/dispatch-demo.gif)
101
13
 
102
- `--trust` confirms that you trust the plugin from this repository. Start a new Grok Build session and run `/taube-dispatch`.
14
+ </details>
103
15
 
104
- ## CLI reference
16
+ In the silent demo, Claude reviews a missing `await` through `taube dispatch`. Taube Monitor then shows the same completed session with its prompt and answer.
105
17
 
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`. |
18
+ ## Try it
114
19
 
115
- If `taube` is on `PATH`, you can use it in place of `npx @losoft/taube`.
20
+ You need Node.js 22.13 or later and npm. Sign in to each target agent you plan to use. In scripts, `npx --yes` skips the npm install prompt.
116
21
 
117
22
  ```sh
23
+ npx --yes @losoft/taube surfaces
118
24
  npx --yes @losoft/taube dispatch codex --cwd "$PWD" <<'BRIEF'
119
25
  Review the recent changes for bugs. Return findings with file names and line numbers. Leave the files unchanged.
120
26
  BRIEF
121
27
  ```
122
28
 
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
- ```
29
+ `surfaces` lists the available targets. A foreground dispatch streams the assistant’s answer to standard output.
141
30
 
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.
31
+ ## Coordinate agents
143
32
 
144
- For a shell or host without a conversation ID, choose a dispatcher ID once and reuse it across calls. For example:
33
+ Use the same dispatcher ID for jobs that belong together. With the CLI installed, start two sessions and wait for their results:
145
34
 
146
35
  ```sh
147
36
  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
37
+ taube dispatch codex --detach --request-id implementation --prompt 'Summarize the changes.'
38
+ taube dispatch claude --detach --request-id review --prompt 'Review the changes for regressions.'
39
+ taube sessions wait --request-id implementation --request-id review --include-response
150
40
  ```
151
41
 
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.
170
-
171
- ### Authentication and permissions
172
-
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
- ```
42
+ Open [Taube Monitor](https://github.com/lorenzh/taube-monitor) to follow sessions and inspect their conversations in a terminal.
178
43
 
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`.
44
+ ## Documentation
180
45
 
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 |
46
+ | Guide | What it covers |
208
47
  | --- | --- |
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. |
213
-
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.
215
-
216
- ## Development
217
-
218
- Run the checks from a local copy of the repository.
219
-
220
- ```sh
221
- bun install --frozen-lockfile
222
- bun run check
223
- bun test
224
- ```
225
-
226
- To run installation checks for Codex, Claude Code, and Grok Build, put `codex`, `claude`, and `grok` on your `PATH`. The tests use isolated configuration directories and do not send model prompts.
227
-
228
- ```sh
229
- TAUBE_TEST_NATIVE_PLUGINS=1 bun test test/plugins.test.ts
230
- ```
231
-
232
- Contributions go through pull requests. CI checks the build, types, formatting, tests, and synchronized patch versions.
233
-
234
- When a merge changes the npm package, CI publishes a new npm version. For this check, CI ignores the root README, version numbers, and development metadata. [Contributor instructions](AGENTS.md)
235
-
236
- ## License
48
+ | [Installation](docs/installation.md) | npm, GitHub, native host plugins and the standalone dispatch skill |
49
+ | [CLI reference](docs/cli.md) | Commands and flags, streams and structured output, authentication, permissions, and exit codes |
50
+ | [Session coordination](docs/cli.md#coordinate-parallel-dispatches) | Detached jobs, dispatcher scopes, follow-ups, and waiting for results |
51
+ | [Development](docs/development.md) | Local checks, plugin integration tests, and releases |
237
52
 
238
- [MIT](LICENSE)
53
+ [MIT license](LICENSE)