Repository navigation
Releases
v0.5.0
Fixed
-
pullfinishes every batch even when one remote file is unreadable or a local
write fails: each failure is reported per file, only successful writes count
as new or overwritten, and an incomplete pull exits 1 instead of claiming the
local tree matches the box. (#36) -
Attach plans clamp pane dimensions to positive integers: missing, nonpositive
or nonfinite columns/rows default independently to 80/24 before they reach PTY
creation or resizing. (#35) -
execalways emits its JSON result: malformed input, invalid timeouts, and
configuration or credential failures return one object withok: falseand
exitCode: nullinstead of crashing before the grader can read it. (#34) -
Concurrent record writes in one process no longer share a temporary path;
each write gets its own tempfile, removed again if the write or rename fails.
(#33) -
Closing the popup keeps its last frame and hidden cursor intact until Herdr
removes the overlay, preventing an intermediate blank-screen/cursor flash. -
Native Herdr popup bindings can use
e2b-popup --renderto bypass the
action/CLI round trip. Reopened dashboards reuse cached theme and region
immediately, then refresh settings in the background. -
Dashboard/popups paint before configuration and region resolution finishes.
Startup reads display settings once in the background; periodic region checks
also run off the UI thread so they cannot interrupt painting or keyboard input.
Changed
-
The popup border shows a GitHub icon and
herdr-e2b-sandbox; its dashboard
header omits the repeated project name. -
Config openers use the current user's Herdr config folder as the editor root
and working directory, with the selected config file passed separately. -
The sandbox open and fleet creation actions always open and focus a new pane
below the invoking pane. Fleet creation continues into the dashboard there. -
e2b-box authnow combines saved connections, config, and discovery in a compact
ASCII table with explicit OAuth/API-key labels. Selected connections are credited correctly, setup advice appears
only when needed, and unavailable connections cannot appear ready through a
fallback key. Long details wrap; pipes andNO_COLORuse plain text.
Added
-
Interactive
e2b-box auth: select an agent to connect, reconnect, inspect auth,
or open config files using the dashboard's opener. Explicit discovery and
non-interactive calls retain their report/save behavior. -
e2b-popup/e2b-box popup: the dashboard in a centered Herdr popup over
the existing panes, with the same UI and controls. Also available as the
popupplugin action for keybindings. Herdr settings offer independently
bindablee2b-dash (pane view)ande2b-popup (overlay view)actions. -
Claude connection names use the detected organization (such as
claude-e2b)
for Team/Enterprise accounts. Setup and list distinguish the local account
from connection access; existing connection IDs remain unchanged. -
Dashboard
Cconfig-path picker: Enter opens the activeconfig.toml,
auth.toml, or saved connections directory;ccopies its path, including
when there are no boxes.[dashboard].config_openerselects a custom shell
command, with the plugin directory and selected path passed as arguments. -
Named personal coding-agent connections:
auth connect,list,explain,
check,reconnect, anddisconnect. Claude uses first-party setup-token
capture with token redaction; Codex borrows its local session without its real
refresh token. Claude subscription type and organization are detected as local
account metadata.open/up --connection IDselects one method for a new box
and removes competing auth variables. Existing discovery remains available as
authorauth discover; organization sharing requires a future shared service. -
Muse Code is a template.
muse, E2B's public template for Meta's coding agent, is in
theopenpicker and the fleet roster, ande2b-box authdetects the local install. A
member starts asmuse --yolo, the posture Meta documents for "a disposable, isolated
container": approvals off, Muse's own OS sandbox off (inside an E2B box that sandbox only
blocks network and out-of-tree writes, the same reason Codex's is bypassed), and the
workspace trusted for the run, so no first-run seed is needed. The credential is
META_API_KEY, forwarded under its own name; Meta documents it as outranking any stored
login, so a box handed the variable never sees a sign-in screen.
What is deliberately NOT borrowed is the browser login. Muse's~/.config/muse/auth.json
is a pointer whosestoragefield readskeychainon macOS; the token itself sits where
ADR 0009 does not look, exactly as Claude Code's does. A signed-in Muse therefore reports
signed in, but not a key this plugin can useand names the variable to set, rather than
becoming a borrowable session the way codex (ADR 0010) and grok (ADR 0011) did.
Muse has no status subcommand, so the probe is a headlessexecaimed at a loopback port
nothing listens on: an unauthenticated install refuses before it opens a stream, an
authenticated one fails its transport in about two seconds, and neither sends a byte off
the machine, spends a token, or writes a session log. Findings in
docs/research/0002-harness-detection-and-credentials.md.
v0.4.0
Fixed
- A daemon-spawned command no longer sends the shell's stale key.
requireApiKey
readprocess.env.E2B_API_KEYbefore the resolved key, undoing the resolver's
daemon rule (config and CLI login first, env last, key and domain as a pair): a
keybinding or action running with a US key frozen in herdr's env, against a box
in the EU, gotInvalid API key … Cannot get the teamwhileresolveCredentials
had already chosen the right key. It now trusts the resolved key alone.
Changed
- The box's git reads like the laptop's (ADR 0012). A fresh box used to get
git initandgit add -Aand stop there: a repo with a staged index and no commit, so
git statusin the box read as every file being new (main +197), andgit diff HEAD,git logandgit blamehad nothing to work with. Now the laptop'sHEAD
tree arrives as onegit archivetarball and is committed as the baseline,
herdr-e2b: snapshot of <label> @ <branch> <sha>, and only the files that differ
from HEAD locally are written on top, uncommitted; files deleted locally are removed.
A clean localmainopens as a cleanmain; a dirty one opens with the same
modified and untracked files. Staging is not carried over. A folder with no commits
gets the old full upload, committed. A sync commits only the tracked paths, never the
agent's own work. Side effect: upload is one tarball plus the dirty set instead of one
write per file. - The pull clobber guard names the files at stake, and only fires when there are
some. "The tree is dirty" stopped every pull from the dashboard'sp(no TTY, so
no prompt), even when the agent's files and your uncommitted files did not overlap.
The guard now asks the box which files the pull would actually overwrite and
intersects that with your local uncommitted changes: none in common → the pull runs
and says so; some → the prompt (or the non-interactive abort) lists them, with
"commit/stash them, or re-run with --force". A non-git folder, or a box that cannot be
reached, still gets the old coarse answer. - The ready banner reads like the dashboard row.
e2b-box openused to print a
sentence per fact and a long one about what to type when. It now prints one header
(● <label> · <template> · <region>), an aligned block of the three things you copy
(sandbox, preview, project), and a two-line attach note. Theattaching a shell in the sandboxmarkere2b-fleetwaits on is unchanged. The(run: cd …)hint is gone; the
shell lands in the project already. The on-close prompt (left sandbox '…') takes
the same shape: a header line, one choice per line with its key in bold brackets, a
bare›prompt. prefix+shift+ppulls, and tells you what landed. Thepullaction now runs
bin/e2b-box-pull: the same guardede2b-box pull, then a herdr notification in
the bottom-right with the files that came down (or the files it refused to overwrite,
or the error), and anrsent to a reviewr pane in the current tab so the diff
redraws now rather than on its next poll. An action's own output goes to the plugin
log, which is why a toast was needed. Apulling…toast lands the instant the key
does; herdr shows one notification at a time, so the result toast waits for the slot. The suggested binding isprefix+shift+p,
herdr'srename_paneby default; move that first.- Leaving a box uses the same arrow chooser as booting one. The on-close
question (pull / kill / leave, plus resume for a paused box) is drawn by
lib/chooser.shlike the template picker: ↑/↓ or a number to move, Enter to take
the row, or its letter outright. q/Esc leave the box alone. Kill asks once more,
since one keypress is enough to choose but not to lose a box. - The pane is named after the template while a box shell is attached. Inside
herdr,e2b-box openrenames its pane to the box's template (drew-claude) and
puts the old label back, or clears it, when the shell exits. pullreads only what changed. With a baseline to ask about, pull takes the
box'sgit statusas its file list instead of reading every file over the SDK and
byte-comparing each one locally; four files touched is four reads. Files the agent
deleted in the box are now named in the output (- path (deleted in sandbox — kept locally)) and left alone. A box provisioned before this release has no baseline and
gets the old full pull, unchanged.
v0.3.0
Added
- The board names the plugin version it is running. The header's right side now reads
theme: … · v0.3.0, the version in the corner. It answers the question a plugin loaded
from a working tree raises constantly — is this the build I just made? — which nothing on
screen used to answer, and which otherwise takes readingherdr plugin list, checking
which directory it points at, and comparing a binary's mtime against its source. The
number is resolved fromherdr-plugin.toml, the same manifest herdr's own marketplace
reads, so the board and herdr can never disagree about what is installed. A pane too
narrow for both drops the theme first and keeps the version, which stays anchored in the
corner rather than sliding left. With no version to resolve the header simply omits it: a
missing version costs nothing, a wrong one misleads.
v0.2.0
Added
- The dashboard names each box's template. A
TEMPLATEcolumn sits beside
SANDBOX, reading the template the sandbox actually booted from its record —
which decides whether the agent you wanted is even installed in there.
A box that fell back tobasebecause its template was not built on this
cluster is markedbase ⚠in amber, so a silent downgrade is visible on the
board instead of only in the create-time log. The column is fixed-width and
never gives way;BRANCHis still the one that yields on a narrow pane.
Changed
- The dashboard header names a region, not a host.
region euinstead of
cluster e2b-juliett.dev— a region is what you pick, a hostname is how it
happens to be served, and the header now reads the way[sandbox] regionand
the error messages already do. US saysusrather than going blank: US
production resolves to no domain at all, so "nothing pinned" and "US" were
always the same state. An unrecognised host still prints as itself. STATUSis the last column andSTEPis gone. The two saidready
besidereadyon every settled box; the step only ever carried news while a
box was provisioning or after it failed, so it rides in the STATUS cell now
(◐ provisioning · uploading 210/540 files) and is dropped when it repeats the
status or is the step's own idle value. Column order is
NAME · BRANCH · TEMPLATE · SANDBOX · FILES · STATUS, which puts the three
facts about the sandbox itself together and gives the growing cell the width
left over.- The theme moved to the right of the header, where the cluster used to sit,
and the region took its place beside the title. The region is a fact about
where your boxes go and never gives way; the theme is a preference and is
dropped first on a narrow pane, after the title has shortened.
Fixed
- A
config.tomlcredential change now takes effect without restarting herdr.
Commands spawned by the daemon demote the ambientE2B_*variables they inherited
so the config can win — but the pre-flight only consulted the resolver when one of
those variables was empty, so a daemon that inherited both never reached the
demotion at all and kept using a stale key and region. It is now invoked whenever
HERDR_PLUGIN_IDorHERDR_PLUGIN_ROOTsays a daemon is the caller.
v0.1.0
Added
- A grok browser login is borrowable, refresh token included (ADR 0011).
grok loginstores an OIDC session in~/.grok/auth.json;e2b-box authnow
records it as a pointer and a box receives the file verbatim. Unlike codex's,
grok's refresh token is measured multi-use — re-using an old token after a new
one was issued still answers 200 — so shipping it cannot log the laptop out,
and the box re-mints its own six-hour bearers with no expiry wall. A real
XAI_API_KEYin the environment still outranks the session at discovery, and
prefer = "env"still opts a template out. e2b-box authcloses with a summary table. One row per provider naming
the credential a box will actually get and where it comes from: a signed-in
session, a value hand-set in[templates.<t>.env](yourconfig.tomlis now
read for display — still never written), a key-file pointer, or a variable
forwarded from the shell. A credential the report can see but a box cannot
receive is marked as a warning instead of a tick.e2b-box authfinds the credentials already on your machine. It reads all
seven harnesses behind a shipped template (claude,codex,grok,
opencode,amp,droid,prime), each with a rule written against that
binary's real output, and leaves anything it does not recognise alone rather
than guessing. It asks once for the whole batch, then writesauth.tomlbeside
yourconfig.tomlat mode0600, regenerated whole on every run.--yes
skips the question for a scripted install. With no terminal and no flag it
reports and writes nothing. It never edits yourconfig.toml.auth.tomlstores no credentials. Each discovered credential is a pointer,
naming the variable to set and the file to read, resolved when a box is
created. Nothing goes stale, a key you rotate in the harness is picked up
without re-running discovery, and the file needs no guarding.- Boxes boot with what it found. The config loader reads
auth.tomland a
box gets its template's credential with nothing configured. A recorded variable
name resolves frome2b-box's own environment at create time, and the box
receives the variable it needs, which is not always the one the credential was
found under. Anything you wrote by hand still wins. The order is shipped
defaults, then discovered, then[sandbox.env], then[templates.<name>.env].
An absent or malformedauth.tomlmeans no discovery, not a broken CLI. ampandprimeread the key in their own config file
(~/.local/share/amp/secrets.json,~/.prime/config.json), taking the report
from three harnesses to five. This is the existing rule about a value already
sitting in a plaintext file you own. Both simply lacked a reader. amp names its
key after the server it belongs to, so the reader takes the default server's
entry and refuses when several are present rather than picking one.droidandclaudestay out, and ADR 0010 records why. droid's store is
encrypted. claude's is the macOS Keychain, which this plugin opens on no path.
Claude's route is stillclaude setup-token.- A box can boot into a signed-in session instead of a pasted key.
e2b-box authrecords a Codex subscription login from its ownauth.json, and
the codex row changes from "signed in, but not a key this plugin can use" to
"signed-in session (expires in 8 days)". Per ADR 0010 the single-use refresh
token is never copied, and a visible placeholder goes in its place, so a
borrowed copy cannot revoke the login it came from. Unlike everything else
discovered, a session outranks your own[templates.<name>.env]. Set
prefer = "env"on a template to take that back. Expiry is recorded, and the
report, the picker mark and the fleet warning all render an expired session as
expired. An expired session is never injected, so a box falls back to whatever
credential still works instead of to a sign-in screen. - When a session authenticates a box, the API key it replaces is not sent,
whichever rung supplied it, including your own[templates.<name>.env]. A box
signed in by the session cannot use that key, and an unusable credential in a
box costs exposure for nothing. An expired or opted-out session suppresses
nothing, because that is when the key is the fallback. - The template picker marks what each template has.
key (file)for a
credential stored in a harness's own config,key (env)for one forwarded by
name from your shell. You learn a box will open on a sign-in screen before
spending a minute creating it. It annotates and never filters, so a template
with no credential keeps its place on the menu. It reads the generated file
only and spawns no probe, and a template it found nothing for is drawn with no
mark rather than a misleading one. e2b-fleetwarns before launching a member that will hit a sign-in screen.
One warning for the whole roster, naming each affected member, its template and
the variable to set, followed by a block you can paste into yourconfig.toml.
Then it launches. This is a warning and not a gate, the same way a dirty
worktree is (ADR 0003). A member you configured by hand counts as
authenticated, and a member with nothing to authenticate is left out. Nothing
on that path spawns a harness binary.install.shruns discovery once on a fresh install, so a first box comes up
authenticated without reading the config reference. It shells out to
e2b-box auth --yes, one discovery implementation with a second entry point,
and passes the flag becauseherdr plugin installhas no terminal and a
scripted install must not stall on a question. It prompts for no harness
credential and cannot fail the install. No harness installed, every probe
timing out, or no Node 22 yet each produce a report and a successful install. A
machine that already has anauth.tomlis left alone, and every run says how to
refresh it after installing a new harness.e2b-box authchecks whether a variable recorded by name is visible to a
login shell, and says so when it is not. herdr runs plugin commands as
bash -lc, which reads~/.profileand never a zsh rc, so a key exported only
from~/.zshrcwas found at discovery and absent at box creation. The report
saidkey foundand the box still opened on a sign-in screen. The warning names
the variable, the template and both fixes. It is a real check, not a blanket
caveat, so it stays quiet on machines where the key does survive.- A forwarded name that cannot be resolved at create time is named in the
provisioning log at the moment it goes missing, instead of being dropped
silently. The box is still created, because an unauthenticated box is what was
asked for and is still useful. - Pick a region by name.
[sandbox] region = "us" | "eu"is the only way to
say where a box runs (ADR 0007).usis the default and needs no configuration,
resolving to the SDK's own default,https://api.e2b.app.euresolves to
https://api.e2b-juliett.dev. An unrecognised region errors naming the two,
never a silent fallthrough.uspins no host on purpose, because US also
answers ate2b.dev, an older name for the same environment that thee2bCLI
still defaults to, so naming either would put one tool at odds with its own
default for nothing. - One API key per region.
[secrets] e2b_api_key_usande2b_api_key_eumay
sit beside the singlee2b_api_key, so changing region moves the credential
with it. A key belongs to exactly one region, and the mismatch reports as
Invalid API key … Cannot get the team, which reads like a broken credential
when only the destination is wrong. Only the active region's key is ever read. - A template existence check before the sandbox is created, so a missing
template is reported in about 50ms rather than after a boot has to fail first.
It fails open. Anything short of a definite "no" falls through to the create,
because the check is stricter than creating is and must never cost a box that
would have booted.
Changed
- Boxes pause at the idle timeout by default (
auto_pause = true) instead of
being killed, with a full memory snapshot, so the running agent and everything
in memory are still there whene2b-box openwakes it. Set
auto_pause = falsefor the old kill-at-timeout behaviour. A new
[sandbox] keep_memorykey picks the snapshot kind.keep_memory = false
gives a filesystem-only snapshot that cold-boots on resume, must be paired with
auto_resume = false, and is otherwise rejected with an error naming both keys
before anything reaches the API. The closing messages after you leave a box now
describe what that box will do at its timeout, read from its record. - The plugin owns the terminal, and the in-box tmux is gone (ADR 0008).
Opening a box attaches through the plugin's own PTY client (src/attach.js)
instead ofe2b sandbox connect. Raw mode end to end, so shift, ctrl and
alt+Enter reach the agent byte for byte, and no multiplexer is installed into
or configured in any box. The terminal is stampedHERDR_E2B_TERMINAL=<box key>
and its pid recorded on the box record. The client reports outcomes by exit code
(clean, never attached, box gone, attached then lost), replacing the old
two-second timing heuristic. - Reopening a box puts you back on the screen you left. The client reattaches
to the box's own terminal, verified by its marker and never by a bare pid, then
nudges a repaint with a resize. One resize when the pane's geometry differs from
the terminal's, away and back when it does not. Your agent comes back mid-task
with its frame intact. The scrollback above the frame is not stored anywhere and
does not return, and the client says so once, only when reattaching. A terminal
that died, or whose ...