Versions 136 to 318
new file, 126 lines
2+
3+One Cloudflare Worker that hosts abso projects on your own Cloudflare account. Each project is its own Durable Object,
4+with its history in that object's SQLite storage, and its shared history is pushed out to its own Artifacts git repo.
6+
7+Many agents can work in one project at once. Each pushes from its own folder; a push that collides with work pushed
8+since that agent last pulled is held, and the answer names the collision. Projects don't share anything, so more
10+
12+
13+- A Cloudflare account on the Workers Paid plan, for Workers, Durable Objects and Artifacts. Artifacts isn't on the
15+- Node 22 or later to deploy: wrangler needs it. On Node 20, run wrangler through npm's Node 22, as below.
17+
19+
21+
28+
29+On Node 20, `npm ci` warns that wrangler wants Node 22 and installs it anyway; run each wrangler command through npm's
31+
33+npx -y node@22 node_modules/wrangler/bin/wrangler.js deploy # and the same for login and secret put
35+
36+`wrangler deploy` prints the server's address, such as `https://abso.<your-subdomain>.workers.dev`. Until
38+
39+Optional: `npx wrangler secret put KEY_HMAC_SECRET` turns on per-agent keys (`abso_sk_...`), issued through
41+
43+
44+The client is in this repository. `npm run build` builds it from `client/abso.ts` into one plain-JS file that runs on
46+
54+
55+On Node 24, `alias abso="node $PWD/client/abso.ts"` runs the TypeScript itself, with no build. `npm i -g @abso-cli/abso`
57+
60+
62+
65+abso init . --server https://abso.<your-subdomain>.workers.dev --project my-project --agent alice
66+
70+
71+On abso.dev, make the project on the website (New project) instead, then run `abso join <project>` in each agent's
73+
74+Each agent works in its own folder: `abso pull`, edit, `abso push -m "why"`. When two agents change the same lines,
76+
80+
81+`abso pull` marks the collision, `abso settle <file> --yours` (or `--theirs`, `--both`) settles it, and the push goes
82+through. Issues and asks work the same way: `abso issue new "<title>"`, `abso ask bob "<question>" --issue 1`,
84+
86+
87+Every project's shared is also a git repo in Artifacts, `abso-<project>`, updated at most once a minute while agents
89+
90+- `POST /p/<project>/git-remote` with the token answers the repo's address and an hour-long token to clone it.
91+- A plain `git push` to that repo is taken back in as a new version within about 15 seconds while the project is
93+
95+
100+
101+Keep `--local`: Artifacts is a remote binding, and without `--local` wrangler dev connects to your account.
102+`ABSO_ARTIFACTS=off` skips the push out, which nothing local can reach. wrangler still warns that Artifacts bindings
103+may incur charges; with `ABSO_ARTIFACTS=off` the server never uses the binding, so nothing is called or charged.
105+
106+On Windows, a project's storage file sits deep under `.wrangler/state/`, and from a deep folder its path can pass
107+Windows' 260-character limit; `abso init` then answers `500: the project object failed`. Keep the state short:
109+
111+
112+- One project is one Durable Object, so it lives within one object's memory (128 MB). The server estimates a project's
114+- Scale comes from projects: [scale/README.md](scale/README.md) has the harness, and `scale/results/` the first run on a
115+ deployed server. Two hundred projects with twenty agents each (4,000 agents) pushed 419 times a second, with a median
117+
119+
121+- `src/router.ts`: authorization (the shared token, or an agent key) and routing to each project's object.
122+- `src/project-object.ts`: the project's Durable Object: loads the engine from SQLite, answers each call, holds
123+ oversized projects, and runs the alarm that pushes out to Artifacts and takes plain git pushes in.
126+- [STORAGE-FORMATS.md](STORAGE-FORMATS.md): what to know before rolling the server back to an older version.
- MCP
- compare on this site's /mcp
- CLI
- abso diff 136 318 server/README.md --json
- JSON
- /christopher/abso-core/compare/136..318?file=server%2FREADME.md&format=json