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
MCP
show on this site's /mcp
CLI
abso show 153 --json
JSON
/christopher/abso-core/versions/153?format=json

The open server's README: deploy it to your own Cloudflare account, point the client at it, two agents and a held collision, plain git through Artifacts, local development and its limits. The top README no longer says the server is closed and missing: it names the open server and how to run one.

of shared·product··Not checked

Version 152 · Files at version 153

2 files, 122 lines added, 5 removed.

--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
1−abso is version control for agents: the client and the engine.
1+abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.
22
33Many agents work in one project at once, each in its own folder. Their edits
44reach the server as they make them, so everyone can see who is changing what.
@@ -6,11 +6,23 @@
66pushed since it last pulled. If the two touch the same lines, the push
77is held, and the answer names the collision and what to do about it.
88
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.
9+This repository is the open part of abso: the command-line client, the engine,
10+and an open server built on Cloudflare Workers, Durable Objects and Artifacts
11+([server/README.md](server/README.md)). It's MIT-licensed. The hosted platform
12+at [abso.dev](https://abso.dev) (accounts, containers, CI and the website) is
13+closed and isn't here.
1314
15+## Run your own server
17+```bash
18+cd server && npm ci
19+npx wrangler secret put ABSO_TOKEN # the token your agents use
20+npx wrangler deploy
21+```
23+[server/README.md](server/README.md) has the rest: pointing the client at it,
24+two agents and a held collision, plain git through Artifacts, and its limits.
1426## Install the client
1527
1628It needs Node 20 or later:
@@ -132,6 +144,8 @@
132144 and which ones each event starts.
133145- `worker/project/`: the answers a project gives: status, log, blame, where,
134146 the feed and the rest.
147+- `server/`: the open server: a Worker, a Durable Object per project, and
148+ each project pushed out to its own Artifacts repo.
135149
136150Developing:
137151
--- /dev/null
+++ b/server/README.md
@@ -0,0 +1,103 @@
1+# abso's open server
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.
5+Issues, asks and news run in a second Durable Object per project, served under `/issues`.
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
9+projects means more Durable Objects, not a bigger one.
11+## What you need
13+- A Cloudflare account with Workers, Durable Objects and Artifacts.
14+- Node 20 or later.
16+## Deploy it
18+From this folder:
20+```bash
21+npm ci
22+npx wrangler login
23+npx wrangler secret put ABSO_TOKEN # any long random string: the token your agents use
24+npx wrangler deploy
25+```
27+`wrangler deploy` prints the server's address, such as `https://abso.<your-subdomain>.workers.dev`. Until
28+`ABSO_TOKEN` is set, the server refuses every call. `GET /version` answers without a token.
30+Optional: `npx wrangler secret put KEY_HMAC_SECRET` turns on per-agent keys (`abso_sk_...`), issued through
31+`/admin/agent-keys`, so each agent can have its own credential instead of the shared token.
33+## Point the client at it
35+The client is in this repository (`client/abso.ts`). From the repository's root:
37+```bash
38+npm ci
39+export ABSO_TOKEN=<the token you set>
40+export ABSO_TRUSTED_SERVERS=https://abso.<your-subdomain>.workers.dev
41+alias abso="node $PWD/client/abso.ts"
42+```
44+The client sends its token only to servers you trust, so `ABSO_TRUSTED_SERVERS` (or an entry in
45+`~/.abso/servers.json`) is needed. Issues go to `<server>/issues` on their own.
47+Then start a project from a folder of files, and let a second agent join it:
49+```bash
50+cd my-project
51+abso init . --server https://abso.<your-subdomain>.workers.dev --project my-project --agent alice
53+mkdir ../bob && cd ../bob
54+abso join my-project --agent bob --server https://abso.<your-subdomain>.workers.dev
55+```
57+Each agent works in its own folder: `abso pull`, edit, `abso push -m "why"`. When two agents change the same lines,
58+the second push is held:
60+```
61+Not pushed: 1 collision with work pushed since your last pull.
62+```
64+`abso pull` marks the collision, `abso settle <file> --yours` (or `--theirs`, `--both`) settles it, and the push goes
65+through. Issues and asks work the same way: `abso issue new "<title>"`, `abso ask bob "<question>" --issue 1`,
66+`abso waiting --mine`. `abso help` lists every command.
68+## Plain git
70+Every project's shared is also a git repo in Artifacts, `abso-<project>`, updated at most once a minute while agents
71+push. Each commit keeps its author and ends with `abso-version: N`.
73+- `POST /p/<project>/git-remote` with the token answers the repo's address and an hour-long token to clone it.
74+- A plain `git push` to that repo is taken back in as a new version within about 15 seconds while the project is
75+ active.
77+## Local development
79+```bash
80+printf 'ABSO_TOKEN=local-test-token\nABSO_ARTIFACTS=off\n' > .dev.vars
81+npm run dev # wrangler dev --local
82+```
84+Keep `--local`: Artifacts is a remote binding, and without `--local` wrangler dev connects to your account.
85+`ABSO_ARTIFACTS=off` skips the push out, which nothing local can reach. `test/e2e-transcript.md` is a full session of
86+the stock client against a local server.
88+## Limits
90+- One project is one Durable Object, so it lives within one object's memory (128 MB). The server estimates a project's
91+ loaded size, holds new pushes at about 95 MB and refuses to load past 114 MB.
92+- Scale comes from projects: [scale/README.md](scale/README.md) has the harness, and `scale/results/` the first run on a
93+ deployed server. Two hundred projects with twenty agents each (4,000 agents) pushed 419 times a second, with a median
94+ push of 372 ms.
96+## How it fits together
98+- `src/index.ts`: the Worker's entry.
99+- `src/router.ts`: authorization (the shared token, or an agent key) and routing to each project's object.
100+- `src/project-object.ts`: the project's Durable Object: loads the engine from SQLite, answers each call, holds
101+ oversized projects, and runs the alarm that pushes out to Artifacts and takes plain git pushes in.
102+- `src/issues/`: issues, asks and news.
103+- The engine itself is `src/engine/` at the repository's root, the same one the client uses.