@burtson-labs/bandit-stealth-cli 1.7.549 → 1.7.552

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.
Files changed (3) hide show
  1. package/README.md +20 -2
  2. package/dist/cli.js +1881 -1858
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -47,6 +47,22 @@ _Prefer an IDE?_ The sibling Bandit Stealth extension for VS Code / Cursor ships
47
47
  bandit --read-only # start in plan mode: read and plan, change nothing
48
48
  ```
49
49
 
50
+ ### Ways to install
51
+
52
+ | | Command | Needs | Updates with |
53
+ | ----------------------------------------- | ------------------------------------------------------------------- | ----------- | -------------------------------------------------- |
54
+ | Standalone binary (macOS, Linux) | `curl -fsSL https://burtson.ai/bandit-stealth-cli/install.sh \| sh` | nothing | `bandit upgrade` |
55
+ | Standalone binary (Windows x64 and Arm64) | `irm https://burtson.ai/bandit-stealth-cli/install.ps1 \| iex` | nothing | `bandit upgrade` |
56
+ | Homebrew | `brew install burtson-labs/tap/bandit-agent` | Homebrew | `brew upgrade bandit-agent` |
57
+ | winget | `winget install BurtsonLabs.BanditCLI` | winget | `winget upgrade BurtsonLabs.BanditCLI` |
58
+ | npm | `npm i -g @burtson-labs/bandit-stealth-cli` | Node.js 20+ | `npm i -g @burtson-labs/bandit-stealth-cli@latest` |
59
+
60
+ The standalone binary is one executable with the runtime inside (Bun), about 73 MB on disk and a 25 MB download, built from the same code as the npm package. Builds: `darwin-arm64`, `darwin-x64`, `darwin-universal`, `linux-x64`, `linux-arm64`, `windows-x64`, `windows-arm64`. Homebrew and winget are listed once the tap and the winget-pkgs entry are published.
61
+
62
+ **How a download is checked.** Since 1.7.551 each release publishes a manifest (`https://burtson.ai/bandit-stealth-cli/latest.json`) that names the SHA-256 and size of every binary; the binaries themselves are on a separate host (S3). `install.sh`, `install.ps1` and `bandit upgrade` check every download against the manifest and refuse anything that does not match; a failed check never falls back to npm. The manifest can also be signed (`latest.json.sig`, ECDSA P-256), and the binaries code-signed: macOS with the Burtson Labs Developer ID (notarized) and Windows with Burtson Labs' Authenticode certificate. Builds that carry the release key refuse a manifest without a valid signature, and `install.ps1` refuses a binary signed by anyone else. Until a release is signed, the installers and `bandit upgrade` say that only the SHA-256 was checked. Homebrew and winget pin each binary by SHA-256 in their own manifests, and an install made with either is left to that package manager: `bandit upgrade` prints the command to run.
63
+
64
+ Installer options (environment variables): `BANDIT_VERSION=1.7.551` installs a given version (verified against that version's own signed manifest; releases before 1.7.551 have none and need `BANDIT_ALLOW_UNVERIFIED=1`), `BANDIT_BIN_DIR` sets where the binary goes (default `~/.local/bin`, or `%LOCALAPPDATA%\Programs\bandit`), `BANDIT_INSTALL_METHOD=binary|npm` forces one method, and `BANDIT_NO_MODIFY_PATH=1` leaves your shell profile alone. The installer never pipes another script into a shell: if you choose npm and Node is missing, it tells you where to get Node.
65
+
50
66
  The CLI installs two commands that do the same thing: `bandit` and `bandit-agent`. The Python security linter [Bandit](https://github.com/PyCQA/bandit) also installs a `bandit` command; if it comes first on your PATH (common in Python environments and on shared clusters), use `bandit-agent`. `bandit doctor` tells you when that happens.
51
67
 
52
68
  That's it. No API keys. No cloud services. The agent reads your code, searches, runs commands, and writes changes — all locally.
@@ -93,7 +109,8 @@ guard, not a guarantee of correctness; `BANDIT_VERIFY_BEFORE_DONE=0` disables it
93
109
  - **Pre-write validation** — TypeScript, Python, JSON, C# syntax-checked before the agent can write
94
110
  - **Post-write validation** — JSON edits are re-parsed after write; failure feeds back to the agent on the next turn so it self-corrects without you flagging it
95
111
  - **Skills system** — agent activates specialized skills based on your prompt, and can create its own
96
- - **Background subagents** — long investigations spawn detached; status bar shows `bg:N running`; you keep talking; synopsis auto-injects when ready (`/tasks` to inspect, drill down, or cancel)
112
+ - **Background subagents** — long investigations spawn detached; you keep talking; the report reaches the agent when it is ready (`/agents` to inspect, stop or follow up; `/tasks` for the raw task list)
113
+ - **Agents panel** — while subagents, background commands or job monitors run, a panel under the composer lists them: one row each with what it is doing now (`Reading src/auth/session.ts`), how long it has run and its estimated tokens in and out (`↑48.1k ↓2.3k`), with a `main` row for the conversation itself and a counts line (`2 agents · 1 command · 1 monitor · 1 server`). Four rows show, then `↓ N more`; a finished agent stays for 20 seconds with `✓`, `✗` or `■`. **Ctrl+T** (or ↓ from an empty composer) puts the keyboard on the panel: ↑↓ select, Enter opens the details (state, steps, tool calls, the last things it did, its report), `x` stops the selected agent after a `y` confirmation, `m` opens a message line for it, `e` shows more rows, Esc goes back, and any other key returns to the composer. A message to a running subagent reaches it before its next model request; a message to a finished one starts a new background subagent that begins from its report (`↻` marks it). When a background agent ends, a short notice lands in the transcript (what it was, how long, the first lines of its report, and the `/agents` commands for the rest). The panel narrows with the terminal (tokens go first, then the time), redraws at most four times a second, and each state has its own glyph as well as its colour. The list is saved with the session, so `/resume` and `/agents` show what ran before (anything still running when the CLI closed shows as interrupted)
97
114
  - **`watch_command`** — run a dev server / `--watch` test runner for a bounded window, agent reacts to what came out
98
115
  - **`find_directory`** — cross-repo discovery; ask "open the auth-api repo" and the agent sweeps `~/Documents/GitHub`, `~/GitHub`, `~/Projects`, `~/code`, `~/dev`, `~/repos`, `~/work`, `~/src`, plus the workspace parent — no "where is that repo?" round-trips
99
116
  - **MCP both directions** — speaks the Model Context Protocol as a client (`/mcp add github <token>`, `/mcp add slack`, `/mcp add gitlab`, `/mcp add custom <name> <cmd…>`) and as a server (`bandit mcp serve` exposes Bandit's native tool surface over stdio so Claude Desktop / Cursor / Cline / Continue can drive your codebase through it)
@@ -146,6 +163,7 @@ Type `?` on an empty prompt for the at-a-glance overlay; `/help` for the full li
146
163
  | `/compact` | Trim old tool results to fit the context window |
147
164
  | `/rewind [id]` | Restore a file from a per-edit checkpoint |
148
165
  | `/trace`, `/trace list`, `/trace failed`, `/trace <id>` | Inspect turn traces from workspace/global `.bandit/turns` |
166
+ | `/agents` | Subagents and background tasks, running and recent (`/agents <id>`, `/agents stop <id>`, `/agents send <id> <message>`) |
149
167
  | `/tasks` | List background commands, monitors and subagents (`/tasks <id>` drill-down, `/tasks cancel <id>`) |
150
168
  | `/copy` | Open text selection: drag, release to copy, see confirmation; Esc returns to chat |
151
169
  | `/copy response`, `/copy code 2`, `/copy choose` | Copy the original response, a code block, or choose a complete block |
@@ -663,7 +681,7 @@ Offline mode does not control the commands the agent runs with `run_command` (th
663
681
 
664
682
  ## Requirements
665
683
 
666
- - Node.js 20+
684
+ - Nothing for the standalone binary; Node.js 20+ for the npm package
667
685
  - [Ollama](https://ollama.com) running locally (or remote via `OLLAMA_URL`) — unless you use `BANDIT_PROVIDER=bandit`
668
686
  - `rg` (ripgrep) on `PATH` for fast code search; falls back to `grep` if absent
669
687