English | 中文
Model-facing bash(command) backed by one owner-scoped ctx.pty shell. The package owns the tool contract and shell reuse; deployments select the PTY backend and sandbox policy.
| Key | Default | Meaning |
|---|---|---|
backendType |
shell |
Registered PTY backend used for each Agent shell. |
timeoutMs |
300000 |
Wall-clock limit for one command; timeout closes the shell. |
maxOutputChars |
16000 |
Prefix characters retained before the clipping notice. |
description |
Persistent-shell description | Model-facing environment contract. |
The generated bash schema, including the configured description. The plugin contributes no standalone system-prompt section; the deployment owns persona and environment guidance.
Fixed schema cost while bash is visible.
Prefix-stable while the configured description and schema remain unchanged.
Commands share one shell per Agent, so cwd, exported variables, activated environments, functions, and background jobs persist across calls. Results exclude private completion markers and the shell prompt. Long output keeps the earliest retained prefix plus a clipping notice. If the PTY has already dropped that prefix, the result says so explicitly instead of presenting a tail as complete output. Timeout returns bounded partial output, closes the uncertain shell, and tells the model that the next call starts fresh.
Data-dependent and bounded by maxOutputChars plus the fixed clipping notice.
Append-only tool results follow the reusable request prefix.
exit, timeout, or cancellation discards shell state; the next call starts a fresh shell.description, not this package's default.