# abso: the client The command-line client and the Claude Code hook for abso, version control for agents. [README.md](../README.md) at the top says what abso is and how to install the client as one file. It is plain TypeScript that Node 24 runs directly. It also imports the pipeline and project code from the rest of the repository, so what you ship is the built bundle, `client/bin/abso.mjs`, one file. ```bash node client/abso.ts help ``` Node 20 can't run the `.ts` files (it has no type stripping). On Node 20 or later, build the client into one plain-JS file and run that: ```bash npm ci npm run build node client/bin/abso.mjs help ``` `client/bin/` isn't committed; build again after pulling. The npm package (`npm run pack:npm -- `) ships the same build. ### Running it from a git checkout `client/launch.mjs` runs the client from a git checkout of abso and keeps the checkout current. Point your `abso` command at it: ```bash node /path/to/abso/client/launch.mjs help ``` It runs a bundle of the client when one matches the checkout's commit, which starts several times faster than the TypeScript, and `client/abso.ts` otherwise. Every few minutes it fast-forwards the checkout (on `main` only) and builds the bundle in the background, with esbuild if the checkout has it. It never changes the command's output or exit code, and writes its own notices to `~/.abso/launcher.log`. Point it at a clone or worktree that nobody edits in. The bundle is keyed on the commit, so changes that aren't committed don't run until the next commit. ## Setting up a folder ### Requesting access at login An agent can request the access it needs when starting a box login: ```bash abso login --projects alpha,beta --role writer --days 30 --no-browser ``` The client sends a `requested_grant` with the device request: `projects` (each with `project` and `role`) and `days`. Only supplied fields are sent; project roles default to `writer`. The role option requires projects. Durations range from 1 to 90 days. A box lets in any number of agents. The person approving still chooses the actual grant and can narrow or reject the request. Servers must support requested grants to prefill their approval page; older servers may ignore the suggestions. Without these options, login works as before. The request itself never authorizes access. Folders and machines set up before abso had its name keep working: the older `.avcs/` folder, `~/.avcs/` files, `AVCS_` environment names and `.avcsignore` are read when the new ones are not there. New things are written under the new names. The token comes from the `ABSO_TOKEN` environment variable, or else from `~/.abso/token`, outside every repo. It is never written into the folder. It goes only to abso's server (`https://api.abso.dev`) and its Issues Worker (`https://issues.abso.dev`), to servers this machine names, and to this machine itself, since any `.abso/config.json` can name a server and anyone can write one. A folder naming another server is refused before any call. To use a server you run, or a test one, name it in `~/.abso/servers.json`, beside the token, with its Issues Worker if it has one: ```json { "servers": { "https://abso.example.com": { "issues": "https://issues.example.com" } } } ``` `ABSO_TRUSTED_SERVERS` (comma-separated) adds servers for one shell, and `ABSO_ISSUES_SERVER` names the Issues Worker. The mods follow the same rule. Off this machine only `https://` servers count. A server you trust gets your token: the same token goes to every server named, so name only servers you would hand it to. Every path a pull, switch, join or restore answer names is checked before the client touches the disk: nothing is written outside the folder, into `.git`, `.claude` or `.abso` (in any case), onto a Windows device name, or through a folder that is a link. A refused path is named in the output ("REFUSED ... paths from the server"). ```bash # Create a project from a folder. The folder becomes agent "lead"'s folder. abso init ./regex --server https:// --project regex --agent lead # Each agent joins in its own folder. abso join regex --agent backtracker --server https:// --dir ./backtracker ``` Here `abso` means `node /client/bin/abso.mjs` (Node 20 or later), `node /client/abso.ts` (Node 24), or `node abso.mjs` for the one-file client. ## Working | Command | What it does | | --- | --- | | `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). | | `abso push -m "why" [--as-is]` | Records, then adds the draft to shared. Refused (exit 2) when it collides with work pushed since the last pull, each collision showing both sides; or while a file still holds collision markers from a pull. Settle them first (`abso settle`, or edit them away); `--as-is` keeps both sides in every marked file and pushes. The output names what each settled collision kept, and the other author hears it. | | `abso push -m "why" --check ""` | Pulls, runs the command in your box on your draft with newest shared, and pushes 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 -- ` finds the first version where a check fails. | | `abso settle --yours\|--theirs\|--both` | Settles the collisions a pull marked in these files. Where lines changed on both sides, pull writes a marker block: `<<<<<<< yours (unpublished)`, your lines, `\|\|\|\|\|\|\| before (version N)`, the lines you both started from, `=======`, theirs, `>>>>>>> theirs: , version N ""`. 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. | | `abso pull` | 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 pull (`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; push does the same. | | `abso run ` | 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. | | `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. | | `abso run --parallel "" ""...` | 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. | | `abso run --at [--files ] ...` | 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`. | | `abso run --with =[,...] ...` | 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. | | `abso fetch ` / `abso run --fetch [,...] ...` | 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 pull'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). | | `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. | | `abso logs ` | 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. | | `abso run -- ` | 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. | | `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 `+unpushed` when it holds changes not yet pushed. | | `abso who ` | For each file: who last changed it, who has unpushed changes in it (and at which lines), and whose `abso start` note names it. For asking before you work in someone's file. | | `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. | | `abso export [--version ]` | Writes one pushed 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 ` 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. | | `abso files [glob...]` | The files your folder should hold (your view), marking any it's missing. `--draft ` (or `--draft shared`) and `--version ` list a space's files as pushed. | | `abso switch ` / `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 unpushed changes are parked on the server where you leave, and come back when you return. Then it pulls, so the folder shows the space as it is now; collisions are listed as pull lists them. | | `abso switch -c ` | Starts a new named draft that carries your current unpushed changes. | | `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. | | `abso draft-pull` | Moves your named draft onto shared's newest version, then brings that into the folder. | | `abso diff [path...]` | Records, then shows your unpushed 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`). | | `abso diff [path...]` | What changed between two versions of this folder's space (`--draft ` or `--draft shared` for another). | | `abso restore ` / `--all` | Discards your unpushed changes to those files, like `git restore`. A file that is new in your draft is deleted. | | `abso restore :[-]` | 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. | | `abso log [path] [-n ]` | The pushed 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 ` and `--by ` filter it; `--count` prints versions and files per agent instead, for progress reports. | | `abso show ` | One version: who pushed it, why, and its diff. `abso show :` prints that file as it was then. Takes `--draft`. | | `abso announce [--to a,b] ` | 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. | | `abso news` | The news waiting for you (collisions, changed definitions, moved lines, announcements), each item once. | | `abso where` | Who is working where: each file with unpushed changes, whose they are, and which lines. | | `abso blame [--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 push that brought it in. A push imported from git names its commit and author. `--draft ` reads a named draft; `--mine` reads your own view and marks your unpushed lines with `*`. | | `abso why : [--at n] [--all]` | Why one line of shared is the way it is: the newest change to what it does, its push, its reasons, and any collision it settled, then the line's earlier changes, newest first, with what it read before each. A change that only touched formatting (whitespace, line wrapping, quotes, trailing commas, line-end semicolons) is skipped, and why names it; `--all` shows those too. A line imported from git names its commit and author, and `#39` in it names the old repository's issue when the import recorded where those are, or when abso.json says so with `"gitIssues": "https://github.com/owner/repo/issues"`. `--at ` reads the line as it was at that version, as blame's `--version` does. Takes `--draft` and `--mine` as blame does. | | `abso drop -m "why" [--with-dependents]` | Takes pushed 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 unpushed work builds on them. | | `abso pluck -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. | | `abso amend -m "new message"` | Corrects the message of your newest push in this space. The log keeps the first message. | | `abso label [--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. | | `abso follow