@burtson-labs/bandit-stealth-cli 1.7.517 → 1.7.519
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 +23 -5
- package/dist/cli.js +1918 -1858
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ completed verification. The agent receives at most one reminder to verify the
|
|
|
82
82
|
requested result or report what remains unverified. This is a bounded prompt
|
|
83
83
|
guard, not a guarantee of correctness; `BANDIT_VERIFY_BEFORE_DONE=0` disables it.
|
|
84
84
|
|
|
85
|
-
- **Copying with the mouse** — drag over anything on screen (history, the reply, the prompt) and release: the text is copied to the clipboard and **Copied to clipboard** shows at the lower right for two seconds. Text that wrapped onto several rows copies as one line; real line breaks are kept and colours are dropped. A plain click copies nothing. The copy goes through `pbcopy` / `wl-copy` / `xclip` / `clip`, plus an OSC 52 escape over SSH and in tmux so it reaches your local clipboard; with `BANDIT_NO_CLIPBOARD=1` the notice says **Copy unavailable** instead. `/copy` still lets you choose the latest response or one of its code blocks, preserving the source text without terminal wrapping: `/copy response`, `/copy code 2`, `/copy choose`. `/links` lists recent response and
|
|
85
|
+
- **Copying with the mouse** — drag over anything on screen (history, the reply, the prompt) and release: the text is copied to the clipboard and **Copied to clipboard** shows at the lower right for two seconds. Text that wrapped onto several rows copies as one line; real line breaks are kept and colours are dropped. A plain click copies nothing. The copy goes through `pbcopy` / `wl-copy` / `xclip` / `clip`, plus an OSC 52 escape over SSH and in tmux so it reaches your local clipboard; with `BANDIT_NO_CLIPBOARD=1` the notice says **Copy unavailable** instead. `/copy` still lets you choose the latest response or one of its code blocks, preserving the source text without terminal wrapping: `/copy response`, `/copy code 2`, `/copy choose`. `/links` lists recent response and Stash links; `/copy link` copies the latest, and `/copy 2` copies the second listed URL. `/copy help` shows the shortcuts.
|
|
86
86
|
- **Clicking prompts and menus** — question choices, Continue/Submit, permission choices (allow once/turn/session, deny, Confirm, Cancel), the MCP trust check, the theme and session pickers, the `/` command list, the `@` file list and follow-up suggestions react to a click. In a choice list a click highlights an option and a click on the highlighted one answers with it (as Enter does), so the default takes one click and any other two; a `/` command or `@` file is inserted with one click. Arrow keys, digits and Enter keep working, and Alt+1–3 still picks a suggestion. Clicks need a terminal with SGR (1006) mouse reporting: the Stealth IDE terminal, VS Code's, iTerm2, Terminal.app, kitty, WezTerm, Alacritty and GNOME Terminal have it.
|
|
87
87
|
- **Scrolling and native selection** — the mouse wheel scrolls the terminal's own scrollback as usual: the first wheel tick hands the mouse back to the terminal (that one tick does not scroll), and the next key you type takes it again. While it is handed back, and whenever you hold **Shift** (most terminals), **Option** (iTerm2) or **Fn** (Terminal.app), dragging is the terminal's own selection, copied with its shortcut (Cmd+C on macOS, usually Ctrl+Shift+C elsewhere). Only what is visible on screen can be selected with the in-app drag; for older text scroll up and use the native selection. `BANDIT_MOUSE=0`, `--no-mouse` or `"mouse": false` in `~/.bandit/config.json` turns the mouse features off entirely and leaves the mouse to the terminal.
|
|
88
88
|
- **Clickable web links** — labeled links retain their destinations through the live renderer. Stealth opens them in your browser; other terminals use their own link gesture and hyperlink support.
|
|
@@ -127,6 +127,7 @@ Type `?` on an empty prompt for the at-a-glance overlay; `/help` for the full li
|
|
|
127
127
|
| `/doctor` | Check setup, provider, workspace context, permissions, and next best actions |
|
|
128
128
|
| `/chrome` (or `/browser`) | Stealth for Chrome: connection status, granted sites, `/chrome connect` to attach mid-session |
|
|
129
129
|
| `/login <key>` | Save a Bandit Cloud API key to `~/.bandit/config.json` (also `/login`, `/login clear`) |
|
|
130
|
+
| `/crew run <Name> "<task>"` | Bandit Crew (cloud): hand a task to a named Bandit and follow its steps here (`/crew` for more) |
|
|
130
131
|
| `/usage` | Bandit Cloud session + weekly usage limits (`/usage check` for one-line ⚠ flag) |
|
|
131
132
|
| `/model [name]` | Switch model mid-session |
|
|
132
133
|
| `/ollama [url]` | Show or set the Ollama endpoint — `/ollama default` resets to `http://localhost:11434` |
|
|
@@ -253,6 +254,23 @@ Every decision is one line in `~/.bandit/audit/bandit-audit-<date>.jsonl` (origi
|
|
|
253
254
|
|
|
254
255
|
---
|
|
255
256
|
|
|
257
|
+
## Bandit Crew (cloud)
|
|
258
|
+
|
|
259
|
+
Bandit Crew is the set of named AI teammates on your Bandit account (create them here, in the Bandit app under Settings → Crew, or in Slack). `bandit crew run Riley "research Acme's 2026 pricing changes and draft a one-page brief"` starts a task on your account and follows it in the terminal: each step prints as it happens (searching, reading, writing files), and when the Bandit wants to do something that affects other people the command asks `Approve? [y/N]`. There is no flag that pre-approves a side effect; without a terminal to answer in, the command prints the `bandit crew approve <id> <approvalId>` and `decline` lines to run later. The result prints with its Stash link, sources, step count and model.
|
|
260
|
+
|
|
261
|
+
| Command | Does |
|
|
262
|
+
| ------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
263
|
+
| `bandit crew list` | The Bandits on your crew |
|
|
264
|
+
| `bandit crew create <Name> --job "<text>"` | Add a Bandit (one-word name; the job description is its instructions; `--tools`, `--model`) |
|
|
265
|
+
| `bandit crew remove <Name>` | Remove one |
|
|
266
|
+
| `bandit crew run <Name> "<task>"` | Start a task and follow it (`--context <file\|->` adds material; `--no-wait` returns at once) |
|
|
267
|
+
| `bandit crew tasks [--status active]` | Your recent tasks; `--json` for scripts |
|
|
268
|
+
| `bandit crew show <id>` | One task: steps, approvals, result and files (a short id from `tasks` works) |
|
|
269
|
+
| `bandit crew approve <id>` / `decline <id>` | Answer a pending approval |
|
|
270
|
+
| `bandit crew stop <id>` | Stop a running task between steps |
|
|
271
|
+
|
|
272
|
+
Inside a session the same verbs are `/crew list`, `/crew run Riley "…"`, `/crew tasks`, `/crew show <id>`. Tasks run on the gateway on your own plan and credits, the same as the chat app and Slack; a task started from the terminal never gets the Slack `post_to_channel` tool. The gateway host is the one your completions URL points at (`BANDIT_GATEWAY_URL` overrides it). Offline mode refuses `bandit crew` like the other Bandit Cloud features.
|
|
273
|
+
|
|
256
274
|
## Recommended models
|
|
257
275
|
|
|
258
276
|
Bandit uses native tool calling when supported by the selected provider.
|
|
@@ -537,7 +555,7 @@ bandit-agent --model qwen2.5-coder:32b
|
|
|
537
555
|
|
|
538
556
|
- **Endpoint.** Bandit reads `OLLAMA_HOST` the way Ollama's own client does (`node:port`, `http://node:port`, `0.0.0.0`), after `--ollama-url`, `OLLAMA_URL` and the config file. The line under the banner says which endpoint is in use and where it came from.
|
|
539
557
|
- **Context window.** Ollama's own default is 4,096 tokens on GPUs under 24 GB. Bandit always asks for a window per request (at least 16,384; 24,576 for most 7–14B models, 32,768 for 27B and up; never more than the model's own), so `OLLAMA_CONTEXT_LENGTH` and custom Modelfiles are not needed. Bandit's instructions and tool definitions take about 5,500 tokens before your files. Set the window with `--num-ctx`, `BANDIT_NUM_CTX` or `"ollama": { "numCtx": 32768 }`. After the first reply Bandit checks what Ollama loaded and warns when part of the model spilled to the CPU, with a window that would fit. A GPU under 24 GB does not limit you to 4,096: Ollama loads the window Bandit asks for and puts what does not fit on the CPU, which is slower (qwen3:8b at 16,384 on an 8 GB card: about a fifth on the CPU, replies about 5× slower), never a failure. The window is really fixed only when the server ignores the request's: Ollama's OpenAI-compatible `/v1` endpoint, `llama-server -c`, LM Studio or vLLM with a set window, or a gateway that drops options. If the KV cache is what does not fit, `OLLAMA_KV_CACHE_TYPE=q8_0` in the Ollama server's environment halves it (qwen3:8b at 16,384 then fits an 8 GB card); set it where `ollama serve` runs, not in Bandit.
|
|
540
|
-
- **Small windows: small-context mode.** With Ollama below 16,384 tokens (other providers only when forced, since their window for a model Bandit does not list is a guess; or with `--small-context`, `BANDIT_SMALL_CONTEXT=on`, `"ollama": { "smallContext": "on" }`) Bandit switches to a small-context agent and says so at startup: a short prompt and 7 tools (read, search, list, edit, write, run, test) with short definitions, 800–1,200 tokens in all instead of 5,500; tool output cut to a share of the window; older results shortened first; the reply's room reserved; thinking off unless `/think on`. Subagents, git, web, document, memory and
|
|
558
|
+
- **Small windows: small-context mode.** With Ollama below 16,384 tokens (other providers only when forced, since their window for a model Bandit does not list is a guess; or with `--small-context`, `BANDIT_SMALL_CONTEXT=on`, `"ollama": { "smallContext": "on" }`) Bandit switches to a small-context agent and says so at startup: a short prompt and 7 tools (read, search, list, edit, write, run, test) with short definitions, 800–1,200 tokens in all instead of 5,500; tool output cut to a share of the window; older results shortened first; the reply's room reserved; thinking off unless `/think on`. Subagents, git, web, document, memory and Bandit Stash tools are off. Measured on 5 public benchmark tasks (one-file bug fixes, a new function with tests, a four-file rename), qwen3.6:27b passed 14/15 at 4,096 (three seeds), 5/5 at 6,144 and 5/5 at 8,192 tokens, where the full agent passed 0/5 and 0/5 (and 4/5 at 8,192, with three runs stopped at the iteration limit); qwen3:8b passed 2/10, 4/10 and 2/10 (full agent 0/5, 0/5, 2/5), so an 8B model fails most tasks at these windows either way. What it cannot do: at 4,096 there is room for about one 40-line file at a time, so a task that needs two files in view at once goes back and forth between them (the Go task ran into the iteration limit in all three 4,096 runs, twice after making the fix); long command output is cut to its start and end; earlier steps are shortened to one line; there are no subagents. At 16,384 and above nothing changes; `--no-small-context` keeps the full agent at any window. It is a different thing from the REPL's `/compact` command, which shortens the current conversation.
|
|
541
559
|
- **Login nodes.** Started over SSH on a Slurm login node (outside a job), Bandit prints a one-line reminder to start an interactive job. It never blocks. `BANDIT_NO_LOGIN_HINT=1` hides it.
|
|
542
560
|
- **Home quota.** `BANDIT_HOME` moves what grows (`sessions/`, `crashes/`, `training/`, and the Apptainer sandbox image when `APPTAINER_CACHEDIR` is unset) to scratch. Settings stay in `~/.bandit` (`config.json`, `settings.json`, `mcp-servers.json`, `lessons.md`, `terms.json`; a few KB) so a scratch purge never signs you out. Each project also gets a `.bandit/` folder with turn logs and checkpoints.
|
|
543
561
|
- **Resume after reconnecting.** Sessions are saved with the directory they started in. `bandit --continue` (or `-c`) resumes the latest session of the current directory from any login; `bandit --resume` lists this directory's sessions first.
|
|
@@ -583,7 +601,7 @@ Telemetry is off unless you turn it on ([Telemetry](#telemetry-opt-in)). Bandit
|
|
|
583
601
|
|
|
584
602
|
- `web_fetch`, `fetch_image` (any URL; private, loopback and link-local addresses are refused unless `BANDIT_ALLOW_PRIVATE_WEB_FETCH=1`), `web_search` (Tavily, only with a Tavily key);
|
|
585
603
|
- `git_push`, `git_pull`;
|
|
586
|
-
- the Bandit
|
|
604
|
+
- the Bandit Stash tools (`publish_artifact`, `share_artifact`, `email_artifact`, …; Stash was called Artifacts, the tool names keep the old word), which exist only when Bandit Cloud is the provider. Bandit Stash is cloud storage for files you save and share by link (`bandit stash <file>`, `/stash`); it is not `git stash`;
|
|
587
605
|
- MCP tools, unless the server's entry says `"local": true` (then its read-named tools, such as `list…`/`get…`, run without asking; its other tools still ask).
|
|
588
606
|
|
|
589
607
|
Plan mode refuses all of them. In auto mode (`--auto`), the CLI's reviewer model decides whether such a call is one you asked for, and can let it run without a card; `list_artifacts`, `get_artifact` and MCP read-named tools run there without review. `dangerous` mode runs everything. An allow rule in `.bandit/settings.json` (for example `"web_fetch:https://docs.example.com/*"`) lets matching calls run without asking. `run_command` always asks in the default mode; `--sandbox` runs commands with no network. Graph runs (`bandit graph`, `bandit spec`) cannot ask, so they leave out `web_fetch` and `web_search` unless `BANDIT_GRAPH_WEB=1`.
|
|
@@ -594,8 +612,8 @@ Plan mode refuses all of them. In auto mode (`--auto`), the CLI's reviewer model
|
|
|
594
612
|
|
|
595
613
|
- Bandit connects only to your model server and to loopback addresses. An HTTP request to any other host fails at once with a message naming the host.
|
|
596
614
|
- The update check, models.dev and telemetry are off.
|
|
597
|
-
- `web_fetch`, `web_search`, `fetch_image` and the
|
|
598
|
-
- Bandit Cloud features are refused with a message: the `bandit` provider, sign-in, `/remote`, `/usage`, `/
|
|
615
|
+
- `web_fetch`, `web_search`, `fetch_image` and the Bandit Stash tools are not offered to the model. `git_push`, `git_pull` and MCP tools from servers not marked `"local": true` are refused.
|
|
616
|
+
- Bandit Cloud features are refused with a message: the `bandit` provider, sign-in, `/remote`, `/usage`, `/stash`, `/crew`, `bandit runner`, `bandit stash`, `bandit crew` and `bandit upgrade`.
|
|
599
617
|
|
|
600
618
|
Offline mode does not control the commands the agent runs with `run_command` (they ask first in the default mode; use `--sandbox` for no network), what a stdio MCP server you configured does on its own, or `docker`/`podman`/`apptainer` pulling the sandbox image (set `BANDIT_SANDBOX_REGISTRY_MIRROR` or load the image beforehand).
|
|
601
619
|
|