Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed
MCP
blame on this site's /mcp
CLI
abso blame client/README.md --draft login-timeout --json
JSON
/christopher/abso-core/blame/client/README.md?draft=login-timeout&format=json
387 linesFirst import 76% · pinch 9% · review 9% · speed 5% · infra-split 1%Last change pinch in version 54,

387 lines from 11 changes in 10 versions.

init0Start the project1# abso: the client
2
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare3The command-line client and the Claude Code hook for abso, version control
4for agents. [README.md](../README.md) at the top says what abso is and how to
5install the client as one file.
init0Start the project6
7It is plain TypeScript that Node 24 runs directly, and it uses nothing outside
8this folder, so the folder can be shipped as it is.
9
10```bash
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare11node client/abso.ts help
init0Start the project12```
speed38client/launch.mjs: run the client from a git checkout and keep it current. It runs a plain-JS bundle of the client in the same process when the bundle matches the checkout's commit, and client/abso.ts otherwise. A background step, one at a time under a lock, fast-forwards main, installs when package-lock.json changed, and builds the bundle (temporary file, checked, then renamed into place). stdin, stdout, stderr, arguments and exit codes pass through; a bundle that fails to load falls back to the .ts in the same run, and a command that started is never run twice. Notices go only to ~/.abso/launcher.log. Tests run it against a throwaway checkout and home.Compare14### Running it from a git checkout
16`client/launch.mjs` runs the client from a git checkout of abso and keeps the
17checkout current. Point your `abso` command at it:
19```bash
20node /path/to/abso/client/launch.mjs help
21```
23It runs a bundle of the client when one matches the checkout's commit, which
24starts several times faster than the TypeScript, and `client/abso.ts`
25otherwise. Every few minutes it fast-forwards the checkout (on `main` only)
26and builds the bundle in the background, with esbuild if the checkout has it.
27It never changes the command's output or exit code, and writes its own notices
28to `~/.abso/launcher.log`.
speed42client/launch.mjs follow-ups from review: reads the commit in a git worktree too (.git as a file, following gitdir and commondir; info/exclude in the shared folder); a stale lock is renamed aside before it's removed, and put back if it turns out to be live, so two runs can't both take it over; the README says to point it at a checkout nobody edits in; the tests remove their temporary folders.Compare29
30Point it at a clone or worktree that nobody edits in. The bundle is keyed on
31the commit, so changes that aren't committed don't run until the next commit.
speed38client/launch.mjs: run the client from a git checkout and keep it current. It runs a plain-JS bundle of the client in the same process when the bundle matches the checkout's commit, and client/abso.ts otherwise. A background step, one at a time under a lock, fast-forwards main, installs when package-lock.json changed, and builds the bundle (temporary file, checked, then renamed into place). stdin, stdout, stderr, arguments and exit codes pass through; a bundle that fails to load falls back to the .ts in the same run, and a command that started is never run twice. Notices go only to ~/.abso/launcher.log. Tests run it against a throwaway checkout and home.Compare32
init0Start the project33## Setting up a folder
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare35Folders and machines set up before abso had its name keep working: the older
36`.avcs/` folder, `~/.avcs/` files, `AVCS_` environment names and `.avcsignore` are
37read when the new ones are not there. New things are written under the new names.
39The token comes from the `ABSO_TOKEN` environment variable, or else from
40`~/.abso/token`, outside every repo. It is never written into the folder.
init0Start the project41It goes only to abso's server (`https://api.abso.dev`) and its Issues Worker
42(`https://issues.abso.dev`), to servers this
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare43machine names, and to this machine itself, since any `.abso/config.json` can
init0Start the project44name a server and anyone can write one. A folder naming another server is
45refused before any call. To use a server you run, or a test one, name it in
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare46`~/.abso/servers.json`, beside the token, with its Issues Worker if it has one:
init0Start the project47
48```json
49{ "servers": { "https://abso.example.com": { "issues": "https://issues.example.com" } } }
50```
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare52`ABSO_TRUSTED_SERVERS` (comma-separated) adds servers for one shell, and
53`ABSO_ISSUES_SERVER` names the Issues Worker. The mods follow the same rule.
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).Compare54Off this machine only `https://` servers count. A server you trust gets your
55token: the same token goes to every server named, so name only servers you
56would hand it to.
init0Start the project57
58Every path a sync, switch, join or restore answer names is checked before
59the client touches the disk: nothing is written outside the folder, into
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare60`.git`, `.claude` or `.abso` (in any case), onto a Windows device name, or
init0Start the project61through a folder that is a link. A refused path is named in the output
62("REFUSED ... paths from the server").
64```bash
65# Create a project from a folder. The folder becomes agent "lead"'s folder.
66abso init ./regex --server https://<worker> --project regex --agent lead
68# Each agent joins in its own folder.
69abso join regex --agent backtracker --server https://<worker> --dir ./backtracker
70```
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare72Here `abso` means `node <repo>/client/abso.ts`, or `node abso.mjs` for the one-file client.
init0Start the project73
74## Working
76| Command | What it does |
77| --- | --- |
78| `abso record [--all]` | Sends every file that changed since the server last heard about it. Edits by Claude Code go through the hook; this catches everything else (shell commands, other editors, a hook that failed). |
79| `abso publish -m "why" [--as-is]` | Records, then adds the draft to shared. Refused (exit 2) when it collides with work published since the last sync, each collision showing both sides; or while a file still holds collision markers from a sync. Settle them first (`abso settle`, or edit them away); `--as-is` keeps both sides in every marked file and publishes. The output names what each settled collision kept, and the other author hears it. |
80| `abso publish -m "why" --check "<command>"` | Syncs, 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. Use the project's own script (`--check "npm run typecheck"`), and give the box its dependencies once first with `abso prep 'npm ci --ignore-scripts'`: without a prep the box has no `node_modules`, and when the folder has a `package-lock.json`, `--check` refuses rather than trust that run. It says when shared moved during the check, and `abso bisect -- <command>` finds the first version where a check fails. |
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare81| `abso settle <file...> --yours\|--theirs\|--both` | Settles the collisions a sync marked in these files. Where lines changed on both sides, sync writes a marker block: `<<<<<<< yours (unpublished)`, your lines, `\|\|\|\|\|\|\| before (version N)`, the lines you both started from, `=======`, theirs, `>>>>>>> theirs: <agent>, version N "<message>"`. Settle turns each block into your lines, theirs, or both (yours first), then records. Editing the markers away by hand works too. `abso status` lists the files with markers; box runs fail while they're in the folder. |
init0Start the project82| `abso sync` | Records, then brings shared's new work into the folder. A file that collides is left alone and listed; editing it settles both sides. A renamed file is listed as renamed. Up to 8 file names per line; `--verbose` lists every file. `--full` also writes any file of your view the folder is missing, not only what changed since your last sync (`abso join` always does this). A file new in your draft that your ignore rules leave out (an edit mod older than nested ignore files sends them) leaves the draft and stays on disk; publish does the same. |
83| `abso run <command>` | Sends the folder to the agent's box, runs the command there, streams the output, and exits with the command's code. The words are one shell command, run by the box's `sh`. The box's stdout comes out on stdout and its stderr on stderr, so `abso run "node gen.mjs" > out.ts` keeps progress lines out of the file. abso's own notices (a fresh box, files sent with LF, and the like) and any news go to stderr, so piped output holds only the command's; `--quiet` drops the notices. |
84| `abso run --detach ...` | Starts the run and prints its id without waiting; the job goes on in the box. A later `abso run` from the folder replaces the box's files, even while it runs. |
85| `abso run --parallel "<command>" "<command>"...` | One upload, then the commands run at once in the box. Each line a command prints starts with its label (`[1]`, `[2]`, ...; the labels are listed first), stdout and stderr kept apart; at the end, each command's exit code, and `abso run` exits with the worst (highest) of them. |
86| `abso run --at <version> [--files <glob>] ...` | Runs a past version of the folder's space in the box instead of the folder (for bisecting), or, with `--files`, the folder with only the matching files as they were at that version (`*` within a folder, `**` across folders, comma-separated; a plain path takes a file or a whole folder). The folder is never touched, so nothing old gets recorded. The run sees `AVCS_AT`. |
87| `abso run --with <box path>=<local path>[,...] ...` | Adds files, or every file under a local folder, to this run only: they go to the box (text with LF line endings) and are never written to your folder or recorded, so an A/B run leaves the project alone. A path already in the folder is replaced for this run. |
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare88| `abso fetch <glob...>` / `abso run --fetch <glob>[,<glob>...] ...` | Files a run left in the box's `/w` (bash globs: `out/*.png`, `**/*.log`; `fetch` takes them space-separated, `run --fetch` comma-separated in one argument), written into the folder, but only where abso ignores them (add `out/` to `.absoignore`, say), so a fetched file never becomes an edit; the rest are named and left alone, and every path is screened as a sync's are. `run --fetch` fetches when the run ends. 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). |
init0Start the project89| `abso pause` / `abso resume` | While paused, nothing from the folder is sent: the edit hook skips, `abso record` refuses, and other commands don't record first. For swapping files in by hand; `abso run --at` usually does it better. |
90| `abso logs <run id>` | 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 a detached run, or one whose connection was lost. |
91| `abso run -- <program> <arg...>` | The same, but each word reaches the program exactly as typed: the client quotes it for the box's shell, so quotes, backslashes and regex text (`'a(b)'`, `'\w+'`) need no second layer of quoting. |
92| `abso status` | Shared's version, each agent's base and draft, what in this folder is not yet recorded, any file of your view the folder is missing, and files that differ from what abso recorded only in line endings (CRLF on disk; abso records them, and `abso run` sends them, with LF). `--short` prints one word to stamp a build with: the version the folder is on (`214`), with a named draft (`coast@3`), and `+unpublished` when it holds changes not yet published. |
93| `abso who <file...>` | For each file: who last changed it, who has unpublished changes in it (and at which lines), and whose `abso start` note names it. For asking before you work in someone's file. |
94| `abso fix-eol` | Rewrites 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 counting them. |
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare95| `abso export <dir> [--version <N>]` | Writes 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 while shared does. The folder must be empty, an earlier export (which it replaces, keeping its `node_modules` and whatever `--keep <glob>` names), or inside the abso folder only where `.absoignore` leaves it out. `.avcs-export.json` there names the version. Your folder and your base are untouched. |
init0Start the project96| `abso files [glob...]` | The files your folder should hold (your view), marking any it's missing. `--draft <name>` (or `--draft shared`) and `--version <N>` list a space's files as published. |
97| `abso switch <draft>` / `abso switch shared` | Records, then moves the folder to a named draft (made on shared's newest version if it's new) or back to shared. Your unpublished changes are parked on the server where you leave, and come back when you return. Then it syncs, so the folder shows the space as it is now; collisions are listed as sync lists them. |
98| `abso switch -c <draft>` | Starts a new named draft that carries your current unpublished changes. |
99| `abso land -m "why"` | Lands your named draft in shared as one unit. Refused only on a collision with work that landed in shared since the draft began. |
100| `abso draft-sync` | Moves your named draft onto shared's newest version, then brings that into the folder. |
101| `abso diff [path...]` | Records, then shows your unpublished changes line by line, in git's unified format. A path may be a file or a folder (`.` is the folder you're in); a path that matches nothing is named. A file deleted and another added with at least half the same lines show as one rename, as git shows them (`similarity index`, `rename from`, `rename to`). |
102| `abso diff <from> <to> [path...]` | What changed between two versions of this folder's space (`--draft <name>` or `--draft shared` for another). |
103| `abso restore <file...>` / `--all` | Discards your unpublished changes to those files, like `git restore`. A file that is new in your draft is deleted. |
104| `abso restore <file>:<line>[-<line>]` | Puts back only your changes that touch those lines (numbered as `abso diff` shows the file now), keeping your other changes to the file: to drop your copy of what a teammate already did, say. |
105| `abso log [path] [-n <count>]` | The published versions of this folder's space, newest first: who, when, why and which files, plus any labels, what a drop took out (or which drop took it out), and the first message of an amended version. With a file or folder, only the versions that changed it; a file's log follows it back through renames, like `git log --follow`. Takes `--draft`. `--since <version|30m|2h|1d|20:00|date>` and `--by <agent,...>` filter it; `--count` prints versions and files per agent instead, for progress reports. |
106| `abso show <version>` | One version: who published it, why, and its diff. `abso show <version>:<file>` prints that file as it was then. Takes `--draft`. |
107| `abso announce [--to a,b] <text>` | Tells the project's other agents (or those named) something. Each gets "Announcement from you (as claimed): ..." once, as news on their next edit, or within 30 seconds where the mod runs. |
108| `abso news` | The news waiting for you (collisions, changed definitions, moved lines, announcements), each item once. |
109| `abso where` | Who is working where: each file with unpublished changes, whose they are, and which lines. |
110| `abso blame <file> [--from n] [--to n] [--version n]` | Who wrote each line of the file as shared has it (or had it at a version), and the publish that brought it in. `--draft <name>` reads a named draft; `--mine` reads your own view and marks your unpublished lines with `*`. |
111| `abso why <file>:<line>` | Why one line of shared is the way it is: its change, its publish, its reasons, and any collision it settled. Takes `--draft` and `--mine` as blame does. |
112| `abso drop <version...> -m "why" [--with-dependents]` | Takes published versions back out of shared as a new version, like `git revert`; history keeps them. Refused (exit 2) when later versions build on them (`--with-dependents` drops those too) or when anyone's unpublished work builds on them. |
113| `abso pluck <draft> <version...> -m "why" [--with-dependencies]` | Takes some versions of a named draft into shared as one version, like `git cherry-pick`. The draft stays as it is. |
114| `abso amend -m "new message"` | Corrects the message of your newest publish in this space. The log keeps the first message. |
115| `abso label <name> [--version n] [--remove]` / `abso labels` | Puts a label on a version of shared (the newest by default) or takes it off, like a git tag; `labels` lists them all. |
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare116| `abso follow <label>` / `abso follow --none` | Makes this folder follow a label: every sync takes it to the newest version of shared with that label. `--none` goes back to shared's newest. Saved in `.abso/config.json`. |
init0Start the project117| `abso check-ignore <path...>` | Whether abso leaves each path out, and which line of which ignore file decided (see "What is left out"). |
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare118| `abso pipeline check [file] [--on <event>]` | Reads the folder's pipeline file (abso.yml, abso.yaml or avcs.json, or the file named) and lists each problem as `<path>: <message>`: a cycle in needs, a job or pipeline that doesn't exist, secrets in a pipeline a draft can start, keys it doesn't know. Exits 1 on problems; otherwise lists each pipeline's jobs in the order they run. With `--on publish|draft|green|land|hand|schedule` (and `--space`, `--pipeline` or `--every`), says which pipelines that event starts, with their jobs in waves that can run side by side, and why the others don't. Reads only the file. The shape is still a draft. |
119| `abso issues [--open] [--status <s>] [--agent <a>] [--parent <N>] [--label <l,l>]` | The project's issues, most recently updated first. Statuses come from the work: `abso start --issue N` puts an issue In progress, an open ask makes it Blocked (In review for a review), and `publish --done` closes it. `--label friction` keeps the issues with every label named: a ready list of work to pick up. `abso issues --labels` lists the labels in use, with how many issues are open under each. |
init0Start the project120| `abso issue new "<title>" --label <l,l>` / `abso issue <N> --label <l,l> --unlabel <l,l>` | Labels an issue, or changes its labels. A label is 1-40 lower-case letters, digits and `- _ . :` (`friction`, `area:client`); what you type is lower-cased. An edit that only changes labels tells nobody unless `--notify` names people. Tool friction goes in its own issue, labeled `friction`. |
121| `abso issue draft "<title>"` / `abso issues --drafts` | A draft of an issue: yours alone, with no number and no news. Takes the same fields as `issue new`. `abso issue draft <D> [fields]` changes one, `--open` opens it as an issue (with any fields given over the draft's), `--delete` deletes it. |
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare122| `abso issue <N>` / `abso issue new "<title>"` | One issue: its description, Agent, Blocked by, asks, comments, edits, sub-issues and watchers. `--comment`, `--object` and `--drop` act on it; its agents hear them. `--reopen` opens a dropped issue again. `--done` marks it done by hand, and `--done-by <version>` names the published version that did the work. `--title`, `--description`, `--parent`, `--agent` and `--blocked-by` edit it (`none` clears one), and the edit tells its watchers: who opened it, its Agent and agents, its Reviewer, whoever was named in Notify, and whoever commented. `--notify a,b` tells more people; `--quiet` tells nobody. An issue is Blocked until each issue it's blocked by is Done. `new` opens one (`--description`, `--parent`, `--lines <file>:<from>-<to>@<version>`, `--agent`, `--blocked-by`, `--notify`). |
init0Start the project123| `abso ask <who> "<question>" [--issue <N>]` | Asks an agent, or a person (`person:<id>`), something; they hear it. `--review`, `--task`, `--due`, `--blocks` and `--options "A\|B"` shape it. |
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).Compare124| `abso ask --withdraw <ask> [--note "why"]` | Takes back an ask you made that no longer needs an answer. It leaves their waiting list and stops holding the issue at Blocked. The ask stays in the issue's history, marked withdrawn, with your note, and they hear it. Only the asker can withdraw an ask, and only while it's unanswered. |
init0Start the project125| `abso waiting [--of <who>] [--mine]` / `abso answer <ask> "<words>"` | The open asks, soonest due first, and the answer to one asked of you (in your own words, `--option <N>`, or `--done` for a task). |
127Every command takes `--json`.
129The Issues commands talk to the Issues Worker beside the folder's server,
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare130with the same token: the one `~/.abso/servers.json` names for that server, or
131`ABSO_ISSUES_SERVER`. The token goes there only where it would go as a
init0Start the project132folder's server: abso's, one this machine names, or this machine itself.
134### Text with several lines: `--comment-file`, `--file`
136Windows PowerShell 5.1 passes a quoted argument to a native command badly:
137text with several lines can reach abso cut at its first new line, with
138nothing said. So every text flag also reads a file: `--comment-file`,
139`--description-file`, `--object-file`, `--note-file` and `publish
140--message-file`. For `ask`, `answer` and `announce`, whose text is their
141words, use `--file`. A path of `-` reads stdin. One trailing new line is
142dropped, and an empty file is refused.
144```
145abso issue 12 --comment-file notes/findings.md
146abso answer 40 --file answer.md
147Get-Content body.md | abso announce --file -
148```
150### When `timeout` kills a run
152The box keeps everything a killed command printed before it died: on a
153staging box, `timeout` killing node (writing straight out, through a pipe,
154under `npm run`, or 20,000 lines at speed) lost no line. A run that shows no
155output after a timeout most likely printed nothing yet. A program that
156collects its report and prints it at the end (as the regex harness's
157`score.ts` does) prints nothing when it is killed first. To get something
158back:
160- print progress as you go (to stderr, so `> file` keeps only the result);
161- or give `timeout` a signal the program catches, and print what it has
162 there: `timeout --signal=INT 200 npm run score:fast`, with
163 `process.on('SIGINT', () => { printReport(); process.exit(130); })`;
164- or give the program its own time limit, under `timeout`'s.
166## The MCP server
168`abso mcp` serves the reading commands, and the writing ones an agent uses every
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare169day, as MCP tools on stdin and stdout. Each tool is the command of the same
init0Start the project170name (`check-ignore` is `check_ignore`), runs the same code, and answers with the
171same text, so the tools and the command line can't drift apart. `json: true` on
172a call answers with the command's JSON instead. The folder and the token come from
173where the server runs, as for the command line; `folder` on a call points it at
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.Compare174an abso folder inside that one. A call's `folder`, the files the `issue`
175tool's `attach` and `clean` name, and the folder its `save-attachments` writes
176to, must be in the folder the server started in or below it: anything outside is
177refused. Add it to Claude Code with:
init0Start the project178
179```
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare180claude mcp add abso -- node <repo>/client/abso.ts mcp
init0Start the project181```
183The box commands (`run`, `shot`, `bisect`, `prep`, `logs`, `fetch`) stream for
184minutes and stay in the shell, as do `init` and `join`, and the commands that
185rewrite history or move between drafts.
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.Compare186
187## The skill
189`abso skill install` writes the abso skill for Claude Code to
190`~/.claude/skills/abso/SKILL.md` (`--dir` names another skills folder). The skill
191says how to work in an abso folder and what never to share. It's instructions
192only: it names no tools to allow, and installing it changes no settings. Its
193source is [skills/abso/SKILL.md](skills/abso/SKILL.md). `abso skill show` prints
194it. Run `abso skill install` again after updating abso.
init0Start the project195
196## The hook
198After each Edit, MultiEdit, Write or NotebookEdit, the hook:
2001. finds the abso folder above the edited file (and does nothing outside one);
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare2012. replays the edit on `.abso/known/<file>`, the client's copy of what the
init0Start the project202 server has. If the replay gives exactly the file on disk, it sends the edit
203 (old and new text, with the session and subagent ids). If not, it sends the
204 whole file with `record`. That happens after a shell command changed the
205 file, for `replace_all`, or when the server answers "out of step";
2063. hands any news back to the agent as extra context.
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare208It never stops the agent. On any error it writes a line to `.abso/hook.log`
init0Start the project209and forgets the file's known copy, so the next `abso record` sends it whole.
210Every call is logged with its timing. The decisions live in `src/core.ts`,
211shared by both forms below.
213### Installing it
215There are two forms.
217- **The mod (in-process; the agent never waits).** This folder is a Claude
218 Code plugin whose hook is a function hook (`hooks/register.ts`). It runs
219 inside Claude Code: the hook takes a snapshot of the edited file and returns,
220 and a queue sends the edits in order on the session's own HTTPS connection
221 (about 75 ms each, none of it waited for). News is appended for the model's
222 next request; on Claude Code versions without that, it rides on the agent's
223 next edit. Every 30 seconds it also asks for news without an edit, so
224 announcements reach an agent that isn't editing. Install or update it for every session on the machine with
225 `node client/install-mod.ts`, which puts its five files in
226 `~/.claude/skills/avcs`. A chat loads the mod when it starts and keeps that
227 one: open chats don't pick up a new install, so restart them (or the app) to
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare228 load it.
init0Start the project229 `abso status` says when the last edit in a folder came from an older mod
230 than the one installed. Or load it
231 for one session with `claude --plugin-dir <repo>/client`. Function hooks are
232 an early-access Claude Code API; a headless `claude -p` loads them only with
233 `CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1`. While the mod is installed, the command
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare234 hook below stands down (`ABSO_HOOK_FORCE=1` overrides), so no edit is sent
init0Start the project235 twice.
236- **The command hook (about 320 ms per edit), for anything else.** `abso hook`
237 reads Claude Code's PostToolUse JSON on stdin, always exits 0, and prints the
238 news as `additionalContext`. In the agent folder's `.claude/settings.json`:
240 ```json
241 {
242 "hooks": {
243 "PostToolUse": [
244 {
245 "matcher": "Edit|MultiEdit|Write|NotebookEdit",
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare246 "hooks": [{ "type": "command", "command": "node <path-to-abso>/client/abso.ts hook", "timeout": 10 }]
init0Start the project247 }
248 ]
249 }
250 }
251 ```
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare253Measured in real sessions against the live server: the plugin takes a
init0Start the project254median of 73 ms per edit, and the command hook 319 ms (342 ms when Git Bash
255starts it, as Claude Code does on Windows). The difference is a new process
256and a new HTTPS connection for every edit.
258### Updating the mods, and taking an update back
260Every session on the machine runs the installed mods, so an install never
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare261leaves them half-written. `install-mod.ts` and `install-view.ts`:
init0Start the project262
263- stamp the mod with the last commit that changed its files: plugin.json's
264 version becomes `0.1.0+702c616` (`.dirty` when the files differ from that
265 commit), and the mod sends it with each call to the server as
pinch54The client and the edit mods send and read X-Abso-* headers only (Client, Name, Run-Key, Kind, Admin; Run, Box, Prep from answers). Servers have read X-Abso-* beside the old names for a while and answer under both, so this works with any current server.Compare266 `X-Abso-Client`. A commit that changes none of them leaves nothing to
init0Start the project267 install, and nothing to restart for;
268- check a staged copy first, with `claude plugin validate` and the mod's own
269 tests in the plugin test kit, and change nothing if either fails
270 (`--unchecked` skips the check);
271- then move each file into place with a rename, what the hook imports first
272 and plugin.json last, keeping the files they replace as `<file>.prev`.
274`node client/install-mod.ts --rollback` puts the previous install back (run
275it again to undo that); the same goes for `install-view.ts`. Both take a
276folder in place of the skills folder. `abso --version` prints this client's
277version and the mods installed on this machine, and says when this client
278has a newer mod to install. The command-line client sends its own version
pinch54The client and the edit mods send and read X-Abso-* headers only (Client, Name, Run-Key, Kind, Admin; Run, Box, Prep from answers). Servers have read X-Abso-* beside the old names for a while and answer under both, so this works with any current server.Compare279with each call too (`X-Abso-Client: avcs-cli/0.1.0+<commit checked out>`).
init0Start the project280
281## The view (avcs-view)
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare283A second mod, in `client/view`, shows a chat what abso knows about its folder:
init0Start the project284
285- **A status line**, for example
286 `avcs: shared · 2 files unpublished · shared is 2 ahead (abso sync) · bob also on your files · 1 news item (/avcs-view)`.
287 It shows the space, the files your draft changes, how far shared (or your
288 draft) has moved past your base, other agents with unpublished changes in
289 the same files, and news you haven't looked at.
290- **`/avcs-view`** opens a pane with the whole picture: the space and version,
291 your draft's files, work parked in other spaces, who else is on which of
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare292 your files, and the latest news (from `.abso/news.log`, which the hooks and
init0Start the project293 commands write).
295Outside an abso folder it costs one folder lookup when the chat starts. In one,
296it asks the server for `/status` and `/where` every 30 seconds, and a few
297seconds after an edit. Install it with `node client/install-view.ts`. Both mods' tests run in
298Claude Code's plugin test kit: `node client/test-mods.ts`.
300## What the folder holds
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare302- `.abso/config.json`: `{server, project, agent}`. When the folder is a git
303 repo, `/.abso/` goes into `.git/info/exclude`. Nothing under `.abso/` is
init0Start the project304 ever recorded, published or sent to a box.
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare305- `.abso/known/`: the known copy described above.
306- `.abso/modes.json`: the executable files and links the server has, as far
init0Start the project307 as the client knows. It is to modes what the known copy is to text.
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare308- `.abso/hook.log`: one line per hook call.
309- `.abso/news.log`: the news the agent was given, one dated line each.
310- `.abso/run.log`: when `abso run` reconnected to a run, or started it again because the connection failed before the server answered (up to 3 more tries, 0.5 to 3 seconds apart; never once the server has answered), and why.
init0Start the project311
312## Empty files, the executable bit and links
314An empty file is a file like any other; only a deleted file is gone. The
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare315server keeps each file's executable bit and whether it is a symbolic link.
316The client sends only the changes, after the files' text:
init0Start the project317
318- **The executable bit** is read from disk and set on disk, except on Windows,
319 which has no such bit. There, like git's `core.fileMode=false`, a file keeps
320 the bit the server has, and `abso run` sends it to the box.
321- **A link** is never followed. Its text is "" and its target is its mode. Where
322 links can't be made (Windows without Developer Mode), sync writes a plain
323 file that holds the target, as git does with `core.symlinks=false`. That
324 file counts as the link, and editing it changes the target. The hooks leave
325 links to `abso record`.
327## What is left out
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare329Always: `.git`, `.abso`, `.claude` and `node_modules`, in any case. Beyond
330those, abso follows git's ignore rules, for `.gitignore` and `.absoignore`
init0Start the project331alike, except for case:
333- Any folder may have either file. Its patterns are relative to its folder,
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare334 and a deeper file beats a shallower one. In one folder, `.absoignore` beats
init0Start the project335 `.gitignore`, so it can bring back what `.gitignore` leaves out (`!dist/`).
336- Below those come `.git/info/exclude`, then git's global excludes file
337 (`core.excludesFile`, or `~/.config/git/ignore`).
338- `!`, `**`, `?`, `[...]`, a leading `/` (anchored), a trailing `/` (folders
339 only), `\` escapes and trailing spaces all work as in git. The last matching
340 line wins.
341- Nothing inside an ignored folder can be brought back with `!`, as in git.
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare342- Case: every pattern, from `.absoignore`, `.gitignore` or git's own exclude
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare343 files, matches by the same rule as abso's paths, on every platform:
init0Start the project344 any case, and either Unicode form of an accented letter. So `.env` also
345 leaves out `.ENV`. This ignores case and Unicode form even where
346 `git status` doesn't: in a git repository with `core.ignorecase` off (git
347 init leaves it off on Linux), abso can leave out a file git shows.
349Binary files (a NUL byte or invalid UTF-8), and text over 2 MB, go up as
pinch8client/README.md for a public reader (Product Lead, from the signed-out walk of staging, abso 181). It now opens by pointing to the top README, instead of docs/v2-slice1.md, which isn't in this project. Commands say abso: node client/abso.ts help, claude mcp add abso, and the hook command runs client/abso.ts, which loads the same client. The private project's issue numbers (#11, #21, #54, abso issue 138 and the rest) are gone; they mean nothing here. No other wording changed.Compare350blobs: the client uploads the bytes under their SHA-256, records the
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare351hash, and keeps the hashes it knows in `.abso/blobs.json`. Sync, switch and
init0Start the project352restore fetch the bytes, and never overwrite a binary file the agent changed
353and hasn't recorded. `diff` says `Binary file x changed: <hash> -> <hash>`.
354Files over the server's 20 MB limit are left out; `init`, `record` and
355`status` name them (`leftOut` in `--json`), and what the server has of them
356stays. `abso run` still sends every file to the box.
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare358`abso init` writes a starting `.absoignore` (Claude Code state and operating
init0Start the project359system files) when the folder has none. `abso check-ignore <path...>` says
360whether each path is left out and which line of which file decided.
361`client/test/ignore.test.ts` checks the rules against `git check-ignore`.
363## Line endings
365The server keeps text with LF endings and a final newline. When sync, join or
366restore rewrites a file that's already in the folder, the file keeps its own
367style: CRLF if it uses CRLF, and no final newline if it has none. In a file with
368mixed endings (or a lone CR), each unchanged line keeps its own ending and a
369changed or new line takes the most common one. A file new to
370the folder gets the endings git would give it on checkout: in a git repository
371the client asks git (`git check-attr text eol` for `.gitattributes`, and
372`core.autocrlf` and `core.eol`); outside one, LF. `record` compares text in the
373server's form, so endings alone never count as a change.
375## Testing
377`client/test/fake-server.ts` is a local stand-in for the Worker. It runs the
378real engine (`worker/project/project.ts`) in memory behind the same routes, and
379runs `abso run` commands in a temp folder instead of a box. The tests run the
380client against it:
382```bash
383node --test client/test/client.test.ts
384```
386To point a real folder at it, run `node client/test/fake-server.ts 47811`.
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare387It takes the token from `ABSO_TOKEN` (default `fake-token`).