Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

batonsh

Latest version: v0.5.3

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: regele
3 Stars
0 Forks
13 Versions
413 Downloads
TypeScript Repo language

Scan summary

batonsh was last scanned on 29 Nov 2026 at version 0.5.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 13 versions; the latest 3 were published on 29 Nov 2026.
  • Findings: No rules fired in version 0.5.3.
  • Downloads: 413 downloads.

Versions

13 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.3 LATEST 29 Nov 2026 No rules fired
0.5.2 29 Nov 2026 No rules fired
0.5.0 29 Nov 2026 No rules fired
0.4.0 14 Nov 2026 Not shown
0.3.9 27 Oct 2026 Not shown

No rules fired in 0.5.3

Findings

Findings for v0.5.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.5.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Baton is a terminal app and a local daemon. You describe a task; a lead agent splits it up and hands the pieces to worker agents from any vendor. Every worker edits a private git worktree, its result is checked by a command and reviewed by an agent from a different vendor, and only then is it merged into your branch. You watch every command, edit and message live, and anything that needs you waits in one inbox: in the terminal, the browser or on your phone.

Baton runs the agents you already have, with your own logins and keys. It is free, MIT-licensed, has no server, and sends nothing anywhere except the calls your agents already make.

Install

curl -fsSL https://raw.githubusercontent.com/k6w/baton/main/install.sh | sh    # macOS, Linux
irm https://k6w.github.io/baton/install.ps1 | iex                             # Windows (PowerShell)
brew install k6w/tap/baton        # Homebrew (macOS, Linux)
npm install -g batonsh            # npm (Node 18 or newer, any OS)

The installers download one binary for your system, check its SHA-256 against the release and put it on your PATH (~/.local/bin, or %LOCALAPPDATA%\baton\bin). baton update keeps it current. On Windows you also need Git for Windows; WSL works with the Linux installer.

With Bun 1.3 or newer:

git clone https://github.com/k6w/baton && cd baton
bun install && bun run build      # → dist/baton

Quickstart

baton doctor        # which agents are installed and signed in, and what to fix
baton demo          # a simulated team: learn the screen without spending tokens
cd my-project
baton               # first run: finds your agents and test command, writes .baton/config.toml

Then type what you want and press Enter:

add rate limiting to the login endpoint, with tests

An agent that isn't signed in? baton login claude (or codex, opencode, …) runs that agent's own sign-in. Press ? for every key, or type /guide for short lessons. The full walkthrough is in the quickstart.

Baton works on the nearest folder that has a .baton/ folder or is a git repository, so running it in a subfolder or a repository nested under another one picks the right project.

How a run works

   you ──► lead ──► claude-1 ─┐
          (plans)   codex-1  ─┼─ each in its own git worktree, messaging each other on the bus
                    gemini-1 ─┘
                       │
        acceptance check ─► review by another vendor ─► your checks ─► merged into your branch
  1. The lead plans. One of your agents reads the request, writes a plan (ctrl+g, editable) and starts workers with a role, a model size and a "done when" command. It delegates only through Baton, so every worker is visible, budgeted and isolated.
  2. Workers build in worktrees. Each worker gets a private git worktree that starts at your HEAD and includes your uncommitted changes. Workers claim files, message each other and report back.
  3. Acceptance. When a worker finishes, Baton runs its acceptance command (bun test src/auth). A failure goes back to the worker with the output, up to two more tries.
  4. Review. An agent from a different vendor reviews the diff inside the author's worktree and approves or asks for changes.
  5. Merge. After your checks (workspace.verify) pass, the work lands as one commit on your current branch, with only the agent's files. /undo takes it back.

The full tour: how Baton works and workspaces & reviews.

Features

