Lines 1–81 at 318 (were 1–16 at 8)
1−abso is version control for agents: the client and the engine.
3+abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account. 5+**abso-core is built in abso, by agents.** The GitHub repository is a mirror. [On abso.dev](https://abso.dev/christopher/abso-core/files) you can see who wrote each line and why, which agents are working on it right now, and every version as it lands. 8+ <a href="https://abso.dev/christopher/abso-core/files"><img src="docs/readme/abso-core-on-abso.png" alt="abso-core on abso.dev: its files, how much of them each agent wrote, and its latest version" width="100%"></a> 11+ <a href="https://abso.dev/christopher/abso-core/files"><img src="docs/readme/open-in-abso.svg" alt="Open in abso" height="48"></a> 314Many agents work in one project at once, each in its own folder. Their edits 415reach the server as they make them, so everyone can see who is changing what. 5−When an agent publishes, its work is checked against everything others have
6−published since it last synced. If the two touch the same lines, the publish
16+When an agent pushes, its work is checked against everything others have 17+pushed since it last pulled. If the two touch the same lines, the push 718is held, and the answer names the collision and what to do about it. 9−This repository is the open part of abso: the command-line client and the
10−engine. It's MIT-licensed. The hosted platform around it (the server, accounts,
11−containers, CI and the website at [abso.dev](https://abso.dev)) is closed and
12−isn't here.
20+This repository holds the command-line client, the engine, and a server built 21+on Cloudflare Workers, Durable Objects and Artifacts 22+([server/README.md](server/README.md)), all MIT-licensed. abso also runs as a 23+hosted service at [abso.dev](https://abso.dev), which adds accounts, CI and a 24+website for watching your agents' work. 26+## Run your own server 28+It needs a Cloudflare account on the Workers Paid plan: Artifacts isn't on the 34+npx wrangler deploy # prints the server's address 35+npx wrangler secret put ABSO_TOKEN # the token your agents use 38+The server refuses every call until `ABSO_TOKEN` is set. wrangler needs Node 39+22 or later. On Node 20, run it through npm's Node 22 instead: 40+`npx -y node@22 node_modules/wrangler/bin/wrangler.js deploy` (and the same 41+for `login` and `secret put`). 43+`npm ci` in the root and in `server/` also patches the installed 44+isomorphic-git (1.44.2 only) so the server's git pushes and fetches stream a 45+chunk at a time instead of holding a whole pack in memory. It checks the 46+package's sha256 before and after, and refuses any other version; the 47+scripts are in `server/scripts/`. That's the "Git capacity runtime patch" 48+line you'll see during installs and builds. 49+[server/README.md](server/README.md) has the rest: pointing the client at it, 50+two agents and a held collision, plain git through Artifacts, and its limits. 54+It needs Node 20 or later: 57+npm i -g @abso-cli/abso 61+`npx @abso-cli/abso` runs it without installing. The same client is also one 62+file, [abso.mjs](https://api.abso.dev/client/abso.mjs), with its sha256 beside 63+it at `abso.mjs.sha256`. 65+From this repository's root (not `server/`), on Node 20 or later, build it 71+node client/bin/abso.mjs help 74+`npm run build` writes the whole client as one plain-JS file, 75+`client/bin/abso.mjs`, from `client/abso.ts`; build again after pulling. On 76+Node 24, `node client/abso.ts` runs the TypeScript itself, with no build. 77+`npm run pack:npm -- <version>` packs the same build as the npm package. 1681- [abso.dev](https://abso.dev): projects, their files, drafts and issues. Lines 84–167 at 318 (were 19–78 at 8)
22−- **Shared and drafts.** A project has *shared*, its published history as
87+- **Shared and drafts.** A project has *shared*, its pushed history as 2388 numbered versions. Each agent works in its own folder, on its own *draft*. 2489- **Edits are recorded as they happen.** Everyone can see work in progress 2590 (`abso where`, `abso who <file>`). 2691- **Lines, not snapshots.** Every line has its own identity, author and 2792 history, through edits and moves. 28−- **Publish checks first.** `abso publish` adds your draft to shared. It's
29− refused if your work collides with something published since you last
30− synced:
93+- **Push checks first.** `abso push` adds your draft to shared. It's 94+ refused if your work collides with something pushed since you last 3196 - both sides changed the same lines; 3297 - you use a top-level name whose definition someone else changed; 3398 - both sides define the same name in one file. 35100 Nothing is merged silently. 36−- **Settle.** A collision shows up at sync with both sides. `abso settle`
101+- **Settle.** A collision shows up at pull with both sides. `abso settle` 37102 keeps yours, theirs or both, and the other author hears what was kept. 103+ On your own server, `AUTOSETTLE=on` with a Workers AI binding (both off 104+ unless you set them) has the server advise a side for each collision in a 105+ held push; at `act`, the client also settles the ones advised a side and 106+ pushes again, naming what it kept in the version's message and in the 107+ other agent's news. `ABSO_AUTOSETTLE=off` stops that for one shell. 38108- **Agents talk through abso.** Start notes (`abso start`) say what you're 39109 working on. News reaches an agent in the answer to its next command. Asks 40110 wait for an answer. 42−## Install the client
44−The client is one file. It needs Node 24 or later.
114+This needs an account on [abso.dev](https://abso.dev). Without one, you can 115+read a public project (below) or run your own server 116+([server/README.md](server/README.md) runs one locally, with no account at 119+Sign this machine in once. `abso login` opens abso.dev in your browser with a 120+code filled in; a person signed in there approves it and chooses which 121+projects its agents may join: 47−curl -fsSO https://api.abso.dev/client/abso.mjs
48−curl -fsS https://api.abso.dev/client/abso.mjs.sha256 | head -1 | sha256sum -c -
49−node abso.mjs help
52−Below, `abso` means
53−`node <path>/abso.mjs`. From this repository, `node client/abso.ts` runs the
54−same client.
127+Make the project on abso.dev with New project. Then each agent joins it once, 128+in a folder of its own: 56−## Use it
58−Join a project once, in a folder of its own, under an agent name of its own:
135+On abso.dev, projects start on the website, not with `abso init`. `abso init` 136+starts a project from a folder on your own server; see 137+[server/README.md](server/README.md). 139+The agent is named after the machine (`-2`, `-3` for the next ones). 140+`--agent <name>` and `--dir <folder>` choose for yourself. Each agent gets its 143+A public project, such as this one, can be read with no sign-in: 61−abso join <project> --agent <name> --server https://api.abso.dev --dir ./<name>
62−cd <name>
146+abso join abso-core --reader 149+That folder sends no sign-in and records nothing. `status`, `log`, `show`, 150+`files`, `blame`, `why`, `where`, `issues`, `issue` and `search` work there, 151+and every other command is refused. `show` takes a version and a file: 152+`abso show 186:README.md`. 68−abso sync # bring in what others published
157+abso pull # bring in what others pushed 69158abso start "what I'm doing" files # say what you're working on 71−abso publish -m "why" # add your draft to shared
160+abso push -m "why" # add your draft to shared 74−If `publish` is refused, run `abso sync`. Then settle each collision it
75−marks, and publish again:
163+If `push` is refused, run `abso pull`. Then settle each collision it 164+marks, and push again: 78167abso settle <file> --yours # or --theirs, or --both Lines 172–190 at 318 (were 83–101 at 8)
84173## Servers and tokens 86−The client reads its token from `AVCS_TOKEN`, or else from `~/.avcs/token`.
175+The client reads its token from `ABSO_TOKEN`, or else from `~/.abso/token`. 87176It never writes the token into a project folder. 89178It sends the token only to abso's own servers (`https://api.abso.dev` and 90179`https://issues.abso.dev`) and to this machine. A folder that names any other 91180server is refused before any call. To trust another server, name it in 92−`~/.avcs/servers.json`, with its Issues server if it has one:
181+`~/.abso/servers.json`, with its Issues server if it has one: 95184{ "servers": { "https://abso.example.com": { "issues": "https://issues.example.com" } } } 98−`AVCS_TRUSTED_SERVERS` (comma-separated) does the same for one shell. Off
187+`ABSO_TRUSTED_SERVERS` (comma-separated) does the same for one shell. Off 99188this machine, only `https://` servers count. A server you trust gets your 100189token: the same token goes to every server you name, so name only servers 101190you would hand it to. Lines 200–227 at 318 (were 111–128 at 8)
111200 and which ones each event starts. 112201- `worker/project/`: the answers a project gives: status, log, blame, where, 113202 the feed and the rest. 203+- `server/`: the open server: a Worker, a Durable Object per project, and 204+ each project pushed out to its own Artifacts repo. 115−Developing:
206+Developing takes Node 24, which runs the `.ts` files directly: 119−npm run check
210+npm run check # typechecks, then about 1,300 tests 213+Before a push, `npm run check:changed` is enough: it runs the tests that 214+import what you changed, the typecheck when it reaches it, and biome on your 215+files (`--list` shows the plan; name files after `--` to pick them yourself). 216+abso's CI runs the full check (`abso.json`) on every new version of shared, 217+in about 2 minutes, so running it by hand too only adds time. check:changed runs the full check itself when you 218+change setup (package.json, the lockfile, tsconfig.json, abso.json, 124−This history was reconstructed from the private repository, with sensitive
125−material removed.
223+abso-core starts from a fresh first version: the tool as it stood when it 224+moved out of abso's private repository. The history before that isn't public.