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

Versions 7 to 8

Compare

+20 −21 in 12 places
Lines 1–14 at 8 (were 1–14 at 7)
11# abso: the client
22
3−The command-line client and the Claude Code hook for the agent-first version
4−control server. The contract it follows is
5−[docs/v2-slice1.md](../docs/v2-slice1.md); the issue is #21.
3+The command-line client and the Claude Code hook for abso, version control
4+for agents. [README.md](../README.md) at the top says what abso is and how to
5+install the client as one file.
66
77It is plain TypeScript that Node 24 runs directly, and it uses nothing outside
88this folder, so the folder can be shipped as it is.
99
1010```bash
11−node client/avcs.ts help
11+node client/abso.ts help
1212```
1313
1414## Setting up a folder
Lines 46–52 at 8 (were 46–52 at 7)
4646abso join regex --agent backtracker --server https://<worker> --dir ./backtracker
4747```
4848
49−Here `abso` means `node <repo>/client/abso.ts` (`client/avcs.ts` is the same client under its old name, which installed hooks still run).
49+Here `abso` means `node <repo>/client/abso.ts`, or `node abso.mjs` for the one-file client.
5050
5151## Working
5252
Lines 55–61 at 8 (were 55–61 at 7)
5555| `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). |
5656| `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. |
5757| `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. |
58−| `abso settle <file...> --yours\|--theirs\|--both` | Settles the collisions a sync marked in these files (#11). 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. |
58+| `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. |
5959| `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. |
6060| `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. |
6161| `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. |
Lines 92–102 at 8 (were 92–102 at 7)
9292| `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. |
9393| `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 `.avcs/config.json`. |
9494| `abso check-ignore <path...>` | Whether abso leaves each path out, and which line of which ignore file decided (see "What is left out"). |
95−| `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 (abso issue 138). |
96−| `abso issues [--open] [--status <s>] [--agent <a>] [--parent <N>] [--label <l,l>]` | The project's issues (#54), 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. |
95+| `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. |
96+| `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. |
9797| `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`. |
9898| `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. |
99−| `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 (abso issues 104 and 38). `--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`). |
99+| `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`). |
100100| `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. |
101101| `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). |
102102
Lines 142–148 at 8 (were 142–148 at 7)
142142## The MCP server
143143
144144`abso mcp` serves the reading commands, and the writing ones an agent uses every
145−day, as MCP tools on stdin and stdout (#44). Each tool is the command of the same
145+day, as MCP tools on stdin and stdout. Each tool is the command of the same
146146name (`check-ignore` is `check_ignore`), runs the same code, and answers with the
147147same text, so the tools and the command line can't drift apart. `json: true` on
148148a call answers with the command's JSON instead. The folder and the token come from
Lines 150–156 at 8 (were 150–156 at 7)
150150another abso folder. Add it to Claude Code with:
151151
152152```
153−claude mcp add avcs -- node <repo>/client/avcs.ts mcp
153+claude mcp add abso -- node <repo>/client/abso.ts mcp
154154```
155155
156156The box commands (`run`, `shot`, `bisect`, `prep`, `logs`, `fetch`) stream for
Lines 189–195 at 8 (were 189–195 at 7)
189189 `node client/install-mod.ts`, which puts its five files in
190190 `~/.claude/skills/avcs`. A chat loads the mod when it starts and keeps that
191191 one: open chats don't pick up a new install, so restart them (or the app) to
192− load it (#37: a chat started before an install still ran the older mod).
192+ load it.
193193 `abso status` says when the last edit in a folder came from an older mod
194194 than the one installed. Or load it
195195 for one session with `claude --plugin-dir <repo>/client`. Function hooks are
Lines 207–220 at 8 (were 207–220 at 7)
207207 "PostToolUse": [
208208 {
209209 "matcher": "Edit|MultiEdit|Write|NotebookEdit",
210− "hooks": [{ "type": "command", "command": "node <path-to-abso>/client/avcs.ts hook", "timeout": 10 }]
210+ "hooks": [{ "type": "command", "command": "node <path-to-abso>/client/abso.ts hook", "timeout": 10 }]
211211 }
212212 ]
213213 }
214214 }
215215 ```
216216
217−Measured in real sessions against the live Worker (#21): the plugin takes a
217+Measured in real sessions against the live server: the plugin takes a
218218median of 73 ms per edit, and the command hook 319 ms (342 ms when Git Bash
219219starts it, as Claude Code does on Windows). The difference is a new process
220220and a new HTTPS connection for every edit.
Lines 222–228 at 8 (were 222–228 at 7)
222222### Updating the mods, and taking an update back
223223
224224Every session on the machine runs the installed mods, so an install never
225−leaves them half-written (#29). `install-mod.ts` and `install-view.ts`:
225+leaves them half-written. `install-mod.ts` and `install-view.ts`:
226226
227227- stamp the mod with the last commit that changed its files: plugin.json's
228228 version becomes `0.1.0+702c616` (`.dirty` when the files differ from that
Lines 244–250 at 8 (were 244–251 at 7)
244244
245245## The view (avcs-view)
246246
247−A second mod, in `client/view`, shows a chat what abso knows about its folder
248−(#12):
247+A second mod, in `client/view`, shows a chat what abso knows about its folder:
249248
250249- **A status line**, for example
251250 `avcs: shared · 2 files unpublished · shared is 2 ahead (abso sync) · bob also on your files · 1 news item (/avcs-view)`.
Lines 276–283 at 8 (were 277–284 at 7)
277276## Empty files, the executable bit and links
278277
279278An empty file is a file like any other; only a deleted file is gone. The
280−server keeps each file's executable bit and whether it is a symbolic link
281−(#27). The client sends only the changes, after the files' text:
279+server keeps each file's executable bit and whether it is a symbolic link.
280+The client sends only the changes, after the files' text:
282281
283282- **The executable bit** is read from disk and set on disk, except on Windows,
284283 which has no such bit. There, like git's `core.fileMode=false`, a file keeps
Lines 304–317 at 8 (were 305–318 at 7)
305304 line wins.
306305- Nothing inside an ignored folder can be brought back with `!`, as in git.
307306- Case: every pattern, from `.avcsignore`, `.gitignore` or git's own exclude
308− files, matches by the same rule as abso's paths, on every platform (#49):
307+ files, matches by the same rule as abso's paths, on every platform:
309308 any case, and either Unicode form of an accented letter. So `.env` also
310309 leaves out `.ENV`. This ignores case and Unicode form even where
311310 `git status` doesn't: in a git repository with `core.ignorecase` off (git
312311 init leaves it off on Linux), abso can leave out a file git shows.
313312
314313Binary files (a NUL byte or invalid UTF-8), and text over 2 MB, go up as
315−blobs (#27): the client uploads the bytes under their SHA-256, records the
314+blobs: the client uploads the bytes under their SHA-256, records the
316315hash, and keeps the hashes it knows in `.avcs/blobs.json`. Sync, switch and
317316restore fetch the bytes, and never overwrite a binary file the agent changed
318317and hasn't recorded. `diff` says `Binary file x changed: <hash> -> <hash>`.
MCP
compare on this site's /mcp
CLI
abso diff 7 8 client/README.md --json
JSON
/christopher/abso-core/compare/7..8?file=client%2FREADME.md&format=json