docs: clear write-good.Passive hits in docs/tools/bash.md
This commit is contained in:
parent
99a4a75bf7
commit
80e17f536d
1 changed files with 9 additions and 9 deletions
|
|
@ -23,14 +23,14 @@ When the task completes (or times out, or the process errors), it
|
||||||
surfaces as a todo in the agent's loose-ends (via `get_loose_ends`),
|
surfaces as a todo in the agent's loose-ends (via `get_loose_ends`),
|
||||||
carrying the exit code and a `Read(<path>)` pointer to the captured
|
carrying the exit code and a `Read(<path>)` pointer to the captured
|
||||||
output. Handle it on a future turn — unless `wait_seconds` already
|
output. Handle it on a future turn — unless `wait_seconds` already
|
||||||
delivered the terminal result inline, in which case no todo is created
|
delivered the terminal result inline, in which case the daemon creates
|
||||||
(see `status` below).
|
no todo (see `status` below).
|
||||||
|
|
||||||
- `timeout_secs` — kill the task after N seconds and mark it
|
- `timeout_secs` — kill the task after N seconds and mark it
|
||||||
`timed_out`. Omit for no timeout (runs until natural exit).
|
`timed_out`. Omit for no timeout (runs until natural exit).
|
||||||
- `wait_seconds` — inline poll before returning (capped at 30).
|
- `wait_seconds` — inline poll before returning (capped at 30).
|
||||||
When the task finishes within the window the full status is
|
When the task finishes within the window the full status is
|
||||||
returned immediately and no todo is created; when the window expires
|
returned immediately and the daemon creates no todo; when the window expires
|
||||||
the task keeps running and the daemon returns the normal
|
the task keeps running and the daemon returns the normal
|
||||||
`task started: id=<id>` response. **Defaults to 3** — pass `wait_seconds: 0`
|
`task started: id=<id>` response. **Defaults to 3** — pass `wait_seconds: 0`
|
||||||
to disable inline waiting and always get the immediate response.
|
to disable inline waiting and always get the immediate response.
|
||||||
|
|
@ -55,7 +55,7 @@ Poll the status of a task submitted with `run`. Returns:
|
||||||
|
|
||||||
`wait_seconds` — optional inline poll (capped at 30): when the task
|
`wait_seconds` — optional inline poll (capped at 30): when the task
|
||||||
finishes within the window the call returns the full status immediately.
|
finishes within the window the call returns the full status immediately.
|
||||||
Useful to avoid a separate round-trip when the task is expected to
|
Useful to avoid a separate round-trip when you expect the task to
|
||||||
finish soon.
|
finish soon.
|
||||||
|
|
||||||
Any `status` call (waited or not) that observes a terminal task clears
|
Any `status` call (waited or not) that observes a terminal task clears
|
||||||
|
|
@ -124,14 +124,14 @@ loose-end follows.
|
||||||
|
|
||||||
## Relationship to the `execution` tool group
|
## Relationship to the `execution` tool group
|
||||||
|
|
||||||
`ToolGroup::Execution` (in `AGENT_DEFAULT`) is the real gate on bash: it
|
`ToolGroup::Execution` (in `AGENT_DEFAULT`) is the real gate on bash:
|
||||||
controls whether the `bash` MCP server is rendered into the agent's
|
`extra_server_required_group` (in `hive-agent/src/mcp_config.rs`)
|
||||||
claude config at all (`extra_server_required_group` in
|
controls whether the `bash` MCP server reaches the agent's claude
|
||||||
`hive-agent/src/mcp_config.rs`), suppressing every `mcp__bash__*` tool
|
config at all, suppressing every `mcp__bash__*` tool
|
||||||
when absent — not just leaving them unused. Its own `tools()` returns
|
when absent — not just leaving them unused. Its own `tools()` returns
|
||||||
`&[]` and stays that way: `mcp__bash__run`/`status`/`kill` belong to a
|
`&[]` and stays that way: `mcp__bash__run`/`status`/`kill` belong to a
|
||||||
different, out-of-process MCP server (`bash`, not `hyperhive`), so they
|
different, out-of-process MCP server (`bash`, not `hyperhive`), so they
|
||||||
were never real entries in the `mcp__hyperhive__*` allowlist `tools()`
|
were never real entries in the `mcp__hyperhive__*` allowlist `tools()`
|
||||||
builds — the two dead `["run", "status"]` strings it used to return
|
builds — the two dead `["run", "status"]` strings it used to return
|
||||||
matched nothing and have been removed. Removing `execution` from an
|
matched nothing, so they're gone now. Removing `execution` from an
|
||||||
agent's groups **does** remove bash availability.
|
agent's groups **does** remove bash availability.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue