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 26 to 27

Compare

+34 −30 in 12 places
Lines 13–44 at 27 (were 13–40 at 26)
1313
1414## Setting up a folder
1515
16−The token comes from the `AVCS_TOKEN` environment variable, or else from
17−`~/.avcs/token`, outside every repo. It is never written into the folder.
16+Folders and machines set up before abso had its name keep working: the older
17+`.avcs/` folder, `~/.avcs/` files, `AVCS_` environment names and `.avcsignore` are
18+read when the new ones are not there. New things are written under the new names.
20+The token comes from the `ABSO_TOKEN` environment variable, or else from
21+`~/.abso/token`, outside every repo. It is never written into the folder.
1822It goes only to abso's server (`https://api.abso.dev`) and its Issues Worker
1923(`https://issues.abso.dev`), to servers this
20−machine names, and to this machine itself, since any `.avcs/config.json` can
24+machine names, and to this machine itself, since any `.abso/config.json` can
2125name a server and anyone can write one. A folder naming another server is
2226refused before any call. To use a server you run, or a test one, name it in
23−`~/.avcs/servers.json`, beside the token, with its Issues Worker if it has one:
27+`~/.abso/servers.json`, beside the token, with its Issues Worker if it has one:
2428
2529```json
2630{ "servers": { "https://abso.example.com": { "issues": "https://issues.example.com" } } }
2731```
2832
29−`AVCS_TRUSTED_SERVERS` (comma-separated) adds servers for one shell, and
30−`AVCS_ISSUES_SERVER` names the Issues Worker. The mods follow the same rule.
33+`ABSO_TRUSTED_SERVERS` (comma-separated) adds servers for one shell, and
34+`ABSO_ISSUES_SERVER` names the Issues Worker. The mods follow the same rule.
3135Off this machine only `https://` servers count. A server you trust gets your
3236token: the same token goes to every server named, so name only servers you
3337would hand it to.
3438
3539Every path a sync, switch, join or restore answer names is checked before
3640the client touches the disk: nothing is written outside the folder, into
37−`.git`, `.claude` or `.avcs` (in any case), onto a Windows device name, or
41+`.git`, `.claude` or `.abso` (in any case), onto a Windows device name, or
3842through a folder that is a link. A refused path is named in the output
3943("REFUSED ... paths from the server").
4044
Lines 66–79 at 27 (were 62–75 at 26)
6266| `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. |
6367| `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`. |
6468| `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. |
65−| `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 `.avcsignore`, 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). |
69+| `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). |
6670| `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. |
6771| `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. |
6872| `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. |
6973| `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. |
7074| `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. |
7175| `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. |
72−| `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 `.avcsignore` leaves it out. `.avcs-export.json` there names the version. Your folder and your base are untouched. |
76+| `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. |
7377| `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. |
7478| `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. |
7579| `abso switch -c <draft>` | Starts a new named draft that carries your current unpublished changes. |
Lines 94–100 at 27 (were 90–96 at 26)
9094| `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. |
9195| `abso amend -m "new message"` | Corrects the message of your newest publish in this space. The log keeps the first message. |
9296| `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. |
93−| `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`. |
97+| `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`. |
9498| `abso check-ignore <path...>` | Whether abso leaves each path out, and which line of which ignore file decided (see "What is left out"). |
9599| `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. |
96100| `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. |
Lines 108–115 at 27 (were 104–111 at 26)
104108Every command takes `--json`.
105109
106110The Issues commands talk to the Issues Worker beside the folder's server,
107−with the same token: the one `~/.avcs/servers.json` names for that server, or
108−`AVCS_ISSUES_SERVER`. The token goes there only where it would go as a
111+with the same token: the one `~/.abso/servers.json` names for that server, or
112+`ABSO_ISSUES_SERVER`. The token goes there only where it would go as a
109113folder's server: abso's, one this machine names, or this machine itself.
110114
111115### Text with several lines: `--comment-file`, `--file`
Lines 178–191 at 27 (were 174–187 at 26)
174178After each Edit, MultiEdit, Write or NotebookEdit, the hook:
175179
1761801. finds the abso folder above the edited file (and does nothing outside one);
177−2. replays the edit on `.avcs/known/<file>`, the client's copy of what the
181+2. replays the edit on `.abso/known/<file>`, the client's copy of what the
178182 server has. If the replay gives exactly the file on disk, it sends the edit
179183 (old and new text, with the session and subagent ids). If not, it sends the
180184 whole file with `record`. That happens after a shell command changed the
181185 file, for `replace_all`, or when the server answers "out of step";
1821863. hands any news back to the agent as extra context.
183187
184−It never stops the agent. On any error it writes a line to `.avcs/hook.log`
188+It never stops the agent. On any error it writes a line to `.abso/hook.log`
185189and forgets the file's known copy, so the next `abso record` sends it whole.
186190Every call is logged with its timing. The decisions live in `src/core.ts`,
187191shared by both forms below.
Lines 211–217 at 27 (were 207–213 at 26)
207211 for one session with `claude --plugin-dir <repo>/client`. Function hooks are
208212 an early-access Claude Code API; a headless `claude -p` loads them only with
209213 `CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1`. While the mod is installed, the command
210− hook below stands down (`AVCS_HOOK_FORCE=1` overrides), so no edit is sent
214+ hook below stands down (`ABSO_HOOK_FORCE=1` overrides), so no edit is sent
211215 twice.
212216- **The command hook (about 320 ms per edit), for anything else.** `abso hook`
213217 reads Claude Code's PostToolUse JSON on stdin, always exits 0, and prints the
Lines 269–275 at 27 (were 265–271 at 26)
265269 the same files, and news you haven't looked at.
266270- **`/avcs-view`** opens a pane with the whole picture: the space and version,
267271 your draft's files, work parked in other spaces, who else is on which of
268− your files, and the latest news (from `.avcs/news.log`, which the hooks and
272+ your files, and the latest news (from `.abso/news.log`, which the hooks and
269273 commands write).
270274
271275Outside an abso folder it costs one folder lookup when the chat starts. In one,
Lines 279–293 at 27 (were 275–289 at 26)
275279
276280## What the folder holds
277281
278−- `.avcs/config.json`: `{server, project, agent}`. When the folder is a git
279− repo, `/.avcs/` goes into `.git/info/exclude`. Nothing under `.avcs/` is
282+- `.abso/config.json`: `{server, project, agent}`. When the folder is a git
283+ repo, `/.abso/` goes into `.git/info/exclude`. Nothing under `.abso/` is
280284 ever recorded, published or sent to a box.
281−- `.avcs/known/`: the known copy described above.
282−- `.avcs/modes.json`: the executable files and links the server has, as far
285+- `.abso/known/`: the known copy described above.
286+- `.abso/modes.json`: the executable files and links the server has, as far
283287 as the client knows. It is to modes what the known copy is to text.
284−- `.avcs/hook.log`: one line per hook call.
285−- `.avcs/news.log`: the news the agent was given, one dated line each.
286−- `.avcs/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.
288+- `.abso/hook.log`: one line per hook call.
289+- `.abso/news.log`: the news the agent was given, one dated line each.
290+- `.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.
287291
288292## Empty files, the executable bit and links
289293
Lines 306–317 at 27 (were 302–313 at 26)
302306
303307## What is left out
304308
305−Always: `.git`, `.avcs`, `.claude` and `node_modules`, in any case. Beyond
306−those, abso follows git's ignore rules, for `.gitignore` and `.avcsignore`
309+Always: `.git`, `.abso`, `.claude` and `node_modules`, in any case. Beyond
310+those, abso follows git's ignore rules, for `.gitignore` and `.absoignore`
307311alike, except for case:
308312
309313- Any folder may have either file. Its patterns are relative to its folder,
310− and a deeper file beats a shallower one. In one folder, `.avcsignore` beats
314+ and a deeper file beats a shallower one. In one folder, `.absoignore` beats
311315 `.gitignore`, so it can bring back what `.gitignore` leaves out (`!dist/`).
312316- Below those come `.git/info/exclude`, then git's global excludes file
313317 (`core.excludesFile`, or `~/.config/git/ignore`).
Lines 319–325 at 27 (were 315–321 at 26)
315319 only), `\` escapes and trailing spaces all work as in git. The last matching
316320 line wins.
317321- Nothing inside an ignored folder can be brought back with `!`, as in git.
318−- Case: every pattern, from `.avcsignore`, `.gitignore` or git's own exclude
322+- Case: every pattern, from `.absoignore`, `.gitignore` or git's own exclude
319323 files, matches by the same rule as abso's paths, on every platform:
320324 any case, and either Unicode form of an accented letter. So `.env` also
321325 leaves out `.ENV`. This ignores case and Unicode form even where
Lines 328–341 at 27 (were 324–337 at 26)
324328
325329Binary files (a NUL byte or invalid UTF-8), and text over 2 MB, go up as
326330blobs: the client uploads the bytes under their SHA-256, records the
327−hash, and keeps the hashes it knows in `.avcs/blobs.json`. Sync, switch and
331+hash, and keeps the hashes it knows in `.abso/blobs.json`. Sync, switch and
328332restore fetch the bytes, and never overwrite a binary file the agent changed
329333and hasn't recorded. `diff` says `Binary file x changed: <hash> -> <hash>`.
330334Files over the server's 20 MB limit are left out; `init`, `record` and
331335`status` name them (`leftOut` in `--json`), and what the server has of them
332336stays. `abso run` still sends every file to the box.
333337
334−`abso init` writes a starting `.avcsignore` (Claude Code state and operating
338+`abso init` writes a starting `.absoignore` (Claude Code state and operating
335339system files) when the folder has none. `abso check-ignore <path...>` says
336340whether each path is left out and which line of which file decided.
337341`client/test/ignore.test.ts` checks the rules against `git check-ignore`.
Lines 364–367 at 27 (were 360–363 at 26)
360364```
361365
362366To point a real folder at it, run `node client/test/fake-server.ts 47811`.
363−It takes the token from `AVCS_TOKEN` (default `fake-token`).
367+It takes the token from `ABSO_TOKEN` (default `fake-token`).
MCP
compare on this site's /mcp
CLI
abso diff 26 27 client/README.md --json
JSON
/christopher/abso-core/compare/26..27?file=client%2FREADME.md&format=json