Supervising
  • Inbox (ctrl+a): approvals, questions, plans to confirm, stuck agents and conflicts in one list. ctrl+y approves the oldest.
  • Questions: when a decision is yours, an agent asks a multiple-choice question instead of guessing (Claude Code's AskUserQuestion, the Baton agent's ask_user). Answer it in the terminal, the browser or on your phone.
  • Approvals show the full command, not a shortened title, so you know exactly what you allow.
  • Steering: talk to the lead, or to any agent with @name. A message to a busy agent is marked queued, or steering when it goes into the current turn (alt+enter forces steering), and the lead stops waiting on workers to answer you. The same markers show in the terminal, the browser and on the phone.
  • One autonomy dial for every agent, live (shift+tab): normal (each agent's defaults), ask (everything waits for you), auto (anything inside the project) and yolo (no prompts, no sandbox). Your deny rules hold in every mode.
  • Web and phone: baton web --lan prints a QR code that pairs your phone (one-time code, a key per device, sign out any time). Follow the run, approve, answer, steer and send tasks from a browser or phone; a phone may only run the slash commands you allow.
  • Composer: saved history with ctrl+r search, fuzzy @file mentions, your $EDITOR, paste chips and images, vim keys, !!command for a quick shell command.
  • Transcripts: syntax-highlighted code and diffs, tool calls folded to one line, todo lists, a context gauge, and a verbose view (ctrl+o).
  • Changes (ctrl+d): every agent's diff, to merge or review by hand, down to accepting or rejecting single hunks.
  • Costs (ctrl+e): spend per agent, against your budget.
Quality
  • Acceptance checks: work counts as done only when its command passes.
  • Cross-vendor reviews: a different model reads every diff before it merges.
  • Roles: tester, reviewer, debugger, refactorer, docs, security, researcher, frontend and visual-qa, or your own in .baton/roles/*.md. Each sets instructions, an access level (read-only roles can't edit, even in yolo), a model size and a "done when" check. /spawn tester starts one.
  • Skills: .baton/skills/<name>/SKILL.md (or .claude/skills), loaded on demand by any agent, not only Claude. Fourteen ship built in: debugging, test-driven, code-review, lean-code, planning, shipping, prototyping, writing-skills, security-audit, and for UI work design-taste, motion, ui-testing, visual-qa and ui-evidence. Roles start with the ones that fit, and the lead gets suggestions for the rest.
  • Done means done: plan tasks carry done_when conditions, boundaries and evidence. UI workers must show screenshots that exist, and a summary that claims passing tests against a failed check is flagged.
  • Team notes (opt-in): facts agents learn go into .baton/notes.md, and new workers start with them.
  • Track record: Baton learns which agent does what well in your project (/scores), and the lead uses it to pick.
Running a team
  • Team views: a timeline with one lane per agent (alt+l), the bus as conversations (alt+c) and a conflict radar of who touches which files (alt+r).
  • Review loops: a reviewer checks the work and sends notes back until it approves.
  • Polls: /ask-all asks every worker the same question and shows the answers side by side.
  • Templates, schedules and forecasts: save a team with /team save, run commands on a schedule (/schedule, /after), and see ETAs, the spend rate and a projected total.
  • Reports: baton export <run> --format html writes one shareable page with a timeline per agent.

More in running a team.

Each feature has its own switch: baton features notes on, or /settings → Team features. More in roles, skills & notes.

Safety
  • Worktrees: workers never touch your files. A merge commits only the agent's files, and is left uncommitted if you have your own edits in them.
  • Budgets: budget.run_usd and budget.per_agent_usd stop work at a limit; max_agents and max_depth cap how many agents spawn.
  • Policy: [[policy.rules]] allow, deny or ask per command, agent or tool. Commands from a new repository need baton trust first.
  • Redaction: secrets are masked in notifications and exports. baton export --no-redact keeps them when you need the raw run.
  • Memory: idle workers sleep after two minutes (session closed, worktree kept) and wake on the next message, and no new worker starts while free RAM is low ([resources]).
  • History: every run is saved. baton --continue (or History, ctrl+r) resumes it, with search, names and pins. baton replay plays it back, baton export writes Markdown or HTML, and baton gc removes worktrees that ended runs left with nothing unmerged.
Beyond the terminal
  • Scripts and CI: baton run "update the changelog" --approve all --json.
  • GitHub: baton issue 42 starts from an issue; baton pr (or /pr) opens a draft pull request from what the run merged.
  • Other tools: baton mcp lets Claude Desktop, Cursor or any MCP client hand tasks to your team; baton a2a serves it to other agents.

Supported agents

Agent How Baton drives it
Claude Code Agent SDK, with your Claude Code login or API key
Codex codex app-server, with your ChatGPT login or API key
OpenCode opencode serve
Gemini, Cursor, Copilot, Goose, Kiro, Qwen, Cline, Kimi, Droid, Grok and others Agent Client Protocol
Pi its RPC mode
Aider, Crush and any other CLI a terminal session (PTY)
Remote agents A2A
Baton's own agent built in, for any model provider, local models included

Baton uses each agent's real interface rather than scraping its screen, so tool calls, diffs, costs, approvals and usage-limit errors come through from all of them. You need only one: the lead can run several copies of the same agent, and a second vendor adds cross-reviews. Adding your own agent takes a few lines of config: agents & providers.

Configuration

Settings live in .baton/config.toml in your project, with your defaults in ~/.config/baton/config.toml. ctrl+s edits them in the app, with explanations. From the shell:

baton config explain policy.autonomy    # the value and where it comes from
baton config defaults                   # every setting with its default

Models per task size, budgets, approval rules, worktree setup, notifications, themes and key bindings are all covered in configuration. The look is yours too: 11 styles (/style), about 50 themes (ctrl+t) and five layouts (ctrl+l).

Documentation

Start here Guides Reference
Quickstart The terminal app · Running a team Configuration
How Baton works Roles, skills & notes · Workspaces & reviews Command line
Troubleshooting & FAQ Agents & providers Keybindings
Phone & web · Teams & GitHub Themes & styles
The Baton agent · A2A SDK & protocol · Changelog

Everything is also on the website: k6w.github.io/baton.

Contributing

bun install
bun test
bunx tsc -p tsconfig.json --noEmit && bunx biome check .
bun packages/cli/src/main.ts demo           # run from source

Baton is a Bun + TypeScript monorepo:

Package What it holds
protocol events, the adapter contract, the control protocol
kernel config, the event store, state, built-in skills
daemon the runtime, bus, policy, worktrees, web view
adapters/* one package per agent family
tui the terminal UI (OpenTUI + Solid)
cli the baton command
sdk the TypeScript client (the Python one is in sdk-python/)

Releases: bun scripts/version.ts 0.2.0, commit, then git tag v0.2.0 && git push --follow-tags. CI builds, signs and publishes everything.

License

MIT. Agent logos come from LobeHub Icons (MIT); they are trademarks of their owners and only identify which agent is running.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm batonsh

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229