- MCP
- blame on this site's /mcp
- CLI
- abso blame client/src/main.ts --version 95 --json
- JSON
- /christopher/abso-core/blame/client/src/main.ts?version=95&format=json
961 linesFirst import 75% · pinch 17% · speed 5% · infra-split 1% · devops 1% · review 1% · Last change pinch in version 86,
961 lines from 32 changes in 32 versions.
init0Start the project1// The command table and the dispatcher. main() returns what to print and the
2// exit code instead of printing, so tests can call it directly.
4import { readFileSync } from "node:fs";
5import { resolve } from "node:path";
6import { runAnnounce, runNews, runStart } from "./announce.ts";
7import { ApiError } from "./api.ts";
8import { bool, type FlagSpec, type Parsed, parseArgs, str, UsageError } from "./args.ts";
9import { bodyFilesHelp, readBodyFiles, withBodyFiles } from "./body-files.ts";
10import { boxPublic, boxText, login, logout, readBox } from "./box.ts";
11import { runDiff, runFiles, runLog, runRestore, runShow } from "./changes.ts";
12import { runCheckIgnore } from "./check-ignore.ts";
13import { runCi } from "./ci.ts";
pinch79abso help --json: every command help shows, with its usage, about and flags, as data, so a command reference can be built from the client itself. And the terminal filter drops SGR 8 (conceal), which could hide text, keeping 8 where it's a color (38;5;8).Compare14import { clientVersion } from "./client-version.ts";
16 type Env,
17 EXIT,
18 type Output,
19 runBisect,
20 runFetch,
21 runFixEol,
22 runInit,
23 runJoin,
24 runLogs,
25 runMv,
26 runPause,
27 runPrep,
28 runPublish,
29 runReader,
30 runRecord,
31 runResume,
32 runRun,
33 runServe,
34 runSettle,
35 runShot,
36 runStatus,
37 runSync,
38 takeNews,
39} from "./commands.ts";
pinch86Read a public project signed out: abso join <project> --reader with no sign-in makes a folder that reads it. The folder holds only its settings (server, project, visitor), sends no sign-in whatever the environment or the box holds, follows no redirect, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused before any call, from an allow-list a new command has to join. join answers a private project and a missing one alike, by the status answer's code alone. Tests in client/test/visitor.test.ts.Compare40import { configPath, findRoot, installKey, isVisitor, readConfig, readToken } from "./config.ts";
pinch33Client: a tell reads as who told you and how sure that is, with what was said on the lines below: "ann (as claimed) told you:", "Robin (a person) told you:", "ann (checked) told you:" for an agent with a key of its own. A person's words are unquoted and their id is left out (news.log keeps the sentence whole). Tells are never cut in an agent's context, and later lines are indented everywhere news is printed (news, the News: block, the edit hook). What the server stores is unchanged. Client tests 273/273, tsc and biome clean.Compare41import { newsBlockLines, newsShown, TOKEN_SERVERS } from "./core.ts";
speed84whoami and doctor pick the server as join does
After abso login --server <url>, whoami and doctor still looked at https://api.abso.dev outside a folder, so they said you weren't signed in, and doctor checked the wrong server. Both now take --server, then ABSO_SERVER, then the folder's server, then the server this box signed in to with abso login, then https://api.abso.dev. A box signed in to more than one server is asked to say which with --server, as join does. Help text says so. Test in client/test/doctor.test.ts.Compare42import { checkServer, doctor, doctorText, plainError, realProbe, whoami } from "./doctor.ts";
44import { runExport } from "./export.ts";
45import { runBlame, runWhere, runWho, runWhy } from "./history.ts";
pinch72Asks become threads: abso reply <ask> "..." adds to an ask from either side, open or answered, and --question hands the turn to the asker until they reply. abso ask <N> shows one ask with its whole thread and whose turn it is; abso waiting --asked lists the asks you sent. An ack's note is the thread's first reply. reply is an MCP tool too. Needs an Issues server with the reply, ask and asked routes.Compare46import { runAck, runAnswer, runAsk, runIssue, runIssues, runReply, runSearch, runWaiting } from "./issues.ts";
init0Start the project47import { adminToken, issuedPublic, keyList, keyListText, keyNew, keyRevoke } from "./key-admin.ts";
speed60abso login opens the approve page in the browser
Like gh auth login and wrangler login: abso login opens the approve page in the default browser with the code already in it, so nobody copies a link by hand. It still prints the link and the code, which stand when the open fails or is skipped.
- Windows opens with rundll32 url.dll,FileProtocolHandler, macOS with open, Linux with xdg-open. There's no shell, so a link with & in it arrives whole (cmd's start would cut it).
- No browser with --no-browser or ABSO_NO_BROWSER, over SSH (SSH_CONNECTION or SSH_TTY), under CI, or on Linux and other Unixes with neither DISPLAY nor WAYLAND_DISPLAY.
- Only http and https links are opened, so a link from a server is never handed to the desktop as a file or a program.
- The opener starts detached and isn't waited on; a failure is silent.
Tests: open-browser.test.ts (each skip, each platform's command, web links only, a failing opener is silent), and two login tests with an injected opener.Compare48import { browserSkip, openInBrowser } from "./open-browser.ts";
pinch34Client: abso orgs and abso org <name>, reading as the person who approved this box's sign-in (abso login): your organizations and roles, invitations waiting for you, and an org's projects, people (by name, never id), settings and open invites. Changes (--invite, --role, --remove, --leave, --members, --projects-by), abso org new and abso init --org are made on the website for now; each says where and sends nothing. One change at a time. MCP serves orgs and org. Client tests 283/283, tsc and biome clean.Compare49import { initInOrg, runOrg, runOrgs } from "./orgs.ts";
51import { runNote, runNotes, runReview } from "./review.ts";
pinch22abso skill install: the abso skill for Claude Code now comes with the client. It writes ~/.claude/skills/abso/SKILL.md (--dir names another skills folder), says when the copy there is already current, and touches nothing else in the folder. abso skill show prints it.
The skill tells an agent how to work in an abso folder (sync, start, publish, settle, issues and asks) and what never to share. It's instructions only: it names no tools to allow, and installing it changes no settings. Its source is client/skills/abso/SKILL.md; the client carries the same text, and a test keeps the two equal, so the one-file client includes it. The client README gains a section on it, and its MCP section now says a tool call stays inside the folder the server started in.Compare52import { installSkill, SKILL, skillPath } from "./skill.ts";
pinch74Server text can't drive the terminal: everything the client prints goes through one filter. Tabs, newlines and colors (SGR) pass, colors only to a terminal with NO_COLOR unset. Every other control character, and so every other escape sequence (OSC clipboard writes and links, cursor moves, DCS), prints as visible text such as \x1b, so nothing vanishes silently. It covers news, version messages, CI logs, file paths and agent names, from any server.Compare53import { colorsPass, terminalText } from "./terminal-text.ts";
init0Start the project54import { runAmend, runDrop, runFollow, runLabel, runLabels, runPluck } from "./versions.ts";
55import { runVisibility } from "./visibility-commands.ts";
pinch86Read a public project signed out: abso join <project> --reader with no sign-in makes a folder that reads it. The folder holds only its settings (server, project, visitor), sends no sign-in whatever the environment or the box holds, follows no redirect, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused before any call, from an allow-list a new command has to join. join answers a private project and a missing one alike, by the status answer's code alone. Tests in client/test/visitor.test.ts.Compare56import { checkVisitor } from "./visitor.ts";
58interface CommandDef {
59 readonly flags: FlagSpec;
60 readonly usage: string;
61 readonly about: string;
62 /** Stop reading options at the first word (for `run <command...>`). */
63 readonly rest?: boolean;
64 readonly run: (args: Parsed, env: Env) => Promise<Output>;
65}
pinch21MCP tools stay inside the folder the server started in. A tool call's folder, and each file the issue tool's attach names, must be that folder or inside it. A relative path that climbs out (..), an absolute path elsewhere, or a link that leads out is refused with a plain message, so no tool reads a file outside the project. The text flags' -file twins were never served as tool inputs, and a test now keeps it that way.
Also: abso login, box and logout outside an abso folder act on https://api.abso.dev when --server isn't given, so a fresh machine can run abso login bare. Inside a folder they still use the folder's server.Compare67/** The server login, box and logout act on: --server, the folder's, or outside a folder abso.dev's (TOKEN_SERVERS[0]). */
68export function boxServer(args: Parsed, env: Pick<Env, "cwd">): string {
70 if (flag) return flag;
71 const root = findRoot(env.cwd);
pinch21MCP tools stay inside the folder the server started in. A tool call's folder, and each file the issue tool's attach names, must be that folder or inside it. A relative path that climbs out (..), an absolute path elsewhere, or a link that leads out is refused with a plain message, so no tool reads a file outside the project. The text flags' -file twins were never served as tool inputs, and a test now keeps it that way.
Also: abso login, box and logout outside an abso folder act on https://api.abso.dev when --server isn't given, so a fresh machine can run abso login bare. Inside a folder they still use the folder's server.Compare72 if (!root) return TOKEN_SERVERS[0]!;
init0Start the project73 return (JSON.parse(readFileSync(configPath(root), "utf8")) as { server: string }).server;
74}
76async function runKeyInstall(args: Parsed, env: Env): Promise<Output> {
77 // With --server, the folder is the one named (or here), before it is joined: findRoot
78 // could find a parent agent's folder and pin the key there.
79 const server = str(args, "server");
80 const root = server ? resolve(env.cwd, str(args, "dir") ?? ".") : findRoot(env.cwd);
81 if (!root)
82 throw new UsageError("abso key install runs inside an agent's folder, or takes --server <url> before abso join");
83 const stdin = await new Promise<string>((done, reject) => {
84 const chunks: Buffer[] = [];
85 process.stdin.on("data", (c) => chunks.push(c as Buffer));
86 process.stdin.on("end", () => done(Buffer.concat(chunks).toString("utf8")));
87 process.stdin.on("error", reject);
88 });
89 const { id } = installKey(root, stdin, server);
90 return { text: `Installed agent key ${id}.`, json: { installed: id } };
91}
93const COMMANDS: Readonly<Record<string, CommandDef>> = {
94 init: {
pinch34Client: abso orgs and abso org <name>, reading as the person who approved this box's sign-in (abso login): your organizations and roles, invitations waiting for you, and an org's projects, people (by name, never id), settings and open invites. Changes (--invite, --role, --remove, --leave, --members, --projects-by), abso org new and abso init --org are made on the website for now; each says where and sends nothing. One change at a time. MCP serves orgs and org. Client tests 283/283, tsc and biome clean.Compare95 flags: { server: "string", project: "string", agent: "string", "as-is": "boolean", org: "string" },
trials61abso join and abso init no longer need --server (abso issue 349): --server, then ABSO_SERVER, then the server this box signed in to with abso login, then https://api.abso.dev. A box signed in to more than one server is asked to say which. Usage, about text and the README's join line updated; box.test.ts covers the order.Compare96 usage: "abso init [folder] [--server <url>] --project <name> --agent <name> [--as-is] [--org <org>]",
trials61abso join and abso init no longer need --server (abso issue 349): --server, then ABSO_SERVER, then the server this box signed in to with abso login, then https://api.abso.dev. A box signed in to more than one server is asked to say which. Usage, about text and the README's join line updated; box.test.ts covers the order.Compare98 "Create a project on the server from a folder's text files (the server is chosen as abso join chooses it). The folder becomes that agent's folder. It writes a starting .absoignore, and, when the folder has no avcs.json and package.json gives a check or a build to guess, an avcs.json (setup, check, build and out): what the server's CI runs on each new version of shared. Without one, CI runs what it can guess itself, or nothing. --as-is writes neither: the folder goes up exactly as it is (an import). --org <org> makes it an organization's project: for now that is done on the website, and abso says where.",
pinch34Client: abso orgs and abso org <name>, reading as the person who approved this box's sign-in (abso login): your organizations and roles, invitations waiting for you, and an org's projects, people (by name, never id), settings and open invites. Changes (--invite, --role, --remove, --leave, --members, --projects-by), abso org new and abso init --org are made on the website for now; each says where and sends nothing. One change at a time. MCP serves orgs and org. Client tests 283/283, tsc and biome clean.Compare99 run: (args, env) => {
100 const org = str(args, "org");
101 return org === undefined ? runInit(args, env) : initInOrg(org, boxServer(args, env));
102 },
104 key: {
105 flags: {
106 server: "string",
107 dir: "string",
108 project: "string",
109 agent: "string",
110 expires: "string",
111 role: "string",
112 print: "boolean",
113 },
114 usage:
115 "abso key install [--server <url> [--dir <folder>]] | abso key new <agent> [--server <url> [--dir <folder>]] [--project <name>] [--expires <Nd>] [--role owner|writer|reader] [--print] | abso key list [--agent <name>] [--project <name>] | abso key revoke <id> [--project <name>]",
116 about:
review17New folders keep their state in .abso/, and the machine's sign-in, servers and admin token are read from ~/.abso/ first, then ~/.avcs/. A folder made before, with only .avcs/, is untouched: it keeps working, is never half-moved, and no older client or mod loses it. stateDir(root) and homeFile/homeWritePath are in the new client/src/state-dir.ts and replace the old AVCS_DIR constant everywhere. abso login writes only to ~/.abso/ and leaves ~/.avcs/ alone; logout removes both copies. The edit mod and the view mod read either folder. .abso is skipped like .avcs (including its odd spellings), the git exclude names whichever folder is in use, and the messages name .abso. Not changed: avcs.json (the server reads that name, so abso.json needs the server to learn it first), .avcsignore, env var names and wire headers. Tests: 709 run, 708 pass (one is skipped), including new ones for the folder choice, the home-file order and box sign-in; biome ci has no errors.Compare117 "install reads {key, id} from stdin into .abso/key. With --server, it writes it into a folder not joined yet, so abso join there signs in with the key. new writes the key into that folder and prints only the id; its role is writer unless --role says otherwise (a reader only reads; a writer writes on its own agent's routes; an owner also skips or revokes CI, resumes the queue, syncs git and exports); --print writes the key to stdout instead. list and revoke never print a key. These three read the admin token from AVCS_ADMIN_TOKEN or ~/.abso/admin-token and send it only to a server named in AVCS_ADMIN_SERVERS. An agent does not run them unless a person on the project says so.",
119 const sub = args.positionals[0];
120 if (sub === "install" && args.positionals.length === 1) return runKeyInstall(args, env);
121 const serverFlag = str(args, "server");
122 const root = serverFlag ? resolve(env.cwd, str(args, "dir") ?? ".") : findRoot(env.cwd);
123 if (!root) throw new UsageError("abso key runs inside an agent's folder, or takes --server <url>");
124 let config: ReturnType<typeof readConfig>;
125 try {
126 config = readConfig(root, env.env);
127 } catch {
128 config = {
129 server: serverFlag ?? "",
130 project: str(args, "project") ?? "",
131 agent: "admin",
132 token: readToken(env.env),
133 };
134 }
135 if (serverFlag) config = { ...config, server: serverFlag };
136 const admin = adminToken(env.env);
137 if (sub === "new" && args.positionals.length === 2) {
138 const server = str(args, "server") ?? config.server;
139 const project = str(args, "project") ?? config.project;
140 const expires = str(args, "expires");
141 const role = str(args, "role");
142 if (role !== undefined && role !== "owner" && role !== "writer" && role !== "reader")
143 throw new UsageError("--role is owner, writer or reader");
144 const issued = await keyNew({ ...config, server }, admin, args.positionals[1]!, project, expires, role);
145 const print = bool(args, "print");
146 const shown = issuedPublic(issued, print);
147 if (!print) {
148 const dir = str(args, "server") ? resolve(env.cwd, str(args, "dir") ?? ".") : root;
149 installKey(dir, JSON.stringify({ key: issued.key, id: issued.id }), server);
150 }
151 return {
152 text: print ? `${JSON.stringify({ key: issued.key, id: issued.id })}\n` : `Made ${issued.id}.\n`,
153 json: shown,
154 };
155 }
156 if (sub === "list" && args.positionals.length === 1) {
157 const agent = str(args, "agent");
158 const project = str(args, "project") ?? config.project;
159 const keys = await keyList({ ...config, server: str(args, "server") ?? config.server }, admin, agent, project);
160 return { text: `${keyListText(keys)}\n`, json: { keys } };
161 }
162 if (sub === "revoke" && args.positionals.length === 2) {
163 const project = str(args, "project") ?? config.project;
164 const id = args.positionals[1]!;
165 const revoked = await keyRevoke(
166 { ...config, server: str(args, "server") ?? config.server },
167 admin,
168 id,
169 project,
170 );
171 return { text: revoked ? `Revoked ${id}.\n` : `No key ${id}.\n`, json: { id, revoked } };
172 }
173 throw new UsageError("abso key install | abso key new <agent> | abso key list | abso key revoke <id>");
174 },
175 },
176 login: {
speed60abso login opens the approve page in the browser
Like gh auth login and wrangler login: abso login opens the approve page in the default browser with the code already in it, so nobody copies a link by hand. It still prints the link and the code, which stand when the open fails or is skipped.
- Windows opens with rundll32 url.dll,FileProtocolHandler, macOS with open, Linux with xdg-open. There's no shell, so a link with & in it arrives whole (cmd's start would cut it).
- No browser with --no-browser or ABSO_NO_BROWSER, over SSH (SSH_CONNECTION or SSH_TTY), under CI, or on Linux and other Unixes with neither DISPLAY nor WAYLAND_DISPLAY.
- Only http and https links are opened, so a link from a server is never handed to the desktop as a file or a program.
- The opener starts detached and isn't waited on; a failure is silent.
Tests: open-browser.test.ts (each skip, each platform's command, web links only, a failing opener is silent), and two login tests with an injected opener.Compare177 flags: { server: "string", "no-browser": "boolean" },
178 usage: "abso login [--server <url>] [--no-browser]",
speed71Help text: abso mcp's line gives the install command for an npm install (claude mcp add abso -- abso mcp, or cmd /c abso mcp on Windows), the unknown-command answer lists mcp, and the help no longer cites internal tracker numbers.Compare180 "Sign this box in once: it opens the approve page in your browser with the code filled in, prints the link and the code too, and waits while a person approves the code on the website, choosing the projects, the highest role and how many agents. Then abso join in any of those projects gives each agent its own key, with no approval. The box's sign-in is kept in your user folder, never in a project folder, and is never printed. Without --server, the folder's server, or https://api.abso.dev outside a folder. No browser opens with --no-browser or ABSO_NO_BROWSER, over SSH, under CI, or on Linux without a display.",
182 const server = boxServer(args, env);
speed60abso login opens the approve page in the browser
Like gh auth login and wrangler login: abso login opens the approve page in the default browser with the code already in it, so nobody copies a link by hand. It still prints the link and the code, which stand when the open fails or is skipped.
- Windows opens with rundll32 url.dll,FileProtocolHandler, macOS with open, Linux with xdg-open. There's no shell, so a link with & in it arrives whole (cmd's start would cut it).
- No browser with --no-browser or ABSO_NO_BROWSER, over SSH (SSH_CONNECTION or SSH_TTY), under CI, or on Linux and other Unixes with neither DISPLAY nor WAYLAND_DISPLAY.
- Only http and https links are opened, so a link from a server is never handed to the desktop as a file or a program.
- The opener starts detached and isn't waited on; a failure is silent.
Tests: open-browser.test.ts (each skip, each platform's command, web links only, a failing opener is silent), and two login tests with an injected opener.Compare183 const open =
184 bool(args, "no-browser") || browserSkip(env.env, process.platform) !== null
185 ? undefined
186 : (url: string) => openInBrowser(url);
pinch74Server text can't drive the terminal: everything the client prints goes through one filter. Tabs, newlines and colors (SGR) pass, colors only to a terminal with NO_COLOR unset. Every other control character, and so every other escape sequence (OSC clipboard writes and links, cursor moves, DCS), prints as visible text such as \x1b, so nothing vanishes silently. It covers news, version messages, CI logs, file paths and agent names, from any server.Compare187 const record = await login(server, {
188 say: (line) => process.stderr.write(terminalText(`${line}\n`, colorsPass(process.stderr, env.env))),
189 open,
190 });
192 text: `This box is signed in. ${boxText(record, server).split("\n").slice(1).join(" ")}`,
193 json: { box: boxPublic(record) },
194 };
195 },
196 },
197 box: {
198 flags: { server: "string" },
199 usage: "abso box [--server <url>]",
200 about:
201 "What this box's sign-in allows: its projects, the highest role its agents may have, how many agents it has made and may make, and when it expires. Never the credential.",
202 run: async (args, env) => {
203 const server = boxServer(args, env);
204 const record = readBox(server);
205 return { text: boxText(record, server), json: { box: boxPublic(record) } };
206 },
207 },
speed76abso whoami and abso doctor, and plainer errors.
- abso whoami: this box's sign-in as the server sees it (a revoked one shows as revoked), its projects, roles and expiry, and this folder's project, agent and kind of key. It names who approved the box when the server says.
- abso doctor: one line per check, ok, fail or skip: Node's version (20 or later for the npm package, 24 for a checkout), that the server answers, this box's sign-in (present, unexpired, accepted), and this folder's key against its project (a GET of the project's head, which the server answers only after checking the key). A failed check gives the next step, and the exit is 1.
- Neither prints a credential. Both are MCP tools too.
- The commonest failures now say what to do: a 401 with no credential reads 'You're not signed in. Run abso login, then abso join <project>.'; a refused key points to abso doctor; a server that can't be reached reads 'Can't reach <server>...' with the next step, unless the message already gives one; and outside a folder, 'You're not in an abso folder' says how to make one.Compare208 whoami: {
209 flags: { server: "string" },
210 usage: "abso whoami [--server <url>]",
211 about:
speed84whoami and doctor pick the server as join does
After abso login --server <url>, whoami and doctor still looked at https://api.abso.dev outside a folder, so they said you weren't signed in, and doctor checked the wrong server. Both now take --server, then ABSO_SERVER, then the folder's server, then the server this box signed in to with abso login, then https://api.abso.dev. A box signed in to more than one server is asked to say which with --server, as join does. Help text says so. Test in client/test/doctor.test.ts.Compare212 "Who and where you're signed in: this box's sign-in, as the server sees it (so a revoked one shows), its projects, roles and expiry, and this folder's project, agent and kind of key. Never a credential. The server is --server, else ABSO_SERVER, else this folder's, else the one this box signed in to with abso login, else https://api.abso.dev.",
speed76abso whoami and abso doctor, and plainer errors.
- abso whoami: this box's sign-in as the server sees it (a revoked one shows as revoked), its projects, roles and expiry, and this folder's project, agent and kind of key. It names who approved the box when the server says.
- abso doctor: one line per check, ok, fail or skip: Node's version (20 or later for the npm package, 24 for a checkout), that the server answers, this box's sign-in (present, unexpired, accepted), and this folder's key against its project (a GET of the project's head, which the server answers only after checking the key). A failed check gives the next step, and the exit is 1.
- Neither prints a credential. Both are MCP tools too.
- The commonest failures now say what to do: a 401 with no credential reads 'You're not signed in. Run abso login, then abso join <project>.'; a refused key points to abso doctor; a server that can't be reached reads 'Can't reach <server>...' with the next step, unless the message already gives one; and outside a folder, 'You're not in an abso folder' says how to make one.Compare213 run: async (args, env) => {
speed84whoami and doctor pick the server as join does
After abso login --server <url>, whoami and doctor still looked at https://api.abso.dev outside a folder, so they said you weren't signed in, and doctor checked the wrong server. Both now take --server, then ABSO_SERVER, then the folder's server, then the server this box signed in to with abso login, then https://api.abso.dev. A box signed in to more than one server is asked to say which with --server, as join does. Help text says so. Test in client/test/doctor.test.ts.Compare214 const out = await whoami(checkServer(str(args, "server"), env.cwd, env.env), env.cwd, env.env, realProbe());
speed76abso whoami and abso doctor, and plainer errors.
- abso whoami: this box's sign-in as the server sees it (a revoked one shows as revoked), its projects, roles and expiry, and this folder's project, agent and kind of key. It names who approved the box when the server says.
- abso doctor: one line per check, ok, fail or skip: Node's version (20 or later for the npm package, 24 for a checkout), that the server answers, this box's sign-in (present, unexpired, accepted), and this folder's key against its project (a GET of the project's head, which the server answers only after checking the key). A failed check gives the next step, and the exit is 1.
- Neither prints a credential. Both are MCP tools too.
- The commonest failures now say what to do: a 401 with no credential reads 'You're not signed in. Run abso login, then abso join <project>.'; a refused key points to abso doctor; a server that can't be reached reads 'Can't reach <server>...' with the next step, unless the message already gives one; and outside a folder, 'You're not in an abso folder' says how to make one.Compare215 return { text: out.text, json: out.json };
216 },
217 },
218 doctor: {
219 flags: { server: "string" },
220 usage: "abso doctor [--server <url>]",
221 about:
speed84whoami and doctor pick the server as join does
After abso login --server <url>, whoami and doctor still looked at https://api.abso.dev outside a folder, so they said you weren't signed in, and doctor checked the wrong server. Both now take --server, then ABSO_SERVER, then the folder's server, then the server this box signed in to with abso login, then https://api.abso.dev. A box signed in to more than one server is asked to say which with --server, as join does. Help text says so. Test in client/test/doctor.test.ts.Compare222 "Checks what commands need, one line each: Node's version, that the server answers, this box's sign-in (present, unexpired, accepted), and this folder's key against its project. A failed check says what to do next, and the exit is 1. Never prints a credential. It picks the server as whoami does.",
speed76abso whoami and abso doctor, and plainer errors.
- abso whoami: this box's sign-in as the server sees it (a revoked one shows as revoked), its projects, roles and expiry, and this folder's project, agent and kind of key. It names who approved the box when the server says.
- abso doctor: one line per check, ok, fail or skip: Node's version (20 or later for the npm package, 24 for a checkout), that the server answers, this box's sign-in (present, unexpired, accepted), and this folder's key against its project (a GET of the project's head, which the server answers only after checking the key). A failed check gives the next step, and the exit is 1.
- Neither prints a credential. Both are MCP tools too.
- The commonest failures now say what to do: a 401 with no credential reads 'You're not signed in. Run abso login, then abso join <project>.'; a refused key points to abso doctor; a server that can't be reached reads 'Can't reach <server>...' with the next step, unless the message already gives one; and outside a folder, 'You're not in an abso folder' says how to make one.Compare223 run: async (args, env) => {
speed84whoami and doctor pick the server as join does
After abso login --server <url>, whoami and doctor still looked at https://api.abso.dev outside a folder, so they said you weren't signed in, and doctor checked the wrong server. Both now take --server, then ABSO_SERVER, then the folder's server, then the server this box signed in to with abso login, then https://api.abso.dev. A box signed in to more than one server is asked to say which with --server, as join does. Help text says so. Test in client/test/doctor.test.ts.Compare224 const checks = await doctor(checkServer(str(args, "server"), env.cwd, env.env), env.cwd, env.env, realProbe());
speed76abso whoami and abso doctor, and plainer errors.
- abso whoami: this box's sign-in as the server sees it (a revoked one shows as revoked), its projects, roles and expiry, and this folder's project, agent and kind of key. It names who approved the box when the server says.
- abso doctor: one line per check, ok, fail or skip: Node's version (20 or later for the npm package, 24 for a checkout), that the server answers, this box's sign-in (present, unexpired, accepted), and this folder's key against its project (a GET of the project's head, which the server answers only after checking the key). A failed check gives the next step, and the exit is 1.
- Neither prints a credential. Both are MCP tools too.
- The commonest failures now say what to do: a 401 with no credential reads 'You're not signed in. Run abso login, then abso join <project>.'; a refused key points to abso doctor; a server that can't be reached reads 'Can't reach <server>...' with the next step, unless the message already gives one; and outside a folder, 'You're not in an abso folder' says how to make one.Compare225 const failed = checks.some((c) => c.result === "fail");
226 return { text: doctorText(checks), json: { checks }, ...(failed ? { exit: EXIT.error } : {}) };
227 },
228 },
230 flags: { server: "string" },
231 usage: "abso logout [--server <url>]",
232 about:
233 "End this box's sign-in on the server and forget it here. Keys its agents already have stop working with it.",
234 run: async (args, env) => {
235 const server = boxServer(args, env);
236 const record = readBox(server);
237 if (!record) return { text: `This box isn't signed in to ${server}.`, json: { loggedOut: false } };
238 const ended = await logout(record);
239 return {
240 text: ended
241 ? `Signed this box out of ${record.server}.`
242 : `Forgot this box's sign-in here, but ${record.server} couldn't be reached to end it. Revoke the box on the website.`,
243 json: { loggedOut: true, ended },
pinch22abso skill install: the abso skill for Claude Code now comes with the client. It writes ~/.claude/skills/abso/SKILL.md (--dir names another skills folder), says when the copy there is already current, and touches nothing else in the folder. abso skill show prints it.
The skill tells an agent how to work in an abso folder (sync, start, publish, settle, issues and asks) and what never to share. It's instructions only: it names no tools to allow, and installing it changes no settings. Its source is client/skills/abso/SKILL.md; the client carries the same text, and a test keeps the two equal, so the one-file client includes it. The client README gains a section on it, and its MCP section now says a tool call stays inside the folder the server started in.Compare244 };
245 },
pinch34Client: abso orgs and abso org <name>, reading as the person who approved this box's sign-in (abso login): your organizations and roles, invitations waiting for you, and an org's projects, people (by name, never id), settings and open invites. Changes (--invite, --role, --remove, --leave, --members, --projects-by), abso org new and abso init --org are made on the website for now; each says where and sends nothing. One change at a time. MCP serves orgs and org. Client tests 283/283, tsc and biome clean.Compare246 },
247 orgs: {
248 flags: { server: "string" },
249 usage: "abso orgs [--server <url>]",
250 about:
251 "Your organizations and your role in each, and invitations waiting for you. It reads as the person who approved this box's sign-in (abso login).",
252 run: (args, env) => runOrgs(boxServer(args, env)),
253 },
254 org: {
255 flags: {
256 server: "string",
257 name: "string",
258 invite: "string",
259 as: "string",
260 role: "string",
261 remove: "string",
262 leave: "boolean",
263 members: "string",
264 "projects-by": "string",
265 },
266 usage:
267 "abso org <name> [--invite <person>|link [--as owner] | --role <person>=owner|member | --remove <person> | --leave | --members read|write | --projects-by members|owners] | abso org new <name> [--name <shown name>]",
268 about:
269 "An organization: its projects, people, open invites and settings, as the person who approved this box's sign-in sees them (people and settings only to members). One change at a time. Changes and abso org new are made on the website for now, and abso says where.",
270 run: (args, env) => runOrg(args, boxServer(args, env)),
pinch22abso skill install: the abso skill for Claude Code now comes with the client. It writes ~/.claude/skills/abso/SKILL.md (--dir names another skills folder), says when the copy there is already current, and touches nothing else in the folder. abso skill show prints it.
The skill tells an agent how to work in an abso folder (sync, start, publish, settle, issues and asks) and what never to share. It's instructions only: it names no tools to allow, and installing it changes no settings. Its source is client/skills/abso/SKILL.md; the client carries the same text, and a test keeps the two equal, so the one-file client includes it. The client README gains a section on it, and its MCP section now says a tool call stays inside the folder the server started in.Compare271 },
272 skill: {
273 flags: { dir: "string" },
274 usage: "abso skill install [--dir <skills folder>] | abso skill show",
275 about:
276 "The abso skill for Claude Code: how to work in an abso folder, and what never to share. install writes it to ~/.claude/skills/abso/SKILL.md (--dir names another skills folder) and changes no settings; run it again after updating abso. show prints it.",
277 run: async (args, env) => {
278 const [verb, ...more] = args.positionals;
279 if (verb === "show" && more.length === 0) return { text: SKILL, json: { skill: SKILL } };
280 if (verb !== "install" || more.length > 0)
281 throw new UsageError("abso skill install [--dir <skills folder>] | abso skill show");
282 const path = skillPath(str(args, "dir"), env.cwd);
283 const done = installSkill(path);
284 const said = { installed: "Installed", updated: "Updated", current: "Already current:" }[done];
285 return {
286 text: `${said} the abso skill at ${path}. New Claude Code sessions load it.`,
287 json: { path, done },
289 },
290 },
291 join: {
292 flags: { server: "string", agent: "string", dir: "string", reader: "boolean" },
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare293 usage: "abso join <project> [--agent <name>] [--dir <folder>] [--server <url>] [--reader]",
pinch86Read a public project signed out: abso join <project> --reader with no sign-in makes a folder that reads it. The folder holds only its settings (server, project, visitor), sends no sign-in whatever the environment or the box holds, follows no redirect, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused before any call, from an allow-list a new command has to join. join answers a private project and a missing one alike, by the status answer's code alone. Tests in client/test/visitor.test.ts.Compare295 "Join a project as a new agent and write its shared files into a folder: --dir, else here when this folder is empty, else ./<project> (which has to be new or empty). Without --agent the agent is named after this box (the name abso login gave it, lower-cased), or the next free <name>-2, <name>-3; that needs the box signed in with abso login. The server is --server, else ABSO_SERVER, else the one this box signed in to with abso login, else https://api.abso.dev. --reader joins as a reader: it reads everything and records nothing, and the server refuses its edits, records and publishes. With --reader and no sign-in, a public project is joined to read signed out: the folder holds only its settings, sends no sign-in, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused.",
297 },
298 record: {
299 flags: { all: "boolean", binary: "string" },
300 usage: "abso record [--all]",
301 about:
302 "Send every file that changed since the server last heard about it (--all: every file). For edits the hook did not see.",
303 run: runRecord,
304 },
305 publish: {
306 flags: {
307 message: "string",
308 binary: "string",
309 "as-is": "boolean",
310 check: "optional",
311 box: "string",
312 wait: "string",
313 "no-wait": "boolean",
314 done: "boolean",
315 },
316 usage: 'abso publish -m "<why>" [--as-is] [--check ["<command>"]] [--wait <seconds> | --no-wait] [--done]',
317 about:
318 'Record, then add your draft to shared. Refused when it collides with work published since your last sync, or when lines a sync showed changed on both sides are still untouched (--as-is publishes both sides\' lines anyway). --check "<command>" (e.g. --check "npm run typecheck") first syncs, then runs the command in your box on your draft with newest shared, and publishes only if it exits 0, so two changes that each pass alone can\'t turn shared red. --check alone runs the "build" and then the "check" in the project\'s avcs.json (your draft\'s copy), as the server does on each new version. With the merge queue on ("queue": true in avcs.json), a publish to shared is queued and lands only once the project\'s check passes on shared with it on top: publish waits up to 100 s for that (--wait <seconds> changes it, --no-wait returns at once), then says it landed (exit 0), was pulled with the check\'s output (exit 2, its changes still in your draft), or is still queued (exit 3; the outcome comes as news). --check alone is skipped then, since the queue runs the check. --done takes your start note back once it\'s published: this publish finishes that work.',
319 run: runPublish,
320 },
321 bisect: {
322 flags: { good: "string", bad: "string", box: "string" },
323 usage: "abso bisect [--good <version>] [--bad <version>] -- <program> <arg...>",
324 about:
325 "The first version where a check fails: runs it in your box at versions of your folder's space (as abso run --at does) and prints that version, its author and message. --bad is the newest by default; without --good it steps back in doubling steps until one passes, then halves the gap. A run that exits 0 passes; exit 125 means it can't be tested (as in git bisect run), so that version is skipped, and if skips leave the answer open it names the range. About log2(versions) runs; your folder is never touched.",
326 rest: true,
327 run: runBisect,
328 },
329 reader: {
330 flags: {},
331 usage: "abso reader on|off",
332 about:
333 "Make this folder's agent a reader, which reads everything and records nothing (the server refuses its edits, records and publishes), or a writer again. Refused while it has unpublished or parked work.",
334 run: runReader,
335 },
336 settle: {
337 flags: { yours: "boolean", theirs: "boolean", both: "boolean" },
338 usage: "abso settle <file...> --yours|--theirs|--both",
339 about:
340 "Settle the collisions a sync marked in these files: each marker block becomes your lines, theirs, or both (yours first), then it records. abso status lists the files with markers.",
341 run: runSettle,
342 },
343 sync: {
344 flags: { verbose: "boolean", full: "boolean" },
345 usage: "abso sync [--full]",
346 about:
347 "Record, then bring shared's new work into the folder. Lines changed on both sides are listed as collisions to settle. --full writes any file of yours the folder is missing, not only what changed since your last sync.",
348 run: runSync,
349 },
350 run: {
351 flags: {
352 detach: "boolean",
353 replace: "boolean",
354 fresh: "boolean",
355 parallel: "boolean",
356 at: "string",
357 files: "string",
358 fetch: "string",
359 box: "string",
360 with: "string",
361 quiet: "boolean",
362 },
363 usage:
364 'abso run [--detach] [--replace] [--fresh] [--box <name>] [--at <version> [--files <glob>]] <command...> | abso run ... -- <program> <arg...> | abso run --parallel "<command>" "<command>"...',
365 about:
review16The client says abso, not avcs, in everything a person reads: the hints after an issue view and abso issue new, the help for issue, issues, ask, answer and waiting, the 'abso:' prefix on notices from run, publish --check, the queue and serve, the 'News from abso' header, the MCP server's name and the claude mcp add example, and the view mod's status line. Only printed words changed: file and folder names (avcs.json, .avcs/, ~/.avcs/token), environment variables and wire headers are as they were, and the tests were updated to the new words (704 pass, biome ci clean).Compare366 "Send the folder to this agent's box, run the command there, and stream its output back. Exits with the command's code. After --, each word goes to the program exactly as typed (quotes, backslashes, regex text); without --, the words are one shell command. The box's stderr comes out on stderr. --detach starts it and prints its id without waiting. While a run is still going in the box, a new one is refused (409, naming it), since it would replace the files under it; --replace stops the old one first. --parallel runs each quoted command at once in the box (one upload), labels each line [1], [2], ..., ends with each one's exit code, and exits with the worst. --at <version> runs that version of the folder's space instead of the folder (for bisecting); with --files <glob>, only the matching files are taken from that version. The folder is never touched. --fetch <glob>[,<glob>...] brings matching files from the box's /w back after the run (see abso fetch); several globs go in one argument, comma-separated (--fetch 'shots/*.png,out/*.json'), as for --files and --with. The box's /w is replaced by your folder on every run; the rest of the box (/tmp, ~/.cache, /w/node_modules) lasts between runs until the box stops (idle 30 minutes, or restarted). abso's own notices go to stderr, apart from the command's output; --quiet drops them (the command's own stderr still comes through). --with <box path>=<local path>[,...] adds files (or a folder's files) for this run only: they go to the box and are never written to your folder or recorded, for an A/B run that leaves the project alone. --box <name> (or AVCS_BOX=<name>) runs in another box of yours, with its own /w and state, so a subagent's runs and yours don't wait on each other; logs and fetch take --box too. After abso prep, a fresh box starts from the prep; --fresh starts this run from the plain image instead.",
368 run: runRun,
369 },
370 serve: {
371 flags: { version: "string", build: "string", out: "string" },
372 usage: 'abso serve [--version <n>] [--build "<command>"] [--out <folder>]',
373 about:
374 "A preview of one version of shared (the newest by default) at a stable URL that needs no token, for playing a fixed build in a browser with no local server and no sound on this machine. The server builds it once per version (npm ci, then vite build --base ./ into dist; --build and --out change that) and keeps the newest 10 builds. Asking again for a built version answers at once.",
375 run: runServe,
376 },
377 mv: {
378 flags: {},
379 usage: "abso mv <from> <to>",
380 about:
review16The client says abso, not avcs, in everything a person reads: the hints after an issue view and abso issue new, the help for issue, issues, ask, answer and waiting, the 'abso:' prefix on notices from run, publish --check, the queue and serve, the 'News from abso' header, the MCP server's name and the claude mcp add example, and the view mod's status line. Only printed words changed: file and folder names (avcs.json, .avcs/, ~/.avcs/token), environment variables and wire headers are as they were, and the tests were updated to the new words (704 pass, biome ci clean).Compare381 "Move a file in your draft, its lines keeping their history (as git mv), recorded as a move rather than guessed from the folder. The way to change a file's case: README.md and readme.md are one file in abso, and a write under another spelling goes to the existing one, with a warning that names abso mv. It reaches shared with your next publish.",
383 },
384 review: {
385 flags: { since: "string" },
386 usage: "abso review [<id> | v<version> | <agent>] [--since <position|2h>]",
387 about:
speed71Help text: abso mcp's line gives the install command for an npm install (claude mcp add abso -- abso mcp, or cmd /c abso mcp on Windows), the unknown-command answer lists mcp, and the help no longer cites internal tracker numbers.Compare388 "Review is reading what landed. With no change: the changes with anything new since you last looked, newest first (a change is one start note's work, a named draft's, or a lone publish), and the mark moves on; --since 2h (or a log position) looks further back without moving it. With a change id, v<version> (the change holding that version of shared) or an agent (its newest change): that change's page, with what it set out to do, its versions, what it settled, its reviewers and its notes.",
390 },
391 note: {
392 flags: {
393 object: "boolean",
394 read: "boolean",
395 draft: "string",
396 at: "string",
397 reply: "string",
398 close: "string",
399 resolved: "boolean",
400 withdrawn: "boolean",
401 },
402 usage:
403 'abso note <file>:<line>[-<line>] "<text>" [--object | --read] [--draft <agent> | --at <version>] | abso note --reply <id> "<text>" | abso note --close <id> --resolved|--withdrawn',
404 about:
speed71Help text: abso mcp's line gives the install command for an npm install (claude mcp add abso -- abso mcp, or cmd /c abso mcp on Windows), the unknown-command answer lists mcp, and the help no longer cites internal tracker numbers.Compare405 "A note on lines: it sits on those lines and follows them as the file changes. The lines' authors and the change's agent hear it as news. The line numbers are as your folder shows the file (it records first); --draft <agent> notes their unpublished work as their draft shows it, --at <version> a version of shared. --object asks for a fix (it shows as addressed once all its lines change); --read says you read it, telling nobody. --reply answers a note; --close closes one of yours.",
407 },
408 notes: {
409 flags: { change: "string", all: "boolean" },
410 usage: "abso notes [file] [--change <id>] [--all]",
411 about:
412 "The open notes, on a file or a change, with their replies and where their lines are now. --all includes closed, addressed and outdated ones.",
413 run: runNotes,
414 },
415 issues: {
416 flags: {
417 open: "boolean",
418 status: "string",
419 agent: "string",
420 parent: "string",
421 label: "string",
422 labels: "boolean",
423 drafts: "boolean",
424 },
425 usage:
review16The client says abso, not avcs, in everything a person reads: the hints after an issue view and abso issue new, the help for issue, issues, ask, answer and waiting, the 'abso:' prefix on notices from run, publish --check, the queue and serve, the 'News from abso' header, the MCP server's name and the claude mcp add example, and the view mod's status line. Only printed words changed: file and folder names (avcs.json, .avcs/, ~/.avcs/token), environment variables and wire headers are as they were, and the tests were updated to the new words (704 pass, biome ci clean).Compare426 "abso issues [--open] [--status <status>] [--agent <agent>] [--parent <N>] [--label <l,l>] | abso issues --labels",
speed71Help text: abso mcp's line gives the install command for an npm install (claude mcp add abso -- abso mcp, or cmd /c abso mcp on Windows), the unknown-command answer lists mcp, and the help no longer cites internal tracker numbers.Compare428 "The project's issues, most recently updated first, each with its status, agents, labels, versions and who it waits on. --label keeps the issues with every label named (friction, say); --labels lists the labels in use, with how many issues are open under each; --drafts lists your drafts. A status comes from the work: abso start --issue N puts an issue In progress, an open ask makes it Blocked (or In review, for a review), and publish --done closes it.",
430 },
431 issue: {
432 flags: {
433 comment: "string",
434 object: "string",
435 drop: "boolean",
436 reopen: "boolean",
437 done: "boolean",
438 "done-by": "string",
439 title: "string",
440 description: "string",
441 parent: "string",
442 lines: "string",
443 agent: "string",
444 "blocked-by": "string",
445 notify: "string",
446 quiet: "boolean",
447 label: "string",
448 unlabel: "string",
449 open: "boolean",
450 delete: "boolean",
pinch5abso issue new and abso issue N --comment take --attach <file,file> (abso issue 171). Each file goes up to the Issues Worker first (POST /p/:project/a/:agent/attachments, the bytes as the body and the name URI-encoded in X-Avcs-Name), and the write carries the ids the uploads answered. Nothing is sent if a file is missing or over 10 MB. --attach anywhere else is refused. The issue's page lists each attachment under the issue or comment carrying it: id, name, size and its link. The wire types gain Attachment and attachments?. MCP's issue tool takes attach too, since its parameters come from the flags. The server side is abso 621 (off until Cloud binds the bucket). Tests: client/test/attach.test.ts, against a stand-in Issues server. Checked: biome ci, npm run check (698 pass).Compare451 attach: "string",
pinch23abso issue <N> --copy-to <project>: copy an issue into another project, with its comments, answered asks and labels, each keeping its author and time. The Issues server reads the source issue itself; the client sends only which issue, and any cleaned texts.
- --dry-run shows what the copy would make (title, how many comments and asks, which were edited, labels) and what's left behind. It writes nothing.
- --clean <file> gives cleaned texts by source id, as JSON: {title, description, comments: [{id, text}], asks: [{id, question, answer}]}. A comment left out of a given list isn't copied.
- --copy-to goes alone, so a copy is never half an edit. Copying into the project the issue is already in is refused before any call.
- When a live server refuses the copy (copying out of a project there takes an owner of it), the message says --dry-run still works.
- The MCP issue tool's clean input is a file too, so it's confined to the server's start folder like attach.
Tests: client/test/issues.test.ts, against a stand-in Issues server. The run --parallel test that sometimes times out under a full run passed when rerun.Compare452 "copy-to": "string",
453 clean: "string",
454 "dry-run": "boolean",
pinch29Client: abso issue N --save-attachments <dir> saves each attachment on an issue and its comments once (an SVG's own file beside its drawing), outside the abso folder unless the place is ignored; MCP confines the folder like attach. abso export now stamps its folder with .abso-export, one line of JSON in a file with no extension, so the exported project's own formatter and linter pass it by; a folder stamped .abso-export.json or .avcs-export.json still counts as an export.Compare455 "save-attachments": "string",
457 usage:
pinch29Client: abso issue N --save-attachments <dir> saves each attachment on an issue and its comments once (an SVG's own file beside its drawing), outside the abso folder unless the place is ignored; MCP confines the folder like attach. abso export now stamps its folder with .abso-export, one line of JSON in a file with no extension, so the exported project's own formatter and linter pass it by; a folder stamped .abso-export.json or .avcs-export.json still counts as an export.Compare458 'abso issue <N> --save-attachments <folder> | abso issue <N> --copy-to <project> [--clean <file>] [--dry-run] | abso issue <N> [--comment "..." [--attach <file,file>] | --object "..." | --drop | --reopen | --done [--done-by <version>]] | abso issue <N> [--title "..."] [--description "..."] [--parent <N|none>] [--agent <agent|none>] [--blocked-by <N,N|none>] [--label <l,l>] [--unlabel <l,l>] [--notify <who,who> | --quiet] | abso issue new "<title>" [--description "..."] [--parent <N>] [--lines <file>:<from>-<to>@<version>] [--agent <agent>] [--blocked-by <N,N>] [--notify <who,who>] [--label <l,l>] [--attach <file,file>]',
pinch29Client: abso issue N --save-attachments <dir> saves each attachment on an issue and its comments once (an SVG's own file beside its drawing), outside the abso folder unless the place is ignored; MCP confines the folder like attach. abso export now stamps its folder with .abso-export, one line of JSON in a file with no extension, so the exported project's own formatter and linter pass it by; a folder stamped .abso-export.json or .avcs-export.json still counts as an export.Compare460 "One issue: its description, Agent, Blocked by, labels, asks, comments, edits, sub-issues and watchers. --comment comments on it and --object objects; its agents hear either. --drop drops it. --reopen opens a dropped issue again. --done marks it done by hand, and --done-by <version> names the published version that did it. publish --done still marks it done too. --title, --description, --parent, --agent and --blocked-by edit it, and the edit tells its watchers (who opened it, its Agent and agents, its Reviewer, whoever was named in Notify, and whoever commented); --notify tells more people, --quiet tells nobody. --label adds labels and --unlabel takes them off (friction, area:client: lower-case letters, digits and - _ . :); a label-only edit tells nobody unless --notify names people. An issue is Blocked until each issue it's blocked by is Done. abso issue new opens one; --lines ties it to lines at a version of shared, --agent says who it's for, --notify tells people now, and --label labels it. --attach shot.png,after.png puts images on a new issue or a comment (png, jpeg, gif or webp, 10 MB each; the server checks the type by the bytes and takes out metadata such as where a photo was taken. An svg, up to 1 MB, is drawn as a png, and its own file is kept as a download, on servers that take svg), and prints each one's id for the text to point at; the issue's page lists them with a link, and --save-attachments <folder> saves every one on the issue and its comments there as <id>-<name> (an svg's own file too), outside the abso folder or where abso leaves files out. --copy-to <project> copies the issue into another project, with its comments, answered asks and labels, each keeping its author and time; --dry-run shows what would go and writes nothing, and --clean <file> gives cleaned texts by source id as JSON ({title, description, comments: [{id, text}], asks: [{id, question, answer}]}; a comment left out of a given list isn't copied). Copying out of a project on a live server takes an owner of that project. abso issue draft \"<title>\" [the same fields] saves a draft instead: yours alone, with no number and no news; abso issue draft <D> [fields] changes it, --open opens it as an issue, --delete deletes it.",
462 },
463 ask: {
infra-split14An asker can take back an ask: abso ask --withdraw <ask> [--note "why"]
An ask that later decisions have overtaken used to sit in the asked person's waiting list for good. Only they could answer it, and "none of these" wasn't an option. Now the one who asked can withdraw it.
- `abso ask --withdraw <ask> [--note "why"]` sends one call to the server's withdraw route. It's refused before any call when mixed with a question or the other ask flags. `--note-file` reads the note from a file or stdin, like every text flag.
- A withdrawn ask closes the way an answered one does: it leaves the waiting list, and it stops holding its issue at Blocked. The ask keeps its question. The asker's note is kept as why, and the one asked hears it.
- Ask gains `outcome?: "withdrawn"`. Older servers leave it out. The asks list and an issue's page show "withdrawn by <asker>" and the note, instead of "answered by".
- The server side of the route comes with the hosted Issues service. Until it's there, the call answers with that server's error.
Tests: the new usage mistakes, and the single POST to the asker's own route. Checked: npx biome ci . and npm run check exit 0 (704 pass, 1 skipped).Compare464 flags: {
465 issue: "string",
466 review: "boolean",
467 task: "boolean",
468 due: "string",
469 blocks: "string",
470 options: "string",
471 withdraw: "string",
472 note: "string",
pinch35Client: files on asks and answers. abso ask and abso answer take --attach (uploaded first, as on issues; not with --withdraw); an ask lists its question's files under it and its answer's under the answer; abso issue N --save-attachments takes them too. An Issues server from before asks carried files keeps the words and drops the files: abso says so (notKept in --json) instead of losing them quietly. Wire: Ask.attachments and answer.attachments, optional. Client tests 286/286, tsc and biome clean.Compare473 attach: "string",
infra-split14An asker can take back an ask: abso ask --withdraw <ask> [--note "why"]
An ask that later decisions have overtaken used to sit in the asked person's waiting list for good. Only they could answer it, and "none of these" wasn't an option. Now the one who asked can withdraw it.
- `abso ask --withdraw <ask> [--note "why"]` sends one call to the server's withdraw route. It's refused before any call when mixed with a question or the other ask flags. `--note-file` reads the note from a file or stdin, like every text flag.
- A withdrawn ask closes the way an answered one does: it leaves the waiting list, and it stops holding its issue at Blocked. The ask keeps its question. The asker's note is kept as why, and the one asked hears it.
- Ask gains `outcome?: "withdrawn"`. Older servers leave it out. The asks list and an issue's page show "withdrawn by <asker>" and the note, instead of "answered by".
- The server side of the route comes with the hosted Issues service. Until it's there, the call answers with that server's error.
Tests: the new usage mistakes, and the single POST to the asker's own route. Checked: npx biome ci . and npm run check exit 0 (704 pass, 1 skipped).Compare474 },
pinch72Asks become threads: abso reply <ask> "..." adds to an ask from either side, open or answered, and --question hands the turn to the asker until they reply. abso ask <N> shows one ask with its whole thread and whose turn it is; abso waiting --asked lists the asks you sent. An ack's note is the thread's first reply. reply is an MCP tool too. Needs an Issues server with the reply, ask and asked routes.Compare476 'abso ask <who> "<question>" [--issue <N>] [--review | --task] [--due <YYYY-MM-DD>] [--blocks <N,N>] [--options "A|B|C"] [--attach <file,file>] | abso ask <N> | abso ask --withdraw <ask> [--note "why"]',
pinch72Asks become threads: abso reply <ask> "..." adds to an ask from either side, open or answered, and --question hands the turn to the asker until they reply. abso ask <N> shows one ask with its whole thread and whose turn it is; abso waiting --asked lists the asks you sent. An ack's note is the thread's first reply. reply is an MCP tool too. Needs an Issues server with the reply, ask and asked routes.Compare478 "Ask an agent, or a person (person:<id>), something; they hear it. Who must be one of the project's agents or members; a name that isn't is refused, with the closest one suggested. abso ask <N> shows ask N, open or closed, with its whole thread, its answer and whose turn it is. On an issue, it holds the issue at Blocked (In review for --review) until answered. --task asks for something done instead of an answer; --options gives the choices; --blocks names the issues waiting on it. --attach sends files with the question, as on an issue. --withdraw takes back an ask you made that no longer needs an answer: it leaves their waiting list, stops holding the issue, keeps your --note as why, and they hear it.",
devops20Add abso search: find a project's issues by words or meaning
`abso search "<words>" [--limit <N>]` lists the project's issues that
match, best first, and is served as an MCP tool as well.
- Each hit shows the issue, then where it matched: the title, the
description, a comment, or "by meaning".
- "#N" or "N" puts issue N first.
- Where the server also searches by meaning, an issue worded unlike
the search still turns up; the hit says so.Compare480 },
481 search: {
482 flags: { limit: "string" },
483 usage: 'abso search "<words>" [--limit <N>]',
484 about:
485 "The project's issues that match, best first: by their words, and by what they mean where the server has meaning search on, so an issue worded differently from your search still turns up. #N or N puts issue N first. Each hit says where it matched; one only meaning search found says by meaning.",
486 run: runSearch,
488 waiting: {
pinch72Asks become threads: abso reply <ask> "..." adds to an ask from either side, open or answered, and --question hands the turn to the asker until they reply. abso ask <N> shows one ask with its whole thread and whose turn it is; abso waiting --asked lists the asks you sent. An ack's note is the thread's first reply. reply is an MCP tool too. Needs an Issues server with the reply, ask and asked routes.Compare489 flags: { of: "string", mine: "boolean", asked: "boolean" },
490 usage: "abso waiting [--of <agent or person:id>] [--mine] [--asked]",
pinch36waiting --mine lists your publishes still in the merge queue: where each stands (being checked, or how many wait ahead of it), whether the queue is paused, and that the outcome comes as news; --json carries them as queued. A server without a queue, or one that can't be read, leaves them out rather than failing the asks.Compare491 about:
pinch72Asks become threads: abso reply <ask> "..." adds to an ask from either side, open or answered, and --question hands the turn to the asker until they reply. abso ask <N> shows one ask with its whole thread and whose turn it is; abso waiting --asked lists the asks you sent. An ack's note is the thread's first reply. reply is an MCP tool too. Needs an Issues server with the reply, ask and asked routes.Compare492 "The open asks, soonest due first: every one, those waiting on someone (--of), or those waiting on you (--mine), each with its newest reply. An ask waits on the one asked until they answer, or on the asker after a reply with --question, until the asker replies. --mine also lists your publishes still in the merge queue and where each stands; the outcome comes as news. --asked lists the asks you sent instead, open ones first, then the latest answered.",
494 },
495 answer: {
pinch35Client: files on asks and answers. abso ask and abso answer take --attach (uploaded first, as on issues; not with --withdraw); an ask lists its question's files under it and its answer's under the answer; abso issue N --save-attachments takes them too. An Issues server from before asks carried files keeps the words and drops the files: abso says so (notKept in --json) instead of losing them quietly. Wire: Ask.attachments and answer.attachments, optional. Client tests 286/286, tsc and biome clean.Compare496 flags: { option: "string", note: "string", done: "boolean", attach: "string" },
pinch35Client: files on asks and answers. abso ask and abso answer take --attach (uploaded first, as on issues; not with --withdraw); an ask lists its question's files under it and its answer's under the answer; abso issue N --save-attachments takes them too. An Issues server from before asks carried files keeps the words and drops the files: abso says so (notKept in --json) instead of losing them quietly. Wire: Ask.attachments and answer.attachments, optional. Client tests 286/286, tsc and biome clean.Compare498 'abso answer <ask> "<words>" | abso answer <ask> --option <N> [--note "..."] | abso answer <ask> --done [--note "..."], each with [--attach <file,file>]',
pinch35Client: files on asks and answers. abso ask and abso answer take --attach (uploaded first, as on issues; not with --withdraw); an ask lists its question's files under it and its answer's under the answer; abso issue N --save-attachments takes them too. An Issues server from before asks carried files keeps the words and drops the files: abso says so (notKept in --json) instead of losing them quietly. Wire: Ask.attachments and answer.attachments, optional. Client tests 286/286, tsc and biome clean.Compare500 "Answer an ask of you, in your own words, by picking an option (by number or text), or, for a task, with --done. --attach sends files with the answer. The asker hears it.",
pinch53abso ack <ask> ["note"]: the one asked says they have an ask and will answer later. The ask stays open and keeps blocking; abso issue shows it as acknowledged with the note, and the asker hears it. The Ask wire type gains ack, the API client gains ack(), and the skill mentions the command.Compare502 },
503 ack: {
504 flags: {},
505 usage: 'abso ack <ask> ["<note>"]',
506 about:
pinch72Asks become threads: abso reply <ask> "..." adds to an ask from either side, open or answered, and --question hands the turn to the asker until they reply. abso ask <N> shows one ask with its whole thread and whose turn it is; abso waiting --asked lists the asks you sent. An ack's note is the thread's first reply. reply is an MCP tool too. Needs an Issues server with the reply, ask and asked routes.Compare507 "Acknowledge an ask of you without answering it yet: it's the first reply in its thread. The asker hears it, with your note, and the ask stays open. abso reply adds more; abso answer closes it later.",
pinch53abso ack <ask> ["note"]: the one asked says they have an ask and will answer later. The ask stays open and keeps blocking; abso issue shows it as acknowledged with the note, and the asker hears it. The Ask wire type gains ack, the API client gains ack(), and the skill mentions the command.Compare508 run: runAck,
pinch72Asks become threads: abso reply <ask> "..." adds to an ask from either side, open or answered, and --question hands the turn to the asker until they reply. abso ask <N> shows one ask with its whole thread and whose turn it is; abso waiting --asked lists the asks you sent. An ack's note is the thread's first reply. reply is an MCP tool too. Needs an Issues server with the reply, ask and asked routes.Compare509 },
510 reply: {
511 flags: { question: "boolean" },
512 usage: 'abso reply <ask> "<words>" [--question]',
513 about:
514 'Add to an ask\'s thread, as its asker or the one asked, open or closed: "ok, let me check", what you found, a follow-up. The other side hears it, and the ask stays as it is; abso answer still closes it. --question, from the one asked, asks the asker something back: the ask waits on them until they reply. On a public project, anyone can read the thread.',
515 run: runReply,
517 unqueue: {
518 flags: {},
519 usage: "abso unqueue",
520 about:
521 "Take back your publishes still waiting in the merge queue: their changes stay in your draft, unpublished. Refused while one is being checked; it lands or is pulled within a few minutes (abso drop takes it back after it lands).",
522 run: runUnqueue,
523 },
524 visibility: {
525 flags: { yes: "boolean" },
526 usage: "abso visibility [public|private] [--yes]",
527 about:
speed71Help text: abso mcp's line gives the install command for an npm install (claude mcp add abso -- abso mcp, or cmd /c abso mcp on Windows), the unknown-command answer lists mcp, and the help no longer cites internal tracker numbers.Compare528 "Whether the project is public. With no word, says which. public, with --yes, lets anyone read it, signed in or not: files, versions, drafts, notes, Issues, people's names, CI as pass or fail; never keys, CI logs, preview links or boxes. private makes it members-only again. Switching takes the project owner's key (on staging, the shared token works too).",
530 },
531 ci: {
532 flags: { version: "string", revoke: "boolean" },
533 usage: "abso ci [<version>] | abso ci --revoke",
534 about:
535 "The project's CI: the server runs avcs.json's setup, build and check on each new version of shared, one job at a time on the newest. abso ci says whether shared is green or red (and since which version, by whom, once a bisect finds it), what is being checked, and the preview link of the newest passing build, which needs no token. abso ci <version> shows that version's job: which step failed, its exit code, and the end of its output. status says the same in a line, and log marks each version of shared. --revoke ends every preview link handed out so far and makes a new one.",
536 run: runCi,
537 },
538 shot: {
539 flags: {
540 out: "string",
541 wait: "string",
542 size: "string",
543 box: "string",
544 eval: "string",
545 click: "string",
546 mouse: "string",
547 at: "string",
548 scale: "string",
549 region: "string",
550 text: "boolean",
551 tree: "boolean",
552 interactive: "boolean",
553 depth: "string",
554 find: "string",
555 "max-chars": "string",
556 image: "boolean",
557 },
558 usage:
559 'abso shot ["/<path>?<query>"] [--scale 0.1-1] [--region x0,y0,x1,y1] [--text] [--tree [--interactive] [--depth N]] [--find "<text>"] [--max-chars N] [--image] [--at <version>] [--eval "<js>"] [--click "x,y[@ms];ref_N[@ms]"] [--mouse x,y|ref_N] [--out <file.png>] [--wait <ms>] [--size <w>x<h>]',
560 about:
561 "A look at your folder's game, taken in your box: it runs the project's vite dev server and Playwright on that page (default /, a 1280x720 page). Images cost tokens, so read without one when you can: --text prints the page's visible text, --tree its elements (role, name, a ref like ref_12, and its box in page pixels; --interactive only what can be clicked or typed in; --depth N levels), and --find \"<text>\" the elements matching some text; each is capped at --max-chars (default 5000). With none of those, or with --image, it writes a PNG to .avcs/shots/ (never recorded) or --out, and prints its pixel size and about how many tokens reading it costs (width x height / 750). --scale 0.5 halves the width and height (a quarter of the tokens); --region x0,y0,x1,y1 takes part of the page at full detail; they combine. Coordinates are always the page's, whatever the scale or region. To set up a state first, --eval runs JavaScript in the page and --click clicks points (x,y or ref_N; several separated by ;; @ms waits first), in that order, a second after load and two frames after the eval; --mouse x,y or ref_N leaves the pointer there (for hover cards); then it waits --wait ms (default 3000) and looks. It prints --eval's result, page errors and the first 30 console messages. Refs come from --tree or --find on the same page in the same state. --at <version> looks at that version of your folder's space instead of the folder (as abso run --at). Needs vite and playwright in the project's devDependencies; abso prep with npx --no-install playwright install chromium makes it fast.",
562 run: runShot,
563 },
564 prep: {
565 flags: { forget: "boolean", box: "string" },
566 usage: 'abso prep [--box <name>] "<setup command>" | abso prep --forget',
567 about:
568 "Set up your box once and keep it: sends the folder, runs the setup command (npm ci, npx playwright install chromium, a build) in a fresh box of the current image, and saves the box. From then on every fresh box (after a deploy, 30 idle minutes, or a new run's restart) starts from it, with node_modules, ~/.cache and /tmp as the setup left them; /w is still replaced by your folder on each run, apart from node_modules. abso run says when the prep is set aside (a newer box image) or out of date (package-lock.json changed): run abso prep again then. --forget drops it.",
569 rest: true,
570 run: runPrep,
571 },
572 fetch: {
573 flags: { box: "string" },
574 usage: "abso fetch [--box <name>] <glob...>",
575 about:
576 "Files the last run left in the box's /w (bash globs: out/*.png, **/*.log), written into the folder, but only where abso ignores them, so a fetched file never becomes an edit; the rest are named and left alone. /w is replaced on the next run, and everything goes when the box stops.",
577 run: runFetch,
578 },
579 pause: {
580 flags: {},
581 usage: "abso pause",
582 about:
583 "Send nothing from this folder until abso resume: the edit hook skips, abso record refuses, other commands don't record first. For swapping files in by hand (abso run --at usually does it better).",
584 run: runPause,
585 },
586 resume: {
587 flags: {},
588 usage: "abso resume",
589 about: "End abso pause. Changes made while paused go at the next record.",
590 run: runResume,
591 },
592 logs: {
593 flags: { box: "string" },
594 usage: "abso logs [--box <name>] <run id>",
595 about:
596 "A run's output from its start (stdout and stderr apart), for as long as the box keeps it, waiting until it ends. Exits with its code. For abso run --detach, or a run whose connection was lost.",
597 run: runLogs,
598 },
599 status: {
600 flags: { short: "boolean" },
601 usage: "abso status [--short]",
602 about:
603 "The shared version, whether shared is green or red by the project's CI (abso ci has more), who waits in the merge queue, every agent's base and draft, and what in this folder is not yet recorded. --short prints one word for stamping a build: the version this folder is on (214), with the named draft (coast@3), +unpublished when it holds changes not yet published, and +queued when a publish of yours waits in the merge queue.",
604 run: runStatus,
605 },
606 switch: {
607 flags: { carry: "boolean", verbose: "boolean" },
608 usage: "abso switch <draft> | abso switch -c <new draft> | abso switch shared",
609 about:
610 "Move this folder to a named draft, or back to shared. Your unpublished changes are parked where you leave and come back when you return; -c carries them into a new draft instead.",
611 run: runSwitch,
612 },
613 land: {
614 flags: { message: "string" },
615 usage: 'abso land -m "<why>"',
616 about:
617 "Land your named draft in shared, as one unit. Refused only on a collision with work that landed in shared since the draft began.",
618 run: runLand,
619 },
620 "draft-sync": {
621 flags: {},
622 usage: "abso draft-sync",
623 about: "Move your named draft onto shared's newest version, then bring that into this folder.",
624 run: runDraftSync,
625 },
626 diff: {
pinch52abso diff --agent <name>: review another agent's unpublished changes
Reviewing a teammate's work before it's published had no command: abso diff showed only your own draft, and abso status names files but not lines. Reviewers read the other agent's folder on disk, which only works on a shared machine and shows their disk, not what they recorded.
abso diff --agent alice now prints alice's recorded, unpublished changes line by line, the way abso diff prints yours: "alice's recorded, unpublished changes in shared (on version 12): 2 files, 5 lines added, 1 removed." Paths narrow it as usual. It reads what the server holds, the same route the website's drafts use, so it records nothing and changes nothing. An agent with no changes says so; a name the project doesn't know is refused by the server. --agent doesn't go with two versions or --draft.
The test server answers GET /p/:project/diff?agent= as the Worker does. Tested in client.test.ts.Compare627 flags: { draft: "string", agent: "string" },
628 usage: "abso diff [file...] [--agent <name>] | abso diff <from> <to> [file...] [--draft <name>]",
pinch52abso diff --agent <name>: review another agent's unpublished changes
Reviewing a teammate's work before it's published had no command: abso diff showed only your own draft, and abso status names files but not lines. Reviewers read the other agent's folder on disk, which only works on a shared machine and shows their disk, not what they recorded.
abso diff --agent alice now prints alice's recorded, unpublished changes line by line, the way abso diff prints yours: "alice's recorded, unpublished changes in shared (on version 12): 2 files, 5 lines added, 1 removed." Paths narrow it as usual. It reads what the server holds, the same route the website's drafts use, so it records nothing and changes nothing. An agent with no changes says so; a name the project doesn't know is refused by the server. --agent doesn't go with two versions or --draft.
The test server answers GET /p/:project/diff?agent= as the Worker does. Tested in client.test.ts.Compare630 "Your unpublished changes, line by line, as git prints them (records first). --agent <name>: that agent's recorded, unpublished changes instead, to review them; it changes nothing. With two versions: what changed between them in this space.",
632 },
633 restore: {
634 flags: { all: "boolean" },
635 usage: "abso restore <file...> | abso restore <file>:<line>[-<line>] | abso restore --all",
636 about:
637 "Discard your unpublished changes to those files (--all: to every file), like git restore. The files go back to how your space has them. <file>:<lines> puts back only the changes that touch those lines (numbered as abso diff shows the file now) and keeps your other changes to it.",
638 run: runRestore,
639 },
640 export: {
641 flags: { version: "string", keep: "string" },
642 usage: "abso export <dir> [--version <N>] [--keep <glob>]",
643 about:
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare644 "Write one published version of this folder's space (the newest unless --version) into a folder of its own, for a build that doesn't move. The folder must be empty, an earlier export (which it replaces, keeping node_modules and what --keep names), or one .absoignore leaves out; .avcs-export.json there names the version.",
646 },
647 files: {
648 flags: { draft: "string", version: "string" },
649 usage: "abso files [glob...] [--draft <name>] [--version <N>]",
650 about:
651 "The files your folder should hold (your view), marking any it's missing. With --draft or --version: that space's files at that version (--draft shared for shared).",
652 run: runFiles,
653 },
654 log: {
pinch26Publish and log fixes, and a flaky test removed.
- A publish or a land now waits up to 150 s for the server's answer, not 30 s. The server may work on one request for up to 2 minutes, so a slow merge was reported as failed and then landed.
- abso log reads any length of history. The server sends at most 200 versions a page, and the client now follows its pages: -n 2000 gives 2000, and --since or a folder reads up to 1000. abso log --before <version> starts below that version. The end of the list names the --before for the next older ones, and a filtered read says when it stopped short.
- The test 'sends one run, and takes each command as one quoted word' is removed: it failed on Windows about half the time. The stand-in server the client tests use no longer closes idle kept-alive connections, which other tests also tripped on under load (ECONNRESET).
Check: 722 pass, 0 fail.Compare655 flags: { limit: "string", before: "string", draft: "string", since: "string", by: "string", count: "boolean" },
pinch26Publish and log fixes, and a flaky test removed.
- A publish or a land now waits up to 150 s for the server's answer, not 30 s. The server may work on one request for up to 2 minutes, so a slow merge was reported as failed and then landed.
- abso log reads any length of history. The server sends at most 200 versions a page, and the client now follows its pages: -n 2000 gives 2000, and --since or a folder reads up to 1000. abso log --before <version> starts below that version. The end of the list names the --before for the next older ones, and a filtered read says when it stopped short.
- The test 'sends one run, and takes each command as one quoted word' is removed: it failed on Windows about half the time. The stand-in server the client tests use no longer closes idle kept-alive connections, which other tests also tripped on under load (ECONNRESET).
Check: 722 pass, 0 fail.Compare657 "abso log [file] [-n <count>] [--before <version>] [--draft <name>] [--since <version|30m|2h|1d|date>] [--by <agent,...>] [--count]",
pinch26Publish and log fixes, and a flaky test removed.
- A publish or a land now waits up to 150 s for the server's answer, not 30 s. The server may work on one request for up to 2 minutes, so a slow merge was reported as failed and then landed.
- abso log reads any length of history. The server sends at most 200 versions a page, and the client now follows its pages: -n 2000 gives 2000, and --since or a folder reads up to 1000. abso log --before <version> starts below that version. The end of the list names the --before for the next older ones, and a filtered read says when it stopped short.
- The test 'sends one run, and takes each command as one quoted word' is removed: it failed on Windows about half the time. The stand-in server the client tests use no longer closes idle kept-alive connections, which other tests also tripped on under load (ECONNRESET).
Check: 722 pass, 0 fail.Compare659 "The published versions of this folder's space (shared or a named draft), newest first: who, when, why and which files, and for shared, whether the version passed CI's check (abso ci). With a file: only the versions that changed it. --before <version> starts below that version, so any stretch of history can be listed; the end of the list names the --before for the next older ones. --since takes a version (the versions after it), a span back from now (30m, 2h, 1d), a clock time today (20:00) or a date and time; --by keeps one agent's versions (or several, comma-separated); --count prints versions and files per agent instead of the list.",
661 },
662 show: {
663 flags: { draft: "string" },
664 usage: "abso show <version> | abso show <version>:<file> [--draft <name>]",
665 about: "One version: who published it, why, and its diff. With :<file>, that file's text as it was then.",
666 run: runShow,
667 },
668 announce: {
669 flags: { to: "string" },
670 usage: "abso announce [--to <agent,agent>] <text>",
671 about:
672 "Tell the project's other agents (or those named) something. Each gets it once, as news on their next edit or the mod's next check.",
673 run: runAnnounce,
674 },
675 start: {
676 flags: { done: "boolean", issue: "string" },
677 usage: 'abso start "<what>" [files...] [--issue <n>] | abso start --done',
678 about:
679 "Say what you are starting on, before your first edit, so abso where shows it to everyone. Names who already has unpublished changes in those files, and tells them. Nothing is locked; publishing ends the note.",
680 run: runStart,
681 },
682 news: {
683 flags: {},
684 usage: "abso news",
685 about:
686 "The news waiting for you: collisions, changed definitions, moved lines and announcements. Each item comes once.",
687 run: runNews,
688 },
689 "fix-eol": {
690 flags: {},
691 usage: "abso fix-eol",
692 about:
693 "Rewrite the files that differ from what abso recorded only in line endings (CRLF here) with LF, as recorded. Their text is unchanged, so nothing is recorded; abso status stops listing them.",
694 run: runFixEol,
695 },
696 who: {
697 flags: {},
698 usage: "abso who <file...>",
699 about:
700 "For each file: who last changed it, who has unpublished changes in it (and where), and whose abso start note names it. Ask before you start in someone's file.",
701 run: runWho,
702 },
703 where: {
704 flags: {},
705 usage: "abso where",
706 about: "Who is working where: each file with unpublished changes, whose they are, and which lines.",
707 run: runWhere,
708 },
709 blame: {
710 flags: { from: "string", to: "string", version: "string", draft: "string", mine: "boolean" },
711 usage: "abso blame <file> [--from <n>] [--to <n>] [--version <n>] [--draft <name> | --mine]",
712 about:
713 "Who wrote each line of the file as shared has it (or had it at --version), and the publish that brought it in. --draft reads a named draft; --mine reads your own view, marking your unpublished lines with *.",
714 run: runBlame,
715 },
716 why: {
717 flags: { draft: "string", mine: "boolean" },
718 usage: "abso why <file>:<line> [--draft <name> | --mine]",
719 about:
720 "Why one line of shared (or of a named draft, or your own view) is the way it is: its change, its publish, its reasons, and any collision it settled.",
721 run: runWhy,
722 },
723 drop: {
724 flags: { message: "string", "with-dependents": "boolean" },
725 usage: 'abso drop <version...> -m "<why>" [--with-dependents]',
726 about:
727 "Take published versions back out of shared, as a new version: like git revert. History keeps them. Refused when later versions build on them, unless --with-dependents drops those too.",
728 run: runDrop,
729 },
730 pluck: {
731 flags: { message: "string", "with-dependencies": "boolean" },
732 usage: 'abso pluck <draft> <version...> -m "<why>" [--with-dependencies]',
733 about:
734 "Take some versions of a named draft into shared, as one version, leaving the draft as it is: like git cherry-pick. Refused when they build on other versions of the draft, unless --with-dependencies takes those too.",
735 run: runPluck,
736 },
737 amend: {
738 flags: { message: "string" },
739 usage: 'abso amend -m "<new message>"',
740 about:
741 "Correct the message of your newest publish in this space. Only the message changes; the log keeps the original.",
742 run: runAmend,
743 },
744 label: {
745 flags: { version: "string", remove: "boolean" },
746 usage: "abso label <name> [--version <n>] [--remove]",
747 about:
748 "Put a label on a version of shared (the newest by default), or take it off: like a git tag. A label can mark more than one version.",
749 run: runLabel,
750 },
751 labels: {
752 flags: {},
753 usage: "abso labels",
754 about: "Every label and the versions it marks.",
755 run: runLabels,
756 },
757 follow: {
758 flags: { none: "boolean" },
759 usage: "abso follow <label> | abso follow --none",
760 about:
761 "Make this folder follow a label: every sync takes it to the newest version of shared with that label, not the newest version. --none goes back to following shared.",
762 run: runFollow,
763 },
764 "check-ignore": {
765 flags: {},
766 usage: "abso check-ignore <path...>",
767 about:
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare768 "Whether abso leaves each path out, and which line of which ignore file decided (git's rules, for .gitignore and .absoignore).",
770 },
771 pipeline: {
infra-pipeline85abso pipeline runs: list a project's pipeline runs, show one run's jobs (state, why each stopped, exit, time, an npm or deploy job's phase), and print a job's log with --log <pipeline.job>Compare772 flags: { on: "string", space: "string", pipeline: "string", every: "string", log: "string" },
infra-split1The tool as of abso 612: https-only token, and the pipeline plan (abso 161)
abso-core's version 0 is the tool cut from abso 609. This is the difference to abso 612, reviewed by Agent VCS before the cut, so abso's pin can switch to an exact match.
- abso 611 (Pinch, Security's fix): off this machine, the client sends the token only over https. localhost, 127.0.0.1 and [::1] are still allowed. That's in client/src/core.ts and the view mod's copy (client/view/hooks/register.tsx), with tests and the README.
- abso 612 (infra-pipeline): src/pipeline/plan.ts answers which pipelines an event starts, and their jobs in waves. `abso pipeline check --on <event>` shows the plan. Tests are in src/pipeline/test/plan.test.ts and client/test/pipeline-commands.test.ts.
Checked here: npm ci, npx biome ci . and npm run check all exit 0 (693 pass, 1 skipped).Compare773 usage:
infra-pipeline85abso pipeline runs: list a project's pipeline runs, show one run's jobs (state, why each stopped, exit, time, an npm or deploy job's phase), and print a job's log with --log <pipeline.job>Compare774 "abso pipeline check [file] [--on publish|draft|green|land|hand|schedule [--space <name>] [--pipeline <name>] [--every <when>]] | abso pipeline runs [<run>] [--log <pipeline.job>]",
infra-pipeline85abso pipeline runs: list a project's pipeline runs, show one run's jobs (state, why each stopped, exit, time, an npm or deploy job's phase), and print a job's log with --log <pipeline.job>Compare776 "Read the folder's pipeline file (abso.yml, abso.yaml or avcs.json, or the file named) and say what's wrong with it, place by place: a cycle in needs, a job that doesn't exist, secrets a draft could reach, a key it doesn't know. Exits 1 when it has problems. With --on, it says which pipelines that event starts (in shared, or --space), with their jobs in waves that can run side by side, and why each other pipeline doesn't start. It reads only the file. abso pipeline runs asks the server what the project's pipelines did: the runs, newest first; with a run's number, its jobs (state, why, exit, time, an npm or deploy job's phase); with --log <pipeline.job>, that job's output.",
init0Start the project777 // Loaded only here, so the yaml package it needs can't stop every other command
778 // when a checkout lacks it (abso issue 168).
779 run: async (args, env) => {
780 let mod: typeof import("./pipeline-commands.ts");
781 try {
782 mod = await import("./pipeline-commands.ts");
783 } catch (e) {
784 if ((e as { code?: string }).code === "ERR_MODULE_NOT_FOUND")
785 throw new UsageError(
786 `abso pipeline needs a package this copy of abso doesn't have installed (${(e as Error).message.split("\n")[0]}); run npm install where abso is installed`,
787 );
788 throw e;
789 }
790 return mod.runPipeline(args, env);
791 },
792 },
793};
pinch79abso help --json: every command help shows, with its usage, about and flags, as data, so a command reference can be built from the client itself. And the terminal filter drops SGR 8 (conceal), which could hide text, keeping 8 where it's a color (38;5;8).Compare795const HELP_INTRO = "abso: version control for agents. This is its command-line client.";
796const HELP_NOTE =
797 "Every command takes --json. Settings live in .abso/config.json (.avcs/config.json in a folder from before the rename). The token comes from ABSO_TOKEN, or else ~/.abso/token (or ~/.avcs/token from before).";
799/** Every command as help shows it, in order: the table's, then the three it doesn't hold. */
800function helpEntries(): { name: string; usage: string; about: string; flags: FlagSpec }[] {
pinch79abso help --json: every command help shows, with its usage, about and flags, as data, so a command reference can be built from the client itself. And the terminal filter drops SGR 8 (conceal), which could hide text, keeping 8 where it's a color (38;5;8).Compare802 ...Object.entries(COMMANDS).map(([name, c]) => ({ name, usage: c.usage, about: c.about, flags: c.flags })),
803 {
804 name: "hook",
805 usage: "abso hook",
806 about: "The Claude Code PostToolUse hook. Reads the hook JSON on stdin; never fails.",
807 flags: {},
808 },
809 {
810 name: "mcp",
811 usage: "abso mcp",
812 about:
813 "An MCP server on stdin and stdout: the reading commands and the everyday writing ones as tools, answering with the same text as here. Add it with claude mcp add abso -- abso mcp (on Windows, claude mcp add abso -- cmd /c abso mcp).",
814 flags: {},
815 },
816 {
817 name: "--version",
818 usage: "abso --version",
819 about: "This client's version and commit, and the abso mods installed on this machine.",
820 flags: {},
821 },
822 ];
823}
pinch79abso help --json: every command help shows, with its usage, about and flags, as data, so a command reference can be built from the client itself. And the terminal filter drops SGR 8 (conceal), which could hide text, keeping 8 where it's a color (38;5;8).Compare826 const entries = helpEntries().flatMap((c) => [` ${c.usage}`, ` ${c.about}`]);
827 return [HELP_INTRO, "", ...entries, "", HELP_NOTE].join("\n");
828}
830/**
831 * help --json: the same entries as data, for a command reference built from the client itself. A flag is
832 * "string" (takes a value), "boolean" (stands alone) or "optional" (a value that may be left off); every
833 * command also takes --json and --help.
834 */
835function helpJson(): Record<string, unknown> {
836 return {
837 ok: true,
838 command: "help",
839 version: clientVersion(),
840 intro: HELP_INTRO,
841 note: HELP_NOTE,
842 commands: helpEntries(),
843 };
846export interface MainResult {
847 readonly stdout: string;
848 readonly stderr: string;
849 readonly exit: number;
850 /** What --json prints, whether or not it was asked for (abso mcp answers with both). */
851 readonly data?: Record<string, unknown>;
852}
854/** The commands, for abso mcp: each tool is one of them. */
855export function commandTable(): Readonly<
856 Record<string, { readonly flags: FlagSpec; readonly usage: string; readonly about: string }>
857> {
858 return COMMANDS;
859}
861function newsBlock(news: readonly string[]): string[] {
pinch33Client: a tell reads as who told you and how sure that is, with what was said on the lines below: "ann (as claimed) told you:", "Robin (a person) told you:", "ann (checked) told you:" for an agent with a key of its own. A person's words are unquoted and their id is left out (news.log keeps the sentence whole). Tells are never cut in an agent's context, and later lines are indented everywhere news is printed (news, the News: block, the edit hook). What the server stores is unchanged. Client tests 273/273, tsc and biome clean.Compare862 return newsBlockLines(news.map((n) => newsShown(n)));
speed76abso whoami and abso doctor, and plainer errors.
- abso whoami: this box's sign-in as the server sees it (a revoked one shows as revoked), its projects, roles and expiry, and this folder's project, agent and kind of key. It names who approved the box when the server says.
- abso doctor: one line per check, ok, fail or skip: Node's version (20 or later for the npm package, 24 for a checkout), that the server answers, this box's sign-in (present, unexpired, accepted), and this folder's key against its project (a GET of the project's head, which the server answers only after checking the key). A failed check gives the next step, and the exit is 1.
- Neither prints a credential. Both are MCP tools too.
- The commonest failures now say what to do: a 401 with no credential reads 'You're not signed in. Run abso login, then abso join <project>.'; a refused key points to abso doctor; a server that can't be reached reads 'Can't reach <server>...' with the next step, unless the message already gives one; and outside a folder, 'You're not in an abso folder' says how to make one.Compare863}
865/** Whether this folder's calls carry a key or token, for how a refusal is worded. False when that can't be told. */
866function carriesCredential(env: Env): boolean {
867 try {
868 const root = findRoot(env.cwd);
869 return root ? readConfig(root, env.env).token !== undefined : readToken(env.env) !== undefined;
870 } catch {
871 return false;
872 }
875export async function main(argv: readonly string[], env: Env): Promise<MainResult> {
876 const command = argv[0];
877 const json = argv.includes("--json") && command !== "run" && command !== "logs";
878 if (command === undefined || command === "help" || command === "--help" || command === "-h") {
pinch79abso help --json: every command help shows, with its usage, about and flags, as data, so a command reference can be built from the client itself. And the terminal filter drops SGR 8 (conceal), which could hide text, keeping 8 where it's a color (38;5;8).Compare879 if (json) {
880 const data = helpJson();
881 return { stdout: `${JSON.stringify(data, null, 2)}\n`, stderr: "", exit: EXIT.ok, data };
882 }
884 }
885 try {
886 if (command === "--version") {
887 // Loaded only here: it runs git, and no other command needs it.
888 const { versionReport } = await import("./install.ts");
pinch68An npm install of abso says when npm has a later version: status and --version add 'abso X is out and this is Y: npm install -g @abso-cli/abso updates it.' npm is asked at most once a day, and its answer is kept in ~/.abso/npm-latest.json. A copy bundled for a server still compares commits with that server. newerCommitNote is now newerClientNote.Compare889 const { newerClientNote } = await import("./client-version.ts");
891 const root = findRoot(env.cwd);
892 let behind: string | undefined;
893 if (root) {
894 try {
895 const server = (JSON.parse(readFileSync(configPath(root), "utf8")) as { server?: string }).server;
pinch68An npm install of abso says when npm has a later version: status and --version add 'abso X is out and this is Y: npm install -g @abso-cli/abso updates it.' npm is asked at most once a day, and its answer is kept in ~/.abso/npm-latest.json. A copy bundled for a server still compares commits with that server. newerCommitNote is now newerClientNote.Compare896 if (server) behind = await newerClientNote(server);
898 }
899 return {
900 stdout: json
901 ? `${JSON.stringify({ ok: true, command: "version", ...report.json, ...(behind ? { serverBehind: behind } : {}) }, null, 2)}\n`
902 : `${report.text}${behind ? `\n${behind}` : ""}\n`,
903 stderr: "",
904 exit: EXIT.ok,
905 };
906 }
907 const def = COMMANDS[command];
908 if (!def)
909 throw new UsageError(
speed71Help text: abso mcp's line gives the install command for an npm install (claude mcp add abso -- abso mcp, or cmd /c abso mcp on Windows), the unknown-command answer lists mcp, and the help no longer cites internal tracker numbers.Compare910 `unknown command ${JSON.stringify(command)}; the commands are ${Object.keys(COMMANDS).join(", ")}, hook, mcp`,
912 const parsed = parseArgs(command, argv.slice(1), withBodyFiles(command, def.flags), def.rest);
913 if (bool(parsed, "help")) {
914 const files = bodyFilesHelp(command, def.flags);
915 return { stdout: `${def.usage}\n ${def.about}\n${files ? ` ${files}\n` : ""}`, stderr: "", exit: EXIT.ok };
916 }
pinch86Read a public project signed out: abso join <project> --reader with no sign-in makes a folder that reads it. The folder holds only its settings (server, project, visitor), sends no sign-in whatever the environment or the box holds, follows no redirect, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused before any call, from an allow-list a new command has to join. join answers a private project and a missing one alike, by the status answer's code alone. Tests in client/test/visitor.test.ts.Compare917 // A folder that reads signed out runs its reads and nothing else, refused before any call.
918 const root = findRoot(env.cwd);
919 if (root !== undefined && isVisitor(root)) checkVisitor(command, parsed, readConfig(root, env.env).project);
921 takeNews(); // what an earlier call in this process left (tests run many)
922 const out = await def.run(args, env);
923 const exit = out.exit ?? EXIT.ok;
924 // Every command that took news while recording prints it (#37, News Report).
925 const news = takeNews();
926 const data = {
927 ok: exit === EXIT.ok,
928 command,
929 ...out.json,
930 ...(news.length > 0 && !("news" in out.json) ? { news } : {}),
931 };
932 if (json || bool(args, "json")) return { stdout: `${JSON.stringify(data, null, 2)}\n`, stderr: "", exit, data };
infra-split37Comments and test names give each reason in plain words, without naming who raised it
Notes like "(#37, Builder 5)" or "(AVCS - Security)" become "(#37)" or go, and a private commit hash after a name goes with it. Issue numbers and references such as git's CVE-2019-1353 stay. Only comments and test names change; no behavior changes.Compare933 // run, logs and bisect: stdout is the box command's, and may be piped; news goes to stderr there (#37).
init0Start the project934 const boxOut = command === "run" || command === "logs" || command === "bisect";
935 const text = [...(out.text === "" ? [] : [out.text.replace(/\n$/, "")]), ...(boxOut ? [] : newsBlock(news))].join(
936 "\n",
937 );
938 const errText = boxOut && news.length > 0 ? `${newsBlock(news).join("\n")}\n` : "";
939 return { stdout: text === "" ? "" : `${text}\n`, stderr: errText, exit, data };
940 } catch (err) {
941 const e = err as Error;
942 const code = err instanceof UsageError ? "usage" : err instanceof ApiError ? "server" : "error";
943 const message =
speed76abso whoami and abso doctor, and plainer errors.
- abso whoami: this box's sign-in as the server sees it (a revoked one shows as revoked), its projects, roles and expiry, and this folder's project, agent and kind of key. It names who approved the box when the server says.
- abso doctor: one line per check, ok, fail or skip: Node's version (20 or later for the npm package, 24 for a checkout), that the server answers, this box's sign-in (present, unexpired, accepted), and this folder's key against its project (a GET of the project's head, which the server answers only after checking the key). A failed check gives the next step, and the exit is 1.
- Neither prints a credential. Both are MCP tools too.
- The commonest failures now say what to do: a 401 with no credential reads 'You're not signed in. Run abso login, then abso join <project>.'; a refused key points to abso doctor; a server that can't be reached reads 'Can't reach <server>...' with the next step, unless the message already gives one; and outside a folder, 'You're not in an abso folder' says how to make one.Compare944 plainError(err, carriesCredential(env)) ??
945 (err instanceof UsageError || err instanceof ApiError
946 ? e.message
947 : `${e.message}${e.stack ? `\n${e.stack}` : ""}`);
949 const exit = err instanceof ApiError && err.status === 409 ? EXIT.refused : EXIT.error;
950 // News taken before the failure still shows.
951 const news = takeNews();
952 const data = { ok: false, command, error: { code, message }, ...(news.length > 0 ? { news } : {}) };
953 if (json) return { stdout: `${JSON.stringify(data, null, 2)}\n`, stderr: "", exit, data };
954 return {
955 stdout: news.length > 0 ? `${newsBlock(news).join("\n")}\n` : "",
956 stderr: `abso ${command}: ${message}\n`,
957 exit,
958 data,
959 };
960 }
961}