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

captain-barbossa

Latest version: v0.51.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: iitianpreetam
4 Stars
0 Forks
33 Versions
1.7K Downloads
Python Repo language

Scan summary

captain-barbossa was last scanned on 24 Nov 2026 at version 0.51.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 33 versions; the latest 2 were published within 2 days (23 and 24 Nov 2026).
  • Findings: No rules fired in version 0.51.0.
  • Downloads: 1,665 downloads.

Versions

33 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.51.0 LATEST 24 Nov 2026 No rules fired
0.50.1 23 Nov 2026 No rules fired
0.49.1 14 Nov 2026 No rules fired
0.48.0 30 Oct 2026 Not shown
0.47.2 25 Oct 2026 Not shown

No rules fired in 0.51.0

Findings

Findings for v0.51.0. 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.51.0; other versions have their own rules, not their own score.

README

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

Captain Barbossa

CI PyPI

Captain Barbossa launches a native agent CLI (Claude Code, Codex, pi, Grok) as a captain inside a Herdr workspace. The captain recruits further native agents as crew in new Herdr panes or tabs, so a team of native agent sessions can work on the same project at once. There is no daemon, custom UI, or tmux layer: everything runs through Herdr, plus a small graph memory stored outside the repo and a curated repo scope committed with it.

Requirements

  • macOS or Linux, Python 3.11+
  • uv
  • Herdr, as your terminal workspace
  • Claude Code, Codex, pi and/or Grok, installed and already signed in

Install

uv tool install captain-barbossa

If your shell cannot find captain afterward, run uv tool update-shell and restart the terminal.

Upgrade

captain update

This runs uv tool upgrade captain-barbossa. Running captains keep the old code until restarted with captain --session <session-id>.

Quickstart

Run these in an interactive Herdr workspace:

captain --agent codex
# Ask the captain: "Review the current changes." (read-only: runs as a background crew)
# Then ask: "Wait for Jack."

The captain stays in the current pane and recruits crew into the declared tab layout. You can ask it for every crew operation in plain language or run the commands below from a shell attached to the same session.

Restarting a captain

Find the id with captain session before you exit. Then exit the running agent with /exit or Ctrl+D, and rerun:

captain --session <session-id>

Graph memory carries over; the chat transcript does not. You get a fresh native conversation, not a provider transcript resume. Use captain session to print the ID; --session ID selects it when restarting. See memory.md for what persists.

captain --rename NAME names the current session (--session ID targets another). An unnamed session is titled by the captain's own model: while it has no name, its instructions ask for a 2-5 word title of the first task via captain --rename TITLE --if-unnamed, run alongside its first command. That flag never replaces a name, so your rename always wins; a session not titled yet, including one from before titles, shows - until its next launch titles it. captain --resume opens a searchable picker of this project's sessions (title, last activity, crew; no id) and resumes the choice from that project root, like captain --session ID; without a terminal it prints the plain list, or reports none. captain --resume NAME|ID skips the picker; a name shared by several sessions is an error, so use the id. Neither flag combines with a subcommand.

Pane-free launch plans

captain launch-plan --agent pi --model MODEL [--effort LEVEL] [--session ID] returns one versioned JSON object for a desktop host to start pi --mode rpc over pipes. It needs no TTY or Herdr pane and does not start the CLI. Only pi RPC is supported; missing choices and failures return structured errors and a nonzero exit status. Agent/model settings may supply new-chat choices; no picker opens.

Preparation may create Captain session and extension files outside the checkout. The env field contains overrides only (null means unset), never inherited credentials. The host applies these to its own environment. --session ID requires the exact existing pi session file recorded by the captain extension; unlike terminal restarts, it resumes that native chat or fails, never starts a fresh one. An omitted model on resume preserves pi's saved model. This does not make Herdr-backed crew recruitment pane-free.

Starting a captain

Launch captain from an interactive terminal inside a Herdr workspace:

captain                         # asks: Claude Code, Codex, pi, Grok?
captain --agent claude          # Claude Code in this pane
captain --agent codex           # Codex in this pane
captain --agent pi              # pi in this pane
captain --agent grok            # Grok in this pane
captain --prompt "Inspect this project"

--agent claude|codex|pi|grok selects the native CLI, --prompt TEXT supplies its first task, --session ID resumes Captain state, --resume [NAME|ID] picks a session to resume, --rename NAME names one, and --no-dashboard skips an enabled dashboard for this launch.

