The clackatoo Command

clackatoo [--font <FAMILY>] [--font-size <POINTS>] [--renderer <API>] [--remote <HOST> | --connect-picker]
clackatoo <COMMAND> [OPTIONS]

With no command, clackatoo opens the window, starting the daemon first if none is running. With --remote, the daemon is on another machine. With --connect-picker, the window first asks which machine, from those you've connected to, your ssh config and Tailscale (see picking a machine).

On failure, every command prints clackatoo: <what went wrong> to stderr and exits with status 1.

daemon #

clackatoo daemon [--scrollback-compaction <WHEN>] [--fresh]

Runs the daemon in the foreground until interrupted. Its log goes to stderr, at the level RUST_LOG sets (default info). Terminals live exactly as long as the daemon does: when it stops, their programs are hung up. Upgrading it doesn't stop it. Ctrl+C, closing the terminal it runs in, or SIGTERM stop it the way stop does; under nohup it outlives a hang-up, upgrades included. The programs in its terminals take those signals as usual, however the daemon was started.

CLACKATOO_AGENT gives Claude Code, the agent chats talk to unless told otherwise, another command: one speaking the Agent Client Protocol (ACP), split at spaces.

CLACKATOO_UDP_PORTS sets the UDP ports connections from other machines can move onto: a port, a range such as 60000-61000 (the default), or off.

CLACKATOO_LSP_TRACE names a file every message to and from language servers is added to, a line each: the time in UTC, the server and its pid, then -> for what it's sent, <- for what it sends, or !! for a line it wrote to stderr. Only you can read the file it makes, and it must be a plain file.

CLACKATOO_ACP_TRACE names a directory every message to and from each agent chats talk to is written to, in the same form, a file for each agent the daemon starts, with obvious secrets taken out (see tracing agents).

CLACKATOO_DISPLAY=off leaves the programs the daemon starts with its own WAYLAND_DISPLAY, DISPLAY and the like, rather than the desktop's display as you sign in and out, which they follow by default.

CLACKATOO_PASTES names the folder images pasted into terminals are kept in, an absolute path, or off to keep none, refusing them. By default it's clackatoo/pastes in $XDG_CACHE_HOME (or ~/.cache).

CLACKATOO_WORKSPACES names the file the daemon keeps its workspaces in, or off to keep none. By default it's workspaces in $XDG_STATE_HOME/clackatoo/ (or ~/.local/state/clackatoo/).

The daemon keeps your workspaces, tabs and panes in that file as they change, about a second after each change, and once more as it stops or upgrades. A daemon starting afresh makes them again (see the window); an upgrade doesn't need to. A file that can't be read, or is from a newer clackatoo, is renamed workspaces.unreadable, and the daemon starts with none. Each file read is copied to workspaces.previous, so panes that couldn't be made, as on a disk not mounted, aren't lost. Only one daemon keeps the file at a time (it locks .workspaces.lock); another keeps nothing.

Option
--scrollback-compaction <WHEN>When scrollback is compacted to save memory: lazy (the default), eager or off. See scrollback.
--freshStart with no workspaces this once, rather than making again those kept from the last run. The file is left as it is until something changes.

The daemon keeps its files in a per-user runtime directory: $XDG_RUNTIME_DIR/clackatoo/, or /tmp/clackatoo-<uid>/ if XDG_RUNTIME_DIR is unset.

File
daemon.sockThe Unix socket clients connect to.
daemon.lockLocked while a daemon runs, so only one runs at a time. A second clackatoo daemon fails with "a clackatoo daemon is already running".
window.sockWhere clackatoo hands its window to the process of windows; window-<hash>.sock, to that of a group of windows that differ from it. Only your own programs are answered. It's as powerful as daemon.sock: a window asked for carries the asker's environment, which what the window starts runs with.
shell/The scripts that make shells mark their commands, written by the daemon when it starts, and display, the desktop's display shells follow, written whenever it changes.

Anyone who can connect to the socket can run commands as you, so the directory must be accessible only by you. The daemon creates it with mode 0700, and refuses to start if it exists with any group or other permissions, or belongs to someone else. Every client, the window and clackatoo commands included, refuses a socket another user's program listens on, as one could in /tmp by making the directory first: it says "the daemon's socket is another user's". So sudo clackatoo …, which runs as root, can't reach your daemon either.

