What's New
Release notes for K2. Updates are published to GitHub.
v0.46.17
Latest0.46.17 — Read-only calendar links, live documents that save in groups, and agents that report only with your yes
Command line
--options splits on ;, never on a comma. k2 thread ask and k2 tickets ask read --options "No, the clean-up is enough; Yes, rewrite it" as two choices, commas kept in each. A value with commas and no ; stays one choice, and the command says so in one line: --options splits on ';'; this became one option. Use ';' between options, or repeat --option. The repeatable --option "…" (now on k2 tickets ask too) is still the easiest way. K2's server reads a card's options the same way, so an older k2 that sends a comma list gets one choice, not several.k2 command from Codex now runs only in a tab K2 opened with Codex's own server, where no other tab's Codex can run it. In any other K2 tab (one from before this update, codex typed in a tab's shell, or under a Codex server another tab started) it sends nothing and exits 3 saying to reopen the tab from K2; k2 help and --help still work there. In your own terminal outside K2, and on a server with session passports off, nothing changes.k2 command from Codex comes from its own tab's conversation. A command that carries a Codex tab's passport is refused, with a line saying what to do, when it names another conversation or none, or (on the tab's own socket) when it runs outside that tab. A Codex older than K2 supports is refused; one newer than K2 has tested works when its own log confirms the conversation, and the K2 daemon logs one warning line for that version. After /new or /clear, commands work again as soon as Codex has started the new conversation's log. - If the new Codex conversation check gets in your way, a server's owner can turn it off for now by starting the daemon with K2_CODEX_PASSPORT_BIND=0. The switch is temporary and goes away in a later release.
- Known limit: K2's agent hook reports (/hook/complete, /hook/event) are not part of this check; they keep their own checks of the tab and of the process that sends them.
k2 vault run gets its secrets, not your identity. The session's passport reaches K2's run helper on a pipe, never in an environment, and the command's environment holds no K2 passport or token. A k2 the command runs refuses with exit 3 and says to run it outside vault run. In your own terminal and an agent's own shell, k2 works as before. k2 vault run needs the K2 daemon of this release; an older one is refused with a line saying to update it.k2 db --help says plainly where k2 db run puts the connection string. It is in the command's environment, password included, as DATABASE_URL (or the name you give with --as), so the command and anything it starts can read it; it is never on a command line, printed or logged.k2 db browse (or k2 db list --all) names every database on the server with its owner workspace and the Apps that use it, never a DSN. k2 db request-read --db (or --app , or k2 app db connect --read-only ) puts a card on its Thread for an owner or admin; Allow gives that workspace read-only access to exactly that database, as k2 db grant --db --level read does, and Deny changes nothing. --assign asks one person, k2 db requests shows where each ask is, and once allowed k2 db dsn --db is the read-only DSN.k2 db grant and k2 db revoke now cover tables in the public schema. On Postgres 15 and later, a read or write grant gave nothing on those tables, which is where migrations put App tables. Existing read and write grants now also cover the public schema's tables, from the database's next migrate, restore, upgrade or grant. K2's own _k2_* tables are never granted, and a database's own agent login can read its migration history but no longer change it.k2 db revoke now removes every right a workspace held on a database's public tables, including default privileges an older K2 set; K2 also clears any such leftover rights once, on its first start after the upgrade.k2 send-feedback, k2 compute, k2 app, k2 doc, k2 read, k2 msg and the browser opener among them) and goes on over loopback when that socket fails sends the session's passport there. A session with no passport sends nothing and says so. While the socket works nothing changes, and in your own terminal outside K2 commands act as you, as before.k2 done or other change could reach K2 twice. It now asks curl itself whether the connection opened. A request whose connection never opened is still tried again, and a change it can't be sure about is never sent twice.ps can't run, a request that fails no longer prints a second line. Some sandboxes and restricted users can't run ps on macOS. There, a request K2's server never answered printed its own error and then a second line: Expecting value: line 1 column 1 (char 0), or No items. from k2 inbox. The command line now uses pgrep when ps is refused. With neither, a command in its own process group (as a terminal starts it) still ends with only the error line. Nothing changes when a request is answered.k2 heartbeat wake says why when it can't run, instead of reporting nothing to do. When the inbox check fails (K2's server refuses it, answers with an error or with something that isn't JSON, or can't be reached), the command prints one line naming the reason and exits non-zero: 3 for a refusal you can ask for, with its Ask with: line, and 1 for the rest. "noop" still means the server answered and there is no inbox work. It also sees the workspace inbox again: it asked a route retired in 0.39, so a new item waiting in the inbox never woke the manager. It now reads the current inbox, and an item nobody has filed yet counts as work. When it can't read which sessions are running, before a launch or while it waits for the launched manager, it stops the same way instead of taking the manager as asleep and launching one. While it waits, a server that is restarting or still migrating is asked again until the minute is up, and only then is it an error. And it says "notified" or "launched" only when K2's server took the triage message or the launch; one that fails gives its error the same way. Those lines now print on their own, without the server's raw answer glued in front. It also runs in a workspace or home folder whose path has a quote in it; before, the check stopped there before it asked anything.k2 heartbeat log says why when it can't show the log. When K2's server refuses it, answers with an error or with something that isn't JSON, or doesn't answer, the command prints one line naming the reason and exits non-zero: 3 for a refusal you can ask for, with its Ask with: line, and 1 for the rest. Before, it printed the raw answer or nothing and exited 0. The table itself is unchanged."airgap": true in K2's settings, k2 daemon install, k2 connect login, k2 tunnel enable and the other commands that reach hosted services refuse on a server with no python3, the same as on one with it. A settings file that can't be read, or an airgap value that isn't true or false, refuses too and says why.k2 update --help prints the update usage and sends nothing (before, it asked GitHub for the latest release). It needs no running daemon.-h or --help anywhere on k2 api and k2 api-key prints help and changes nothing. Before, k2 api on -h turned the public API on and k2 api-key revoke -h revoked the key. Now every one of their commands (on, off, status, create, list, hire-ceiling, revoke, disable, enable) prints its usage on stdout, exits 0 and sends no request when -h or --help is anywhere in it. The usage text is unchanged.-h or --help anywhere on k2 board prints the board help and changes nothing. Before, only a first word of -h or --help printed it, and k2 board add --help added a sticky with a field "help". Now every k2 board command, on a Garden board or a .k5board file, prints the help on stdout, exits 0 and sends no request when -h or --help is anywhere in it.-h or --help anywhere on k2 voice prints the voice help and changes nothing, even after a flag that takes a value. Before, k2 voice leave --call --help left the call and k2 voice join lounge --call -h joined the room: the flag took --help or -h as its value. And a k2 voice usage error is one line of valid JSON whatever it quotes: a quote or backslash in a flag or a command no longer breaks it.-h or --help anywhere on k2 tunnel prints the tunnel help and changes nothing. Before, k2 tunnel stop -h stopped the tunnel, k2 tunnel start --help and k2 tunnel enable -h started it, and k2 tunnel release --confirm --help unpaired this device; only a first word of -h or --help printed the help. And k2 connections help prints the connections help with exit 0, as k2 connections --help does (it printed the usage and exited 1).-h or --help anywhere on k2 app grant hooks prints its usage and changes nothing. Before, k2 app grant hooks retry -h retried the row, skip -h skipped it and reconcile -h started a reconcile. The usage line now prints on stdout, like every other help.k2 help and the pages that name permission cards ask the server two quick questions; each now gets one try of at most a second, and the page prints in full either way. With the server stopped, k2 help took several seconds while it retried.k2 app --help prints the App page on stdout. It printed the page on stderr with nothing on stdout, so k2 app --help | less showed nothing. k2 app grant --help prints on stdout too. The text is unchanged, and a usage error still prints it on stderr.-h or --help anywhere on k2 hooks prints the hooks help and changes nothing. Before, k2 hooks install -h ran the hook installer, k2 hooks uninstall -h removed K2's hooks and k2 hooks status -h asked for the status, and k2 hooks -h printed the usage as an error (exit 1). The help now prints on stdout with exit 0, and needs no connection to K2. k2 hooks emit -h keeps its own help.k2 hooks install and k2 hooks uninstall say so when K2 answers with an error. They print Error: and the reason on stderr and exit 1, or 3 for a refusal, with its Ask-with line. Before, the error line was thrown away and the raw answer printed with exit 0, so a refused install looked like a success.k2 hooks status says so when K2 answers with an error, as k2 hooks install does: Error: and the reason on stderr, exit 1, or 3 for a refusal, with its Ask with: line. Before, it printed K2's raw answer and exited 0, so a refused status looked like one.k2 hooks install --json and k2 hooks uninstall --json fail on an error answer. They print K2's answer as it came, as before, and now exit as they do without --json: 1, or 3 for a refusal, with its Ask with: line on stderr. Before, they exited 0 whatever K2 answered, so a script couldn't tell a refused install from a done one.k2 hooks status --json fails on an error answer too. It prints K2's answer as it came and exits 1, or 3 for a refusal with its Ask with: line on stderr; before, it exited 0 whatever K2 answered.k2 hooks status --limit takes a number only. A --limit or -n with no value, or with one that isn't digits, prints Error: --limit needs a number and exits 2, sending nothing. Before, a missing value stopped with a shell error, and any other word went into the request as typed.k2 heartbeat status --limit takes a number only, as k2 hooks status --limit does. A --limit or -n with no value, or with one that isn't digits, prints Error: --limit needs a number and exits 2, sending nothing. Before, a missing value stopped with a shell error, and any other word went into the request as typed.k2 msg --signal --payload '' sends an empty payload on a Mac too. macOS's built-in bash sent the text {\} instead; a msg or status signal now carries empty text there, as on Linux.-h or --help anywhere on k2 app install --catalog prints the catalog help and installs nothing, even after a flag that takes a value. Before, k2 app install --catalog --address --help started the install with --help as the address. A flag that takes a value (--catalog, --address, --id, --variant, --version, --workspace, --domain) as the last word is now a usage error (exit 2) that names it.-h or --help anywhere on k2 app catalog prints the catalog help and sends nothing, even after a flag that takes a value. Before, k2 app catalog retry --app -h retried the job and k2 app catalog job --app -h asked for an App named -h. A --id or --app with no value after it now says usage: --id needs a value (k2 app catalog --help) and exits 2; before, it exited 1 with no message.-h, --help or help anywhere on k2 app approve and k2 app push devices rm prints the help and changes nothing. Before, only the first word was read: k2 app approve -h looked up the request and asked for your confirm, and k2 app push devices rm -h removed the phone.k2 app commands, the word help before -- shows help and is never read as a name; give a name that is literally help after --. Before, a trailing help was taken as the App, request or login: k2 app deny help denied a request named help, and k2 app pairing off help turned pairing off for an App named help. -h now prints the help on the k2 app pairing, push and email verbs that refused it, and k2 app deny -h prints on stdout like every other help page.k2 terminal write --agent with no name is a usage error. It prints Error: --agent takes a value and exits 2, sending nothing; before, it sent the word --agent to the terminal as the message.k2 sessions compact works on Linux. It read each segment's size in a way only a Mac's tools understand, so on Linux it stopped with a shell error before printing its counts. It now reads sizes the same way on every system.k2 sessions compact prints valid JSON for any session id. A quote or a backslash in the id is now escaped in its one-line answer, so a JSON reader takes it.k2 explain MPC-E… asks the docs kit, never a file. A Markdown kit id went to k2 doc explain, which took the id as a document's path: a file of that name in the folder you ran it from was opened as the document. It now asks K2's server for the kit's own explain, sends no path and reads no file.k2 explain MPC-E… works with Board files off. Explaining a docs kit id is documentation, so it no longer waits on the Board files preview: it asks the server's own read for the kit's explain, which any agent may use, and gets the same page. Against an older server that doesn't have it yet, it says so in one line and asks you to update the server.k2 read , and k2 workspace launch, sent an empty Authorization: Bearer line there; with no passport it now sends no Authorization line at all, as k2 done already does, and with a passport the line is unchanged.-h or --help anywhere on k2 msg prints the msg help and sends nothing, in every form. Before, k2 msg --signal --help sent the signal, and a flag that takes a value (--signal, --payload, --from, --title) took --help as its value. The --inbox-wake, --inbox-silent and Postal forms now print the same help too, instead of an unknown-flag error. The help text is unchanged.-h or --help anywhere on k2 vault fetch prints the fetch help and sends nothing, even after a flag that takes a value. Before, k2 vault fetch --secret A --json --help sent the fetch with --help as its body; -d, -H, -o, -X, --dst, --fmt, --max-bytes and --timeout took --help as their value the same way.-h or --help anywhere on k2 terminal spawn and k2 terminal read prints the usage and does nothing else. Before, k2 terminal spawn --command ls -h spawned the terminal and k2 terminal read -h read it.-h or --help anywhere on k2 fed prints the usage and changes nothing. Before, k2 fed enable --help turned federation on and k2 fed send -h sent the message.-h or --help anywhere on k2 review prints the review usage and sends nothing. Before, k2 review approve -h , reject -h and feedback -m -h sent their request.-h or --help anywhere on k2 skills prints the usage and changes nothing. Before, k2 skills create -h created the skill, remove -h removed it and regenerate -h regenerated them all.-h or --help anywhere on k2 commit prints the usage and commits nothing. Before, k2 commit -h asked for an AI commit.-h or --help anywhere on k2 approve prints the usage and changes nothing. Before, k2 approve cancel -h cancelled the request and k2 approve agents on -h turned it on. verify, show and key-id keep their own help.-h or --help anywhere on k2 publish prints the help and changes nothing. Before, k2 publish subdomain claim acme -h claimed acme, and k2 publish subdomain claim -h and k2 publish subdomain create -h --target took -h as the label. The publish usage prints as k2 publish --help prints it; status, secret, env and subdomain list keep their own help. Help needs no connection to K2: on a computer where K2 isn't running it still prints, instead of Error: Cannot connect to K2.k2 publish subdomain label can't begin with -. claim, unclaim, create, point, target and rm refuse one as an unknown flag (exit 2) and send nothing; before, create -x --target checked and created the label -x.k2 daemon prints the daemon's status, as k2 daemon status does. Before, it printed nothing and exited 1.k2 ci signer add and k2 zen data restore. k2 ci signer add ... --hello or --out with nothing after it prints the add usage and exits 2; before, it stopped with exit 1 and printed nothing. k2 zen data restore ... --rev (or --at, --snapshot, --prefix, --except) with nothing after it says Error: --rev takes a value and exits 2; before, it never ended. Neither sends anything.k2 msg ws hi --from, k2 talk ws hi --lines, k2 thread bob --limit, k2 compute run --tag, and the rest of msg, talk, thread, compute, workspace, agent, vault, app, publish, inbox, heartbeat, mail and the other verbs) stopped with exit 1 and printed nothing, or printed bash's own $2: unbound variable line. Each now says Error: takes a value and exits 2. A flag that already checked its value keeps its own line.-h or --help anywhere on k2 desktop prints the desktop help and changes nothing, even after a flag that takes a value. Before, k2 desktop open --display --help opened the desktop and k2 desktop start --size -h asked for a start: the flag took --help or -h as its value. The same held for --desktop, --timeout, --open, --workspace, --since, --limit and --hide-app.k2 daemon status --json is valid JSON whatever its values hold. A quote, a backslash or a newline in a value (a home folder in the log path, the port file, the daemon's answer) is escaped; before, it broke the JSON. Plain values print exactly as before.-h or --help anywhere on k2 ci signer prints the ci help and changes nothing. Before, only the word after signer was read, so k2 ci signer remove -h removed the signer, and finish and reveal sent theirs. No k2 ci signer command takes a --: one is a usage error that sends nothing.-h or --help anywhere on k2 inbox prints the inbox help and changes nothing. Before, only k2 inbox -h printed it: k2 inbox delete -h deleted the item, archive -h and move -h sent theirs, and compose --title -h composed the item. After --, k2 inbox respond -- --help still sends the text --help, as typed.k2 reviews never reads your stdin. When K2's answer can't be read it prints one error line and exits 1; before, it copied your own input to its output, and at a terminal it waited for you to type.k2 daemon uninstall stops the daemon before it removes its files, and k2 daemon start starts it. Before, uninstall deleted daemon.port and daemon.token and left the systemd unit running, so k2 could no longer reach a daemon that was still up. Now it finds the unit the way k2 daemon status does. A user unit is stopped and disabled, and the files go only once systemctl --user is-active says it is down; a stop or disable that fails, or a unit still running, removes nothing and says so. A system unit needs root: uninstall prints the two sudo systemctl lines to run, then to run it again, exits 1 and removes nothing. k2 daemon start looked only for the macOS launch agent; on Linux it now starts a user unit, prints the sudo systemctl start line for a system unit, and says to run k2 daemon install when there is no unit. macOS is unchanged.-h or --help anywhere on k2 daemon prints help and does nothing. Before, k2 daemon survive on -h and survive off --help changed the setting, on macOS k2 daemon start -h loaded the launch agent, and k2 daemon uninstall -h asked and then uninstalled. Now every k2 daemon command but install (which has its own help) prints the daemon usage on stdout, exits 0 and makes no service call, request or prompt; survive prints its own help. Help needs no connection to K2. k2 daemon uninstall takes --yes or -y anywhere on the line, not only first. And k2 daemon restart --host or --token with no value after it says Error: --host takes a value and exits 2; before, it exited 1 with no message.k2 daemon log --tail or -n with no number after it says so. It prints Error: --tail takes a number (or -n) and exits 2, showing nothing; before, it stopped with a shell error.k2 update, k2 update --app and k2 update --list respect air-gap and need no running daemon. They only ask GitHub, so with air-gap on they refuse before any request, as k2 daemon install does, and on a server with no daemon connection they still show the versions.k2 update and k2 update --list say so when GitHub can't be reached. They print one line, Error: couldn't reach GitHub (...) with curl's reason, and exit 1; before, they stopped with no message. The request gives up after 30 seconds.k2 daemon install --version and the headless installer take the release with or without its v. --version v0.46.7 and --version 0.46.7 install the same release, with k2 daemon install and with install-daemon.sh (its --version or K2_VERSION); before, the v form asked for a release that doesn't exist.k2 setup and its verbs (hide, show, skip, kessel, dismiss-offer, chief-of-staff) send the session's passport from inside an agent's terminal. In your own terminal they act as you, as before.k2 setup --json chief-of-staff is the same locked tool as k2 setup chief-of-staff: it sends the session's passport, and without one it is refused before anything is sent. Tools named by a second word (k2 agent team, k2 setup chief-of-staff, k2 desktop env) now also refuse a stale passport, or one from a shared Codex app-server, with the same clear error as other locked tools.k2 connect status reads its files as data. Nothing in the pairing file runs, and the paired subdomain prints exactly as it is saved there.k2 connect status keeps a renewed passport. In a K2 terminal, once its first request picks up the passport K2 renewed for the session, the tunnel status request sends that one too.k2 connect status prints (none) when nothing is paired, without the quotes it printed before.k2 connect status shows the saved account's own email. The account file is read field by field, so a token with a line break in it can't put another value in the email's place; k2 connect login --token and k2 connect logout read it the same way.k2 connections add and k2 connections remove print their errors on stderr. Stdout carries only the result line; the exit codes are the same as before.k2 study auth, told the owner to set the tool Open in Settings → CLI Tools. There is no such setting: which tools need the session's passport is fixed, and the daemon decides every request. The refusal now says to run the command from a K2 agent session that carries its passport.k2 api-key create --hire keeps its confirm token out of other programs' view. The token from your confirm now reaches the request on a pipe, never in a helper program's environment, where other programs of the same user could read it. A confirm token is what keeps a person-only step person-only.k2 mail link add --pass-stdin, k2 hostmail config --relay-pass-stdin and k2 hostmail import --pass-stdin, and the secret of k2 mail oauth-config set --secret-stdin, now reach K2's mail helper on a pipe, never in its environment, where other programs of the same user could read them.k2 users add, k2 users set-password, k2 users pair-phone and k2 connect login now reaches the request on a pipe, never in a helper program's environment.k2 clone keeps the other server's token to itself. The token for --host now reaches only the helper that talks to that server, on a pipe; before, every helper program the command started could see it in its environment.k2 hostchat open keeps the one-time owner link out of other programs' view. The browser opener now gets only the path of a small page in a private folder that only you can read, and that page takes the browser to the link. The page is removed 30 seconds later, and any page an earlier run left behind is removed the next time you run it. k2 hostchat open --print is unchanged.k2 hostchat recording policy runs again. It showed and changed nothing: every use was refused as an unknown or unexpected word. It now shows the server's recording policies and, with set KEY VALUE, changes them (in person, with a confirm), as its help says. -h or --help anywhere on a k2 hostchat recording line, also before the verb, prints its help and sends nothing, and that help now describes recording policy, app-space recording and app-space recording-lock (it showed only the recorder's part).k2 hostchat owner-sessions lists the sessions the owner's sign-in links opened, and k2 hostchat owner-sessions end or end --all ends them, with this computer's check. Agents can't use it.k2 app user add --password-stdin and k2 app user password --password-stdin now reaches the request on a pipe, never in a helper program's environment.k2 app user add --test --password-stdin and k2 app user password --test --password-stdin now reaches the request on a pipe, never on a helper program's command line or in its environment.k2 vault recovery show-once and k2 vault recovery rotate ask you to type back now reach the confirm request on a pipe, never on a helper program's command line.k2 connect login keeps your tunnel token out of other programs' view. The subdomain's tunnel token now reaches K2 on a pipe, never in a helper program's environment.k2 tunnel switch takes the tunnel token on stdin. --token-stdin reads it from stdin, so it is never on the command line, where other users on the machine can see it. --token still works.k2 llm tokens add and login stays out of other programs' view. It now reaches K2 on a pipe, never on a helper program's command line.k2 fed pair-join, pair-finish and pair-verify take the pairing token on stdin. --token-stdin (or -) reads it from stdin, so it is never on the command line, where other users on the machine can see it; the token as an argument still works, and each step's next-step line names --token-stdin.k2 read @ takes the remote token on stdin. --token-stdin reads it from stdin, so it is never on the command line, where other users on the machine can see it. --token still works.k2 daemon restart --host takes the token on stdin. --token-stdin reads it from stdin, so it is never on the command line, where other users on the machine can see it. --token and --token= still work.k2 talk @ takes the remote token on stdin. --token-stdin reads it from stdin, so it is never on the command line, where other users on the machine can see it. --token still works.k2 remote-session takes the owner or grant token on stdin. Every subcommand that takes a token (status, enable, disable, grant, grants, revoke, shell, write, read) now has --token-stdin, which reads it from stdin, so it is never on the command line, where other users on the machine can see it. --token still works, and the help, the next-step lines after shell and the docs name --token-stdin.k2 compute node servers add keeps the pairing code out of other programs' view. The code now reaches K2 on a pipe, never in a helper program's environment or command line.k2 compute node servers add takes the pairing code on stdin with --code-stdin. It reads the code from stdin, so it is never on the command line, where other users on the machine can see it. --code CODE.FP and --code - still work.k2 ci signer add takes the pairing code on stdin with --code-stdin. It reads the code from stdin, so it is never on the command line, which every user on the computer can see. A code given as still works, with a note on stderr.k2 compute local enable takes the enroll code on stdin with --code-stdin. It reads the code from stdin, so it is never on the command line, which every user on the computer can see. --enroll CODE.FP and --code CODE.FP still work, with a note on stderr.k2 compute local enable takes a one-click ticket on stdin with --ticket-stdin. The ticket is never on the command line; --ticket T still works, with a note on stderr.k2 clone takes the other server's token on stdin with --token-stdin. The token is never on the command line, which every account on the computer can see; --token T still works, with a note on stderr.k2 doc --host takes the server's token on stdin with --token-stdin. The token is never on the command line, which every account on the computer can see; --token T still works, with a note on stderr.k2 connect login takes the k2.dev access token on stdin with --token-stdin. The token is never on the command line, which every account on the computer can see; --token still works, with a note on stderr. The saved account token also reaches K2's helper programs on a pipe, never in their environment.--host, K2_PORT and the saved port must be a number from 1 to 65535; anything else is a usage error (exit 2) and nothing is sent. Before, on Linux, a port above 65535 wrapped around to a different port.k2 workspace list, create, open, launch, profile and update (and k2 agent profile and k2 agent update) send the session's passport from inside an agent's terminal. Except for reading its own workspace's profile, these are a person's commands, so K2 refuses an agent there. In your own terminal they act as you, as before.k2 send-feedback acts with the agent's own pass. Every k2 send-feedback command run inside K2 (sending, list, show, retry, cancel, and reading or changing settings) sends that session's passport. A session with no passport gets one line, exit 3, and sends nothing. In a terminal outside K2 they act as you, as before.k2 agent hire acts with the agent's own pass. Every request a hire makes from inside K2 sends that session's passport. The hire core takes the name, the default tool and catalog context; project membership, connections and the App handover go as the agent, and --onboard is the agent's own message. The steps only a person's routes take (--mode other than custom, --enabled, --color, --focus-group, a --context path, --launch with no --template, --context with one) are refused before anything is sent, with where a person does them. --agent goes as typed (a preset's id, label or command word) and K2's server resolves it. A session with no passport gets one line, exit 3, and sends nothing. In a terminal outside K2 a hire acts as you, as before. - In an agent's session, k2 agent hire only makes a new workspace, and only inside the hire root (k2 agent hire-root). An existing folder or workspace is refused (owner_only), and so is a folder elsewhere (outside_hire_root); a person hires anywhere, as before.
- A hire naming a preset that doesn't exist is refused (usage, exit 2) and writes nothing, whoever asks; the message lists the server's presets.
- In an agent's session, a k2 agent hire with a catalog --context and no --agent finishes and reports what it changed, instead of stopping with a Python error.
k2 postal acts with the agent's own pass. Every k2 postal command run inside K2 (an agent's terminal, or a shell tab in K2) sends that session's passport, so K2 answers it as the agent: reads are the same, claim, invite, enable, link-p5 and accept put a card up for a person, and the owner's steps (disable, admins-may-accept, code, owner-link) are refused, with where a person takes them (the workspace's Postal tab or Settings). A session with no passport sends nothing. In a terminal outside K2 they act as you, as before.k2 workspace triage lists only what K2 lets that agent see: its own workspace's inbox, or a connected workspace's, as k2 inbox list does. It sends the session's passport; a session with no passport gets one line and exit 1. In your own terminal it lists the workspace you are in, as before.k2 workspace profile (and k2 agent profile) works from an agent's terminal for its own workspace, with the answer you get for it. Another workspace's profile is refused (own_workspace_only).k2 workspace profile (and k2 agent profile) with an agent's pass that came in through the tunnel, or whose session is no longer running, is refused (403), as K2's other agent commands are. Your own terminal and the owner token work as before.k2 help-internal, the retired k2 agents running|list|status pointers, the org chart's, the workspace lookup's and the App refusals' not-found hints, and the delegated-work prompt name k2 connections list (the workspaces you can reach and this workspace's live sessions) or k2 organization list instead of k2 workspace list, a person's command. The team skill says a member's profile is changed by a person (k2 agent update).k2 workspace create and open no longer report a success K2 didn't give. An empty answer, one that isn't JSON or JSON that isn't an object is an error that names the route, with exit 1, instead of a blank success with exit 0 (or a silent exit 1).k2 workspace launch, profile and update report K2's errors as errors. A refusal or other error goes to stderr with exit 1, or exit 3 and the permission card's closing line (Ask with: ...) when K2 sends a card, instead of the error's JSON on stdout with exit 0. An empty or unreadable answer is an error too.k2 workspace list, create, open, launch, profile and update print the usual "K2's server didn't answer" line and exit 1 when the server never answers or nothing takes the connection, instead of ending silently with exit 7 or 141.k2 workspace launch launches only a folder K2 named. When K2 can't find the workspace, or answers with no folder, the command says so and exits 1, instead of launching a workspace called "None" or the name as typed.k2 workspace launch and profile name only that workspace. Each request carries the one workspace you named, instead of that one and the workspace you are in.k2 workspace launch reads its flags before its target. k2 workspace launch --json launches the workspace you are in (the answer is K2's JSON either way) instead of looking for a workspace named "--json". --no-attach is refused with exit 2, since launch never attaches a terminal; an unknown flag or a second target is refused with exit 2 too, instead of being dropped.k2 workspace update names its usage errors. --field or --value with nothing after it says which flag needs a value and exits 2, instead of stopping on "$2: unbound variable"; a missing flag or an unknown word is a usage error with exit 2 too.k2 workspace list prints its errors on stderr. An error from K2 or an answer it can't read no longer lands in the table's output.k2 workspace list, create, open, launch, profile and update, and k2 agent update, try the session's own K2 socket first, so a refusal names who does it, ends with the permission card's closing line and exits 3. k2 agent update now reports K2's errors on stderr with exit 1 or 3, instead of exit 0.k2 agent update names its usage errors. --name, --field or --value with nothing after it says which flag needs a value and exits 2, instead of stopping on "$2: unbound variable"; a missing flag is a usage error with exit 2 too..k2so/ to .k2/ rename was still uncommitted, and printed a reminder if it was. Each call from a workspace is quicker, most of all on a Mac.k2 compute get, k2 compute status and k2 compute wait exit 4 when the job doesn't exist, and the other k2 compute commands keep their own exit for not found (3 for most). Before, a variable named _CP_404_EXIT exported in your shell replaced that code, so with _CP_404_EXIT=0 a missing job looked like a success. Nothing changes when it isn't set.k2 compute fetch gets every file of a job that kept many. A job with a few hundred artifacts or more stopped partway with "Argument list too long" and fetched nothing more. Every file now arrives, checked against its sha256 as before; the printed lines, --json and the exit codes are unchanged.k2 msg --signal sends its kind, payload and names exactly as given.k2 remote logout --host ends this computer's session on another K2 server. It sends the token k2 talk would use for that server, or one from --token-stdin, in a header and never on the command line. After the server answers, the saved copies of that token here go too (connect-tokens.json and the keychain); a different saved token stays. A refusal or no answer keeps everything and exits non-zero. It can't revoke an owner token (a restart of that server's daemon does), and the server answers the same whether or not it had the session.k2 and k5 commands as a Rust program. Off by default. The owner turns it on in Settings → General → Server → Advanced, and the commands then run the new k5 program instead of the shell script. It answers the commands itself: of the 104 command families k5 cli status lists, 96 are its own code, and for the other 8 (k2 app, k2 chat, k2 mail, k2 hostmail and the four help commands) it answers each verb itself. A command line it doesn't take goes to the shell script, so it works as before; k5 cli status shows who answers each family and verb. With K2_HOST=https:// and your proxy set, it reaches that daemon through your http:// proxy in a tunnel, as the shell script does: the token goes only inside the tunnel, a host listed in no_proxy is reached directly, and a proxy setting it doesn't read is refused with one line and nothing sent. Where it reaches another K2 server itself (k2 remote logout, k2 connect login, k2 connect logout, k2 daemon restart --host), a send that would go through a proxy is handed to the shell script. On macOS and Linux. Not on Windows yet: Windows keeps the shell script. The k5 program comes with the macOS app, and on Linux with the Arch package and install-daemon.sh; the Linux app packages (deb, rpm and AppImage) and k2 daemon install keep the shell script for now.k2 doc sends a value that looks like @int:5 or @text as the text you typed, and never sends an empty change.k2 done escapes the agent name. A name with #, &, =, %, a space or + in it (from --agent or K2_AGENT_NAME) no longer marks the wrong agent done, drops --blocked, or adds a parameter of its own: K2 gets the whole name as typed.K2_CONNECT_BASE with no https:// in front (say cp.example.com) is refused with exit 2 and nothing sent; before, the tunnel token could go out unencrypted. k2 talk @ , k2 read, k2 remote-session, k2 doc --host and k2 daemon restart --host refuse plain http:// to anything but this computer (127.0.0.1, [::1] or localhost, as written) the same way. Requests to this computer never go through a proxy, K2 Connect's included.k2 daemon restart --host with no https:// in front is now refused. A bare name such as k2.example.com went over plain http with the owner token; write https://k2.example.com, or http://127.0.0.1: for this computer.HTTPS:// in capitals now works in k2 talk @ , k2 read, k2 remote-session and k2 doc --host; before, it was taken as a name.K2_HOST set to a name or address that isn't this computer, the owner token crosses the network unencrypted. It still works, and each command that talks to that daemon prints one line first: warning: k2 is sending this server's owner token to over plain http, unencrypted. That's fine on a private network such as a tailnet; elsewhere use https. We recommend a tailnet (a Tailscale address or *.ts.net name prints no warning) or https: K2_HOST=https:// reaches a daemon behind K2's TLS or K2 Connect. K2_PLAIN_HTTP_OK=1 silences the line. A password or key never goes there, whether it comes from a flag, a prompt or a pipe: k2 users add, k2 vault set, k2 llm tokens add-key, a site PIN and the other commands that send one to that daemon refuse with exit 2 before they ask or read anything. Prompts whose secret goes only to this computer's vault socket, such as the vault password of a confirm, k2 vault confirm-password set and k2 vault restore, still ask: nothing of theirs travels over http.k2 compute fetch never writes through a link inside --out. A link on an artifact's path is refused (artifact_path_unsafe, exit 3).k2 ci evidence and k2 ci provenance write only inside --out. A name in the answer that is absolute, has a .. part, or goes through a link is refused (ci_name_unsafe, exit 3), and nothing is written.k2 workspace remove --apps handover: says when the handover waits for the owner. When the owner must approve the handover first, the command prints the server's note on the waiting approval and that the workspace is not removed yet: it keeps its Apps until the owner approves, and you run the same command again after that. It exits 2 (held), as k2 app release does. The owner at a terminal outside K2 approves each card there and the removal goes on. Before, it printed {"error": "error", "hint": "None"} and exited 3.k2 workspace remove --apps refusals point at the fix, as k2 app release refusals do: when the release of the workspace's Apps is refused, the refusal line also carries next and explain, followed by a fix: line. Exit codes are unchanged.k2 heartbeat wakeup --edit works with no EDITOR set. When the wakeup file didn't exist yet, it stopped on "EDITOR: unbound variable" before opening anything. It now opens vi, as it already did when the file existed, and its note names vi.k2 follows no redirect from a K2 daemon. A daemon that answers with a 3xx is refused with one line naming where it pointed, and nothing is sent there; your token or password never goes to the new place. If your K2_HOST redirects (for example http to https), set it to the final address.k2 clone refuses an address with a name before an @ (for example https://name@host), on any scheme, before anything is sent. The other server's token still goes over https only, except to a Tailscale address written as one (100.x in 100.64.0.0/10, or fd7a:115c:a1e0::/48), which may take it over plain http because the tailnet is encrypted; a *.ts.net name still needs https, and a password always does.k2 update, k2 daemon install and the install script (install-daemon.sh) follow GitHub's own redirects, and only those. After a repository move GitHub answers the old address with a redirect to the new one; k2 update (and --app, --list) did not follow it and printed Latest: unknown. Now all three follow a redirect to GitHub's own hosts (api.github.com, github.com, objects.githubusercontent.com, release-assets.githubusercontent.com), over https only, at most 5 in a row. A redirect to any other host, to plain http, or a sixth one is refused with one line, exit 1, and nothing is sent there. These requests carry no token. A --manifest-url (or the install script's K2_MANIFEST_URL) off GitHub is fetched as before. The server provisioning script (provision-k2-server.sh) fetches everything it takes from GitHub the same way (install-daemon.sh, the latest release's version, the k2 CLI, frpc, and an older daemon's mail and Postgres helpers), and also follows raw.githubusercontent.com, where a renamed repository's raw files move.k2 connect login says the tunnel is live only when K2 started it. When K2's daemon gave no answer to the tunnel start (it refused the connection, closed it without a reply or sent an empty one), or answered with something that isn't a JSON object, the command printed ✓ live at https://.k2.dev and exited 0. It now prints one error line, Error starting tunnel: no answer from the K2 daemon on /cli/tunnel/start; check with: k2 connect status for no answer, and exits 1. An error answer and one that isn't JSON already ended with exit 1, and still do.k2 mail draft takes --to to change who the reply goes to; the thread stays the same, and --cc and --bcc work as before.--reply-all), not back to you.k2 mail draft delete removes a draft your agent saved. A linked IMAP inbox's draft moves to Trash. A draft your agent didn't save is refused (not_your_draft).--idempotency-key. A slow save can be retried safely: the same key returns the draft already saved, never a second copy.k2 mail link relink signs an inbox in again in place, keeping its access. It's a person's step: it opens the Google or Microsoft sign-in. k2 mail link list shows when an inbox needs it: needs re-link, mail access not granted, or throttled (wait).inbox_busy (exit 2): retry a little later. When the provider throttles an account, K2 pauses its logins and answers inbox_throttled (exit 3): wait, don't re-link.k2 app access checks every value before it changes anything. Before, k2 app access --build on --users maybe turned "Build and run Apps" on and only then stopped on --users with a usage error. Now a --build, --manage or --users value other than on or off, or a bad --core, is a usage error (exit 2) and nothing is sent.k2 app data get's own error lines are valid JSON whatever the path. When the file changes while it is read (data_changed) or the --to file can't be written (local_write), the line on stderr now escapes a " or \ in the App path or the --to path; before, such a path broke the JSON.k2 app key with no sub-verb, or one it doesn't know, prints its usage line. It prints usage: k2 app key mint|revoke|list … (k2 app key --help) on stderr and exits 2; before, it printed the whole App cross-over page there. -h or --help anywhere on k2 app key prints that page on stdout, exits 0 and sends nothing; before, it printed the whole k2 app page on stderr.k2 app key revoke takes one key id and --json. Before, it took the next word as the id whatever it was, so k2 app key revoke --json tried to revoke a key named --json, and it never printed JSON. Now the id can't start with - (a usage error, exit 2, nothing sent), --json anywhere prints the answer as JSON, and -h anywhere prints the help and revokes nothing.-h or --help anywhere on k2 app label prints the page that describes it (the App cross-over page) on stdout, exits 0 and sends nothing. Before, it printed the whole k2 app page on stderr.k2 app data put -h prints the k2 app data help, as k2 app data get -h and the other data verbs do. Before, it printed the App cross-over page.k2 app domain alone prints its usage line on stderr, as an unknown verb does, and exits 2. Before, it printed the whole domain page on stdout and still exited 2. k2 app domain -h and --help print the page on stdout and exit 0, as before.k2 mail draft delete --help prints its own page. It shows the delete usage, its --json fields and the not_your_draft refusal, on stdout with exit 0, and sends nothing. Before, it printed the whole k2 mail draft page.k2 mail link list names a sign-in fix only for an account that needs one. A linked account whose row carries no status no longer gets the line "the provider refused the sign-in"; an account marked "needs re-link" still does.k2 mail link relink or upgrade that runs out of time names the right command to run again. The hint says k2 mail link relink for a relink and k2 mail link upgrade --features for an upgrade; before, both said k2 mail link add --provider …, which starts a new link.k2 app data put never takes -h or --help as its value. Before, k2 app data put --to -h sent the copy with -h as the folder. Now -h or --help anywhere prints the k2 app data help on stdout, exits 0 and sends nothing.k2 app key mint never takes -h or --help as its value. Before, k2 app key mint --scopes users --label -h asked for a key labelled -h. Now -h or --help anywhere prints the help on stdout, exits 0 and sends nothing.-h or --help anywhere on k2 app access prints the page that describes it (the App cross-over page) on stdout, exits 0 and sends nothing, even right after a flag that takes a value, as in k2 app access --build -h . Before, it printed the whole k2 app page on stderr.k2 api off says so when the API stays on. If an environment setting forces the API on, it now explains that and exits 1 instead of reporting off.-h or --help anywhere on k2 agent team, k2 agent instances and k2 agent hire-root prints their help and changes nothing. Before, k2 agent team unlink --help sent an unlink for a link named --help, k2 agent hire-root set --help (or set --help ) set the hire root, and k2 agent instances show --help asked K2 for an instance named --help. Now each of their commands prints the hire help on stdout, exits 0 and sends nothing when -h or --help is anywhere in it, even right after a flag that takes a value.-h or --help anywhere on k2 agent update, k2 agent complete and k2 agent profile prints the agent help and does nothing else. Before, k2 agent update --field --value --help ran the update, k2 agent complete --agent --file -h ran the complete, a flag that takes a value took -h as its value, and k2 agent profile --help asked K2 for the profile of --help. Now each prints the k2 agent help on stdout, exits 0 and sends nothing.k2 publish status exits 0 when your K2 Connect account lists no address for this computer. It printed its two lines ("Not connected …", or "Connected: " with an unknown plan), then a Python error, and exited 1.k2 clone warns about plain http only when it is plain http. With K2_HOST set to an https:// address it said it was sending this server's owner token over plain http; now it warns only for an http address that isn't this computer or a Tailscale address, as before.k5 runs a command through the shell CLI. It said warning: 4 is sending this server's owner token … there (and K2 is sending … from k2 clone); it now says k2, as it does when you run k2 yourself.k2 terminal spawn --sandbox refuses where this computer can't sandbox. Before, it started the session unsandboxed.-h or --help anywhere on k2 onboarding prints the onboarding help and sends nothing. Before, k2 onboarding adopt --help sent an adopt for a file named --help, and scan, defer, start-fresh, later and fresh handed the flag to the shell's cd: an error from cd, or the request sent with cd's own help text as the folder. k2 onboarding --help was a usage error. The new page lists the four verbs; help needs no connection to K2.-h or --help anywhere on k2 migrate status, export-secrets and import-secrets prints the migrate help and sends nothing. Before, k2 migrate status --help asked K2 for the status, and a flag that takes a value took the help word as it: k2 migrate export-secrets --to -h --out sent the export with -h as the move key. k2 migrate approve -h keeps its own line, and an unknown verb is still a usage error.k2 reserve --help and k2 release --help print a short page. Both commands are retiring, and --help or -h anywhere was a usage error ("'--help' is not a path", exit 2). Now it prints what the command does and that a later release removes it, exits 0 and sends nothing, with no connection to K2 needed.-h or --help anywhere on k2 read prints the read help and reads nothing. Before, k2 read --help asked K2 for the terminal of a workspace named --help, and --lines, --agent, --session and --token took the help word as their value. Help needs no connection to K2.k2 reviews --help prints a help page and asks nothing. Before, k2 reviews read no words, so --help or -h asked K2 for the review list. The page says what the list shows and points to k2 review --help; it needs no connection to K2.k2 trust-folders --help prints a help page and changes nothing. Before, k2 trust-folders read no words, so --help or -h told the coding tools again to trust every workspace folder. It needs no connection to K2.k2 glossary --help prints a help page and asks nothing. Before, it asked K2 for the definition of a term named --help. It needs no connection to K2.-h or --help anywhere on k2 setup prints the setup help and changes nothing. Before, k2 setup skip --help skipped a setup step named --help, and a flag that takes a value (--name, --tool, --about, --handle, --focus-group, --attach) took the help word as its value: k2 setup kessel --name -h asked K2 to set up Kessel named -h.-h or --help anywhere on k2 sessions live, archives, compact and set-label prints the sessions help and does nothing else. Before, k2 sessions live --help asked K2 for the live sessions of a workspace named --help, k2 sessions set-label --help set the label to --help, k2 sessions compact --help looked for a session named --help, and k2 sessions archives --help listed the archives. k2 sessions --help needs no connection to K2 now either.-h or --help anywhere on k2 notifications prints the notifications help and changes nothing. Before, only a first word of -h or --help (or one right after email or email address) printed it: k2 notifications email sender resume --help resumed a sender named --help, k2 notifications email relay rm --help removed a relay of that name, k2 notifications email system-sender set|clear|test --help set, cleared or tested the system sender, k2 notifications email status --help asked for the status, and a flag that takes a value took the help word. Help needs no connection to K2.-h or --help anywhere on k2 notify prints the notify help and sends nothing. Before, k2 notify email mute --help muted email notices from a workspace named --help (and unmute unmuted it), and --subject and --text took the help word as their value. Help needs no connection to K2.k2 mail create --help prints the help of k2 hostmail create, where the verb moved, with exit 0. Before, it printed the "moved to k2 hostmail create" error (exit 2). k2 mail create without help, and the other verbs that moved to k2 hostmail, still print that error.k2 terminal read --lines is capped at 5,000 lines (a terminal's whole scrollback), or 10,000 for an older sub-terminal. A larger number returns the last 5,000 (or 10,000) lines, with a note on stderr saying so. k2 read --lines has the same 5,000 cap.Desktop app
Settings
Agents
k2 done, k2 commit, k2 review, k2 reviews, k2 agent complete, k2 agent conf and k2 agent list, k2 agent context list|show|catalog, k2 preset list, k2 activity, k2 tickets list|show, k2 wiki status|index|note, k2 skills list|profile|remove|regenerate, workspace name lookups, and the Zen reads k2 zen validate, status, doctor, the Garden, theme and widget lists, a widget and its errors. Each answers for the agent's own workspace only: naming another workspace is refused (own_workspace_only), and a lookup of another workspace by name (k2 agent conf, name resolution, k2 agent list) reaches only the workspaces it is connected to. Merging the agent's own work is a person's step: k2 commit --merge, and k2 review approve of the agent's own branch (or one whose author can't be told), are refused with a permission card a person can allow; approving another agent's branch in its workspace stays the agent's. A plain k2 commit from an agent's pass is a person's step too, because it starts your default agent preset with the agent's message as its prompt: it is refused with its own permission card, and once a person allows it, the commit runs as before. k2 done and k2 agent complete from an agent's pass record the agent's own name (another name is refused), and a review it makes records it as the reviewer, in the activity feed and in the feedback file k2 review reject and k2 review feedback leave in the other agent's inbox. The pass is taken only on this computer, never through the tunnel. Owner-only commands, and k2 skills create (it writes the workspace's own agent folder), still refuse an agent's pass, and the owner token works as before.k2 tickets ask, list, show, comment, resolve, assign and settings now send the session passport, and K2's server takes it as that agent: it asks in its own workspace and lists, shows, comments on, resolves and assigns its own workspace's tickets only (another workspace's ticket answers as an unknown id). Its comments are always its own words, never a person's answer. It reads the ticket rules but can't change them, and dismissing, planning or reopening a ticket stays a person's step. A session with no passport is refused with one line (exit 3) and nothing is sent.k2 tickets there now sends the session's own pass, which K2's server takes only from a session that runs on this computer and isn't sandboxed, so these agents get a plain refusal.k2 send-feedback settings or k2 setup agent-reports, whether agents may report problems with the K2 command line to Alakazam Labs by themselves, whether they may also report anything else about K2, and which parts of the K2 details they may attach: computer size and free space, the names of settings that are on and counts, which AI tools are installed, failure-looking lines from the last 24 hours, and the end of K2's log. Each part is its own choice and every one is off until you pick it; the versions always go. Reports stay private: only Alakazam Labs reads them, never the public, and you see each one in the Sent tab exactly as it was sent.k2 setup agent-reports (or k2 send-feedback settings). Your own feedback (the button next to Help) works as before.k2 send-feedback settings --agents off|cli|all (on still means cli) and --attach with the parts joined by commas, none or all set what agents may report and attach, and k2 setup agent-reports takes the same two flags; with no flags they show what is set, who answered and when, or "not asked yet". An agent's report takes --scope cli --command "" or --scope platform, and k2 send-feedback list and show print a report's scope. While agents may not report, an agent's k2 help doesn't list k2 send-feedback, and k2 study send-feedback is one line that says it's off and where a person turns it on. A server not yet on this update takes only --agents on|off and says so for the rest.k2 remind "…" --at 15:00 for once, k2 heartbeat schedule add for a repeat, and never the AI tool's own scheduler (cron jobs, /loop, timers), which ends with the session and you can't see. The skill opens with a short table of which command to use when you ask for a reminder, a schedule, a secret, a decision, a file sent to another agent, or a message. k2 remind is in the top-level k2 --help, and k2 study heartbeats (or k2 study reminders) says the same.Language models
agy terminal app (agy --dangerously-skip-permissions), which you sign in to with your own Google account; the old Gemini CLI that the Gemini preset starts now takes API keys only, and the Gemini preset stays for them. New servers and servers that update both get it, right after Gemini; a preset you added for agy yourself, and every preset you changed, stays as it is. Tested in this release: K2 installs agy for you on macOS and Linux, Chat history lists Antigravity conversations and resumes them with agy --conversation , and K2's folder check covers it like any agent. Moving a pinned chat to Antigravity is refused for now. The first time agy runs in a folder it may ask whether you trust that folder; K2 doesn't answer that for it yet.k2 llm tokens auto-next on . Agents can't turn it on or off.k2 llm tokens list shows access_expired (and status an access line), and Settings → Language Models → Subs / Tokens shows "Access token expired", with when it expired and who renews it. Such a token is still signed in: the server default, or a token a running chat uses, is renewed by its CLI the next time it runs, and an idle token by K2 within 30 minutes. K2 still never refreshes the server default itself, since that would sign out a CLI using it. A token whose sign-in has ended still shows as signed out with the reason. The list's JSON has access (fine, expired or signed_out) and accessNote, never a token.k2 llm tokens refresh is still for people only, but when an agent runs it the refusal says when nothing needs doing and, with permission cards on, ends with k2 permission request llm.tokens-refresh …. An owner or admin allows it from a card on the agent's Thread, and the agent is told each token's state. Nothing is signed in, switched or shown.Apps
k2 thread ask --meta key=value (or --meta-json) attaches up to 32 small values; Apps see them on the answer. Not for secrets: anyone who can see the card sees them.k2 app role paths --hide .k2,.env,secrets/ . A hidden path is left out of every file listing, even with hidden files shown, never shows in live file changes, and every read answers as if it weren't there, inside a permitted folder too. Nothing is hidden until you set it; --unhide and --no-hide take entries off. An agent's .k2 folder holds its inbox and archived sessions, so hide it from roles that shouldn't read them.k2 app rollback, history shows exactly one deploy as live, the rollback's own, with its port (the answer said "live on port None"); the deploy you went back from is marked rolled back but is not an error, so k2 app errors no longer lists it.k2 app requests for an App you install again under the same id starts empty instead of showing the old install's requests.k2 app init --template node-api makes a server that passes the health check. It listens on the $HOST K2 gives (inside the App's wall that is every address, where a server bound to 127.0.0.1 never answers), asks for no App rights it doesn't use, and its next steps install the App first, with a public URL (k2 app expose --tunnel) as a separate step.k2 study app-deploys gives the real default memory limit. A new App gets 512 MiB (memory.max) unless the install names one; the page said there was no limit by default.k2 app auth door on turns on that App's door: you, an Admin, or the App's own agent with "Build and run Apps" can do this. k2 app auth door on, with no App, is the server's switch for every App, and only you can use it. When an agent tries the server's switch, the refusal shows it the command for its own App.changePath is now /cli/skin/password/reset, the route your form posts {token, password} to (it named the set-password page, which refuses a post). changeUrl is left out for an App with no URL of its own, instead of pointing at the server's own address.k2 capabilities says static Apps and the update feed are here. The engine.static and updates rows used to say "not built" on every server, though both shipped in 0.46.7; they now say yes while Apps are on, and name the Apps switch when they're off. k2 app status shows an App's update feed too: its key, its channels and the version each points at.--skin site onto an App without a gap. k2 app label take now takes a --skin site's hostname too. It first gives the site's guests the same access on the App: their rooms, their roles (a role made for the site is copied for the App) and whether they're on or off. Then it moves the hostname in the same call, so there's no gap and nobody has to be granted again. Guests sign in once more with the same username and password. k2 app label return serves the site again, unchanged, and k2 app move-plan lists the steps. An agent without "Let this agent manage its Apps' users" gets one card for the owner that names the guests.k2 app box prepare. Only the server's owner sees the card.k2 app sessions --live (the owner): how many guests are connected to each App right now and how many are signed in. Counts only, never names. --count prints one line.k2 app box auto-prepare on|off|status (the owner): keep this server set up for Apps after every update from a terminal or a script. It was only in the app's Settings before. Turning it on or off is recorded in the Apps audit.k2 app doctor names what blocks it. Its JSON now lists the checks that keep a server from being ready (blocking), and k2 app box prepare says when a restart is still needed.--test login has no person, so its role's other rooms answered skin_room. Now k2 app user rooms-ok puts a card on the agent's Thread (and your phone) naming the login, its role and those rooms; --assign sends it to one owner or admin. Allow lets exactly those rooms in for that login and that role, with what the role gives there but never a right only a person may have, until the test login ends; it's in the Apps audit and the Access Audit. A new role or another room needs a new card, and a card whose login or role changed since the ask applies nothing. From your own terminal, the same command opens them at once. Any other login an agent made keeps the rule. The add's answer ends with that Ask with: line when the role names other rooms.Servers
k2 app doctor isn't ready at the end. --allow-not-ready (or K2_ALLOW_NOT_READY=1) is for a server that deliberately won't run Apps.K2_BOOTSTRAP_SANDBOX_API=1.:/text).Databases
k2 db cluster archive on|off sets the same archiving k2 db cluster create --wal-archive sets at creation, then restarts that cluster if it is running. Off stops archiving but keeps the spool and every WAL file already in it for your backup to ship. The owner runs it, or an agent with "Let this agent manage Postgres versions" on its own workspace's cluster; it needs the root helper from this release (k2 root-helper update).k2 db clusters --health --json shows each cluster's current WAL position. The archiver block now has currentLsn (for example 0/1A2B3C4D) next to its four counters; it is null when the cluster isn't running.Permission cards
k2 vault grant, reveal or another vault step that asks "Approve on this Mac" and nobody is at the Mac (over SSH, or you're away), the same confirm goes to your phone as a card: at once over SSH, otherwise when nobody answers the Mac. Confirm it there with your login's password; whichever answers first wins. A Linux server with no vault password confirms this way too.k2 focus-group lists the sidebar's focus groups, and create, rename, add and remove change them; k2 agent set --focus-group |none sets one workspace's group, and k2 workspace list --json names each workspace's group (focusGroup). Listing is open to agents. A change is a person's: an agent is refused, and the refusal ends with the card to ask with (focus-groups.create, focus-groups.rename, focus-groups.assign). The owner or an admin taps Allow and K2 makes that one change.voice.recording-start-level) and whether direct-message calls can be recorded (voice.recording-dm). Trying either directly is refused with recording_level_needs_owner, and the refusal ends with the card to ask with. The owner or an admin taps Allow and K2 makes that one change.k2 permission request … --to [,…] (owners or admins who can answer it, or owner). Only those people get the card's Allow and Deny, the push, the Tickets item and the row in Waiting on you; a name K2 doesn't know, or someone who can't answer that card, is refused and nothing is sent. The owner can also choose who agents' cards go to when an agent names no one: Settings → Access → Permission Cards → Who agents ask, k2 permission approvers, or a card an agent puts up for it. Left as it is, every owner or admin who can answer is asked, as before.k2 app grant role --role works for a login of the agent's own App; without it, the refusal ends with the line to ask for that switch. An agent can also ask for one move on a card (app.login-grant op=role); the person stays signed in either way.k2 msg ends with the right line. When K2 refuses a message to an agent that isn't one of your connections, the error now ends with "Ask with: k2 permission request connections.add …", not "It can't be requested." --inbox-wake and --inbox-silent sends, k2 fed send and k2 push end their refusals the same way.--assign names who a card goes to. It works on k2 app commands, k2 publish run, and the same as --to on k2 permission request; an unknown or ineligible name is refused (unknown_approver, approver_not_eligible) and nothing is filed.vault.accept-from asks once for every receiver on this server. They can receive, never send, and a same-server send to a receiver that accepts from the sender no longer needs a connection.-h or --help anywhere on k2 permission prints its usage and changes nothing. Before, k2 permission beta on --help turned permission cards on, k2 permission approvers --help set the approvers to --help, k2 permission cancel --help sent a cancel for a request named --help, a flag that takes a value (--why, --reason, --area) took -h as its value, and status, pending, approve and beta status with --help asked K2's server. Now each prints the usage on stdout and exits 0; the only request is the check whether permission cards are on, which k2 permission --help makes too.--assign -h and --to -h show help instead of sending. k2 app --assign -h (or --help) prints that command's help, as -h anywhere else on the line does; before, it took -h as the login to send a card to and ran the command. k2 permission request with --to -h or --assign -h prints the permission usage and asks nobody.k2 app db connect, --assign goes with --read-only. k2 app db connect --read-only --assign sends the login with the read request, so its card asks that person. On a connect without --read-only, --assign is refused with --why and --assign go with --read-only (exit 1) and nothing is sent. On every other k2 app command, --assign names who a held request's card goes to, as before.Calendars
k2 cal link --provider google|microsoft --workspace on a box without a browser (Google: paste back the address the browser lands on; Microsoft: a device code). Agents read its events; nothing can create, change, accept or decline anything (a write answers read_only_link, exit 3). New calendar links are read-only; calendars linked before keep what they had, and "Add calendar" on a mail link now adds a read-only one. A Microsoft link can be calendar-only now, like Google.k2 cal link --request --provider … puts a "Link read-only" card on your Thread; its button opens the filled-in form. Agents never link a calendar themselves.k2 cal calendars --add .k2 mail access level … --calendar-omit-description on) leaves the description out for that workspace's agents. They still get the meeting link and meeting id from it, nothing else.join: Google Meet, Teams, Zoom or another meeting link already written in the event, with its meeting id; K2 never opens the link or calls the meeting service), who organised it, whether you organise it, your answer (self_response, including invites you haven't answered, and Google invites from unknown senders that Google keeps off your calendar), the guests' answers, when it was created and last changed, and the IANA time zone (Microsoft's Windows zone names are translated). k2 cal event shows one; events --full and --include-cancelled are new. On a linked calendar, events with no dates covers yesterday through the next 45 days.Compute
k2 compute fetch pulls from nodes (~/.k2/compute/artifacts) and the jobs' source blobs (~/.k2/compute/blobs) used to grow with no limit; leftover --dirty blobs were never removed. Every hour, also with no app open, K2 now removes a job's files and blob once the job ended more than 7 days ago, then the oldest until the store is under its cap: 20 GB, or 10% of the disk if that is smaller. It never removes a pinned job's files, a job that hasn't ended, or files a fetch is reading. A secret job's files that the node deleted after this server fetched them are the only copy: they go after 7 days like the rest, but never for the cap; k2 compute retention lists each as "only copy, kept until k2 compute prune frees that disk now, safely while K2 runs. --dry-run says what would go and removes nothing; --older-than 3d removes younger ended jobs for this run only. It prints how many files and bytes it removed and kept. k2 compute pin keeps a job's files here until k2 compute unpin . k2 compute retention shows the store's size and the rule, and k2 compute retention set --max-age 14d --cap 30G changes it. The owner and Admins only, from a terminal outside K2. k2 compute status shows the store's size and rule on the controller line.--dirty job whose changes were removed says so (source_pruned: submit it again), instead of failing on the node.k2 compute fetch no longer says a node needs an update while it is reconnecting. During a rollout, a fetch that reached a node in the moment between its reconnect and its first report answered node_upgrade_required. It now waits up to 10 seconds for the node, then answers node_reconnecting (fetch again in a minute). A node that really can't send artifacts gets an error that names it, its k2-node version and this server's, says the node needs the update and not this server, and who updates it (for a shared node, the server that owns it).k2 compute get say how many it killed ("killed 2 leftover process(es)").k2 compute nodes shows leftover processes. It lists processes of the node's job user that no live job owns, with their pid, age and the job that left them (on macOS the job can be unknown, as above). The check never kills them. k2 compute node health lists them too.k2 compute nodes shows which job holds a node. A node with no free CPU says "reserved by k2 compute jobs and k2 compute get show when a job started. The time comes from the job's real start, not from when it was sent: "started 25m ago (queued 31m ago)". get also prints the queued, started and ended times.k2 compute grant --max-time 4h (or --max-parallel, --max-queued, --max-disk) from an agent now ends with Ask with: k2 permission request compute.grant node= max-time=4h , instead of "It can't be requested." The owner or an admin sees each limit as it is now and as asked ("run jobs of up to 4 hours on node-2 (now 2 hours)"); Allow sets exactly those limits on that agent's own grant and keeps the rest. --ci and --gpu keep their own cards.ci_preview_off by k2 ci, or by its own k2 settings set ciPreview true, now gets the closing line Ask with: k2 permission request ci.preview: the owner allows it on a card, and ci.preview-off turns it off again.--netns-dummy get an IPv4 default route into the first dummy, so a browser in the job finds its local address. Still, nothing leaves the job.failed / disk_budget, and the reason names the budget and the size. K2 doesn't retry that job or hold it against the node, since it would do the same on any node. Before, the cap was only checked when a job ended, and one slot reached 260 GiB under a 100 GiB cap. The node's log now gives sizes in GiB, and each slot records which workspace and job used it last.network = none), the job's sandbox dropped its own loopback traffic, so a test that started a local server and connected to 127.0.0.1 hung instead of failing. Every job sandbox with an address filter now lets 127.0.0.0/8 and ::1 through first. Before a job's command runs, the node checks that loopback answers. If it doesn't, the job ends within seconds with exit 69 and a log line that says loopback is down or its packets are dropped, and that nothing was run. When a job's own env sets a proxy (HTTP_PROXY, HTTPS_PROXY or ALL_PROXY), NO_PROXY and no_proxy now also list localhost,127.0.0.1,::1, and the job's own entries stay. This needs k2-node 0.46.17 on the node.k2 compute wait --timeout 9m stops waiting with its own exit code, 124. It prints still_running and leaves the job alone, so a script can tell "not done yet" from "failed" (3). Use it instead of wrapping wait in timeout: macOS has no timeout command, so that failed at once and turned retry loops into tight polling. --max-wait still works and still exits 3.k2 compute list is now the same as k2 compute jobs. Before, it was an unknown verb: it printed an error on stderr and nothing on stdout, so k2 compute list --json piped to a script looked empty. k2 compute ls still lists the nodes.--stall-timeout (or stall_timeout in .k2/compute.toml) still sets it for any job.k2 compute status counts a running job's time from when it started. Before, the time counted from when the job was sent, so a job that waited 10 minutes in a node's queue looked as if it had been running beside the job before it on a one-job node. A job that waited a minute or more now says so beside its running time ("queued 10m00s first"), and the JSON has queuedSecs.[compute] message, k2 compute get and k2 compute wait say whether the job printed nothing and used no CPU, or printed nothing on a node that couldn't read its CPU (where silence alone ends a job), and point to --stall-timeout (or stall_timeout in .k2/compute.toml). The message used to say only "timed out". The node's part arrives with the next k2-node update.[compute] message. It names the node the job is pinned to, how long it waited and a node that could start it now, and gives k2 compute move --auto (or leave the node off next time). The job's wait line in get and wait says the same. K2 still never moves a pinned job by itself.k2 compute get and k2 compute jobs show such a job as held: held: waiting for a node with a free slot (fits: …). Its --queue-timeout still bounds the wait.k2 compute run --follow prints such a move as moved: …, never "infrastructure failure".k2 compute move takes a job back from a node's own queue. move --auto or move --to on a job that waits in a shared node's queue now asks that node to give it back, if it hasn't started it, then places it again or pins it to the node you named. Before, it was refused (in_node_queue), and you had to cancel and run the job again. A job that has started is still never moved.--plan show the node's python3, curl and bash versions ("python3 3.12.4 · curl 8.5.0 · bash 5.2.21"), and each job's tools: log line lists them too, so a difference between nodes shows before a script trips on it. Pin python with --needs python@3.12. This needs k2-node 0.46.17 on the node.k2 compute run --strict -- sh -c '…' runs the script as bash -euo pipefail. A job's exit is its script's last command, so cargo test | tee log passed even when the tests failed, and sh is dash on Linux nodes, where set -o pipefail fails. With --strict, any failing command, pipe stage or unset variable fails the job, and k2 compute get shows the command as it ran. Only a sh -c or bash -c script takes --strict.k2 compute --help, k2 study compute and the schema now list what each tier is for and when it starts: standard for builds, tests and CI checks; priority for release-path work only; ci for release and CI gates; batch only for long soaks you can wait hours for, since it starts only on an idle node, one at a time. Agents were reading --tier batch as "cheap". A Batch job's placement and queue lines now say "batch: waits for an idle node (1 other job running)", and a --tier batch submit prints one note: "batch waits for an idle node; use --tier standard for checks".Live documents
k2 doc flush also puts every change on disk, and its answer says so (durable). k2 doc status shows how the server saves (saves: grouped or immediate, and whether a restart is needed for the setting).Threads
k2 tickets), keep their files, and stay after the ticket's workspace is removed. Tickets from earlier releases move over in the background after the update.Agent messages
k2 msg --inbox-wake, --inbox-silent or k2 inbox compose; accents and other letters stay as typed.[inbox:] line an agent is woken with holds its title on that one line, written the same way, whoever sent the pointer.Postal (Beta)
k2 postal enable, its card or the Settings switch), the server gets its Postal approval token from the Postal network with its K2 Connect account and keeps it in the vault, which agents can't read through K2. The owner gets a line saying so each time one is made. A person's Accept that finds no token asks for one once. Turning Postal off revokes the token and removes it. k2 postal owner-link still links approvals by hand. Agents on one server run as the same OS user, so they aren't isolated from each other yet: the enable card and the Settings switch now say so.k2 postal link. Every fix offered is Link now, never a page on the Postal website; k2 postal owner-link is named only after Link now failed, with why it failed. Asks the server makes on its own wait after a failure (an hour after a refused K2 Connect account, five minutes after a network problem, or as long as the Postal network says), so they never repeat in a loop.k2 postal status and claim try the network again when a person asks. After the Postal network failed, the server waited up to 15 minutes before trying again, and kept showing the old error. Now a person's status, claim or enable tries again at once (at most once every 30 seconds), and the line says when it last tried: (last tried , or when it tries next.ab, by the Postal network's rule: 1 to 63 letters, digits and hyphens, no hyphen first or last, no two in a row, not all digits. The network's reserved names (and labels starting with turn-) are refused. The examples now use alice::initech.postal.bot, since acme is reserved.Voice
sew config set recording.consent_prompt_timeout_ms). Apps built on Sew's voice plugin can show your own camera straight from the camera, and can choose how the system schedules noise removal from the next call. Sew updates how it stores chat when it starts, so going back to Sew 0.10.6 or older afterwards is k2 hostchat rollback --accept-data-loss, run by the owner.Phone
?icons=rev), and icon requests answer 'not modified' when the phone already has the picture, so the phone app refreshes faster.Windows (Alpha)
K2_0.46.17_x64-setup.exe is an Alpha build for Windows 10/11 (x64). It is not code-signed yet, so Windows SmartScreen will ask before it runs.
v0.46.16
0.46.16 — Postal (Beta) and phone notifications for Home chat
Home chat
homeChatPush switch on (k2 settings set homeChatPush true, needs homeChat), your phone hears about DMs, @mentions and replies from the people on your server, and DM calls ring every login, Voice & Chat only included. DMs always notify. In each channel you pick All messages or @mentions only from the channel's Notify menu (the default is @mentions only); All messages starts sending every message once this server's chat is updated. Agents' posts don't notify you unless you turn on "Also notify me for agents' posts".homeChatPushPreviews, and you can turn it off for yourself with "Show message text".k2 hostchat rollback --accept-data-loss, run by the owner.Apps
k2 app push set --chat on (the owner, an Admin, or the App's agent with "…and manage them end to end"), with K2_APP_CHAT_PUSH=1 on the server while this is a preview. DMs always notify; in a channel each person gets All messages or @mentions only (the default), which your phone app sets. A tap opens your phone app at that chat (k2Kind: chat, with the chat and message ids).push.viewing takes a chat. While a chat is on screen, your App sends push.viewing({conversation: "chat:", visible: true}) every 30 seconds and no notification comes for it. The App SDK has chatPushFrom to read a chat notification and chatConversation for the id.Postal (Beta, off by default)
scout::acme.postal.bot, without pairing whole servers. It is a Beta the server's owner turns on; until then nothing changes.k2 postal enable, k2 postal claim or k2 postal invite --why "…", and a permission card appears on its Thread (and your phone). Allow does it; the owner answers the switch, an Owner or Admin the address and the invite.k2 postal owner-link, so an agent can never accept a friend itself.k2 msg scout::acme.postal.bot "text" sends from the agent's own address to a friend only. A text that holds the value of one of your vault's secrets is refused, messages are at most 256 KiB, and the answer says queued, held, delivered or failed with a p_ badge k2 msg verify can check.[postal · p_…] line with every line of theirs quoted. Long messages, files, or mail while the agent is busy go to its inbox with a pointer. k2 postal route sends one friend's mail to the inbox or to a person's Thread instead; an agent can only make its own routing quieter. Mail sent while your server was off waits on the Postal network for up to 7 days and arrives when it is back, once each.k2 postal adopt) isn't available yet; p5 still delivers through k2 postal link-p5.Agents
hire_off. On the first start of 0.46.16, every workspace from before that update gets the switch back on, except where you or an admin set it since (in Settings, with k2 agent access set, or on a card). Each one turned on gets a line in the Access Audit. New workspaces still start with it off.k2 agent hire --dry-run shows the refusal its real hire would get. While "Let this agent hire agents" is off (or from a sidecar), the dry run marks the hire FAILED (hire_off or main_only), the other steps "not run", and exits 3 with the same closing line as the hire, instead of "would apply" for every step. A --template dry run still shows the whole hire, and now says the real hire needs that switch and the card to ask with. With permission cards off for the agent, the hire_off refusal also says how a person turns them on, so the next ask can be a card.Servers
k2 app box prepare --cores-mem-min, the second restart of the daemon could fail over and over with status=219/CGROUP. Box prep now adds k2-delegate-subgroup.conf to the daemon's unit (DelegateSubgroup=daemon on systemd 254 and newer, a cleanup step after each stop on older systemd), and the daemon never splits its unit without it. Run k2 app box prepare --cores-mem-min again on a server prepared before this release; K2 also adds it by itself at the next boot.k2 app box doctor says more. The agentsLeaf row fails when the next restart would crash-loop, and warns when agent sessions run outside their budget. A new daemonSlice row warns when the daemon still runs in its old slice: the cores' memory floor reaches the daemon only after a reboot (a restart keeps the old slice), and k2 app box prepare now says so.k2 daemon stop --keep-agents waits for that reboot. While the daemon's slice is about to change, a stop that keeps agents would leave the next start failing, so it refuses and points at k2 daemon restart (which keeps agents) and a reboot.Agent messages
Windows (Alpha)
K2_0.46.16_x64-setup.exe is an Alpha build for Windows 10/11 (x64). It is not code-signed yet, so Windows SmartScreen will ask before it runs.
v0.46.15
0.46.15 — Live 3D scenes and timelines, a new PDF viewer, and safer agent messages
Threads and Home
Live files
k2 doc results as data. --json on a text doc's verb prints one line with what the call did: the versions, what changed, the output (marked text or typed), and the error with what to do next.k2 doc cad), and a reading of a set of AV system drawings with its devices, cables, pulls, flags and sheet index (k2 doc av). .dwg drawings are read only, and a drawing is never saved whole from K2: a save from your CAD app is taken in.Files and editors
Agent messages
k2 msg (live and --inbox-wake/--inbox-silent, local or agent::host), k2 thread and k2 thread ask give each send a key; when K2 is slow to answer, the command asks again with the same key and K2 delivers it once, answering with the first delivery. If K2 still doesn't answer, the error says the message may have been delivered and prints the key: run the same command with --idempotency-key to try again without a duplicate.k2 mail draft and k2 mail reply take --reply-all (the original's To and Cc, without the agent's own address) and --cc / --bcc, the reply stays in the same thread, and a sent reply's copy to someone who wasn't on the email needs the same send rights as k2 mail send.Apps
k2 app grant, k2 study apps and k2 app --help no longer tell it to use k2 permission request, which it can't run. They tell it what you can do instead: make the change in Settings → Apps, or turn on permission cards in Settings → Permission Cards.Heartbeats
k2 heartbeat schedule add --hourly --start 05:00 --end 22:00 --tz America/New_York fires 05:00 to 21:00 New York time all year, through both daylight-saving changes, and a window that crosses midnight (22:00 to 06:00) works the same way. A window that starts in the hour a spring-forward day skips opens when that day's clock resumes. --tz box now also means the server's clock.k2 heartbeat schedule add and edit take --tz America/New_York: a 14:15 heartbeat then fires at 14:15 New York time even when the computer is in another zone, so a laptop that travels keeps the schedule's clock. k2 heartbeat schedule list shows its next fire in that zone and here; --tz local follows the computer's clock again. A time that doesn't exist on a spring-forward day fires at the first minute after the jump, and one that happens twice on a fall-back day fires once.Compute
k2 compute allow-nodes --add from an agent ends with a permission card request (compute.allow-nodes nodes=…). The card shows each machine's size and who owns it; an owner or Admin's Allow adds exactly those machines, and Deny changes nothing. Agents can still only ask for their own list and for machines already granted to them. Clearing the list stays a person's decision.k2 compute run --network none runs the job with no network, whatever its machine allows: on Linux it gets a network namespace of its own with only loopback; on a Mac, no remote addresses and no DNS (loopback stays open). A job can only narrow its network, never widen it.--netns-dummy dummy0=10.254.254.1/32 (Linux, up to 4) adds an interface with that address to the job's own namespace before it starts, so a browser has an address other than loopback. Addresses come from private, link-local or test ranges only.k2 compute get shows the network a job asked for. Machines need k2-node 0.46.15; an older one never runs such a job with more network.--cache job no longer waits behind such a line for its cache.Vault
Settings
k2 llm tokens status says when.Under the hood
k2 command, the desktop app, the browser-open shim, the agent hook, the root helper installer and the update's restart check skip the proxy settings (http_proxy, https_proxy, ALL_PROXY and the rest) for every request to K2 on this computer or over plain http, and send its credential in a header, never in the address. HTTPS to a remote K2 may still use your proxy: a CONNECT tunnel hides the request.k2 app exec included) is never sent a second time. When K2 doesn't answer it, the command says the request may have been applied, so you can check before running it again.k2 hostchat rollback --accept-data-loss, run by the owner.Windows
k2 commands that send a file work on Windows (for example k2 doc export), instead of failing with "no answer from the K2 daemon".- tool hooks accept Windows drive paths;
- a new file next to a folder of the same name works;
- saved templates use / in their paths.
Web app
Windows (Alpha)
K2_0.46.15_x64-setup.exe is an Alpha build for Windows 10/11 (x64). It is not code-signed yet, so Windows SmartScreen will ask before it runs.
Security advisories fixed in this release
v0.46.14
0.46.14 — Choose which Thread the main chat keeps
/ ). From a terminal: k2 sessions main set --thread keep-main|adopt-sidecar .v0.46.13
0.46.13 — Chat and call people on Home, and live editors
Home
k2 settings set homeChat true) and runs on Linux servers with Sew.Editors (preview)
Live views (preview)
Approvals and agents
k2 settings set agentProcessNames true). Claude Code agents only.Under the hood
Fixes
Remote desktop
k2 desktop enable) now has K2 Screen ask macOS for Screen Recording and Accessibility right away, so K2 Screen shows up in both System Settings lists. If macOS asked before, K2 opens System Settings at the right pane. When someone at the Mac allows it, K2 notices within seconds and restarts K2 Screen so the permission takes effect. The Settings row shows each step, with a button to its System Settings pane.k2 desktop ask), and a Desktop tab in a room on Home can now open the stream. Turning Remote desktop on is still done at that computer.Models
/model in the message box (or click the model name beside it) and pick a model. Only that chat changes, at once, and its conversation and running subagents carry on. Claude Code saves a /model pick as the default for every new session, so K2 puts your saved default back right after, and the Thread says so. Only a person can switch (the owner, an Admin, or someone typing in K2), and not while the agent is mid-turn./model someone runs in their own terminal no longer changes what K2 launches. Unset, the harness picks, as before.Chat / Voice Hosting
k2 hostchat rollback --accept-data-loss, run by the owner; going back to 0.10.0 or 0.10.2 is the plain k2 hostchat rollback.Calls
Threads
k2 thread) or straight to the API now shows as theirs, never as the agent's, whatever name it gives. An agent's messages and cards are marked as the agent's.The k2 command
k2 update no longer downloads the CLI from GitHub; the CLI now updates only with K2 itself. k2 update --cli shows the CLI's and the daemon's versions and how K2 updates, and changes nothing.Compute
no-lan share on a Mac used to mean no network at all. Now each job there reaches the internet over HTTPS through its own small proxy on the Mac, never the local network: crates, git over https, rustup and npm work. Shares already set to no-lan get this with the node update; the node's owner can keep the old behaviour with mac_no_lan = "none" in the node's policy. UDP, plain HTTP and git over ssh still don't get out, and the job has no DNS of its own.k2 compute get shows the list too (networkHosts in --json), and k2 compute nodes says "network no-lan (internet through the node's proxy)" for such a share.v0.46.12
0.46.12 — Inbox fixes, and Themes
Look and feel
.k5board file now starts right under the tab bar, and you can rename the board from its name at the top (click it or press F2).Chat / Voice Hosting
Fixes
k2 daemon stop, or closing the window with "keep server running" off. Restarts and updates keep the icon. Opening K2 (or k2 daemon start) brings both back..k2/conflicts/ as ('s version) , the file's tab shows a notice once, and one line goes to the workspace's Thread.k2 inbox read answered "the K2 daemon gave no usable answer". Each session now gets its connection, and the k2 command falls back to the normal one if it ever can't reach it.X-K2-Client-IP only where it knows the visitor. An App gets the visitor's real address (X-K2-Client-IP) only where K2 knows it: through the server's own :443 today, and through K2 Connect once its relay passes visitor addresses (k2 tunnel status shows "Visitor IPs"). k2 study auth-pages now says so.X-K2-Client-IP, one visitor's junk resets stop at that visitor's own limit and no longer use up the App's resets for everyone else. Resets never shared a limit with sign-ins._acme-challenge name.v0.46.11
0.46.11 — Kessel, a new look, and a Get started list
App SDK
k2.guests.refresh({refresh}) works as documented. It now goes with your App pass, like a login, instead of failing guest_required when no guest is bound (the device's old pass has usually ended by then). On an App's link only that App's refresh tokens work, whatever the body names. k2 study auth-pages lists the device sign-in fields (refresh, passExpiresAt, refreshExpiresAt, in seconds since the epoch) and the refresh call.k2.auth.doorStatus() (GET /cli/skin/auth/door on the link, App pass) answers {on, box, appOff, hosts: [{host, door}]} for your own App only, so your server no longer has to fetch its own /.k2/auth/ping from outside.k2 app pairing setup --desktop-only turns pairing on so a desktop app pairs with the code the web App shows, typed in. The same owner confirm and checks as phone apps; K2 serves no iOS or Android files for it.k2 app sdk --help says why an agent's App folder must be inside its own workspace, and what to do instead.Apps in containers can use the box's Postgres
127.0.0.1:5432, inside its wall. That covers guarded Apps (the default) and open ones. Each App has its own database door: K2 checks every connection's role and database before it reaches Postgres. An App opens only its workspace's databases and the ones granted to that workspace, as one of K2's roles for that database. It never logs in as the superuser, never opens a replication connection, and never opens another workspace's database. Anything else gets a Postgres error that says why, in the App's own driver. The password check stays in Postgres, so K2 never sees the App's password.DATABASE_URL keeps working. When a container App starts, a box database URL in its secrets is pointed at the door (127.0.0.1:5432, sslmode=disable) on whichever Postgres version the database runs. TLS isn't used inside the wall: a client that asks for it is told no and goes on in plain text, and sslmode=require fails with a clear error.k2 db grant works at the App's next connection, with no re-host. A revoke or a dropped database refuses new connections and cuts the App's open ones straight away, and k2 db revoke says how many it cut. Each connection is written to ~/.k2/apps//logs/db.log : role, database, bytes and time, never SQL or passwords.k2 app engine install, then k2 app rehost ). k2 app doctor shows the door, its open sessions and the databases the App may open. --db-raw on is still refused for container Apps, because it is for a private App database K2 doesn't make yet. The refusal now points at the door.Connect an App to a database in one command
k2 app db connect --new (or --db ) does the whole job and proves it works. It makes a database for the App (on --major 16 or 17, or in one of the workspace's named clusters with --cluster) or picks one the App's workspace owns or was granted. It gives the App its own Postgres login, never the agent's, and grants the App DATABASE_URL and, on its own workspace's database, DATABASE_MIGRATE_URL for migrations. Then it re-hosts the App and checks from inside the App, logging in as the App and running select 1: PASS with the Postgres version and time, or FAIL with the step that failed and the App's last output lines. Nothing secret is printed: only database, role and secret names.k2 app db status, check and disconnect. Disconnect stops the App's login, ends its open sessions, shuts its door, removes its secrets and re-hosts it; the database is kept. Uninstalling an App disconnects it. Every connect, check and disconnect is in the App's audit and Access Audit. k2 study app-databases lists which kinds of App reach which databases.requires.postgres goes the same way: installing it connects the App to its database with its own login before the first start.`k2 db` prints no passwords
k2 db dsn no longer prints the password (plain or --json; dsnHasPassword says so). --reveal prints the full DSN on purpose. A script that runs psql "$(k2 db dsn)" now fails to log in: use k2 db run [--db ] -- , which hands the command DATABASE_URL without printing it.k2 db dsn --ref --db works (K2's own hint suggested it, and it was refused). It keeps DATABASE_URL_ in the vault, or the name you give with --as.k2 db create leaves the same state as k2 app install --pg-major: the workspace's default database is kept in the vault as DATABASE_URL, and the answer ends with the command that connects an App to it.k2 db refusal ends with its "Ask with: k2 permission request …" line (or "It can't be requested."), like the rest of k2.k2 app egress no longer says a process-exception App "has the daemon's network": it has no route out.Permission cards are on by default
k2 permission beta off); it stays off.The k2 command
k2 works in your own Terminal right after you install K2, with no password and no trip to Settings. K2 puts k2 in ~/.local/bin and, when your shell doesn't already look there, adds one marked line to your shell's startup file (~/.zprofile on a Mac; your bash login file or a fish conf.d file elsewhere). It works in new Terminal windows; windows that are already open won't see it. The K2 server does this too, so a K2 started without the app gets it as well.k2 that isn't its own. Another program named k2, in ~/.local/bin or /usr/local/bin, is left alone (on Linux too).k2 is and whether new Terminal windows will find it. "Remove the PATH line" takes out only the lines K2 added, and K2 doesn't put them back unless you choose Install again. On a Mac, "Also install in /usr/local/bin" is still there as an extra; it asks for your password./usr/bin/k2, and K2 used to take that for the command, so typing k2 opened the app. On Linux, a terminal may only see the new PATH line after you log out and back in.k2 checkin is retired. It only worked for agents started the old K2SO way. It now points at the verbs that replace it: k2 organization bulletin and k2 organization update "" (bulletin and status), k2 thread (people), k2 tickets and k2 inbox (work), and k2 done (finishing a task).Send feedback to K2
k2 send-feedback "" (k2 study send-feedback). At most 1 a minute and 3 a day per workspace and 10 a day per server, never with a contact email, and with K2 details only after the owner or an admin turns on "Agents may include K2 details" (off by default). Settings → General → Send feedback has the switches, and turns sending off for the whole server.docs/product-feedback-wire-v1.md.Remote desktop (Beta)
k2 desktop audit), never what you typed or saw.Agent types you can hire
k2 agent template list shows them; k2 agent template show shows what one gives.k2 agent hire --template writer --name "Max" --agent codex. The folder is optional: without one the agent goes in the hire root (k2 agent hire-root). --dry-run lists every file it would write, each context layer, and the permissions it suggests. --param about="…" tells it what to focus on. With --launch, a new agent says hello on its Thread.k2 agent hire --template writer --name "Max" --answer audience="Founders". k2 agent template show lists the questions, an unknown id is refused with the valid ones, and the agent's hello names only the questions still open. POST /cli/agents/hire, /v1/w and /v1/agents/hire recipes take answers too..k2/agent/template.lock, and an agent has one template.--template worker is General, manager is Lead, qa is Reviewer, and researcher is Researcher. Their old ROLE.md texts are gone; agents already made from them keep theirs. Any template id now works everywhere a hire takes one (POST /v1/w, /v1/agents/hire recipes).kessel:pack, "Kessel: K2's own agent"). k2:pack and its old names add the new pack; a workspace that already stacked the old one keeps its file.browser:pack), tells agents about agent-browser and agent-desktop, where to get them, and the rules (give focus back, read form fields by name only, never type passwords, ask before irreversible clicks). It's off until you add it: k2 agent context add browser:pack, or Settings → Workspaces → Chat / Voice Hosting
k2 hostchat upgrade: it upgrades Sew and its voice engine together, then the recorder where one is installed (Sew's sew recording upgrade, run when no call is being recorded). Going back to an older Sew needs k2 hostchat rollback --accept-data-loss, because 0.9.2 changes Sew's data. A server already on Sew 0.8.3 or 0.9.0 upgrades like any other. The desktop app's Record and Stop now show exactly when Sew would take them. k2 hostchat recording enable installs Sew's speech model (base-q8_0) with its licence files, and refuses a model file that isn't exactly the one Sew published.k2 mail watch). Pick which inboxes an agent watches (none by default). With vip, only VIP senders wake it, and each VIP mail gets a Thread card and one line in its session. With all, everyone else waits for one digest in the check window. VIPs must pass DMARC, every field is cleaned before an agent sees it, a mail body never reaches an agent, and the watcher only peeks (nothing is marked read).k2 mail draft , now on K2-hosted inboxes as well as linked ones), the Mail page shows it above the conversation it answers, marked as a draft with the agent's name. Edit the text there (it saves as you pause), then Send or Discard; both ask first. Send goes by that workspace's send rule, so sending off refuses it and approval queues it, and once sent the reply shows in the conversation. It is a real draft in the inbox's Drafts folder, so your own mail app sees it too. Opening, editing, sending and discarding are in the access log, and the agent hears what you did (k2 mail drafts). People's drafts stay their own: a Member never sees another person's. On a server without the app, k2 mail reader drafts and draft-show, draft-save, draft-send and draft-discard do the same.Recording calls in this server's voice rooms
k2 voice settings --require-recording on).k2 voice recordings, k2 voice transcript ). While any agent has it, everyone's recording notice says "Agents on this server may read the transcript." Every read is logged with who read it (k2 voice transcripts reads). App calls are not included.k2 voice transcripts subscribe drops a note in that agent's inbox, with the recording's id and how to read it, each time a recorded call in that room has its transcript. Opt in per room and per agent; unsubscribe stops it.k2 root-helper update): K2 sets Sew's one-minute notice timeout through it when you turn recording on.Reminders
k2 remind "" --in 45m (or --at 13:00, --on 2026-11-20 --at 09:00). It fires once, then goes away. Reminders show in the Heartbeats panel, in the owner's timezone, and count in the agent's wake budget like other heartbeats.Org Chart
k2 organization ask reaches one member at a time, about 2 minutes apart. k2 organization night shows tonight's order (queued, running, done, skipped), and Settings → Org Chart shows how the night is spread.Live docs
k2 doc outline, k2 doc layer and k2 doc node, comment with k2 doc comment, reply and resolve, and claim a layer with k2 doc claim --node (k2 study docs). Agents never write PSD or PSB files: they propose a new file and leave a comment.Threads
k2 thread delete . A file the message only pointed at in the workspace stays where it is.Look and feel
Projects
k2 project view .Getting started
k2 setup prints the same list and runs on a fresh Mac with nothing installed.Workspaces and sync
Fixes
--avoid takes a node that isn't yours. k2 compute run --avoid k2n9 (and --plan, test, move --auto) no longer fails with node_not_found when that node isn't granted to your workspace, or doesn't exist: it could never be picked, so the job runs and one note says --avoid k2n9: not one of your nodes; nothing to avoid. A standing "never those nodes" list now works as flags. The note is the same whether such a node exists or not.git describe --tags, or a semver check against a tag (--baseline v0.9.2), now works on a compute node with no archive to ship. The checkout has the repo's tags that point into its history: from the remote, the tags in the history the node fetched (as in a clone, a tag the node already has keeps its place); from your machine, for a commit the remote doesn't have yet, the tags that point into it, an unpushed local tag too. Nothing is fetched from any other remote. Needs this K2 and k2-node 0.46.12; an older node or server leaves tags out, as before.k2 vault env-file refused it. Saving now shares it with the asking workspace at the card's delivery (its next session gets the variable; k2 vault env-file NAME --scope server works at once). Other workspaces still get it only when you share it, and the card and Settings → Vault now say so. Secrets saved this way before the update: share them once with k2 vault grant NAME --to ws: --as env --scope server or Settings → Vault → Share.k2 vault env-file, file and run told such an agent "it is delivered to you as env only … widen it: k2 vault delivery NAME env", naming the delivery the secret already had. They now say it isn't shared with this workspace (or is shared at a lower delivery, or the share ended) and give the one share that fixes it; k2 vault show says nothing reaches the agent instead of the secret's own delivery.k2 permission request was answered with that other card, on the main Thread: the person found nothing on the sidecar's Thread, and the answer went to the session that asked first. Each Thread now gets its own card; once one is allowed, the other says it's already on.k2 compute fetch gets files from a node on the relay. Over a slow relay a file could take longer than the fetch allowed (about 1 MB a second was assumed), and every retry asked the node for the whole file again, queued behind the copies it was still sending, so a fetch could stay at 0 bytes. A fetch now fails only when the node has sent nothing for a minute, and the server keeps reading a node while its own messages to that node wait. With a node on this version, the node sends a little at a time as the server confirms what it wrote, stops when the server gives up, and the next fetch continues from the bytes already on the server instead of starting over. The node's log has one line per file it sends (job, file, bytes sent, how it ended). A node on an older version still works as before; update it to get the rest.k2 app domain --help is clearer about names your own web server serves (--external). The domain only needs k2 domain add: pending is fine, and your nameservers can stay where they are. The help now also says where to point the name and how to pass it to your server when K2's front holds :443.k2 app data put takes any file, not just ones that compress well. A PDF, an image, a tar or any binary larger than about 4 KB used to fail with data_put_failed … (App engine: argv). A put now streams the files into the App in one step (up to 64 MiB compressed per put), and a failed put says which step failed and why. With an App engine from before this update, a put still works, in smaller parts and more slowly, until the owner runs k2 app engine install.k2 app exec passes on its input. A pipe or a file on stdin reaches the command (cat scan.pdf | k2 app exec -- sh -c 'cat > /data/scan.pdf' ), up to 64 MiB. A terminal or --no-stdin sends none. This needs the App engine from this update: with an older one, an exec with input is refused with how to update the engine.K2_AIRGAP=1), the mail domain checker still looked up each mail domain's records every minute, and the nightly mail doctor could still run its off-box checks. Both now skip while air-gap is on, and the log says so once. Four other timed tasks also stop reaching off the box under air-gap: watching linked inboxes (Gmail, Outlook, IMAP) for agents, Chat / Voice Hosting's calls to K2 Connect, CI on compute's checks of the repo's remote, and fetching a staged App engine's signature (copy the .sig in yourself, as for the engine).--mem. Now a GPU job has a second budget, k2 compute run --gpu --gpu-mem 4G (2G when left out on such a GPU), that K2 reserves beside --mem when it places the job, and the node stops a job whose own GPU memory goes more than 10% over it (failed/gpu_mem_cap, with the numbers). The job's own GPU memory peak is in its last log line and in k2 compute get. Needs k2-node 0.46.11 on the node; an older node refuses --gpu-mem with gpu_mem_needs_update and runs plain --gpu jobs as before. k2 study compute (GPU JOBS) says how to size --mem and --gpu-mem.Popups and cards you can close
k2 thread withdraw --why "…" (void still works); it shows as Withdrawn. k2 vault file --wait on a dismissed or withdrawn secret card exits 5.v0.46.10
0.46.10 — K2 is MIT; Voice & Chat only logins
When you update
k2 update) first.@1) get them automatically. A page that pins k2-activity-bar.js (or another kit file) by hash needs the new hash.k2 root-helper update): moving a server's voice to the tunnel needs root helper protocol 14. An older helper refuses the move with helper_outdated and changes nothing.k2 db create no longer prints the database password. Its dsn (and the --test migratorDsn) come without the password, and dsnHint says how to get the full one: k2 db dsn --db . Scripts that read the password from create --json need to call k2 db dsn instead.Voice & Chat only logins
k2 users add --role voice_chat --share-agent --share-garden , k2 users share, or Settings → Users and Access. K2 won't share an agent that has connections, vault grants, mail, compute, no permission prompts or any switch that reaches past its own Thread unless you add --force, and it checks the agent again on every message: one that gains such a power stops taking messages from these logins. The agent's memory is shared by every login it is shared with and by its own Thread, so use a demo agent only for this, and give each reviewer their own login.--no-fixed-password to let the person change it. Give each reviewer their own login: one login several people share is one conversation and one message budget.k2 thread marks guests and quotes later lines. A message from an App guest or a Voice & Chat only login reads [N] from guest : … , and every line after a message's first is printed as | …, so nobody's words can pass for another message.k2 users set-role or Settings. It applies at once, with no sign-out.Desktop app
Permission cards
k2 vault incoming shows where each card is.Fixes
sew_config_refused).k2 calls were refused until its tab restarted. K2 now gives each running agent a new passport by itself and logs that it did. Closing a tab now also ends that tab's passport.Databases
k2 db cap , k2 db cap default, or 0 for no limit. Agents can read it, not change it.--id makes its own database. k2 db create --id used to hand back the workspace's existing database. Now each new --id gets its own, the same --id returns the one it made, and asking for a different Postgres version on an existing --id is refused with a clear message.--db picks which database k2 db dsn, migrate, dump, restore and drop work on. Without it they use the workspace's first database, as before.k2 db restore uses the newest Postgres client installed, so a dump from a newer Postgres can be restored into an older database.k2 db create --major on a Postgres cluster K2 didn't set up now says which cluster it is and what the owner can do.v0.46.9
0.46.9 — Voice calls in the desktop app
Voice rooms (preview)
k2 voice rooms says when you're in a call on another device (a closed app can stay listed for up to 45 seconds). Leaving a call that already ended is fine and says why. A phone whose pairing ended is told to pair again. When a call is recorded, you answer the notice from your own login or phone (k2 voice consent); agents and the owner token never can.k2 settings set voiceRoomsPreview true (also voiceTunnelPreview, computePreview, boardFilePreview).Apps
k2 app init --template tauri --voice now writes everything the webview needs for a call: the microphone hook that lets only your App's own pages use the mic (src-tauri/src/k2_voice.rs, Tauri 2.12+), no App Nap on macOS, a window that keeps running while hidden, the Windows (WebView2) settings, and an example CSP for the voice kit. Tested on macOS: WebRTC with end-to-end encryption, the noise filter's WebAssembly and storage all work in a hidden window. Windows builds but hasn't been run yet. k2 study tauri-voice says what is tested where.k2 app init --template tauri is ready for App Store and Play review. It now writes Apple's privacy manifest (PrivacyInfo.xcprivacy), the scene manifest iOS 27 requires, the export answer (no encryption beyond HTTPS; with --voice, yes, because calls are end-to-end encrypted, with the US and France filing steps in the README) and background audio for calls. It prints the Android permission lines (notifications; with --voice the mic, camera and foreground-service types) and the Cargo lines your app lacks: Tauri 2.12.5 or newer (older ones crash at launch on iOS 27) and K2's patched wry, so an iframe in your page can't call your app's commands. It also adds k2_http.rs, one shared HTTP client. The README has a new section, "What user data your App stores and why": your App's people's data stays on your own K2 server, and it shows how to declare anything more your App keeps. k2 app doctor --store checks a repo for all of it and prints each fix.https:///_k2/voice/sew/ (its K2 label or a live custom domain) with the short-lived call credential your App's server gets for the signed-in person. The app never holds a K2 pass. K2 passes on only Sew's call routes, and only for an App whose Sew access and voice you approved. The TURN host comes in the call's own answer, so apps never hard-code it. More: k2 study chat-voice.files.uploadCreate, files.downloadToken, thread.attachmentToken) and gets a short-lived token. The phone's own background transfer (iOS URLSession, Android WorkManager) then sends ranges in any order to /_k2/transfers/ on your App's address, resumes after the app is killed, and K2 checks the size and sha256 before the file lands. Downloads resume with Range and If-Range. Every request checks the person's access again. Rust apps get the k2-transfer-client crate and web code gets uploadToDoor in @k2/server. More: k2 study app-transfers.profile.deleteAccount with the person's own sign-in (made in the last 15 minutes, or with their password). By default the App takes a request: K2 signs the person out of the App everywhere and turns their access off at once, and the deletion completes after 30 days or when you run k2 app account-deletion complete . k2 app set --account-deletion immediate deletes at once instead, and --deletion-grace changes the wait. The answer lists what was removed and what K2 keeps and why, so your App can show it. You and the App's agent get a note, and every step is in k2 app history --users . For Google Play's web link, serve a sign-in page on your App's own site that calls the same verb. More: k2 study app-account-deletion.diagnostics.send with a panic message, its last log lines, its version and its OS. K2 removes tokens and secrets it finds, keeps at most 64 KB per report and 20 reports per person an hour, and keeps them 14 days (k2 app set --client-logs-days ). Read them with k2 app logs --client . A person's reports go when their account is deleted./.k2/auth/sign-in on the App's own host (its K2 label or a custom domain); K2 answers that path before your App sees it and returns a one-time code, and your server swaps the code for the person's pass with k2.auth.exchange (PKCE, so the code is useless to anyone else). Your server never sees the password, and the browser never holds a K2 pass or cookie. First passwords, invite and reset links and password changes work the same way, and desktop and phone apps can use it too. It starts off: the owner turns it on with k2 app auth door on. More: k2 study auth-pages.Agents
k2 heartbeat status says what happened: "delivered", "delivered into live session", "restarted: weekly limit", "restarted: signed out" or "restarted: token changed". If the new session fails too, the fire counts as a failure. A heartbeat you pointed at a chosen session is never moved off it; the fire says it is stuck instead.k2 heartbeat restart stops a heartbeat's own session, so its next fire starts a new one. An agent can restart its own workspace's heartbeats without the "Allow hiring and managing agents" switch.Compute nodes
k2 compute git-access grant --github / lets a workspace's jobs git clone and git fetch those repos, sibling repos included, and the node fetches the job's own source itself, so a big private repo no longer stops at the 50 MB relay cap. Tokens are read-only and short-lived: set up a GitHub App once (k2 compute git-access setup --github-app --key-file ) and each job gets 1-hour tokens for one repo. A fine-grained token works too. The token never sits in the job's environment, so these jobs keep --cache, their warm slot and sccache (a --secret job doesn't). Only a person grants (an agent asks on a card), revoke takes it back at once, and a node another server owns gets tokens only when you name it with --shared. More: k2 compute git-access --help.k2 compute nodes and k2 compute info now show each machine's Linux distribution, kernel and package manager, and --distro ubuntu@24.04 picks one. A job can ask for system packages by their usual Debian names (K2 finds the right name on Arch) or for a whole bundle, like --needs profile:tauri-linux. Packages the machine's owner allowed install by themselves. For anything else, the owner gets one card to approve, and the agent hears back and runs the job again (k2 compute node packages). rust@stable now comes with clippy and rustfmt.Chat / Voice Hosting
k2 hostchat upgrade. Going back to an older Sew needs k2 hostchat rollback --accept-data-loss, because 0.8.2 changes Sew's data. Sew tested upgrades from 0.7.4, 0.8.0 and 0.8.1.Logs and delivery
K2_THREAD_TAKE_CHECK_SECS on the daemon to change the 20 seconds, or 0 to turn the check off.[thread-delivery] line per Thread message, with the session it reached, how, and how many tries it took.[push] line in the log with the reason, and k2 push log shows these next to the sends.k2 hostchat ship box-backup. K2 clears the off-box alarm only while it can see that backup is set up, and k2 hostchat status says what is missing.Fixes
v0.46.8
0.46.8 — Agents run their Apps' people
An agent can now look after its App's people from start to finish, and App screens update the moment someone's access changes, with no sign-out. Mailboxes can forward to up to 100 addresses and send files, your own domain can reach an App through K2 Connect, and the Windows installer is back.
When you update
files:write can't change the agent's root CLAUDE.md, AGENTS.md or GEMINI.md any more, the files its CLI reads as standing orders. A role that needs them adds files:agentconfig.k2 app history marks the ones you can still roll back to.sew-launch-key; k2 hostchat recovery-key still works.[guest on App ] , not [from ] , and every line after the first starts with > , so a guest can't pass for someone else. Anything that reads these lines should match on [guest .k2 app user rooms --apply-tokens is gone. Changes apply without it.k2 board without naming a board still works, with a warning. From the next release it's refused: pass --board .k2 hostchat rollback --accept-data-loss, because 0.7.2 changed Sew's data. From 0.7.2, a plain k2 hostchat rollback works.Your agents run their Apps' people
k2 app user sessions).k2 app user reset --app emails the person the App's reset link, which the agent never sees; --revoke takes it back. k2 app user unlock clears a lockout. k2 app history --users lists what happened.k2 app user add --app --temp-password shows one once; the person chooses their own at first sign-in.k2 app user shows such a login as "waiting for reset".owner, or one with the name of someone who signs in to this server.guests-rooms is now only about the App's own code: which rooms its server may hand its guests. The agent doesn't need it.k2 app handover status --detail shows them.k2 app chat shows what it's waiting on with Sew, not only "sending to Sew", and refuses another workspace's agent.Access changes without signing out
k2.asGuest(pass).me.onAccessChanged, or k2.asApp().me.onGuestAccessChanged for all of an App's guests on one socket; pages open /cli/skin/me/events?scope=me. See k2 study apps.Mail: forwarding
k2 hostmail forward set --to a@x --to b@y sets the list; add and rm change one. Each address can pause or stop on its own.--restart-stopped.k2 hostmail config --forward-new-per-day, --forward-copies-per-hour and --forward-copies-per-day. Agents can't.Mail: sending
k2 mail send --attach and k2 mail reply --attach, up to 10 files and 25 MiB. Under approval, you see each file's name and size and can save a copy.k2 mail send --reply-to sets where answers go.k2 mail forward-message --to sends one message on, with its attachments, under the same rules as k2 mail send.k2 mail sending say plainly what sending on means: an agent that reads a malicious email can be talked into sending mail and files onward. Use approval for any agent that reads outside mail.k2 mail link add you@company.com --provider microsoft --workspace signs you in with a code on Microsoft's page, then the agent reads and drafts as it does for a linked Gmail.Mail: safety and your mail server
on, an agent's reply is refused unless the message passed DMARC, its domain has no DMARC policy, or it came from a mailbox on this server..k2/, .env, keys, .ssh/, and text holding a credential. This catches mistakes; it isn't a guarantee..aws/, .kube/, .gnupg/, .docker/config.json, and gcloud, Codex and GitHub CLI logins.k2 hostmail doctor checks it.k2 hostmail ptr set takes effect at once, instead of at the mail server's next restart, and makes the new name's certificate the default if it has one. A domain whose MX still points at another mail host of this server stays Verified while you move it.Your own domain on an App
k2 app domain add prints a CNAME to ..k2.dev and a TXT record to set. No sudo or port 443, and your server's address stays hidden, so it suits a server behind a router, a Mac or Windows computer, or one where another web server holds port 443. Up to 20 names per server. k2 app domains says whether K2 Connect has this open for your server yet. On a public Linux server with K2's port 443 front on, you can still point names straight at the server.http:// reach your site. K2 holds port 80 when it's free and sends them to https://. k2 front http off turns it off; on a server whose front was already on, run k2 front http on.Building Apps
k2 app login settings --max-devices 5 (1 to 20). A new device past it signs out their least recently used one.k2 app init --template tauri --app . --voice adds the mic and camera permissions calls need.k2.asApp().chat.space().k2 app push set --register server .k2 app suspend is for you, an Admin or the App's own agent, and its help says so. A k2 app or k2 compute command your role can't run says which role it needs.Chat and calls (Sew)
k2 hostchat upgrade. k2 hostchat rollback now puts the voice engine back too; if it can't, it prints the one command to run, and you don't run the rollback again. Upgrades to 0.7.3 were tested from Sew 0.6 or newer.k2 hostchat enable installs the PostgreSQL version Sew needs if it's missing, from your distribution where it carries that version, otherwise from PostgreSQL's own repository, and says why if that fails. The setup wizard shows it as a step.k2 app grant hooks, then k2 app grant hooks retry on its blocked row.behindK2Front: true in Sew's kit config; without it, calls use the App's primary host.k2 app sdk add --sew again to get it.Threads
Your agent's pinned chat and sidecars
k2 agent refresh --note "…" starts a new chat on the same harness that carries on from a summary and the note. The Thread, messages and heartbeats follow it, and the old chat stays in Chat history. k2 study chat-refresh.--model on k2 agent harness or k2 workspace swap-canonical. A Codex preset's -c options, such as reasoning effort, are no longer dropped.k2 sidecar archive or --all-stopped. k2 sidecar new resumes the conversation.Secrets
--resume, and lasts at most 7 days, down from 30 (24 hours by default). If the agent isn't running, nothing is saved: K2 wakes it and you Save again.--scope session.k2 vault destroy, disable and revoke remove it from every running session and say what K2 can't undo: a value already read, or an environment variable in a running session.k2 vault grant --to session: refuses an id no running session has, such as the chat id k2 whoami shows.People and signing in
--keep-password to k2 users add or the new k2 users set-password.On your phone
k2 sim status show the owner's answer at once, with install progress.Gardens and Board
[[phone.screen]] to its file (k2 zen guide phone). Panning or saving on your phone no longer moves your desktop widgets.k2 board; k2 study board explains it..k5board files are boards, not text. k2 doc takes the board's verbs on them (the same answers, exits and bytes as k2 board) and refuses its text verbs, and a tab shows a card instead of raw bytes..k5board file in a workspace opens in its own tab, where you edit and save it, or Save a copy. If someone changed the same thing, your edit is held, even across a restart, until you pick Use mine or Use theirs.k2 board (path last, as with k2 doc, or --file) to read, search, add, update, delete, connect, react, vote, comment and move objects, and k2 board merge . Every change goes through the board pack's own parser, inside K2's save. Exits: 1 a conflict, 2 bad input, 4 a bad file or a newer format, 5 locks and voting. k2 study board explains it..k5board files in the workspaces you can read, by name and workspace, found by search too. A click opens the file's tab.k2.compute.nodes() (the compute:nodes cap).Live docs
Compute
k2 compute move --auto lets K2 place it; --to sends it to one node.--avoid on run, test or move --auto, retries included.--cpus says what it reserves on the node, and status marks such running jobs.k2 compute allow-nodes , . An agent can narrow its list; widening or clearing it needs a person or a card.k2-node is updated.Windows (Alpha)
Fixes
Untitled already in the folder or open in a tab.v0.46.7
0.46.7 — Apps run their own chat
0.46.7 brings Sew 0.6.0: an App can now decide who sees which chat and voice channel in its own Space.
k2 publish sites are private by default, can sit behind a PIN, and can run your dev server with hot reload.
Hosted mailboxes can forward to outside addresses like Gmail or Outlook, after the person at that address confirms.
People and agents can now edit the same file at once with live docs. Your prompt stash syncs between your desktop and your phone.
K2 for Windows (still an Alpha) stops flashing console windows, gets Gardens, a working tray, terminal copy and paste, and editor menus.
When you update
k2 publish run --skin sites are refused. Sites already on --skin keep running. A folder of files is now an App: k2 app init --template static.k2 hostchat rollback --accept-data-loss, because 0.6.0 changes Sew's data.k2 hostchat, k2 chat) and settings are unchanged.Chat and voice (Sew) and App-governed Spaces
k2 hostchat upgrade. (Going back to 0.5.0 afterwards needs k2 hostchat rollback --accept-data-loss, because 0.6.0 changes Sew's data.)k2 app grant --kind chat-key , with a confirm). The App's manifest then maps its own roles to private channels and levels. Switch the Space over with k2 hostchat app-space governance app ; you or an Admin do this in person, and an agent asks on a card. From then on the App's users get chat without a chat grant each (up to the key's limit), and the App's server can add, rename and archive channels and set who is in them while it runs (chat.channels, chat.setChannels, with helpers in K2's server SDK). k2 app chat shows the key, who governs the Space, its channels and each person's.k2 chat space create --app makes a new Space owned by the App in one step.k2 hostchat enable and upgrade (and voice and rollback) now download the release K2 is pinned to and check it against K2's own checksum. No --tarball needed. A server with no internet gets the exact address, checksum and command to fetch it by hand.sew-recovery-key, and existing installs get the copy at the next start. You or an Admin can see it with k2 hostchat recovery-key or Reveal in Settings → Vault, with a confirm. Agents never see it.k2 app expose --tunnel gives an App that was installed without --tunnel its public address, with the same logins, grants, secrets and Spaces. Before, you had to re-create it. --local takes the address away again.k2 study chat-voice (setup, who does each step) and k2 study chat-voice-rooms (voice rooms and channels).k2 chat channels, and an App's address takes request headers up to 128 KiB, the same limit as Sew.chat.createChannel on a name a voice channel already uses now answers channel_type_mismatch, instead of a general failure.chat.member, chat.whois and chat.createChannel calls now reach K2 through the App's own address. In 0.46.6 they were refused.k2 app user add --test finds an App published with --skin.Publishing: who may open a site, and dev servers
k2 publish visibility private|pin|public . Private opens only for you and your Admins, after K2 checks who they are. PIN asks for a PIN first. Public is open to anyone with the address; it needs a reason and an owner or Admin. Visitors who fail the check never reach your site.k2 publish open gives a one-time link. k2 publish sessions --revoke-all signs everyone out.k2 publish run --dev serves a dev server from the live folder, with hot reload through the site's address. It's private until you share it. It stops after --idle (60 minutes by default) and starts again for the next visitor who passes K2's check. On Linux, --mem and --cpus cap it. An agent's first dev server waits for you. A dev server can't be made public by an agent; share it with a PIN instead.k2 publish ps shows who may open each site. --long adds why a site is public and a dev server's limits.Email and hosted mail
k2 hostmail forward set --to you@gmail.com (or Outlook, or any address). K2 first emails that address a confirm link, which works for 24 hours. Nothing is forwarded until someone clicks it, and only mail that arrives after the click is forwarded. A copy stays in the mailbox unless you add --no-keep.k2 hostmail forward show|pause|resume|unset|list, or in Settings → Email Hosting → a mailbox → Forwarding, which shows the state, the confirm link, the last 24 hours and recent events.k2 hostmail person link . They can then use k2 mail forward or the same Settings panel.Live docs
k2 doc who), and each person and agent has their own undo. K2 keeps the file on disk up to date and merges edits from other programs. Agents use k2 doc for reading, editing, history, versions, restore and blame. k2 study docs has the guide.k2 doc leaves them alone (it says core_off). Agents and headless servers use k2 doc cores..txt, logs, and .csv/.tsv as text. They open for live editing with presence, attribution, everyone's own undo and the full k2 doc verbs. In a CSV, edits to different rows merge. A row is one line, so an agent's write to a row someone else changed conflicts. A sorted or moved row loses its identity, so an agent's edit to it conflicts too.k2 doc who), a lease (k2 doc lease), versions and restore. k2 doc status says why a text file isn't live. When a program saves such a file while someone holds its lease, both are kept: the save is current, and the replaced content stays as a version and as a copy under .k2/conflicts/. Files over 32 MiB are declined.k2 doc claim --lines 40,60 says "I'm working on these lines". Another agent's edit there is refused and put in line. The refusal shows in its terminal and in Chatter, and K2 tells it when the lines are free. Claims never hold people back.k2 doc blame shows who restored it).k2 doc replace --old "teh" --new "the" notes.md, with no regex to escape.k2 doc command. Reverting such a save puts the text back under its original author.k2 doc export --to as-is notes.md writes the doc as it is now beside it, as notes.v42.md. --version exports a past version. An export never changes the doc or its history.Prompt stash
Windows (Alpha)
k2:// link, shows the window that's already running instead of a second copy.#### Windows Alpha: known issues
k2 CLI needs Git for Windows (it runs in Git Bash). K2 tells you when it's missing.Apps
k2 app init --template static.k2 app init --template tauri|static|node-api never overwrites your files. k2 study tauri walks through the K2 side of a Tauri app from start to finish.k2 app updates push publishes a signed build to a channel, and promote, rollback and pull manage what installs. stats shows downloads and check-ins by day, platform and version, with no IP addresses. Each App's settings have a Releases panel with its channels, files, downloads and active users.k2 app status : how an App is, on one screen. It shows the deploy, health, the App's own checks, errors in the last hour, resources, addresses, phone pairing and the update feed, with the exact command for anything red or yellow.k2 capabilities lists what this server and your compute nodes can do. Each "no" comes with its reason and its fix.k2 explain . Every App refusal has an id, with what it means, the fix and who can fix it. A refused k2 app command now prints a fix: line.host.checks lists up to 10 requests K2 makes after every switch to live. A failed check wakes the App's agent once. Checks never block a deploy.k2 app links serves your iOS and Android link files on the App's address, with or without phone pairing.k2 app deploy|build|validate --manifest uses a manifest kept outside the folder.push.viewing).--drop-access on k2 app uninstall, k2 app release and k2 workspace remove. Nothing is half done.Mobile tab
k2 workspace design-tab|mobile-tab.Agents, sessions and worktrees
k2 sessions: who is working in this workspace. It lists live sessions and their state, and past conversations from Claude, Codex, Grok, Gemini, Cursor, Pi and Hermes, which you can search and reopen as a helper with the same history (k2 sessions open). k2 msg --session reaches whoever holds a conversation. k2 study sessions has the guide.k2 sidecar new --worktree gives a helper its own branch and folder. review, interrupt and retire work as you'd expect. Land is for people only and asks on a card. At each turn's end, a card on the helper's Thread lists the files it changed.Threads
↩ #N name: line and the quote. Agents read that message whole with k2 thread --seq N .Phone and notifications
k2 push device remove drops one phone's registration (owner or Admin). k2 push devices shows a short fingerprint for each phone, never its token.Vault and permission cards
k2 publish secret add and k2 vault grant --to service for a secret a person gave now end with the line to ask. You, an Owner or an Admin allow it on a card, with a confirm.k2 app grant list now shows an agent the logins on its own Apps.k2 app user chat … --app ) when it has the guests-chat grant and may manage its Apps' users. Before, it was refused.k2 vault send --delivery fetch|file|env lets the sender choose how it arrives, and every answer says how to use the secret.Security
file:// link to a file in one of your workspaces opens in K2's own viewer. Other link types show a short note and open nothing.Fixes
--with works again when the sibling repo's commit isn't on the node yet (broken since 0.46.6). A node's job log now keeps the server's reason when a transfer is refused.Known issues
k2 hostmail forward set to an outside address is refused with the upgrade hint, and a forward shows as held (upgrade_required) until you run k2 hostmail upgrade. Forwards between mailboxes on the same server work on any version.v0.46.6
0.46.6 — A phone beside your agent
0.46.6 puts a phone beside your agent: a Mobile tab with a live Android emulator or iOS Simulator, and k2 sim so agents can drive it.
Apps can now live on your own domain, served straight from your server, with a firewall view and a guard for visitors.
App email now tracks bounces and complaints, agents can email the people on your server, and Sew 0.5.0 brings chat to your Apps and k2 chat to agents.
Compute picks a node for you and shares nodes fairly. Moving a server carries its vault. K2 for Windows arrives as an Alpha.
Updates are signed with new keys, kept on a dedicated release Mac and used only after a Touch ID approval.
Mobile
k2 sim gives agents hands and eyes on the device. An agent reads the screen as a short list of elements with ids (k2 sim tree), acts on one (k2 sim tap e5) and gets back one line saying what changed. It installs the app it built, reads bounded logs, and types vault secrets it never sees. Booting a device opens the Mobile tab for you. Agents need the workspace's Allow mobile devices switch, which is off by default, and the server's owner accepts the Android SDK licence once. k2 study sim has the guide.k2 sim gets the same line (sim_lane_unavailable) instead of a bare error.Windows (Alpha)
k2 CLI now work on a Windows PC. It's for your own computer for now; read the known issues below before you rely on it.claude.cmd) start, their arguments arrive intact, and install-on-click installs the LLM CLIs. K2 recognises its agents and their hooks, finds an agent's chat again after a restart however Windows spells its folder, and starts an agent whose folder is gone, as on a Mac.k2 vault doctor finds GitHub CLI and Vercel logins where Windows keeps them.k2 publish run --cmd services start cleanly quoted and contained, and Routines and k2 job get a working PATH.k2 CLI runs in Git Bash. It reads and prints UTF-8, posts JSON from its input, keeps K2 Connect paths intact, and says plainly when it needs Git for Windows or Python.\ counts as absolute, so K2's folder limits still hold.#### Windows Alpha: known issues
k2 CLI needs Git for Windows (it runs in Git Bash). K2 tells you when it's missing.Apps on your own domain
k2 app domain add app.yourdomain.com shows the two DNS records to set (DNS-only), proves the name is yours with a TXT record, gets the certificate itself and serves the App on it through the server's :443 front. A server on a home or office connection, or a Mac or Windows computer, is pointed at K2 Connect instead (coming in 0.46.7).k2 app domain add --external (or k2 app domain external on|off) adds it as an origin of the App, with no checks or certificate from K2. App names you bound before 0.46.6 are kept that way.k2 firewall: the ports your server serves publicly, worked out from what K2 runs. SSH, the :443 front, hosted mail and Sew voice each say why they're open. Choose who may reach SSH, open a port for something you run yourself, or copy ready-made nft / ufw rules for a server nobody manages for you. Also in Settings → Network → Custom Domains → Firewall. Agents can read the list but never change it.k2 firewall guard.k2 front passthrough add --to 127.0.0.1:9443 : its sites pass through untouched, with its own certificates.k2 front works in a K2 terminal tab, like k2 firewall. k2 front status, enable and disable now accept you in a K2 shell tab, not only over SSH or an Admin login. An agent that tries gets a plain "the owner runs: k2 front …" refusal (exit 3) instead of "invalid or missing token".Apps
k2 app sdk add puts K2's server SDK in your App, so import { fromEnv } from '@k2/server' works after npm install. Add --sew for Sew's chat, voice and video packages (Sew 0.5.0 or later).chat.createChannel, for example one channel per job). Asking again for the same channel finds the one already there. The App can't touch another App's Space, its guests can't do this, and the App asks for it once in its manifest for you to approve. Needs Sew 0.5.0 or newer on the server.k2 publish ps prints "k2 publish logs. k2 publish secret --help has its own page (scopes, --as, --env-name, --file-name, restart steps), and k2 publish run --cwd takes a path relative to where you run it.k2 publish run isn't asked again for the same command. Running it again with the same command, port, folder and tunnel goes through and says which approval it repeats; any change asks again. A held run now puts its card on the agent's Thread and ends with its Ask with: line. An approval lapses after 30 days or when the App is removed, and you can end it sooner with k2 app approvals revoke (or --app ).App users and sign-in
k2 permission request apps.user-password-reset user=. You (or an admin, for people who only use your Apps) tap Allow: show me a password and K2 makes a new one, shown once on your screen with Copy and a 60-second countdown; the agent never sees it. The person is signed out everywhere and their sign-in lock is cleared. The card can instead give you a one-time link for them to choose their own password, or, when K2 trusts their email, Email them a link instead, which also works from your phone. The card then reads who reset it and when. The set-password page now keeps its link for the tab, so a reload still works.k2 app sdk add , then npm install). k2.login then returns mustChangePassword with a link to send the person to. An older SDK treats it as a failed login (password_change_required).git clone or a pnpm store, stops being readable by guests; copy it there instead if guests should have it.Email and hosted mail
k2 notifications email address set you@example.com, run from your own terminal, emails that address a confirm link from your server's system sender. Nothing else is sent there until you press Confirm on the page the link opens, and a link scanner opening it can't confirm for you. Every email to the address has a link to stop them. Agents' email notices will go to this address.k2 notify email --subject "…" --text "…" sends one plain-text email ("the nightly build failed") to a person's confirmed notice address, from a sender that belongs to that workspace (never your system sender, never the agent's mailbox). It's off until you turn it on per workspace: k2 notifications email agent on --sender , with a confirm. Every email says which agent sent it and has a link to stop them; anyone can mute one workspace with k2 notify email mute . At most 10 an hour and 50 a day per workspace.email.status (recipientStatus) and email.log (bounced, complained). An address that hard-bounces is skipped by every sender from then on, and one that complains is skipped by that sender. A send where every recipient is skipped answers all_suppressed. k2 notifications email suppressions lists, adds and removes them.email.status shows delivered or delayed for that recipient. A message that left before K2 could match it stays submitted; K2 never guesses. Bounces and complaints still come from the reports, as before. K2 sets this up on its own when hosted mail starts or is upgraded.email_paused, and you get a notice. Resume it with k2 notifications email sender resume from your own terminal; it asks you to confirm. Password resets and codes for that App go out from your system sender meanwhile. The system sender itself is never paused, because that would stop every password reset; you get a warning instead.k2 notifications email sender add noreply@yourbrand.com --via bounce.yourbrand.com. Bounces and the signature use the subdomain, and K2 never changes yourbrand.com's DNS. If yourbrand.com's DMARC record is strict on both checks (adkim=s and aspf=s), K2 refuses, because that mail could never pass. The confirm names both the address and the subdomain, so a confirm for the address alone can't add it.k2 notifications email for now.k2 app email send from a plain K2 terminal tab counts as that workspace's agent. It follows the agent's email sending setting, like the agent's own sends. Your own terminal outside K2, and Owner or Admin logins, still send as themselves.k2 mail access … from your own terminal). It can still share inboxes with other workspaces.k2 hostmail forward / ooo keep working. Filter scripts that mailbox users had already added are recorded in the auth audit log and removed when K2 starts, and you get one notice listing them. k2 hostmail audit-sieve shows the filter scripts on every mailbox without changing anything.k2 hostmail password rotate now revokes every API key on the mailbox and says how many. k2 hostmail audit-sieve also lists mailboxes that still hold API keys.Chat (Sew)
k2 hostchat upgrade. It keeps each App's users to that App's own Spaces, can hide an App from the home client, lets K2 hand out the App kit (k2 app sdk add --sew), and gives video its own permission: a role without it joins calls with audio only. A person's chat name and picture now come from their K2 profile, so they change them in K2, not in Sew. Titles and pronouns already set in Sew are kept but can't be edited there for now.k2 chat. An agent reads, replies and posts in Sew as itself, and sends direct messages by handle. You choose, per Space, whether it may read, reply, send or manage, and whether what it sends waits for your approval first. k2 hostchat agents, approvals, people and log show who may do what and what was sent.k2 chat unread, mark-read, follow and prefs (batching and quiet hours) let it manage them, and k2 hostchat deliveries shows what was delivered.k2 hostchat verbs. restart brings Sew back in the right order and waits until it's ready. app-url, ship (off-box backup copies), mirror, app-space bind|unbind and open (open Sew as its owner, you only) match the Settings page. K2 waits while Sew upgrades and says why when it isn't ready.k2 hostchat rollback, because that would lose the chat written since. The owner can now choose to anyway, from a terminal outside K2: k2 hostchat rollback --accept-data-loss. K2 first backs up today's chat (restorable onto the newer Sew later), rolls back to the backup Sew took just before the upgrade, and checks Sew is healthy. An agent asks the owner on a permission card, which says plainly what is lost.Vault and secrets
k2 thread secret can now say where it goes and how: a Basic login (--inject-dst basic; you paste user:password, or only the password when the agent names the user), a header (--inject-header X-Api-Key) or a URL parameter (--inject-dst query:appid). The card says it in plain words before you click Save, and you can change it under Advanced. Once saved, only a person can change how it is sent. An older K2 app can't show this, so it refuses such a card with "Update K2 to answer this card".k2 vault grant in your own terminal. Shares where K2 adds the secret for the agent and it never sees the value work as before, with no confirm.k2 vault incoming shows how each one arrives, and the message the agent gets says how to use it.k2 vault incoming accept --replace used to keep the old secret's delivery. If the new one lets the agent read more, only you or an Admin can replace it, the same as changing a delivery yourself. The accept now says how the agent receives the secret.--ttl 1h now shows "expires in 1 hour" on the receiving card, not 7 days, and the copy is removed an hour after it was sent.k2 vault file --secret NAME writes one secret the agent receives as a file (or an environment variable) to a short-lived private file and prints its path, so a tool can read it from the file or its input. The value never goes on a command line or into the agent's chat.k2 permission request vault.delivery … line (with permission cards on). You get a card on its Thread, "Let it read NAME as env?", and Allow makes the change.k2 vault show, grant, get or another by-name command finds no secret by that name in the scope you asked, it now names the other scopes holding one you can see and the --scope that reaches it. A refused share of a secret with an agent's own published service names the command you run in your own terminal (k2 publish secret add …) instead of pointing at Settings, and vault refusals end with the Ask with: line when permission cards are on.k2 vault status lists every key holder. Run k2 vault backup key (or k2 vault backup key remove) from your own terminal; it asks you to confirm. Status shows who can open the vault (this machine's key, the recovery key, a backup key) by fingerprint. If a backup key was added earlier without a confirm, you get one notice and k2 vault doctor names it, so you can remove it if it isn't yours. A vault backup from the K2 app needs a confirm too.LLM tokens
/login (or codex login) in a terminal and a different account ends up live, K2 now saves that sign-in as its own token, marked "Added outside K2", instead of refusing every switch. The token that was the server default keeps its own sign-in, so you can switch back to it without signing in again, and adding or signing in tokens works whatever is live. Owners and Admins get one notice per new account, with Keep or Remove. If a token's saved sign-in turns out to belong to another account, K2 moves it to that account's token and asks you to sign the first one in again.k2 llm tokens storage vault (Admin or Owner) seals every saved subscription and API token, removed ones too, into the vault's daemon-only area, where nobody can reveal them and nothing copies them to another server. The plain files stay for now, so k2 llm tokens storage files goes back instantly with nothing lost; k2 llm tokens storage shows where each token is. The server default stays where each tool reads it. If the vault can't open at start (a locked keychain), K2 tries again after 1, 2, 4 … up to 30 minutes; if you cancel the Keychain prompt it stops asking, tells you on your Thread, and k2 vault open opens it when you're ready.k2 llm tokens status, list and usage report each token's used percentage and whether its limit has reset, instead of 0%.Agents
k2 agent harness claude (or codex, grok, …) starts a new pinned chat on that harness with a summary of the recent conversation, points heartbeats, Threads and messages at it, and keeps the old chat in Chat history. Settings offers it after you change a Default Agent, and the pinned chat's menu has Move pinned chat to …. If the harness isn't installed nothing changes, and the error says how to install it.k2 workspace swap-canonical now needs a person. Since 0.45.1 an agent could swap its own pinned chat; now it gets exit 3 (harness_needs_person) and can ask with a permission card (k2 permission request agent.harness-switch harness=). You, an Admin, or a person in a K2 shell tab can still run it, or the newer k2 agent harness.k2 heartbeat disable --workspace (or enable) works for you, an Admin, or a person in a K2 shell tab; an agent gets exit 3 and can ask with a permission card (heartbeat.pause-other / heartbeat.resume-other), and the error says which workspace instead of "no such heartbeat".--workspace.Gardens
k2.pick) or takes files you drag onto it from Finder (k2.onDrop). The files are kept in that widget's data; the widget never sees where they came from.store.history, store.snapshot, store.restore), and so can agents you allow (k2 store history|snapshot|restore --widget). A restore is one new change you can undo, and K2 keeps a snapshot first.k2 zen data restore restores any widget's data from a terminal outside K2, to a rev, a time or a saved version. An agent always restores part of a widget's data; the whole widget is yours.zen.download.allow / zen.download.forget). An "Always" that an early 0.46.5 build kept only in one window's storage is moved to K2's own list the first time a widget downloads, so it now holds in every window and the web client too.k2 zen widget preview --shot draws a widget's images: files in a blobs/ folder beside the --data fixture answer k2.blobs.get.Tickets and Threads
k2 tickets ask … --file out/shot.png, k2 tickets comment --file … , k2 tickets resolve --answered "…" --file … ). You can pick, drop or paste files into a ticket's message box too. Files show under each message as chips, images show as pictures, and each one says when it changed or was deleted since it was sent. Click to open it, or Download to save it. A file is a pointer to the workspace file, never a copy. Secrets (.env, keys, tokens in a file) are refused, and App guests see only the files their own folder access already covers.Compute nodes
k2 compute run -- now picks one of the nodes your workspace is granted that can start the job now, preferring one that already built your code unless it's busier, and spreads a burst of jobs across nodes. When nothing is free it queues where the wait looks shortest and moves if another node frees up first. It prints where the job went and why (placed on k2n10-vin (auto): starts now · …), and k2 compute get shows the same. Naming a node still pins the job there, and --any means the same as naming none. It only ever uses nodes granted to the workspace, for you too; k2 compute placement v1 brings back the old ranking. --os and --arch accept the usual spellings (arm64 or aarch64, x64 or x86_64, mac or macos).--priority needs a one-line --why "…", which shows in k2 compute queue and k2 compute status, and a workspace has at most two Priority jobs queued or running (more run Standard, with a note). Inside each line, submitters take turns, so one builder's burst can't hold the others; a job that has waited an hour skips the turns. Nothing running is ever stopped or reordered.k2 compute run --tier batch starts a job only when the node is idle, one at a time, and never holds anyone up. It is always detached and waits up to 48 hours.k2 compute retier --tier standard|priority|batch|ci changes a queued job's tier. An agent can retier its own workspace's jobs; you and Admins can retier any job.k2 compute grant --workspace --submitter-max-running 2 lets no single submitter run more than two jobs at once on that node. It is off unless you set it.k2 compute node update ). On an older node, Batch waits on this server until the node is idle, then runs as Standard.k2 compute run without --mem now reserves 4 GB (or less, if the node or share allows less per job) and prints a note asking you to set it. A job that uses more memory than it asked for is stopped, with a message naming the limit, and a node only starts a job when its memory fits.k2 compute get, wait and run --wait print "queued on k2n9-vin: 2 of 5 — your workspace runs 3 of 3 here (its grant); jobs behind it may start first", or "waits on this server" when it hasn't reached the node yet. k2 compute queue has a WHY column. A job that times out in the queue names what it waited on. Positions on the node need k2-node 0.46.6; the rest works with older nodes.k2 compute run --wait streams the job's output after printing its id, and still exits with the job's exit code. --wait --quiet keeps the old exit-only wait, and k2 compute wait --follow picks the stream up again after your shell timed out. Attached and --wait runs now wait up to 2 hours in a queue (was 30 minutes); --detach stays 24 hours.k2 compute run --repo ships a git repo nested in the workspace (or a worktree of one) at its own HEAD, --sha or --dirty, when the workspace folder itself isn't a repo. Run from inside one of those repos and K2 finds it for you. Only that repo goes, never the rest of the workspace or its .k2/ folder, and each nested repo keeps its own warm build on the node. Needs only this server's update.--with DIR[@SHA] adds another repo (or a worktree of one) from the workspace, laid out beside the main one on the node.k2 compute run --cache NAME gives the job a folder on the node, $K2_JOB_CACHE, that the next run of the same workspace finds again, also for --no-source jobs (fuzz corpora, installed tools, a cargo target dir). Caches count toward the node's disk limits and are cleared when idle and the disk runs low. k2 compute cache lists them, k2 compute cache clear empties them. A --cache run with no node named warns that its cache may be empty on the node K2 picked. Needs k2-node 0.46.6 on the node (k2 compute node update ).k2 compute grants --workspace shows that workspace's grants. It used to show only the workspace you ran it from. You, an Admin or a person in a K2 terminal tab can look at any workspace; an agent sees its own, and asking for another workspace gets a clear refusal.k2 compute status and nodes count a shared node's waiting jobs as queued, not running.k2-node servers add --code -, k2-node enroll --enroll - and the node installers read the code from their input, or from K2_NODE_ENROLL_CODE, so other people on the machine can't see it in the process list. k2 compute node add prints its install commands that way, and --json gives a script the code, its expiry, the node and the server in one object. Needs k2-node 0.46.6 on the node.sudo k2-node … works on Linux compute nodes. The node installer now links /usr/local/bin/k2-node to the node binary, so you no longer need its full path.k2n12 finds k2n12-vin when only one node starts that way, on run, test, info and cache..k2/compute.toml sets defaults and named presets (--preset NAME) for --needs, --env, memory and more; flags win over a preset, and a preset over the defaults.--needs rust@stable+clippy+rustfmt asks for Rust components too, and K2 prefers nodes that already have what a job needs. --plan shows each need as ready, to install or unsupported, the tools on the node, the limits that end the job (stall, queue, timeout) and the source it checked.--now, --same-node-as and --tag. --now starts the job at once or exits 3 naming the shortest wait, with nothing queued. --same-node-as runs on the node that ran that job, and --cache NAME prefers the node that last used the cache, waiting up to 15 minutes for it when it's busy, so a resumed run finds its files. --tag NAME labels a job.--exclusive needs a reason and the right to use it. It now takes --why "…" and the grant's CI right, the owner or an Admin.k2 compute prewarm installs a job's tools on idle nodes ahead of time, as Batch jobs.CARGO_BUILD_JOBS, RUST_TEST_THREADS, NEXTEST_TEST_THREADS and OMP_NUM_THREADS are set to the job's CPUs unless you set them.k2 compute events shows what happened to your jobs. Plain events now lists your workspace's job events (queued, started, finished, requeued, moved) instead of you polling logs; --follow streams new ones as they happen and --json gives a script one object per line. The old audit log is k2 compute events --audit.k2 compute wait … --any returns when the first of them ends. k2 compute cancel --if-queued cancels only a job that hasn't started yet, and cancel --all-mine cancels the queued jobs this session sent (--force for started ones too).get and the job lists. k2 compute get shows the job's place in the queue and its expected start, the tools it ran with, its peak memory and its times on the node. jobs and queue have TAG and WHO columns, and jobs --tag NAME finds a tagged job.K2 Connect
relay.k2.dev by default, not a fixed address. A server that still has the old built-in relay address saved dials relay.k2.dev instead once that name resolves; nothing in its settings is rewritten. k2 tunnel status shows the relay it dials and, when it stands in for the old address, says which. To go back to the old address for now, add "relay_default": "legacy" to ~/.k2/tunnel.json or start the daemon with K2_RELAY_DEFAULT=legacy; k2 tunnel --help has the details.k2 hostmail ptr show and ptr set refuse when the address they see is any relay your tunnel knows about, not only the old one. If a relay name can't be looked up, ptr set stops and asks you to try again; ptr show notes it.relay.k2.dev and then the list K2 Connect hands out.K2_CONNECT_DB_URL or the Owner-only connectDbUrl setting; the desktop app, the daemon and k2 connect all read the same value, and K2 never switches servers on its own.Moving a server
k2 migrate import-secrets begin), the old one exports its whole vault to it (k2 migrate export-secrets), and the new one checks and adopts it (k2 migrate import-secrets , then --apply). Every secret moves, including the tunnel token and the mail and database passwords, between any key homes (Mac Keychain, root helper, system credentials). The old machine's key never leaves it, and its vault is frozen after the export: reads keep working, writes wait. Each step is the owner's, with your vault confirm; an agent's request waits for you as a card on its Thread. --undo and --unfreeze call a move off, and nothing on the old machine is deleted. k2 study box-move has the order.k2 tunnel status says the token is locked in the vault (and why) instead of looking unpaired.Your server
~/.k2/k2.db. On first start K2 renames its database and leaves a link at the old name. A stray empty file is moved aside, never deleted. If two files both hold data, K2 stops and asks you on your Thread which one to keep instead of guessing; k2 db home shows which file K2 uses, and k2 db home --keep (the owner) settles it.owner or agent any more. K2 uses those names for itself. A login that already has one of them can no longer sign in or do anything; k2 users list says which, and you can remove it in Settings → Admin Access and add the person again under another name.k2 daemon status shows whether agents survive restarts and how many came back at the last restart, like k2 daemon survive status (macOS and Linux; --json has ptyd and adopted).systemctl reload used to kill the daemon at once, skipping its shutdown (a stop could leave agents running). The helper's unit settings now wait for the daemon to finish, as K2's own unit files already did.k2 root-helper update --version (or --match-installed) fetches the root helper for the daemon you are about to run, not the one still running, and it warns when the installed or a staged daemon is newer than the helper it fetched. Before, running it before the restart after a binary swap left the old helper in place.Updates and releases
k2 daemon install accepts only the new kind.Desktop and CLI
k2 agent list --json and k2 workspace list --json give scripts every field, and k2 agent restart takes a handle, a name or a full workspace path.k2 app rehost names the App and says how it moved.k2 --version prints and exits without starting or restarting the daemon.v0.46.5
0.46.5 — Agents stay up
When you update
k2 daemon survive off). Windows keeps the old behaviour for now. k2 daemon survive status shows how many agents came back after the last restart.Threads and agents
k2 thread read-all . Cards still waiting for an answer stay waiting.-p…, header values, key=value pairs and long random-looking strings.Apps
k2 app pairing setup), K2 serves their link files on your App's own k2.dev address, and the phone gets the same "Stay signed in" sign-in as a device login, with notifications in the same step. k2 study app-pairing has the guide.k2 app profile settings). Password resets and the sign-in lock are stricter too: a used reset link ends the person's other links and clears their lock. See k2 study app-profile.k2 app email on --sender ) and it can email its own users with email.send: receipts, sign-up mail, codes. K2's own mail (password resets, invites) leaves from a system sender no agent can read. Senders can be a hosted domain or an SMTP relay, so a Mac or a domain hosted elsewhere works. Each App has a send log and limits. See k2 study email-notifications.k2 app handover --to , Hand over… in Settings, or k2 agent hire --take-app when you hire. Its labels, link, rooms, guests, secrets and database move, behind a card you confirm in person, and you have 72 hours to undo it. k2 study app-handover.thread.watchActivity, a ready-made , and thread.activityRooms to catch up on many rooms in one call. k2 study live lists every live surface, the caps it needs, and what never to infer from messages.k2 app grant role --role keeps the person signed in. The user list now shows each person's App role and rooms, and a held test guest says how its password gets set.Gardens
uplot@1 and gets K2's current copy, so it never ships its own. New: k2-markdown@1 (K2's safe markdown) and k2-activity@1 (K2's activity bar). k2 zen guide libs lists them.k2.thread.onActivity: the same counts and step kinds an App's guest sees, never the text.k2.blobs) and save a file to your Downloads (k2.download). The first download asks you, and each widget gets an hourly budget, kept by K2 so every window shares it.store.batch and transactions take patch operations, so a mix of puts, patches and deletes lands together or not at all. A conflict names the operation that failed.k2 zen widget delete moves a widget that isn't placed on any Garden into history, with an undo.Compute
k2 compute run --tier priority is for the one job others are waiting on, and --tier ci needs a grant from the owner. Running jobs are never stopped. Choose who may run CI jobs in Settings → Compute.Fixes
layout.subscribe no longer hits the rate limit after a reload, and k2 zen validate says how long ago a runtime error was logged.k2 git-tools, and a mistyped workspace path is refused instead of creating folders.k2 app data ls at the top of the folder works on guarded Apps.v0.46.4
0.46.4 — App users in safe hands
When you update
k2 app access --users on ). It starts off for every agent, including agents that did this under Build and run Apps before, so turn it on for those agents. While it's off, a test guest or a guests-rooms grant waits for you as a card on the agent's Thread: Allow once, or Allow, and let it manage its Apps' users from now on. The cards show even when the Permission Cards Beta is off.k2 app grant copy-host, you get one request listing exactly who would be copied, and approving it copies exactly those people. The agent only ever sees how many, never who.--cmd services keep running. 0.46.3 said they would stop in this release. They don't, and no release is set to remove them. Move each one to an App when you're ready: k2 study app-move shows the steps, and k2 app move-plan lists what's done and what's left.k2 app rehost policy.sudo k2-node setup at each node once. After that, nodes update themselves./run/k2, and that only starts working after the service fully restarts (an in-place update doesn't do it): run systemctl daemon-reload and restart k2-daemon. Until then, k2 vault doctor warns runtime_dir_logind. The tunnel drops for a moment while it moves.skin.db.pre-6.bak). It also can't read secrets that use ssh-agent delivery, job grants or signed fetch, and k2 vault doctor warns about those.App users and grants
k2 app user invite). Invite links last 72 hours and are sent from the server's hosted mail. An agent can't make box logins or admins, and can't reach another workspace's guests.k2 app user reset, 24 hours) goes through K2's own page and ends the tie.k2 app user add --test ). They last 24 hours by default and 7 days at most, an App can have up to 5, and they sign in only through that App's link.k2 app login settings (15 minutes to 30 days).k2 app install says it's the same request and raises the card if cards were turned on since.Fixes from the field
415 json_required). Those routes take forms again. A guest pass sent in ?token= is now recorded as that guest, and k2 app warnings flags form calls and ?token= passes in your App's code.k2 agent hire --dry-run checks every --connect target, including agent::host on a paired server. One failed step (connect, project, context and so on) no longer stops the rest: every step reports, and the exit code is the first failure's.k2 app install now shows its Ask-with line.First run on a Mac
k2 git-tools install open Apple's installer for the Command Line Tools. Click Install, not Get Xcode. It takes 5 to 15 minutes and the window may open behind K2. Agents see a one-line note while git is missing. On Linux, K2 shows the install command for your distro.Apps
requires.postgres ("17", ">=16 <18"), k2 app install --pg-major picks one, and k2 db upgrade --app moves only that App's database. After a move, the App starts again on the new database through the same health-checked switch.k2 db upgrade --live keeps a copy on the new version in sync while the App runs, --switch moves over with a short write pause, and --abort undoes it. Settings shows live moves. It needs this version's root helper.k2 app push setup; the owner, in person, with a vault confirm). The App, its agent and you can then notify the App's own users on their phones. Turning push on asks you once per App. Agent replies can notify too (k2 app push set --agent-replies on , off by default). See k2 study app-push.app.rooms, guests.list; k2 app guest ceiling|list), take files into upload-only drop folders (files:upload, k2 app role paths --upload, a Drop box role template), and let a guest save chosen files or folders without seeing the rest (--download, files:download).K2_CARD_PERSON_ONLY=off on the daemon until 0.46.6.k2 app list has an engine column, and k2 study app-runtime explains re-hosts for App makers.Moving services to Apps
k2 app move-plan lists every step of a move, from box prep to stopping the old service: what's done, whose step it is and the command for it. --request asks you once for all of your steps.k2 app data ls|get|rm|mv reads back and tidies what an App's pages wrote, so an agent can work with its App's data without a terminal on the box.k2 app domain add|rm points any other subdomain of the workspace at the App. A hostname that belongs to someone else needs your --transfer..k2appignore keeps files out of a Seed, and builds report the Seed's size and its heaviest paths. Refused calls through an App's link show in its audit and its log.Agents keep running through updates (Beta)
k2 daemon survive on) and agent terminals live in a small helper while K2 restarts or updates, then reconnect to the new version. It's off by default and works on headless servers too. k2 daemon survive status shows how many agents came back after the last restart.Compute
k2 compute run|test --secret NAME[=ENV] gives a job a vault secret as an environment variable. It needs a compute: grant that only a person can give. The value is sealed for that one node, never written to disk and removed from logs.k2 compute node servers owner , after your approval. Settings → Compute shows each node's servers, their shares and queue, with pause, resume, revoke and Make owner. k2 compute node take-owner (owner, in person) confirms a node as yours.k2-node servers limits takes the same flags as add.Vault
ssh_key secret can be delivered as agent. The session gets SSH_AUTH_SOCK, and the key itself never leaves K2 (k2 vault public-key, k2 vault agent-limit).k2 vault fetch can sign requests for OVH and HMAC APIs (with or without a timestamp), so the API secret is never pasted into a request.k2 vault systemd-cred NAME --unit places a secret as an encrypted systemd credential for a root service on the allow list. Owner or Admin, with a vault confirm. A new version never reaches the service until you confirm it.k2 job. Scripts that run on a schedule (--every, --cron) with their own short-lived pass and only the secrets granted to job:. Logs are redacted. See k2 study jobs.k2v://server/… reference in a service's .env.k2 (or an agent's launch block) now resolves only for a consumer that has a grant. Services that used one in the last 30 days get a 14-day grant on update, and a card asks whether to keep it. Refused references show in the service's status.k2 vault command has its own --help, and the doctor catches more secret-looking names.Gardens
store.patch changes only the fields it names and keeps fields another writer added.k2.open(url) opens a link in your browser from a widget. K2 asks once per site for each Garden (k2 zen links).joined = true keeps one panel.k2 zen agents-order).k2:kanban@5), with a searchable agent picker in its header. A Conversation widget can take pick for its own agent drop-down.Disk and resources
k2 app resources clean (--dry-run first) frees only what K2 made and can make again: unused Seeds and images, old logs and build leftovers. It never touches App data, databases, mail or workspaces. Agents can clean only their own Apps' leftovers.k2:box-disk@1 card.Phones
k2 users pair-phone). Paired phones keep working while browsers stay blocked; k2 users phones lists them and unpair-phone removes one. Needs a K2 Companion version with pairing.k2 llm tokens for shows which AI login a chat runs on and how much of it is used. The desktop's usage chip shows the same number.Desktop
Security
k2 db upgrade).k2 workspace trust. Folders you already use stay trusted.Fixes
k2 daemon install on a Linux server updates the service that's already installed, instead of adding a second one under the old name.k2 mail reply --from-name sets the sender's name on hosted replies, like k2 mail send.k2 study --help lists the permissions page again while permission cards are on. k2 tunnel status no longer shows an error from an earlier run.Under the hood
v0.46.3
0.46.3 — Apps on for everyone
When you update
k2 root-helper status says it needs one root step (a very old helper, or a server with no internet), run k2 root-helper update (--from with the signed files on an offline server), or k2 root-helper install-command on a server without a helper. Until then, k2 db upgrade, a second Postgres version, Sew 0.3.0, k2 hostchat media uninstall and keeping /usr/local/bin/k2 current stop and say so. Everything else works as before.--cmd services keep working. Nothing old stops in 0.46.3. In 0.46.4 new --cmd services are turned off and their inherited environment ends, so move them to Apps before then. k2 app list labels them "move it to an App before 0.46.4", and k2 study app-move shows the steps.Apps (beta), on for every server
k2 app list --box shows every App on the server and the agent that keeps it, and a name clash tells you whose App it is.k2 app errors shows the history (--since, --kind).--cmd services. No adopt step: k2 app label take moves the public address from the old service to the App (return moves it back), and k2 app data put copies data into the App without a terminal.$K2_SECRETS_DIR/K2_APP_SEAL_KEY (k2 app seal rotate), and a manifest can say what it requires (Sew, voice); a deploy without it stops and says what the owner must turn on.Apps: phones, streams and people
k2 app people) shows who reaches what. k2 app roles suggest offers starter roles you can copy; nothing is granted until you add one. Each App decides whether it can be discovered (off by default). An App pass now reaches only what the App API lists.project:write permission, which you grant per room.thread:read and activity:read in a room, a guest's App can show the room's agent at work on their Chat: counts only (steps, subagents, time, and whether it's waiting on the owner), never a tool line, a path or a command, and no Stop. An App turns it on per connection, so Apps you already run see no change. activity:read still gives the room-wide counts, as before.k2 app wallet settings --on , by the App's name), its users can bring their own AI subscription or API key for their own agents. Only an Admin or the Owner can change the server's default AI login.X-K2-Client-IP and a clean X-Forwarded-For when K2 Connect passes the visitor's address on, and copies sent by the visitor are always dropped. A manifest can opt out, and nested services opt in with k2 publish client-ip .files:download) for their room.Gardens
k2 zen widget claim and k2 zen proposals answer with a notice naming their replacement until 0.47.0. Agents run k2 study garden-changes to see what to update in their workspace before then.collapsible can fold it to a slim tab at its edge, with its unread counts, and open it again with one click. Each computer remembers which columns you folded.k2-thread@1 and k2-help@1 (ⓘ help popovers) as standard parts; k2 zen widget preview --shot takes a picture of a widget; validate checks what actually runs.Permission cards (Beta)
k2 permission beta on from a terminal outside K2), then per agent with Can ask for permission cards on its Agent tab (or Turn on for all agents). With either switch off, K2 behaves exactly as before.Compute
k2 compute node servers add , and can pause, resume, revoke or change its weight (limits --weight N ). k2 compute queue shows where your jobs are and when they should start. On a Mac, a node takes only your own servers in this update; other people's servers need a Linux node. Nodes that serve one server work as before, and old and new versions mix.network = none is enforced, a job killed for memory says so, and build caches are kept per project.k2 compute run --artifact keeps the files a job makes (k2 compute fetch copies them here), and test results in JUnit form are read for you: k2 compute get --json shows passed, failed and the failing tests.k2 compute run --any --shards N runs one job per shard and gives one combined result and one message. k2 compute test --shards N does it for a cargo-nextest suite.--queue-timeout), a job that prints nothing for 30 minutes ends (--stall-timeout), an --any job moves off a node that went away or is busy, and a job lost to a machine problem is retried once (--retries N). A failing test or a timeout is never retried.k2 compute run … --plan shows the node it would pick, the queue ahead, how long earlier runs took and what's left of your grant, without running anything.Notifications
k2 push e2e sets it: off, sealed when the phone supports it (the default) or sealed only. Older phones keep getting plain notifications until they update.k2 push log. The owner can see the last 200 push attempts (which phone, sealed or plain, whether the relay took it). It never holds message text, names or ids, and lives in memory only.Postgres 17
k2 db default-major 17. k2 db create --major 16|17 picks one, and k2 db clusters lists them.k2 db upgrade moves a database to a newer version by copy, with a check first (--check), progress, --rollback and recovery after a restart. The old copy is kept closed for 14 days. Agents can run it with the new switch Allow this agent to manage Postgres versions. A stopped Postgres now says so instead of "recovering" forever.Secrets
Disk and resources
k2 app resources shows what uses the server's disk and memory, by App, service, database, workspace and K2 itself, with owners.k2 app resources settings --mode on|warn|off. A restart no longer files a second ticket for the same disk.Thread and chat
k2 msg --summary adds a one-line summary to a long message, shown in tray items and the inbox list.k2 mail attachments --get --out / saves the attachment into that folder under its own name, and retrying after a timeout no longer stacks up downloads.k2 mail send --from-name sets the sender's display name on hosted mail.Sew chat and calls
k2 hostchat purge can clean up a Sew install K2 doesn't recognise, without running it. k2 hostchat media uninstall asks first and takes --yes, so it works over SSH and in scripts.K2 Connect
/boot-status and /ping show the full picture only to this machine or a signed-in caller; others get a short view that older apps still understand. k2 tunnel boot-status sets it, and a status key (k2 api-key create --status) lets a monitor read the full view and nothing else.k2 tunnel status. When k2.dev has no relay list for your token, it says so and keeps your saved list.Updates
k2 on the server stays current. The root helper keeps /usr/local/bin/k2 at the daemon's version, and k2 doctor shows a line for it.Desktop
Security
Fixes
k2 app wallet settings takes an App's name as well as its id, so App users actually get their wallet, and refuses an App that doesn't exist. k2 publish client-ip refuses a label that doesn't exist.k2 app doctor and k2 app resources on a Mac show only what applies there, and k2 app box prepare --dry-run lists the exact packages it installs.k2 llm tokens clear-default (or No default in Settings) clears the server's default token, and remove --clear-default removes the default API token after a confirm.k2 root-helper status no longer shows a stale "needs root" line.heartbeat schedule add never overwrites a non-empty WAKEUP.md. The tunnel never restarts after you stop it.Under the hood
v0.46.2
0.46.2 — The tunnel stays up
K2 Connect
.k2.dev unreachable until you turned the tunnel back on by hand. K2 also gives the certificate service up to 4 minutes per request, up from 1, and tells it how long it will wait, so the service's new DNS checks and retry have time to finish.Projects
k2 project read) or post in it (k2 project msg) only when its workspace is a member of that project; any other project's chat answers not_a_member. An agent also always posts as its own workspace. You, your Connect logins and the desktop app see and post in every project's chat as before, and App guests still can't.GET /cli/project-group/messages takes before_seq and limit (up to 500) to page back through a project's chat, so the phone can scroll back instead of showing only what it already has. Servers advertise it as project-chat-paging-v1.Chat
v0.46.1
0.46.1 — Apps leave preview
Apps: the wall
--cmd services run in a wall. On a server with the App runtime set up, a new k2 publish run --cmd … becomes an open-path App: a container with a fresh copy of your folder at each start. Keep anything that must last in $K2_APP_DATA (/data). Your --port stays the port inside, it can go out to the internet through its own proxy (every host it reaches is logged), and it reaches K2 through its own door. Run it again to deploy your changes; k2 publish stop|start|rm work as before. k2 app list labels it Open (container) and says how to move it to guarded. Services you already published keep running exactly as they do today. On a Mac, or a server not set up for Apps, --cmd works as before and says why.--cmd service needs "Allow this agent to manage Apps" and "…and publish open Apps" on its workspace; without them it waits for you in k2 app approvals.build, k2 app build and k2 app deploy --folder run it in a container, never on the server itself: only the command you declared, a lockfile is required next to a package.json, only the package registries are reachable, and on guarded Apps a dependency's install scripts never run.k2 app config --memory 1G ); with a limit, Node's heap gets half of it. An App that runs out of memory stops whole and restarts, it never swaps, and each deployment's log is capped at 50 MB (k2 app logs).k2 app doctor shows it.k2 app box prepare --install-podman downloads K2's Podman bundle from K2's mirror (mirror.alakazamlabs.com, with a second way in) and installs it only when it matches the pinned checksum and carries K2's signature; the source code of its GPL parts sits beside it. Offline, --podman-from takes the tarball and its .minisig.k2 app engine install): this release speaks a new engine protocol, and k2 app doctor says so until you do.K2_APP_ORIGIN (its main public https address: a custom domain bound to it, else https://..k2.dev ) and K2_APP_ORIGINS (all of them), so it can check where requests and websockets come from. Bind a custom domain to an App with k2 domain name add app.example.com --role app:; the App sees changes on its next deploy or restart. An App with no public address gets neither.Apps: the door
k2 app suspend ends every pass the App holds at once, so its very next call to K2 is refused, stops it and freezes its deploys and starts. Anyone who can see the App may do it, its agent included; only you bring it back, with k2 app resume from a terminal outside K2.k2 app audit shows them (--since 1h, --denied, --verb), and --verify checks that no line was changed or removed. The record lives in its own file, ~/.k2/apps/app-audit.db; after 30 days it is kept as daily totals for a year.k2 app quota shows them; lowering one applies at once, raising one is yours (an agent's raise waits for you).k2 app approvals while the running version keeps serving, even when you deploy it yourself. The App's pass carries only what you approved. Apps already behind the wall keep what they have.k2 app doctor does too.k2 app token rotate gives an App that runs on another machine its own pass for K2: it expires (30 days by default), carries only the App's approved permissions, works on K2's main address and tunnel but never at an App's door, and is ended by suspend. k2 app remote-pass lists and ends them.Apps: the server SDK, guest rooms, members and folders
sdk/server (@k2/server, TypeScript, Node 22.18 or newer, no dependencies) is how an App's server talks to K2. fromEnv() reads K2_GATEWAY_URL, the App pass file (K2_PASS_FILE, /run/k2/pass in a wall) and K2_APP_ID/K2_APP_NAME. k2.login({username, password}) logs a guest in through your App; after that every call acts as the guest of the request you're serving (k2.withGuest(pass, …) or k2.middleware()), and a call with no guest fails guest_required instead of quietly acting as the App. Acting as the App is always written out: k2.asApp(). It covers the Thread (with a live socket), files (including resumable uploads), k2 db (db.query, db.rows and row writes, with the guest's identity for your RLS), tickets, the wiki, heartbeats, activity and the agent's name and picture, plus your App's users and rooms through the App key. Answers are typed, and fields K2 doesn't promise (host paths, session ids) are dropped. K2 rotates the App pass every hour; the SDK reads the file again each call and retries once when K2 says the pass is stale.path is relPath). k2 study app-api lists every one with its method, route and permission.GET /cli/skin/me tells a guest or an App its kind, its rooms with the permissions it has in each, and which features this server has (k2.me.get() in the SDK).GET /cli/thread/latest now answers App guests and Apps for their own rooms: the last message per room in one call, up to 50 rooms. A room the pass doesn't hold answers the same skin_room as one that doesn't exist.k2 app grant --kind guests-rooms [--room ]… , and its server can read and reset its own guests' rooms with its own pass (k2.asApp().guests.setRooms({username, rooms}), or GET|POST /cli/skin/guests/rooms). It reaches only its own guests, only the rooms you listed plus its own, and never more than a guest's role allows. Setting the same rooms again changes nothing, every change is recorded with before and after (k2 app history ), and an App may make 60 of these calls a minute. Agents do the same within your grant with k2 app guest rooms [set …] . A Garden widget can too (k2.guests.setRooms, for any App on this computer), and K2 asks you on its own sheet before every change.db/query, db/rows) are pinned as contract tests that run through the SDK against a real daemon, outside the wall and from inside it.room:members, off by default; grant it per room like any other (k2 app role room --caps thread:read,room:members ). An App sees only its own guests. In any room you can hide guests' names from Apps with k2 app room-names hide ; you still see every name, and so do your Gardens. Agents read the list with k2 app members, and an App hears room_members_changed on the room's live socket when it changes.app.self tells an App its id, the version that is live, whether it is running, and when it went live; app.usage gives its limits, its live connections and how many calls it made to each K2 action (from its own call record). Each App sees only its own; asking about another App gets the same answer as asking about one that doesn't exist. You and its agent read the same with k2 app self and k2 app usage , and the App hears app_deployed when a new version goes live.k2.room.members(…) (with every name, since a Garden acts as you), k2.app.self(…) and k2.app.usage(…) for any App on this computer, and k2.widget.self() for its own id, live version, who made it and its last seven days of saves. k2 study app-surfaces has the details.k2 app role paths --read jobs/J1/,jobs/J3/ --write jobs/J1/photos/ limits that role's logins to those folders in that room. It works on any room the role holds, not only a login's own room, and agent logins (k2 app user agent) get exactly the same walls as people. Anything else in the room is refused with the same answer as a missing permission, whether or not it exists. A listing shows only the way down to the granted folders, a link inside a granted folder can't reach outside it, live file updates carry only those folders, and k2.me.get() lists them. --clear gives the whole room back. --upload-dir sets where an upload lands when it names no folder.files.stat (GET /cli/fs/stat) returns a file's or folder's kind, size, modified time, extension and content type, under the same folder rules, so an App doesn't have to list the parent folder to show a download's size.Sew chat and calls
k2 app grant --kind chat ) gets a short-lived chat pass, on each App's own link, several Apps per box. Removing a grant or a login ends its Sew sessions, and Connect logins can sign in to Sew too.k2 hostchat upgrade and rollback move the voice engine with the core; a refused upgrade now says why.k2 front enable puts a small router on the box's port 443 so people on networks that only allow 443 can join calls (Sew 0.2.1's TURN passthrough behind the :443 front), with Caddy behind it and hosted mail optional (--mail).k2 front enable restarts the K2 daemon once to take port 443 (systemd hands it the socket); if port 443 is already in use, it names what's holding it.k2 hostchat meet bind points meet..k2.dev at your Meet App; unbind takes it back.k2 hostchat status (and enable) warn until Sew's public URL is set, and show the command that sets it, so password setup links and invites open from outside the box.k2 hostchat purge, rollback and restore hints point at k2 hostchat backups and k2 hostchat restore, and the PostgreSQL hint no longer names a setup flag that doesn't exist.--voice, --voice-url and --node-ip only apply to k2 hostchat enable, and --media-tarball to enable, upgrade and rollback; elsewhere K2 now stops and points you at k2 hostchat media install --tarball.Mail and calendars
k2 calendar works on its calendars (list, events, create, update, delete, free/busy); Settings adds a calendar to a link that was consented for mail only (k2 mail link calendars).k2 calendar works on a linked Google account too, including a calendar-only link. Writes never send invitations.k2 hostmail status shows the certificate mail apps really get. It now checks ports 443, 465 and 993 with the mail hostname and reports the worst one, so a self-signed fallback on 465 or 993 no longer reads as issued. A certificate for the wrong name or an expired one says so. The ACME task state is read fresh, and a task older than the certificate now served reads unknown instead of a stale Pending.k2 hostmail doctor unlocks direct sending for that domain. It runs every server check too, so you no longer need a separate bare k2 hostmail doctor first. When direct is still locked, the message names the exact command to run.k2 hostmail domain show stops recommending records that can't work yet. On a domain whose DNS isn't on K2's nameservers, the MTA-STS and mail-client autoconfig records now say "skip for now" and are left out of the zone file, because those names can't get a certificate there yet. The DMARC record it lists always includes rua=mailto:postmaster@.k2 hostmail create (the old k2 mail create moved).Phones: previews, unread counts and Homes
k2 thread unread shows yours, and a Thread or project chat can be muted.after_seq), oldest first, along with any card answered, voided or expired since then, so K2 Companion shows a chat at once and catches up behind it (feature thread-delta-v1).Secrets between agents
k2 vault send NAME --to (or k2 msg … --secret NAME) sends a secret to another agent, on this server or another one, sealed vault to vault; the receiver accepts or declines (k2 vault incoming, accept, accept-from), and asks, replies and unsend work too. The value is never in a Thread or a file. Settings → Logs → Access Audit has a "Vault handoffs" filter.k2 vault carry export, you get a ticket naming the agent, the secrets (names only, never values) and where they went. Settings → Logs → Access Audit highlights the export.Gardens
look = "garden" under the board's [widget.props.config].k2:*@2 cards take several sources, soft warn and crit levels and named lists; sources gain age, version and field-compare rules with per-rule thresholds, and k2 sources secret a b c NAME sets one secret for several sources at once.~/.k2 and check, preview and write it whole (k2 zen validate --dir, k2 zen widget preview --dir, k2 zen widget put --dir); a plain validate no longer signs and "pending" exits 0.thread:post and store:write it asks for, reads a neighbour's data with manifest reads and {from}, and a page holds 10 custom widgets with [[widget]] weight. The widget SDK has typed errors, subscriptions that re-subscribe on their own, shape guards and uPlot charts.Messaging
k2 agent identity --color '#22c55e' --image me.png (or --clear-image), and every client updates at once. It can change only its own look, never its name or handle (it's told to ask you), and at most 20 changes every ten minutes. k2 agent identity with no flags shows the current look; from your terminal it still sets any agent's name, color and picture. k2 workspace set-agent-identity keeps working and points to the new command.rpm cort finds Cortana on rpm), and use ↑/↓ and Enter. Agents you already connect to show checked, and the picker stays open so you can add several. A server that doesn't answer within 5 seconds shows Offline with Retry, instead of a long wait followed by a message blaming its settings; a server paired with the older code shows Re-pair. k2 fed peers and Settings → Connected Servers list paired servers in the same A-to-Z order.k2 thread "The report is ready" --file docs/report.pdf --file src/session.rs:212 puts a file chip under the message (up to 10; three or more become a list); click one to open the file at its line. A chip points at the workspace's own file, it isn't a copy: it gets an amber dot when the file has changed since it was sent, and offers Find in Files when the file has moved. Only files inside the agent's workspace can be attached, and anything that looks like a secret (.env, keys, tokens, credentials in the text) is refused. App guests see a file only when their own file access already covers it; otherwise they see "A file (not shared with you)". Push notifications say [file], never the file's name. The server is ready for K2 Companion to preview and download them on the phone.*.pem, *.key, *.p12, ssh keys), .ssh/, .npmrc, .netrc and similar unless you choose to carry secrets, and retiring an agent warns about them.Compute
k2 compute run inside .claude/worktrees/x finds its workspace (even with no K2 session), runs that worktree's own commit, and --dirty sends that worktree's changes. Each run prints which code it sent, and the "uncommitted changes" note no longer appears with --sha.k2 compute wait … blocks until jobs end and exits with the job's exit code. --max-wait 9m stops waiting first. k2 compute run … --wait prints the job id, then waits, and sends no second [compute] message.--force, and k2 compute get shows who cancelled.k2 compute nodes shows free CPU, free memory and your grant.k2 compute status. Every node at a glance: state, foreign-lock waits, running and queued jobs, free CPU and memory, load, and disk against its floor, plus this Mac's free disk and Time Machine snapshot count.--timeout over the grant is refused before anything is sent, with the grant and the command to raise it. A job too big for its node is refused at submit; one already queued is failed with the reason and you get its message. A job killed for memory gets a hint.k2 compute manage on --workspace ), lets that agent add and confirm machines, rename, pause, drain, resume, retire and route them, and grant or revoke them for any workspace, without asking you. Every act is in Access Audit, and adding or confirming a machine sends you an inbox note. Turning compute on or off, removing a machine and the switch itself stay yours. It's off by default, only you (the owner) can turn it on, and it only works for agents on this computer.Project settings
k2 project rename, pin and delete. Rename or pin a project from the terminal; k2 project delete --yes deletes one (owner or admin only).CLI fixes
k2 msg who only ever looks up a sender. An id that didn't start with m_ used to send a live message to a workspace named "who".k2 settings from an agent now says it needs the owner or an admin instead of showing blank settings. k2 inbox read with an unknown id says so. k2 users list from an agent points to k2 connections list --users. k2 compute get with an unknown job exits 4. k2 sources shows one hint, not two.k2 activity takes --help and --json, and shows dates. Before, those flags were read as the number of events. Errors from the server now show instead of "No activity.".k2 hostmail status on a computer without hosted mail says so in one line. Hosted mail runs on Linux K2 servers; for linked inboxes use k2 mail inboxes.k2 compute jobs shows the whole reason a job waits. k2 app token list says "No App tokens.". k2 zen widget errors says what it checked, and two errors at the same moment no longer share a number. Help text names the right commands and variables.Polish
k2 thread … --file, so agents attach the files they mention.v0.46.0
0.46.0 — Runtime for Apps
Getting your Apps ready for 0.46.1 (nothing is taken away yet)
k2 app deploy … --engine guarded) run behind the wall. Your existing k2 publish run --cmd services keep running as before (legacy, unwalled), with clean mode to opt in early and warnings for what they rely on. In 0.46.1 their inherited environment ends; the wall for them comes when you move them over with k2 app adopt. This release takes nothing away; it adds the new ways and tells you what each service still needs. k2 app warnings (or every server App at once) reads the App's code and lists, with file and line, the environment variables it only gets from K2, any read of K2's own files (like the owner token file), the programs it finds only through your own PATH (like node in ~/.local/bin), and, on Linux, each K2 call it made with the owner token. Each line comes with the fix. Owner-token tracing is Linux only for now; on a Mac, warnings and clean mode say so instead of staying silent.k2 app clean-mode on runs that App the 0.46.1 way: a clean environment, the system PATH, its own home folder, and on Linux any owner-token call from it is refused. Turning it on is always allowed (an App's agent can do it); turning it back off is the owner's call.k2 app key mint --scopes users,rooms,fetch makes a key that works for that one App only: it can manage the App's own users and their Thread rooms (only the rooms you allow), send password-reset links to people who use only this App, and call outside services through K2 with a secret by name, so the App never holds the secret. Minting asks you to confirm in person; K2 puts the key in the vault and the App reads it from $K2_SECRETS_DIR/K2_APP_KEY at its next start. Agents never see a key. Every App now also gets K2_APP_NAME and K2_GATEWAY_URL, and services from before 0.45.4 now get the secrets you grant them.k2 app config now also sets CPU weight, tasks, disk, outbound hosts, extra ports, recycling, the wall, the path, the risk level, the App's private database and its disk speed. Changes that only take something away apply at once; a wider one waits for you, and a new outbound host, a lower wall or a raw database connection always waits, even when you ask yourself. Moving an App to a weaker engine is never a deploy flag: it goes through k2 app config and your approval.Owners widen, agents ask
--cmd service) is one request in k2 app approvals. k2 app approve asks for your Touch ID or password from a terminal outside K2; not even your own owner token approves without it, and an agent never can. k2 app deny says no and tells the agent why; an agent can withdraw its own request. Requests left alone expire after 7 days.k2 app access --manage on --open on sets "Allow this agent to manage Apps" and the new nested "…and publish open Apps".Walled Apps (App runtime preview, Linux)
k2 app deploy … --engine guarded calls K2 at http://127.0.0.1:8730 from inside its container, with an App pass in the file K2_PASS_FILE names. The pass works only on that App's own door, never on K2's main port, the tunnel or another App's door, carries only the permissions in the App's manifest, and is replaced every hour without dropping a request. k2 app link shows it; --rotate hands the App a new pass now. link and engine are now reserved App names.k2 app egress add ; every new host waits for your approval. Taking a host off (k2 app egress rm) works at once and cuts open connections. k2 app egress shows the list and what the App tried; k2 app egress log shows each connection (host and port only). Calls an App makes through K2 with a secret follow the same list.k2-app profile and every guarded App, and every command run inside one, runs under it. When the kernel has AppArmor on but the box lacks its parser, box prep now installs the apparmor package first (apt and pacman). SELinux boxes use Podman's container labels. k2 app doctor shows which one this box has.k2 app config --io-write 80M (and --io-read, --io-read-iops, --io-write-iops, --io default|none). An agent may lower its App's ceiling; raising it waits for you. It applies at the App's next deploy or restart.k2 app exec and k2 app shell. Run one command inside a guarded App (k2 app exec jobs -- ls /data) or open a terminal in it (k2 app shell jobs), as the App itself with no extra rights. Output is shown as App text, never instructions. Agents can do it for their own workspace's Apps with "Allow this agent to manage Apps". Every exec and shell is in the App's history and the Access Audit; an idle shell is hung up after 15 minutes.k2 app exception on --device dri-render128 (asks for an owner confirm). The App then runs as a locked-down system process under its own user, with only the devices you granted, labelled Open (process), and still reaches K2 through its own door. Agents can't turn it on, and no other setting does. k2 app exception off puts it back in the container.k2 app box-service request asks for one; the owner approves it with a vault confirm (k2 app approve), and only then does the App see that one port, at its own address inside the wall. k2 app box-service lists what is approved or waiting, and k2 app box-service revoke shuts it at once. Ports K2, Postgres, Caddy and the box router use are never allowed.Sew chat
Cloning agents
k2 users set-can-clone on|off ). Both are on, so nothing changes until you turn one off. Until now anyone who could sign in to a server could clone its agents; turning Can clone off for a person now stops that, and turning the first switch off stops Admins and Members from pulling agents to their own computers. Owners can always clone. The server checks both on every way to clone (the app, k2 clone, headless), and each decision goes in the Access Audit.k2 clone. k2 clone preview shows what would travel, names only. k2 clone to , k2 clone from : and k2 clone here --dest do what the Clone dialog does, from a terminal or a headless server. The Thread comes along unless you say --no-threads (or --threads-since 30). Choose per secret with --copy, --blank and --skip, or answer per secret when a terminal asks. --json prints names, choices and counts, never a value.k2 clone propose --to --why "…" posts one line on its Thread for you. k2 clone proposals lists them, k2 clone approve asks for your Touch ID or a password and then runs the clone as you, and k2 clone deny says no. The agent is told either way; proposals left alone expire after 7 days.sales on rosson.k2.dev" line, with other people's messages shown by name. Imported lines are read-only and Chatter never travels. k2 thread export , k2 thread import --to and k2 thread imports move Threads outside a clone (owners and admins)..env files ask first. "Include secrets" in the Clone dialog is now Send .env files as files. It sends them as plain files inside the clone, so it now asks for Touch ID or your password first (an owner or admin), and offers to move them into the vault instead (k2 vault import .env). Members with Can clone can clone, but can't send .env files or copy secrets. A .env.k2 that holds only k2v:// references now travels with the clone.k2 vault carry is stricter. It never carries K2 logins, App passes or engine credentials, and k2 vault carry import now puts secrets into the workspace with the right id instead of any workspace with the same name.Grok Bots
k2 thread gb:. Agents and App guests still can't.Gardens
k2 zen garden put, k2 zen widget put), with every act in Access Audit. Without the switch, an agent's Garden or widget change becomes a proposal you approve or reject (k2 zen proposals). K2's built-in widgets are never written.k2 sources approve a b c --secret NAME binds one secret to every source in one go, with a single confirm. It binds all or none.sources.* was always refused as "not bound"; it now reads and subscribes to the sources its placement names.Security
k2 users audit. The local wiki site only answers requests addressed to itself or its own published subdomain, sends no CORS headers, and no longer shows your folder path or dot-folder notes. Serve and Public chat are hidden in the app for now; agents can still use k2 wiki serve|publish|unpublish, and k2 wiki chat on stops with exit 3.Changes tab
k2 changes (diff, stage, unstage, discard, commit), on their own workspace only.k2 changes notes). Notes follow their lines as the file changes and say when those lines have changed. Open in editor opens the file, k2 changes open brings up the tab, and a folder that isn't a git repo yet gets Initialize repository (k2 changes init), with the first commit working too. Untracked folders stage in one click.Design mode
k2 workspace design-mode set off ). Agents and scripts can file the same note with k2 browser note.Status marks
Thread
Tabs
Usage
k2 usage. k2 usage tokens, k2 usage turns and k2 usage limits [--refresh] from a terminal. An agent sees its own workspace. Owners and admins see the whole server; members can't.Publishing
k2 publish run --probe-timeout 10m gives a service up to 15 minutes to open its port (the default is still 15 seconds), and restarts and reboots use it too. While it waits, k2 publish ps and status say "starting (waiting for port 3047, 4m12s left)", and a tunnelled service's public address goes live once the port answers. A local service that binds late turns running instead of staying unhealthy. Only when the time runs out is the run rolled back, and it then shows no public address.Browser
A new look
k2 and k2-node command and k2 study page, with search (Cmd/Ctrl+K). When Home shows an agent on another server, the title reads server / agent / branch.k2 users list shows it, but messages are always sent and assigned by username. On the computer K2 runs on, K2 asks once which Admin Access user is you (or helps you create one), replacing the old "This is me" checkbox and "Your name"; your messages to agents then read [from z3thon]. Settings → General → Your account changes it later.Fixes
k2 tunnel status no longer stops with a Python SyntaxError (broken in 0.45.7).k2 workspace create makes missing parent folders instead of failing.vault_confirm_required (a 0.45.x server's confirm_required is still understood).k2 msg who can look up who sent it.k2 mail sending off|approval|on , or Email sending in the workspace's settings, which shows what is in effect. k2 mail inboxes shows each inbox's real send state, and the hint when sending is off now names the right command.After updating
k2 app warnings to see what each of your Apps still needs.--cmd service needs both App switches on its workspace; until then k2 publish run only warns, and says so.k2 app engine install (a deploy on the old engine stops and says so).~/.k2/hooks/statusline.sh) to ~/.claude/settings.json, only when you have no status line set. Yours is never replaced.confirm_required should also accept vault_confirm_required.v0.45.7
0.45.7 — Grok Bots at home
[from ] , so the bot knows who wrote it: your display name from Settings, or your login if you signed in to this server. In K2 the chat shows your name on the message instead of the tag. K2 limits how fast you can send, and never passes messages between K2 agents and Grok Bots on its own. If a bot's conversation now runs somewhere other than this computer (another box, or Grok's cloud), its chat in K2 says so and keeps the older history from this computer. You can still message that bot from K2: your message reaches its live conversation, and K2 shows its new replies under a "Live since" line as they arrive. K2 only sees the bot's latest message at each check, so when a bot writes several in a row, K2 shows the last one and says earlier ones may be missing; open Grok Bot to read them all.k2 tunnel status shows which relay you're on and where the list came from.tunnel.json. If the settings can't be read right after a wake, the running tunnel stays up instead of going dark. Every tunnel stop and every tunnel change now goes in the daemon log with the reason and who asked: the owner, a Connect user, an agent, or a client over the tunnel.k2 publish and other Connect commands work on desktops again. Since 0.45.4 the tunnel token lives in the K2 vault, so k2 publish status and k2 publish subdomain list/create/point/rm said "no K2 Connect tunnel token". The K2 server now makes those calls for the CLI with the token it holds; the token never leaves the server. k2 connect status reports the vault token too.k2 vault grant --to ws: --as env --env-name MY_VAR ), the agent now gets it as MY_VAR. Before, the workspace's own default delivery won, and a secret with a dash in its name (my-api-key) couldn't be delivered as an env var at all; now it becomes MY_API_KEY. k2 vault delivery … --env-name used to say OK and do nothing; it now refuses and points you to k2 vault grant.k2 publish, no Settings needed. From its K2 terminal an agent can run k2 publish run, k2 publish subdomain create , change where it points with k2 publish subdomain target (same as point), and k2 publish subdomain rm . A label an agent creates belongs to its workspace, and an agent can only change or remove its own workspace's labels: never your main subdomain, the reserved skin, meet, chat and mail, or another workspace's. An agent can create or remove up to 20 subdomains an hour per workspace. address, enter where it points (like localhost:3000) and, if you want, pick the workspace that owns it. Each row has Change target and Remove (Remove asks first). The new address shows up right away. Only the owner or an admin of this server sees these controls, and not while you're viewing another server. Nested subdomains still need the Pro plan; Settings says so if you don't have it. Before, this was only k2 publish subdomain create in a terminal.After updating
v0.45.6
0.45.6 — Live cards and hired hands
k2 sources propose; you approve it in Settings → K2 Server → Data Sources, with a vault confirm when it uses a secret. Built-in Garden cards show it (fleet grid, version spread, relays and DNS, deploys, money alerts), and custom widgets can read it too. A trigger can wake an agent when something really changes, never on a brief blip. Keys stay in the vault and are bound to one exact site. You can also choose to store only states and never the values.k2 store, but only with the grants you give them in Settings → Gardens → Widget data. Big edits land all at once, changes appear live in every open window, and K2 keeps 7 daily and 4 weekly snapshots you can export or restore (k2 zen data …). An agent signs each widget version it makes. A version nobody has signed gets no data until you click It's mine.k2 agent hire now uses the same engine, and k2 msg who shows K2's own record of who really sent a message, so agents don't have to trust text that only looks like a sender tag.k2 hooks emit..k2) by default. If an App really needs it, add the files:agentconfig permission to that App's role. App login lockouts now count per person, not per typed name, and App pages serve WebAssembly, modules, fonts and modern images correctly.k2 agent restart restarts an agent's pinned chat. Removing a workspace now stops its agent sessions. K2 starts on macOS 14 again. Connect only remembers your password when the Keychain actually saved it. k2 root-helper status works inside K2 terminals. A compute job that asks for network = none is refused until K2 can enforce it. The names mail, meet and chat are reserved for K2's own web pages on your server. Data sources can now read sites that require a browser-like identity (such as the GitHub API). On Linux, Settings → General points deb and rpm installs to the new package instead of showing an update error, dark-theme dropdowns are readable, and shortcuts show the real keys instead of Mac symbols. One Esc in a Settings dialog now closes just the dialog.After updating
.k2 folder on purpose, add files:agentconfig to that App's role.v0.45.5
0.45.5 — Who's who
k2 app grant copy-host), or k2 app user add --app for someone who should see only that App. Custom (--cmd) Apps get K2_APP_ID, K2_HOST and K2_PORT, and can name themselves when they sign people in; without that, login works exactly as before. App logins also accept an email, and a locked login says how long to wait.k2 thread ask --expires 3d or --no-expiry), show "expires in…", and close on their own at the deadline. The agent is now told who really answered (an App user's or Connect user's name, not the owner's), and the card shows "answered by". Agents close cards that no longer apply with k2 thread void.k2.actor_kind() tells a person (guest) from an agent (agent), and k2.actor_info() says which. Only you can mark an App login as an agent's (k2 app user agent ). App-user writes through the database door now work like regular queries (including RETURNING), errors read plainly, K2's own tables are closed to App users, and one write is capped at 5,000 rows.k2 compute node admin … does the same from the CLI. Node updates are now signed with K2's root key and the Mac node is notarized. A job that asks for a tool the node can't install is refused before it starts, and nodes can now install cmake, ninja and protoc. Per agent, Allow this agent to operate compute nodes sits next to Allow compute nodes.After updating
k2 compute node update if it already runs remote admin); after that, updates arrive signed.v0.45.4
0.45.4 — Vault, root door and mail that delivers
.env files keep working as before. Set up the vault's recovery key in Settings → Vault: confirm with Touch ID or your Mac password, write down the 24 words, and type three of them back. See also k2 vault.k2 publish services no longer inherit K2's own environment. Services from before this update keep it for now and show that this ends in 0.46.0: switch each with k2 publish env clean and grant only the secrets it needs (k2 publish secret add).k2-root-helper replaces the separate mail and database helpers. It accepts only updates signed with its own key, and installing it removes the old helpers (backed up first). Your hosting provider rolls it out box by box.k2 hostmail upgrade moves a box up (after the root helper is installed), checks the result and rolls back on its own if Stalwart doesn't come back healthy. An upgrade interrupted by a restart now finishes or rolls back at the next start, so mail is never left stopped.k2 tickets settings but can't change them. The Tickets page now opens on Waiting on me (or All, or your last tab), and says "Nothing is waiting on you" when that's true (GitHub #75).k2 compute run on every machine you switched on, including ones you add later, with sensible limits you can change (k2 compute grant). Switching a machine off lets its running jobs finish, then removes it. Your other servers with "Make this computer a node" on will list here for one-click joining once K2 Connect is updated; until then add them with an enroll code.--transfer, and every move is logged.v0.45.3
0.45.3 — Quiet keychain, your own compute
k2 llm tokens) shows the one command to run in Terminal. Thanks to Appa (Baden) for the report.k2 compute preview on, then k2 compute node add prints a one-line installer for the machine you're adding; confirm the 6-digit code it shows, grant it to a workspace, and agents can k2 compute run -- . Output streams back and the command's exit code comes with it. The machine's owner can pause or drain it at any time. This is a preview: CLI only, off by default, and it may change. Read k2 study compute first.k2.canvas.setHitRegions) and make any of its own elements drag the window (k2.window.startDrag). K2's menu, Garden switcher and Zen toggle always stay on top, so you can never lose your way out. See k2 study zen.v0.45.2
0.45.2 — A haunted Diary
counts (subagents, tools and commands this turn), numbers only. Custom widgets and Apps can show them; the SDK types include the field.After updating
v0.45.1
0.45.1 — Gardens you build
k2 zen widget new gets an agent started.k2 calendar lists, reads and drafts events on hosted inboxes (never sends invites on its own). Owners and IT agents can create groups and shared team calendars with k2 hostmail group and k2 hostmail calendar share. An assistant agent with access to a person's inbox sees that person's shared calendars.k2 hostmail status shows the real certificate names and the last certificate error, domain add lists the A records you need, and spam rules that newer rule downloads broke are repaired. New: k2 hostmail outbound. k2 hostmail backup plan measures how much space a backup would need.k2 domain refresh.k2 msg works with a workspace's handle and its agent name. k2 agent hire --name keeps the name you give it.k2 workspace swap-canonical moves a workspace's main chat to another AI tool and hands over the recent conversation. Thanks to Sterling Long (Luzzotica) for this one.Security
k2 publish frame --allow https://your.site (owner only). Apps published with --cmd run their own server: k2 publish ps warns when one sends no frame protection.Fixes
After updating
agent.md::, add it again with the agent's name.v0.45.0
0.45.0 — See your agents work
k2 llm tokens.k2 hostmail profile) and an explicit Stalwart upgrade to 0.16.20. Certificates K2 issues now renew themselves before they expire.k2 mail send --bcc, and an owner "always BCC" setting per workspace that the agent can't remove. Agents send only through K2, so your rules always apply. An agent allowed to manage mail can now do what you can for other mailboxes, except loosen the rules on its own mail.k2 sidecar. Agents can start, list and stop side chats for Claude, Codex, Grok, Gemini, Cursor, Pi and Hermes. Each can be resumed later. Turn it on per workspace with k2 sidecar access on.Fixes
k2 commands act as that chat. Messages you send before Codex's first reply no longer disappear. If Codex was already open, restart it once after updating.(eval) errors when the login shell prints extra output at startup.localhost load even when the server lists IPv6 first. An app that isn't running shows "Service not reachable" (502) instead of a 404.Server owners: to use the calendar features, re-run the mail helper installer once with --version 0.45.0 (sudo bash install-mail-helper.sh --version 0.45.0). New servers we set up get it automatically.
v0.44.4
0.44.4 — Security update
v0.44.3
0.44.3 — Gardens your way
slot = "top" puts My Home, Agents, Projects and Tickets as a row of icons next to the Garden switcher.k2 zen guide. A user guide in the CLI with 10 topics and copy-paste examples (bottom bar, both buttons in a menu, the rail on top…). It works even when K2 isn't running. k2 study zen points to it, and validate errors name the page to read.v0.44.2
0.44.2 — IMAP repair works without the mail helper
v0.44.1
0.44.1 — Hosted mail installs again, and air-gap fixes
k2 hostmail enable stops before downloading anything and prints that exact command instead of "Permission denied". k2 hostmail status shows helper: installed, missing, or not allowed by sudoers.k2 hostmail ptr set judges "aligned" by what k2.dev actually published. If this machine's DNS cache still has the old name, you get a note saying it clears on its own, instead of "not aligned".