It renames the current tab to Captain Barbossa and replaces itself with the chosen native CLI, so native input, history, permissions, and login all stay with that agent.

Outside a Herdr workspace, captain offers to bootstrap one instead of failing. If Herdr is missing it asks before running Herdr's installer (curl -fsSL https://herdr.dev/install.sh | sh); then it opens a Herdr workspace at the project, starts captain there with the same --agent, --session, and --prompt, and attaches your terminal to it. Declining, or running non-interactively, leaves the old error untouched.

See settings.md for launch defaults and troubleshooting.md for launch failures.

Recruiting crew

captain crew opens a native agent in the same workspace and project, then submits its task without stealing focus. NAME is optional; flags select the agent, model, pane or tab, split target, and direction.

captain crew --task "Review the current changes"
captain crew Gibbs --task "Review the current changes" --agent claude --model mid \
  --placement pane --split-pane auto --direction auto

Omitted flags resolve in code: [crew] agent is empty as shipped and follows the captain's CLI, model uses the configured crew tier (cheap as shipped), and [crew] placement = "auto" selects the next slot and reports defaults.toml as its source. Explicit flags win; split flags imply a pane. Recruitment prints each choice's source. Only an empty crew agent with no captain metadata needs a picker (or explicit --agent in a non-TTY). Only the captain recruits; crew forward delegation requests to it. See crew-lifecycle.md for naming, launch behavior, checkout modes, failure handling, and editing guardrails.

Crew use the captain working tree by default, including its dirty, staged, and untracked files. Give simultaneous shared-checkout writers disjoint files and serialize edits to the same file. When [crew] isolation_enabled = true, --checkout auto|shared|worktree selects shared work or a detached Git worktree; auto isolates writable recruits with no owned paths or overlapping ownership. Isolated results include only owned paths. Review them with captain result show, then use result apply to copy them into the captain checkout unstaged or result discard --reason TEXT; retained checkouts appear under captain worktree.

Use --profile NAME to select [profiles.NAME] from global/project settings, bundling agent, model, execution (foreground or background), checkout, and placement. Flags override profile keys; omitted keys retain existing defaults. --foreground overrides background execution. Profiles print and persist their effective choices and sources, and never grant assignment permissions. See settings.md for examples and restrictions.

Placing crew

Automatic recruits fill [placement] captain_tab, then existing crew tabs, then a new [placement] crew_tab. The declared arrays are columns whose numbers are pane counts; crew fill breadth first.

captain crew Gibbs --task "Review UI" --placement pane \
  --split-pane auto --direction vertical

--placement pane|tab, --split-pane ID|auto, and --direction vertical|horizontal|auto override the grid for one recruit. See placement.md for slot order, split ratios, dismissal behavior, and validation.

Choosing models

--model accepts a provider-neutral tier, model ID, or alias:

Tier Claude Code Codex Grok
cheap claude-haiku-5-5 gpt-5.6-luna grok-4.7-build-fast
mid claude-sonnet-5-5 gpt-5.6-sol grok-4.6
strong claude-opus-5-5 gpt-6-astra grok-4.7

cheap is the configured default when --model is omitted, rather than falling through to whatever the native CLI uses. When recruiting, the captain chooses a tier by task complexity: cheap for a focused fix or established pattern, mid for a normal feature or change inside one area, and strong for design, debugging, or multi-file and long-context work. Risk or importance alone does not call for a stronger model.

Retier a running crew with captain model <name> cheap|mid|strong when its model stops fitting the work, such as a cheap crew that is stuck or a mechanical follow-up on a strong crew.

Free text also works and is matched to the closest model the chosen CLI offers (exact IDs and aliases first, then prefixes, substrings, and close spellings): Claude Code additionally offers claude-fable-5-1 (fable); Codex additionally offers gpt-5.6-terra (terra), gpt-6-luna (luna), gpt-6-sol, and gpt-6.1-sol (sol); Grok additionally offers grok-4.5. Ambiguous or unknown text reports the options and creates nothing.

captain crew --task "Debug the failure" --model strong

See settings.md for retiering providers and setting model defaults.

Configuring defaults

Nothing is required. Project settings override global settings one key at a time, and CLI flags win for one invocation. init writes a fully commented template for a new file; existing files are left untouched.

captain init
captain init --global

The only flag is --global; without it the command writes <project>/.captain/settings.toml, otherwise ~/.captain/settings.toml. See settings.md for precedence, validation, and the complete key list.

Waiting for crew to finish