Unix socket paths are limited to about 100 bytes. A very long XDG_RUNTIME_DIR makes the daemon fail with "path must be shorter than SUN_LEN".

A daemon the window starts runs in the background, with its log in daemon.log in the runtime directory.

Staying quick on a busy machine #

When the machine is loaded, with builds on every core and memory short, the daemon still echoes your keys at once. It asks for two things as it starts, neither needing root, and says how it went in one line of its log:

  • A higher priority for its event loop, the thread that takes your keys and sends the screen. Linux shares the CPU among threads by their nice, from 19, least, to -20, most; you can only lower your own programs'. RealtimeKit (rtkit-daemon), which desktops run so sound keeps up, raises the loop to the most it allows, -15 as it comes. Never real-time scheduling: rtkit grants that only to a program that agrees to be killed if it's busy for 200 ms without a break, and the daemon can be, taking in a huge paste, with every terminal in it.

  • A place of its own, under systemd. A cgroup is a group of programs the kernel shares the CPU, memory and disk among by weight, group against group. The daemon asks your systemd for a scope, a cgroup of its own, called app-clackatoo-PID.scope (systemctl --user status 'app-clackatoo-*' shows it), and divides it in three: daemon, itself alone, at ten times the usual weight, its memory the last of yours to be swapped out; terminals, at the usual weight, for your shells and everything run in them, and what the daemon runs for you, such as git and ssh; and agents, at a fifth of it, for agents, language servers, the browser, installs, and the terminals and background tabs agents start. A build in a terminal takes all the CPU the daemon doesn't need, and never what it does.

    agents is divided again. What the daemon starts goes in agents/serve, and within a couple of seconds each program those start gets a cgroup of its own, with everything it has started: each Claude Code process Claude Code's adapter runs for a chat, a command Codex runs, a command in a terminal an agent started. What those start later starts in theirs. When memory runs short, systemd-oomd kills whole cgroups, the one reclaiming the most memory first. Before, that was all of agents, every agent at once; now it's one chat's Claude Code process and the build it was running, and that chat's session is opened again, its answer going on (see What lasts). Empty ones are taken away. If agents can't be divided, the daemon says why in its log and keeps it whole, as before.

Nothing the daemon starts gets either: every program starts at nice 0 and the usual scheduling, in its own group, never the daemon's. A program goes to its group within milliseconds of starting, taking with it whatever it has started by then, as your shell's rc file might have; what it starts afterward starts in its group. The window's thread asks rtkit too.

rtkit asks polkit, the service that decides what users can ask of system services, and polkit as it comes says yes only to programs of a local desktop logon. A daemon a window started from your desktop qualifies; one started from an ssh logon doesn't, and runs at the usual priority, as clackatoo priority then says. An administrator can let your programs have it from anywhere with a polkit rule:

// /etc/polkit-1/rules.d/49-clackatoo-priority.rules
polkit.addRule(function (action, subject) {
  if (action.id == "org.freedesktop.RealtimeKit1.acquire-high-priority" &&
      subject.user == "YOUR-USER-NAME") {
    return polkit.Result.YES;
  }
});

Lingering #

The place of its own needs you to linger. Your systemd, the user manager, is a program that runs for you while you're signed in, and the scope is part of it. As it comes, it stops when your last logon ends, a few seconds after you sign out of the desktop and close your last ssh session, and stops everything in it. A daemon in a scope would stop with it, closing your terminals, which are meant to outlive your sign-ins. Lingering keeps your user manager running from boot, signed in or not:

loginctl enable-linger

loginctl disable-linger undoes it. Some systems allow it only to administrators; then it's sudo loginctl enable-linger $USER. So the daemon takes a scope only while you linger, or if systemd started it; otherwise it stays where it started, with its higher priority alone, and says so:

  • Once, in a window's bar, the first time a window on this machine connects after the daemon has said so: "clackatoo would keep agents' builds from slowing your typing with loginctl enable-linger". No other window says it again until what the daemon says changes, or you sign in again.
  • Any time, with clackatoo priority, which prints the daemon's priority, its place or why it has none, and what lingering would change.
  • In a chat's :Capabilities, as Daemon priority.

