Terminal Browser
@magistr/terminal-browserv2026.12.01.1
Security Notice
This extension includes AI agent skills that can modify AI assistant behavior. Review the skill files before installing.
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 tabsopen— 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 tabsaction— drive a tab through the agent-browser compatible CLI (snapshot, click, fill, eval, get …) and record the outputconfig— list / get / set / unset settings; set skips when unchangedshutdown— 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 thexn--a.0.testfallback.
03Behaviors
@magistr/terminal-browserv2026.12.01.1extensions/models/terminal_browser.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| binary? | string | terminal-browser executable (name on PATH or absolute path); when the |
| timeoutMs? | number | Timeout 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
| Argument | Type | Description |
|---|---|---|
| url? | string | URL, localhost port, or HTML/Markdown file path (empty: start page) |
| split? | enum | Side of the caller's pane to open the panel on |
| size? | number | Fraction of the space the split takes (0.2–0.95) |
| ssh? | string | user@host — proxy all network requests through this machine |
| reuse? | boolean | Reuse a browser already open in this terminal tab instead of |
| noMerge? | boolean | Do 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
| Argument | Type | Description |
|---|---|---|
| dedupe? | boolean | Skip 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,
| Argument | Type | Description |
|---|---|---|
| command | array | agent-browser command and its arguments, e.g. ["snapshot"], |
| tab? | number | Tab id from `status` |
| target? | string | CDP target id |
| follow? | boolean | Bring the tab to the front before running the command |
| maxOutputBytes? | number | |
| name? | string | Data name of the recorded action output |
fn config(op?: enum, key?: string, value?: string)
List, get, set or unset a terminal-browser setting or
| Argument | Type | Description |
|---|---|---|
| op? | enum | |
| key? | string | settings.json key or shortcuts.<command> |
| value? | string | Value 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
04Skills
swamp-terminal-browser1 file
05Previous Versions
2026.11.24.1MIT
2026.11.24.1
Added
- Initial release:
status,open,new-tab,action,config,shutdownandupgradeover 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
Repository
https://github.com/umag/swamp-workspace07Platforms
08Labels