captain wait Jack
captain wait Jack --timeout 300
captain wait Jack --json --ack <delivery-id>

New crew use explicit assignments: wait reports activity, questions, approval prompts, or completion; native idle alone does not mean the assignment is done. Claude Code crew, and Codex crew on 0.164.0+ once the user trusts the launch hooks in Codex's review prompt, block their own turn via a Stop hook until mail is read and the assignment finishes or asks a question; untrusted or older Codex falls back to notify, and pi cannot block. Crew never stop at a native permission prompt: Claude crew run in auto mode and hooks deny only risky effects (losing others' work, history rewrites, push/publish, writes outside the checkout) with a reason. The crew then asks; with your OK the captain runs it or issues a one-shot captain grant. Grants are a guard-rail, not a security boundary; grok has no hooks, so only its auto mode applies. Notifications repeat until acknowledged with --ack; --json returns a stable envelope with status, delivery ID, crew, assignment ID, and summary. --timeout SECONDS overrides the 86400-second default. It follows native lifecycle events, with pane-tail fallbacks documented in crew-lifecycle.md.

Sending a follow-up

captain tell Jack "also update the changelog" --assignment <assignment-id>

tell appends to an active assignment while keeping the pane, model, and conversation; it does not replace the original task. New assignments declare owned paths with repeated --owns PATH (absolute paths outside the checkout are allowed) and grants with repeated --allow ACTION. Use ask/answer for a question, done --report for completion, and assign --handoff to reuse a finished assignment's crew. Dismissed crew are refused.

crew and assign take --verify TARGET, a root Makefile target checked as captain do run checks one, and require --allow test. At done the run must earn the verdict the crew gate would give that crew for make TARGET against the current Makefile (today only make test passes); otherwise the receipt says NOT RUN with the reason code and nothing executes. done then runs it in the crew's checkout and records a receipt beside the report: target, exit code, duration, the last output lines, and the full log under the session directory. A failing run is recorded, not refused, so wait shows the real result whatever the report claims. The receipt leads the delivery, and report lines starting with [verify] are quoted so they cannot pose as one.

assign, tell, and answer write a durable mail file. For Claude crew, every ring is the fixed wake line; native hooks deliver the body as additionalContext and write its receipt after flushing it. For other providers, the first ring prompts the assignment plus a line to run captain inbox NAME; a landed body already counts as delivered, and a later ring is the inbox line alone. inbox remains a manual re-read and receipt writer. done receipts landed mail; undelivered mail is served in its refusal. Newly launched crew may omit --assignment on ask, done, and check: their launch-bound CAPTAIN_ASSIGNMENT is validated against crew identity, incarnation, and the active assignment. Missing or stale context fails; captain calls and replacement assignments still require explicit IDs. See crew-lifecycle.md for assignment and event-cursor behavior.

Checking crew status

captain status
captain status --all

status prints each crew's name, provider, model, pane, task, and evidence-based state:… source:… detail. Missing evidence stays unknown; native idle is not done. --all includes dismissed crew. See crew-lifecycle.md for fallbacks and output details.

Watching crew token usage

captain dashboard
captain dashboard --interval 5
captain dashboard --refresh-prices

captain dashboard refreshes a plain-text table of the session's crew in the current pane every 2 seconds by default (--interval SECONDS to change that). Usage reads use cached prices; only --refresh-prices opts into a background network refresh when the cache is missing or stale.

A captain can also open it for you: set [dashboard] enabled = true in .captain/settings.toml and launching captain splits a second pane below itself, titled Dashboard, running the same table. It is off by default; captain --no-dashboard skips it for one launch even when it is enabled.

NAME    AGENT               STATUS   CTX NOW    CUM TOK  CUM $ $/h 10m
CAPTAIN claude/opus-5       idle     .....   7%   2.70M  $2.66   $1.84
Jack    codex/gpt-5.6-terra idle     #....  11%    130k  $0.07   $0.05
Will    claude/haiku-4-5    idle     ##...  31%    366k  $0.09   $0.00
TOTAL   -                   -        -            6.30M  $3.38   $1.89
TOTAL includes retired(1): 3.10M tok/$0.56; USD list est; rounded

The table distinguishes live context from cumulative tokens and list-price cost, keeps dismissed crew in totals, and marks unknown readings instead of inventing zeroes. See dashboard.md for every column, pricing and context sources, provider limits, totals, and responsive pane behavior.

Focusing crew

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).

  • pypi-releases captain-barbossa

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229