After loginctl enable-linger, clackatoo upgrade gives the running daemon its place, keeping your terminals; the programs already running stay where they are, and those started from then on go in their groups. Memory is protected only as far as the groups above the scope protect it: as systemd comes, they don't.

Upgrading keeps both. Without rtkit, or systemd, the daemon runs as it always did. To turn it off, set daemon.machine.priority = false in the daemon's config, which also stops windows saying you could linger, or CLACKATOO_PRIORITY=off in the daemon's environment; CLACKATOO_DISPLAY=off turns it off too, as for tests. Either takes effect when the daemon next starts afresh. The window's is priority = "normal" in startup.toml.

priority #

clackatoo priority

Prints how the daemon on this machine runs ahead of your other programs, as it said when it started or upgraded: priority: its event loop's nice through RealtimeKit, or why it's the usual; place: its scope, or why it stays where it started, and if only lingering stands in the way, what to do. It fails, saying so, while no daemon is running, or until the daemon has said, a moment after it starts.

upgrade #

clackatoo upgrade

Moves the running daemon onto this build of clackatoo without stopping it. Its terminals, the programs in them, their history and the workspaces all carry on, and so do agents, with all they run and the turns they're answering, unless the upgrade has to stop them (see Agents). Run it after building or installing a new clackatoo.

The daemon replaces its own program with this one, keeping its process, so the programs in its terminals stay its children. It hands its state over as it goes: everything on screen and in history, the cursor and modes, workspaces and tabs. Every connection drops for a moment. Windows on this machine reconnect by themselves; windows on other machines say the connection was lost, and Enter reconnects them. Recordings stop.

Before handing anything over, the daemon checks that the new program is a clackatoo that can take over from it. If it isn't, or starting it fails, the daemon carries on as it was, and upgrade says why; the daemon's log has the details. A daemon won't upgrade to a build speaking an older protocol; one speaking the same, such as the build before, it will. Daemons from before protocol 11 can't upgrade at all: upgrade says so, and clackatoo stop is the way to replace them, closing their terminals.

update #

clackatoo update [--check] [--channel <CHANNEL>] [--to <VERSION>] [--rollback]

Installs the latest release of clackatoo in place of this one, then moves the running daemon onto it, as upgrade does. Releases come from github.com/clackatoo/clackatoo. Each has its checksums signed with clackatoo's release key, whose public half every build carries, and nothing is installed unless the signature is that key's, it names the release being installed, and the download is what the checksums say.

The new build is written beside the old one, run once to be sure it works on this machine, then renamed over it, so the program is never missing or half written. The old one is kept beside it as clackatoo.previous. Windows already open keep the old build until they're opened again.

Option
--checkOnly say whether there's a newer release.
--channel <CHANNEL>stable (the default). nightly isn't published.
--to <VERSION>Install this version, newer or older, instead of the latest.
--rollbackSwap back to the build the last update replaced, and move the daemon onto it if it can. Run again, it goes forward again.

Versions are YEAR.MONTH.N: 2026.10.0 is October 2026's first release, 2026.10.3 its fourth. clackatoo --version also says the commit and the day it was built.

The first release to install, before there's a clackatoo to update with, is installed by hand, checking its signature first: the README shows how.

desktop #

clackatoo desktop install [--force]
clackatoo desktop remove [--force]

Puts clackatoo in your desktop's app launcher, with its icon, or takes it out. install writes clackatoo.desktop to ~/.local/share/applications and the icon to ~/.local/share/icons/hicolor/scalable/apps (under $XDG_DATA_HOME if it's set). The entry starts the program install was run as, by its full path, so run it as the clackatoo you want the launcher to start. Docks group clackatoo's windows under it.

The entry tells the launcher that clackatoo reports its startup, so a window opened from the launcher takes focus as it opens and the launcher's spinner stops. The token the launcher hands the window goes no further: the daemon and your shells never see it. An entry written by an earlier clackatoo gains this the next time update rewrites it.

The entry's right-click menu offers a new window; "Connect to…", which opens the window as the picker of a machine; and "Connect to HOST" for each of the last three machines you connected to. When the last machines you've connected to change, the window rewrites a marked entry to list them, still starting the program the entry started. If a pinned launcher keeps showing the old menu, GNOME has a copy of the entry cached: unpin clackatoo and pin it again, or sign out and back in.

