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 171 --json
JSON
/christopher/abso-core/versions/171?format=json

abso login drops --max-agents (abso ask 1947; Christopher, 2026-10-14: no arbitrary free limits). A box lets in any number of agents (the server stopped enforcing max_agents in abso 642): abso box no longer prints 'Up to N agents', the 'agent limit' 409 message is gone, and a stored grant without max_agents reads fine. Instant cutover, no alias. Bundle rebuilt.

of shared·open··Not checked

Version 170 · Files at version 171

9 files, 26 lines added, 47 removed.

--- a/client/README.md
+++ b/client/README.md
@@ -49,13 +49,13 @@
4949An agent can request the access it needs when starting a box login:
5050
5151```bash
52−abso login --projects alpha,beta --role writer --max-agents 1 --days 30 --no-browser
52+abso login --projects alpha,beta --role writer --days 30 --no-browser
5353```
5454
5555The client sends a `requested_grant` with the device request: `projects`
56−(each with `project` and `role`), `max_agents`, and `days`. Only supplied
56+(each with `project` and `role`) and `days`. Only supplied
5757fields are sent; project roles default to `writer`. The role option requires
58−projects. Agent limits range from 1 to 50 and durations from 1 to 90 days.
58+projects. Durations range from 1 to 90 days. A box lets in any number of agents.
5959The person approving still chooses the actual grant and can narrow or reject
6060the request. Servers must support requested grants to prefill their approval
6161page; older servers may ignore the suggestions. Without these options, login
Binary file client/bin/abso.mjs changed: 592ee02d8b27 -> 601e61926ab4
--- a/client/src/box.ts
+++ b/client/src/box.ts
@@ -15,25 +15,25 @@
1515import { type Parsed, str, UsageError } from "./args.ts";
1616import { homeFile, homeWritePath, OLD_STATE_DIR, STATE_DIR } from "./state-dir.ts";
1717
18−/** What the person who approved the code allowed: each project with the highest role its agents get there, and how many agents. */
18+/**
19+ * What the person who approved the code allowed: each project with the highest role its agents get there. A box lets in any
20+ * number of agents (abso 642; Christopher, 2026-10-14, ask 1947); the server still records a max_agents it doesn't enforce.
21+ */
1922export interface Grant {
2023 readonly projects: readonly { readonly project: string; readonly role: string }[];
21− readonly max_agents: number;
2224}
2325
2426/** Requested access is a suggestion for the person approving, never an authorization. */
2527export interface LoginRequest {
2628 readonly projects?: readonly { readonly project: string; readonly role: "reader" | "writer" | "owner" }[];
27− readonly max_agents?: number;
2829 readonly days?: number;
2930}
3031
3132export function loginRequest(args: Parsed): LoginRequest | undefined {
3233 const projects = str(args, "projects");
3334 const role = str(args, "role");
34− const maxAgents = str(args, "max-agents");
3535 const days = str(args, "days");
36− if (projects === undefined && role === undefined && maxAgents === undefined && days === undefined) return undefined;
36+ if (projects === undefined && role === undefined && days === undefined) return undefined;
3737 if (role !== undefined && projects === undefined) throw new UsageError("--role needs --projects");
3838 const requestedRole = role ?? "writer";
3939 if (requestedRole !== "reader" && requestedRole !== "writer" && requestedRole !== "owner")
@@ -50,7 +50,6 @@
5050 };
5151 return {
5252 ...(names ? { projects: [...new Set(names)].map((project) => ({ project, role: requestedRole })) } : {}),
53− ...(maxAgents === undefined ? {} : { max_agents: integer(maxAgents, "max-agents", 50) }),
5453 ...(days === undefined ? {} : { days: integer(days, "days", 90) }),
5554 };
5655}
@@ -228,8 +227,7 @@
228227 typeof x === "object" &&
229228 x !== null &&
230229 Array.isArray(x.projects) &&
231− x.projects.every((p) => typeof p?.project === "string" && typeof p.role === "string") &&
232− typeof x.max_agents === "number"
230+ x.projects.every((p) => typeof p?.project === "string" && typeof p.role === "string")
233231 );
234232}
235233
@@ -350,10 +348,6 @@
350348 return { ...(await mintKey(record, project, agent, fetcher)), agent };
351349 } catch (err) {
352350 if (err instanceof UsageError && /refused \(409\): that agent name/.test(err.message)) continue;
353− if (err instanceof UsageError && /refused \(409\): this box is at its agent limit/.test(err.message))
354− throw new UsageError(
355− `this box is at its agent limit (${record.grant.max_agents}): abso box shows its grant, and an agent can be revoked on the website's Boxes page`,
356− );
357351 throw err;
358352 }
359353 }
@@ -383,7 +377,7 @@
383377 const expired = record.expiresAt <= now;
384378 return [
385379 `Signed in to ${record.server} as box ${record.id}${expired ? ", but the sign-in has expired. abso login renews it." : "."}`,
386− `Projects: ${g.projects.map((p) => `${p.project} (${p.role})`).join(", ")}. Up to ${g.max_agents} agents.`,
380+ `Projects: ${g.projects.map((p) => `${p.project} (${p.role})`).join(", ")}.`,
387381 `${expired ? "Expired" : "Expires"} ${day(record.expiresAt)} UTC.`,
388382 ].join("\n");
389383}
--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -184,13 +184,11 @@
184184 "no-browser": "boolean",
185185 projects: "string",
186186 role: "string",
187− "max-agents": "string",
188187 days: "string",
189188 },
190− usage:
191− "abso login [--no-browser] [--projects <name,name>] [--role <reader|writer|owner>] [--max-agents <1-50>] [--days <1-90>]",
189+ usage: "abso login [--no-browser] [--projects <name,name>] [--role <reader|writer|owner>] [--days <1-90>]",
192190 about:
193− "Sign this box in once: it opens the approve page in your browser with the code filled in, prints the link and the code too, and waits while a person approves the code on the website, choosing the projects, the highest role and how many agents. Then abso join in any of those projects gives each agent its own key, with no approval. The box's sign-in is kept in your user folder, never in a project folder, and is never printed. No browser opens with --no-browser or ABSO_NO_BROWSER, over SSH, under CI, or on Linux without a display.",
191+ "Sign this box in once: it opens the approve page in your browser with the code filled in, prints the link and the code too, and waits while a person approves the code on the website, choosing the projects, the highest role and how long. Then abso join in any of those projects gives each agent its own key, with no approval. The box's sign-in is kept in your user folder, never in a project folder, and is never printed. No browser opens with --no-browser or ABSO_NO_BROWSER, over SSH, under CI, or on Linux without a display.",
194192 run: async (args, env) => {
195193 const server = boxServer(args, env);
196194 const open =
--- a/client/test/box.test.ts
+++ b/client/test/box.test.ts
@@ -31,7 +31,6 @@
3131 { project: "abso", role: "writer" },
3232 { project: "game", role: "reader" },
3333 ],
34− max_agents: 5,
3534};
3635const EXPIRES = "2026-10-15T00:00:00.000Z";
3736const record = { server: SERVER, id: "b_0123abcd", credential: CREDENTIAL, grant, expiresAt: Date.parse(EXPIRES) };
@@ -70,23 +69,21 @@
7069 };
7170}
7271
73−test("login grant options validate project lists, roles, limits and duration", () => {
72+test("login grant options validate project lists, roles and duration", () => {
7473 const request = (...words: string[]) =>
7574 loginRequest(
7675 parseArgs("login", words, {
7776 projects: "string",
7877 role: "string",
79− "max-agents": "string",
8078 days: "string",
8179 }),
8280 );
8381 assert.equal(request(), undefined);
84− assert.deepEqual(request("--projects", "alpha, beta,alpha", "--max-agents", "1", "--days", "30"), {
82+ assert.deepEqual(request("--projects", "alpha, beta,alpha", "--days", "30"), {
8583 projects: [
8684 { project: "alpha", role: "writer" },
8785 { project: "beta", role: "writer" },
8886 ],
89− max_agents: 1,
9087 days: 30,
9188 });
9289 assert.deepEqual(request("--projects", "alpha", "--role", "reader"), {
@@ -95,7 +92,7 @@
9592 assert.deepEqual(request("--projects", "alpha", "--role", "owner"), {
9693 projects: [{ project: "alpha", role: "owner" }],
9794 });
98− assert.deepEqual(request("--max-agents", "50", "--days", "90"), { max_agents: 50, days: 90 });
95+ assert.deepEqual(request("--days", "90"), { days: 90 });
9996 for (const words of [
10097 ["--role", "writer"],
10198 ["--projects", ""],
@@ -105,18 +102,16 @@
105102 ["--projects", Array.from({ length: 101 }, (_, i) => `p${i}`).join(",")],
106103 ])
107104 assert.throws(() => request(...words));
108− for (const flag of ["--max-agents", "--days"]) {
109− for (const value of ["0", "-1", "1.5", "1e1", "Infinity", "100", "abc", ""])
110− assert.throws(() => request(flag, value));
111− }
105+ for (const value of ["0", "-1", "1.5", "1e1", "Infinity", "100", "abc", ""])
106+ assert.throws(() => request("--days", value));
112107});
113108
114109test("login sends requested grants only at device start and retains the user's actual approval", async () => {
115110 const h = home();
116111 const seen: Seen = [];
117112 const c = clock();
118− const requested = { projects: [{ project: "abso", role: "owner" as const }], max_agents: 10, days: 90 };
119− const approved = { projects: [{ project: "abso", role: "reader" }], max_agents: 1 };
113+ const requested = { projects: [{ project: "abso", role: "owner" as const }], days: 90 };
114+ const approved = { projects: [{ project: "abso", role: "reader" }] };
120115 const got = await login(
121116 SERVER,
122117 {
@@ -209,7 +204,8 @@
209204 assert.equal(files.length, 1);
210205 assert.ok(readFileSync(join(h, ".abso", "boxes", files[0]!), "utf8").includes(CREDENTIAL));
211206 assert.equal(boxText(got, SERVER, 0).includes(CREDENTIAL), false);
212− assert.match(boxText(got, SERVER, 0), /abso \(writer\), game \(reader\)\. Up to 5 agents\./);
207+ assert.match(boxText(got, SERVER, 0), /abso \(writer\), game \(reader\)\.\n/);
208+ assert.doesNotMatch(boxText(got, SERVER, 0), /agents/);
213209 assert.equal(JSON.stringify(boxPublic(got)).includes(CREDENTIAL), false);
214210});
215211
@@ -422,13 +418,4 @@
422418 ],
423419 "snow is this box's already: never minted again, which would replace its key",
424420 );
425−
426− const limit = server(
427− [
428− [200, { box_id: record.id, agents: [] }],
429− [409, { error: "this box is at its agent limit" }],
430− ],
431− [],
432− );
433− await assert.rejects(mintFreeName(record, "abso", "snow", limit), /this box is at its agent limit \(5\)/);
434421});
--- a/client/test/client.test.ts
+++ b/client/test/client.test.ts
@@ -4736,7 +4736,7 @@
47364736 credential: "abso_bx_secret",
47374737 id: "b_1",
47384738 expiresAt: Date.now() + 1e6,
4739− grant: { projects: [{ project: "p", role: "writer" }], max_agents: 1 },
4739+ grant: { projects: [{ project: "p", role: "writer" }] },
47404740 };
47414741 mkdirSync(join(home, ".avcs", "boxes"), { recursive: true });
47424742 writeBox(record as never, home);
--- a/client/test/doctor.test.ts
+++ b/client/test/doctor.test.ts
@@ -14,7 +14,7 @@
1414const CREDENTIAL = "abso_bx_the-secret-credential";
1515const KEY = "abso_sk_the-secret-key";
1616const NOW = Date.parse("2026-10-10T06:00:00.000Z");
17−const grant = { projects: [{ project: "game", role: "writer" }], max_agents: 3 };
17+const grant = { projects: [{ project: "game", role: "writer" }] };
1818const box = (expiresAt = Date.parse("2026-10-20T00:00:00.000Z")) => ({
1919 server: SERVER,
2020 id: "b_0123abcd",
@@ -180,7 +180,7 @@
180180 out.text,
181181 /^Signed in to https:\/\/staging\.abso\.example as box b_0123abcd, approved by christopher\.\n/,
182182 );
183− assert.match(out.text, /Projects: game \(writer\)\. Up to 3 agents\./);
183+ assert.match(out.text, /Projects: game \(writer\)\.\n/);
184184 assert.match(
185185 out.text,
186186 /This folder is agent builder in project game on https:\/\/staging\.abso\.example, with the agent key k_00c0ffee\./,
--- a/client/test/orgs.test.ts
+++ b/client/test/orgs.test.ts
@@ -21,7 +21,7 @@
2121 server: SERVER,
2222 id: "box_1",
2323 credential: CREDENTIAL,
24− grant: { projects: [{ project: "web", role: "writer" }], max_agents: 3 },
24+ grant: { projects: [{ project: "web", role: "writer" }] },
2525 expiresAt: Date.now() + 86_400_000,
2626 },
2727 home,
--- a/client/test/visitor.test.ts
+++ b/client/test/visitor.test.ts
@@ -197,7 +197,7 @@
197197 server: url,
198198 id: "b_0123abcd",
199199 credential: CREDENTIAL,
200− grant: { projects: [{ project: "abso-core", role: "writer" }], max_agents: 3 },
200+ grant: { projects: [{ project: "abso-core", role: "writer" }] },
201201 expiresAt: Date.now() + 86_400_000,
202202 },
203203 home,