Skip to main content

Terminal Browser

@magistr/terminal-browserv2026.12.01.1· MIT· 1d agoBEHAVIORSSKILLS
01README

Manage terminal-browser (https://terminal-browser.com) from swamp: a real Chromium browser that renders inside a terminal pane (herdr, Rex, Ghostty, Kitty, tmux and others).

Model @magistr/terminal-browser:

  • status — installed version plus every running browser and its tabs
  • open — open a browser as a side panel of the caller's terminal tab; reuses a browser already open there (idempotent)
  • new-tab — open a url in a running browser, skipping duplicate tabs
  • action — drive a tab through the agent-browser compatible CLI (snapshot, click, fill, eval, get …) and record the output
  • config — list / get / set / unset settings; set skips when unchanged
  • shutdown — stop the shared browser daemon (no-op when none runs)
  • upgrade — upgrade and record the version before and after

The CLI runs through Deno.Command, never a shell; positional values that would be read as flags are refused. Local only: the browser splits the terminal pane swamp runs in, so run it from a terminal, not from serve.

02Release Notes

2026.12.01.1

Fixed

  • Property tests: the host generator no longer produces xn-- labels that are invalid punycode, which made the nightly soak fail at high run counts. Root cause confirmed from the soak log (seed 217372308); a regression test now pins the xn--a.0.test fallback.
03Behaviors1
@magistr/terminal-browserv2026.12.01.1extensions/models/terminal_browser.ts

Global Arguments

ArgumentTypeDescription
binary?stringterminal-browser executable (name on PATH or absolute path); when the
timeoutMs?numberTimeout for one CLI call (a first `open` starts the browser daemon)
fn status()
Record the installed version and every running browser
fn open(url?: string, split?: enum, size?: number, ssh?: string, reuse?: boolean, noMerge?: boolean)
Open a browser as a side panel of the caller's terminal
ArgumentTypeDescription
url?stringURL, localhost port, or HTML/Markdown file path (empty: start page)
split?enumSide of the caller's pane to open the panel on
size?numberFraction of the space the split takes (0.2–0.95)
ssh?stringuser@host — proxy all network requests through this machine
reuse?booleanReuse a browser already open in this terminal tab instead of
noMerge?booleanDo not merge into a neighbouring terminal-browser as a tab
fn new-tab(dedupe?: boolean)
Open a url as a tab in a running browser (default: the
ArgumentTypeDescription
dedupe?booleanSkip when the browser already has a tab on this url
fn action(command: array, tab?: number, target?: string, follow?: boolean, maxOutputBytes?: number, name?: string)
Run one agent-browser command (snapshot, click, fill,
ArgumentTypeDescription
commandarrayagent-browser command and its arguments, e.g. ["snapshot"],
tab?numberTab id from `status`
target?stringCDP target id
follow?booleanBring the tab to the front before running the command
maxOutputBytes?number
name?stringData name of the recorded action output
fn config(op?: enum, key?: string, value?: string)
List, get, set or unset a terminal-browser setting or
ArgumentTypeDescription
op?enum
key?stringsettings.json key or shortcuts.<command>
value?stringValue for op=set
fn shutdown()
Stop the shared browser daemon, closing every browser.
fn upgrade()
Upgrade terminal-browser to the latest release and

Resources

status(infinite)— Installed version and every running browser with tabs
browser(infinite)— The browser an open / new-tab run targeted
action(infinite)— Output of one agent-browser command
config(infinite)— Settings read or written
lifecycle(infinite)— Result of a shutdown or upgrade
04Skills1
swamp-terminal-browser1 file
05Previous Versions1
2026.11.24.1MIT

2026.11.24.1

Added

  • Initial release: status, open, new-tab, action, config, shutdown and upgrade over the terminal-browser CLI.
06Stats
A
100 / 100
Downloads
4
Archive size
15.6 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned
07Platforms
08Labels