Both files are marked as clackatoo's (X-Clackatoo-Managed=true in the entry). An entry or icon without the mark is yours: install leaves it as it is and prints the entry it would have written, and remove leaves it too. --force replaces or removes it anyway. To keep your own changes to an entry clackatoo wrote, delete its X-Clackatoo-Managed line.

update brings a marked entry and icon up to date with the build it installs, and leaves unmarked ones alone. The README's install runs desktop install too.

File managers #

The entry tells file managers which files clackatoo opens: plain text, and the commonest kinds of source code and data that are text, such as Markdown, C, Rust, Python, JSON and YAML. So every file manager offers clackatoo under "Open With" for those, never for an image or anything else that isn't text. Choosing it runs clackatoo open with them, which opens each in a new editor tab. Started from the launcher, with nothing to open, the entry opens a window. A marked entry from an earlier clackatoo gains all this the next time update rewrites it; until then, a window rewriting its machines leaves it as it is, as the program it starts might not have open.

The entry doesn't claim folders, so your desktop never opens a folder with clackatoo by itself, as it would wherever no file manager is set to open them, xdg-open included. A file manager that lists every app, as GNOME Files' "Open With Other Application" does, still offers it for a folder, which then opens in a new terminal tab, there. The menus below offer it for folders everywhere else.

install also adds "Open in clackatoo" to the right-click menus of the file managers you have, for folders and text files selected, and for the folder shown:

File managerWhat install writes
Dolphin (KDE)A service menu, ~/.local/share/kio/servicemenus/clackatoo.desktop.
Nemo (Cinnamon)Two actions, clackatoo.nemo_action and clackatoo-here.nemo_action, in ~/.local/share/nemo/actions.
Thunar (Xfce)A custom action in ~/.config/Thunar/uca.xml, with the ID clackatoo-open, beside your own. With no file of your own, it starts as a copy of the system's, which yours would otherwise hide.
Files (GNOME)An extension, ~/.local/share/nautilus-python/extensions/clackatoo.py, if nautilus-python is installed (python3-nautilus or nautilus-python). Without it, Files offers clackatoo under "Open With" only.

Each is written only if its file manager is installed, so after installing one, run clackatoo desktop install again. Dolphin and Nemo show the item at once. Thunar and GNOME Files read their menus as they start, and keep running in the background, so they show it once stopped and started again: thunar -q stops Thunar, which runs that way under thunar --daemon, as Xfce starts it, and nautilus -q stops GNOME Files; install says so. Thunar writes all its custom actions back whenever they're saved from its "Configure custom actions" window, so saving there from a Thunar started before install takes clackatoo's out again; run install again if it does. remove takes them all away, even if the launcher's entry is someone else's, and update brings the ones there up to date with the build it installs.

Each file is marked as clackatoo's, as the entry is, and treated alike: one without the mark is left as it is, unless --force. Thunar's uca.xml holds your own actions too, so clackatoo changes only its own action there, leaving the rest of the file byte for byte, comments and all; a file it can't be sure of reading right, such as one with an action inside another, it leaves alone, and says so. If you had no uca.xml of your own and the system's can't be read that way, it writes none, rather than one that would hide the system's actions. Taking clackatoo's action out leaves the file as it was, and removes it if all that's left is what clackatoo started it with.

The paths a file manager hands on can hold anything: spaces, quotes, line breaks, a leading -. Each reaches clackatoo open as it is: Dolphin, Nemo and the extension run it without a shell, and Thunar, which runs every action with sh -c, quotes each path itself.

forget #

clackatoo forget HOST

Forgets the identity key the daemon knows the machine of its connection HOST by, in known_machines, after that machine's clackatoo chose a new one, as when its machine file was deleted: the key it shows next is taken, and kept. Until then, a connection to it is refused, and says so. It's the key of the machine HOST last proved it was, or was expected to be: never one HOST only said it was. A connection that was stopped is tried again at once, and takes whatever machine is there now, as :connect does, so a machine whose state was wiped, with a new ID and key, is taken this way too. HOST can be a machine's ID instead, its 32 hex digits, which is taken as one first, to forget the key that machine is known by, connected to or not. See machines passed on.

lent #

clackatoo lent
clackatoo lent reclaim N

Lists the panes this daemon has lent to another machine, numbered, with the machine each is lent to and when it was last heard from. reclaim N takes one back: it becomes one of this daemon's own workspaces, named after the machine it was lent to, as from-laptop.

display #

clackatoo display

Shows the desktop's display the daemon on this machine gives the programs it starts, and where it came from, then each variable as NAME=VALUE:

from: systemd (the desktop you're logged in to)
WAYLAND_DISPLAY=wayland-0
DISPLAY=:0
XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.Q2ZXV3
XDG_SESSION_TYPE=wayland
XDG_CURRENT_DESKTOP=ubuntu:GNOME

from: is systemd while you're signed in to the desktop, inherited for the daemon's own display, or none. A variable not listed is removed from what the daemon starts. See the desktop's display for where each comes from. It reads what the daemon wrote for its shells, so it fails, saying so, while no daemon is running, or the daemon hasn't written it: CLACKATOO_DISPLAY is off, it hasn't read the display yet, or it couldn't write the file, which its log says. A file an earlier daemon left is passed over. It shows this machine's daemon only: for another machine's, run it there, as ssh desk clackatoo display.

stop #

clackatoo stop

Stops the daemon, closing every terminal and hanging up their programs. The daemon is sent SIGTERM and stops as it would at sign-out or shutdown: it tells its language servers to shut down, ends what agents started, writes the boards' last changes, writes the workspaces as they were, and tells windows on other machines why, all within about 3 seconds. One that hasn't gone after 5 seconds is killed; a daemon from before 2026.10.17 dies at once. stop works on a daemon from any build of clackatoo, which matters because a build refuses to talk to a daemon speaking another version of the protocol: other commands then fail with "the daemon is from another version of clackatoo", and suggest clackatoo upgrade where the daemon can upgrade. If no daemon is running, stop says so and succeeds.

config #

clackatoo config [<NAME> [<VALUE>]] [--unset <NAME>]

Shows or changes the window's settings in client/startup.toml:

  • With no arguments, prints every setting as the file would hold it, with those the file doesn't set commented out at their defaults.
  • With a name, prints that setting's value, without quotes, so scripts can use it.
  • With a name and a value, sets it. The value is checked first: clackatoo config renderer metal fails, saying which values renderer takes.
  • With --unset, removes the setting, so it takes its default.

Changes keep the rest of the file, comments included, as it was, and the file is replaced all at once, so a window starting at the same moment reads either the old file or the new one.

language #

clackatoo language list
clackatoo language install <NAME>... | --all [--no-servers]

The languages files are parsed and colored in. Each is a pack in ~/.local/share/clackatoo/languages (or $XDG_DATA_HOME/clackatoo/languages).

  • list lists the languages clackatoo knows where to get, with where each comes from, marking those installed and naming each one's language server, then any other packs installed.
  • install downloads each language's grammar and highlight queries, with curl, from the grammar's own repository, at the version clackatoo was tried with, and checks each file is exactly what was tried. Then it installs the language's server, unless it's on PATH, --no-servers is given, or clackatoo can't install it (it says how to). --all installs every language list lists. Installing one again replaces it, and a language once declined in a window is offered again.

Files opened after a language is installed are parsed in it. A file that was already open is parsed once a window attaches to it again, as when the window is next opened.

web #

clackatoo web password [--unset]

Sets the password devices pair with the web app, asking for it twice, or reading it from standard input if that isn't a terminal. It must be at least 8 characters. Only its hash is written, to web-password in clackatoo's state directory (~/.local/state/clackatoo), which only you can read, never to the config; the daemon reads it when it next starts or upgrades. --unset takes the password away, so devices pair only by asking a window; it takes it out of an old daemon/web.toml not moved yet too, so moving that can't bring it back.

devices #

clackatoo devices
clackatoo devices allow <CODE>
clackatoo devices deny
clackatoo devices revoke <N>
clackatoo devices unlock

Lists the devices paired with the web app, as :devices does. allow lets in the device asking to pair that shows CODE; deny turns down every device asking; revoke unpairs device N, cutting it off if it's connected; unlock lets devices pair with the password again after too many wrong ones locked it. It takes --socket and --remote, as the client commands do.

agent #

clackatoo agent login antigravity

Signs in with Google for Gemini through Antigravity, on the machine whose daemon runs the chats.

bridge #

clackatoo bridge [--replace]

Passes everything on its standard input to the daemon, and everything the daemon sends to its standard output, starting the daemon first if none is running. It exits when either side hangs up. --remote runs it on the other machine through ssh; see another machine.

Option
--replaceReplace the daemon that's running first, as when it's from another build: upgrade it if it can, keeping its terminals, or else stop it, closing them.

open #

clackatoo open [--] [PATH]...

Opens files and folders in the window, as a file manager's "Open With" does, and as the file managers' menus do: each folder in a new terminal tab, starting in it, and each file in a new editor tab, one tab each, in order, in the workspace last used (or a new one, if there's none). The window you used last then switches to the last of them and comes to the front, at most once a second, so that nothing can keep taking the focus. With no window open, one opens on it, in the process of windows if one is running, at once. With no paths, open opens a window, as clackatoo alone does.

Put -- before the paths, so one starting with - isn't taken for an option. A relative path is from the current directory. Paths are taken byte for byte, never through a shell, but the daemon takes only UTF-8 paths: one that isn't is said, and left out, and the rest opened, and open then fails.

The window chosen is the one on this machine whose user was there last, even if you've since gone to the file manager, so with several windows open, only that one switches. A window on another machine, through --remote or :connect, never does, nor a phone. And only something on this machine can ask: the daemon refuses another machine's daemon or window, and a phone.

open passes on the token the desktop launched it with: a window it opens takes the focus with it. A window already open comes to the front on X11, and on GNOME; other Wayland desktops might only show that it wants attention, as a window can't use a token once it's open, and the launcher might show a busy cursor until it gives up on one.

Client commands #

The other commands talk to a running daemon. Each accepts:

Option
--socket <PATH>Connect to this socket instead of the one in your runtime directory.
--remote <HOST>Use the daemon on another machine (host, user@host, host:port, or a name from your ssh config), through ssh, starting it there if it isn't running. See another machine.
--remote-command <COMMAND>With --remote, the command that runs clackatoo there. Default: clackatoo, or CLACKATOO_REMOTE_COMMAND.

Terminals are named by the number new prints and list shows. Numbers are never reused while the daemon runs.

list #

clackatoo list

One line per terminal: its ID, the PID of its program (- for a chat, which has none), its size, its status (running, exited (<code>), or killed (signal <n>)), and the window title its program set.

new #

clackatoo new [--size <COLSxROWS>] [--cwd <DIR>] [--record <FILE>] [-- <COMMAND>...]

Starts a terminal and prints its ID.

Option
--size <COLSxROWS>The terminal's size, like 120x40. Default 80x24. Each dimension must be between 1 and 4096.
--cwd <DIR>The working directory. Default: the current directory.
--record <FILE>Write everything the program prints to FILE, as a recording. The path is on the daemon's machine.
-- <COMMAND>...The program to run, and its arguments. Default: the daemon's $SHELL, or /bin/sh. A $SHELL that starts another shell rather than becoming it, as sh -c fish does, gets nothing typed into it by clackatoo (see keeping a terminal running): set it to the real shell.

What a program sees in its environment is described in terminal emulation.

bg #

clackatoo bg [--workspace <NAME>] [--cwd <DIR>] [--size <COLSxROWS>] -- <COMMAND>...

Starts the command, its words joined with spaces, in a new background tab of a workspace, and prints its terminal's ID, for capture and the rest. It's typed at a new shell's prompt, as you would type it, so the shell's marks say when it runs and how it ends, and it shows in the window's list of background tabs, out of the tab bar. A workspace from another machine can't have one started.

Option
--workspace <NAME>The workspace, by its name. Default: the one last used.
--cwd <DIR>The directory the shell starts in. Default: the current directory.
--size <COLSxROWS>The terminal's size, like 120x40. Default 80x24.

keep #

clackatoo keep <TERMINAL> [restore|always|off]

Marks the terminal to keep running the command its shell runs, or ran last, as its shell said: restore, the default, runs it again by itself as the daemon starts afresh; always also runs it again as it ends; off takes the mark away. It says what it keeps running, or why it can't, as when the shell hasn't said what it ran.

trust #

clackatoo trust [FOLDER]
clackatoo trust --list
clackatoo untrust [FOLDER]

Trusts the folder, the current directory if there's none, to run its language servers, which might run its code, as :trust does: those of its files open start at once, and its files aren't asked about. Chats there load the project's skills and specialists too. A folder is trusted with everything inside it, but for any folder inside it marked not trusted. untrust marks it not trusted, stopping its servers, and it isn't asked about again. --list lists the folders marked, a line each. An agent's run_in_terminal and run_in_background refuse a command running clackatoo trust, as they do clackatoo keep: a guard against mistakes, not a boundary, as anything that can run commands as you can run this.

edit #

clackatoo edit [PATH]

Edits the file at PATH, or shows the folder's listing, from the current directory, which is the folder shown if there's no PATH, in a new tab of the workspace last used, or in a new workspace if there are none: the daemon's own, never one shown from another machine. A file already being edited gets another pane on it. The window doesn't switch to the new tab; open does.

files #

clackatoo files [PATH]

Shows the folder at PATH in a file explorer, as a tree, in a new tab of the workspace last used, or in a new workspace if there are none: the daemon's own, never one shown from another machine. With no PATH it shows the current directory. A relative PATH is from the current directory here, even with --remote, as for edit; one starting ~ is from the home directory of the daemon's machine, so with --remote it's the other machine's. Put -- before a PATH starting with -. A file, or a folder that isn't there, makes no pane, and says why. The window doesn't switch to the new tab; open does. clackatoo edit DIR shows a folder too, but as an editor's listing, not a tree.

run #

clackatoo run <TERMINAL> <WORDS>...

Types the words, joined with spaces, into the terminal, then presses Enter (a carriage return, \r).

send #

clackatoo send <TERMINAL> <TEXT>

Types TEXT exactly as given, without pressing Enter. To send control keys, use your shell's escapes: \e (Escape) or \r (Enter) in fish, $'\e' in bash. Fails if the terminal's program has exited.

capture #

clackatoo capture <TERMINAL> [--ansi]

Prints what the terminal is showing: one line per row, without trailing spaces or trailing blank lines. With --ansi, colors and attributes are kept as escape sequences, so printing the result in another terminal reproduces the screen. A terminal whose program has exited still shows its last screen.

resize #

clackatoo resize <TERMINAL> <COLSxROWS>

Changes the terminal's size, such as clackatoo resize 1 120x40. Its program is told (the kernel sends it SIGWINCH), and lines on the screen are rewrapped to the new width. A recording started with new --record stops here, because a recording has a single size.

close #

clackatoo close <TERMINAL>

Closes the terminal and forgets it. Its program is hung up (sent SIGHUP by the kernel), as when a terminal window closes.

ping #

clackatoo ping [--count <N>] [--interval <MS>]

Times how long the daemon takes to answer, and how long a key takes to come back from a program, which is most useful with --remote. It starts a terminal of its own running cat, and for each round:

  1. waits, then times a request that does nothing, which is what the connection costs;
  2. waits again, then times a key, from sending it to the update that shows cat's echo, which is what typing costs.

With --remote, each round also says whether it went over UDP or through ssh. To the same machine, where the network costs next to nothing:

$ clackatoo ping --remote localhost --count 5
connected to localhost in 146.1 ms
PING localhost: a request, then a key echoed by cat
round 1: request 0.168 ms, key echo 0.216 ms (over UDP)
round 2: request 0.147 ms, key echo 0.226 ms (over UDP)
round 3: request 0.158 ms, key echo 0.187 ms (over UDP)
round 4: request 0.147 ms, key echo 0.187 ms (over UDP)
round 5: request 0.151 ms, key echo 0.178 ms (over UDP)

--- localhost ping statistics ---
request   min 0.147 ms, median 0.151 ms, p90 0.168 ms, max 0.168 ms
key echo  min 0.178 ms, median 0.187 ms, p90 0.226 ms, max 0.226 ms

The connection time includes ssh signing in. When it's done, ping closes its terminal.

Option
-c, --count <N>How many rounds. Default: 10.
-i, --interval <MS>The wait before each request and each key, in milliseconds. Default: 200. The first message after a pause is the slowest, because whatever carries it has to wake up, and typing always has pauses, so a short interval flatters the result.

--soak keeps the connection open until Ctrl+C, typing into a terminal every -i milliseconds, and logs each echo's time and every drop, reconnect and its reason: for watching a bad network over hours.

Edit this page