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

Mods: the hooks mod is abso-hooks and the view mod abso-view; an install moves the old skills/avcs and skills/avcs-view folders to ~/.abso/retired-mods (moved, not deleted); the hook stands down for either name; status checks either. Tests cover the move.

of shared·review··Not checked

Version 39 · Files at version 40

10 files, 106 lines added, 38 removed.

--- a/client/.claude-plugin/plugin.json
+++ b/client/.claude-plugin/plugin.json
@@ -1,5 +1,5 @@
11{
2− "name": "avcs",
2+ "name": "abso-hooks",
33 "version": "0.2.0",
44 "description": "Records each Claude Code edit into the agent's draft on the avcs server, and hands news about others' published work back to the agent.",
55 "license": "MIT"
--- a/client/src/hook.ts
+++ b/client/src/hook.ts
@@ -44,6 +44,11 @@
4444
4545/** Where install-mod.ts puts the mod: Claude Code's skills folder, which every session loads. */
4646export function modDir(env: Readonly<Record<string, string | undefined>> = process.env): string {
47+ return join(env.CLAUDE_CONFIG_DIR || join(homedir(), ".claude"), "skills", "abso-hooks");
48+}
50+/** Where the same mod lived before the rename. */
51+export function oldModDir(env: Readonly<Record<string, string | undefined>> = process.env): string {
4752 return join(env.CLAUDE_CONFIG_DIR || join(homedir(), ".claude"), "skills", "avcs");
4853}
4954
@@ -60,7 +65,9 @@
6065 }
6166 // With the abso mod installed, every Claude Code session on this machine sends
6267 // its edits in-process, so this hook stands down rather than send them twice.
63− if (fromEnv(env, "HOOK_FORCE") !== "1" && existsSync(join(modDir(env), ".claude-plugin", "plugin.json"))) {
68+ if (fromEnv(env, "HOOK_FORCE") !== "1" && (existsSync(join(modDir(env), ".claude-plugin", "plugin.json")) ||
69+ existsSync(join(oldModDir(env), ".claude-plugin", "plugin.json"))))
70+ {
6471 return { stdout: "", outcome: "skipped: the abso mod sends edits" };
6572 }
6673 const tool = input.tool_name ?? "";
--- a/client/src/install.ts
+++ b/client/src/install.ts
@@ -107,27 +107,50 @@
107107
108108/** The abso mod: what the hook imports first, plugin.json last. src/core.ts is the only client file it imports. */
109109export const AVCS_MOD: ModSpec = {
110− name: "avcs",
110+ name: "abso-hooks",
111111 from: CLIENT_DIR,
112112 files: ["src/core.ts", "hooks/stamp.ts", "hooks/register.ts", "hooks/hooks.json", ".claude-plugin/plugin.json"],
113113 test: "hooks/register.test.ts",
114114};
115115
116−/** The avcs-view mod (#12), from client/view. */
116+/** The abso-view mod (#12), from client/view. */
117117export const VIEW_MOD: ModSpec = {
118− name: "avcs-view",
118+ name: "abso-view",
119119 from: join(CLIENT_DIR, "view"),
120120 files: ["types/index.d.ts", "hooks/stamp.ts", "hooks/register.tsx", "hooks/hooks.json", ".claude-plugin/plugin.json"],
121121 test: "hooks/register.test.ts",
122122};
123123
124+/** The skills folders the mods had before the rename; an install moves them out of the way (see retireOldMod). */
125+export const OLD_MOD_NAMES: Readonly<Record<string, string>> = { "abso-hooks": "avcs", "abso-view": "avcs-view" };
124127/** Where Claude Code's skills folder keeps a mod. */
125128export const skillsFolder = (name: string, env: Readonly<Record<string, string | undefined>> = process.env) =>
126129 join(env.CLAUDE_CONFIG_DIR || join(homedir(), ".claude"), "skills", name);
127130
128131export const modInstalled = (env: Readonly<Record<string, string | undefined>> = process.env) =>
129− existsSync(at(skillsFolder(AVCS_MOD.name, env), MANIFEST));
132+ existsSync(at(skillsFolder(AVCS_MOD.name, env), MANIFEST)) ||
133+ existsSync(at(skillsFolder(OLD_MOD_NAMES[AVCS_MOD.name]!, env), MANIFEST));
130134
135+/**
136+ * After the new mod is in, the folder it replaces (skills/avcs, skills/avcs-view) would load beside it, so it
137+ * is moved, not deleted, to ~/.abso/retired-mods/<name>-<stamp>. Returns where it went, or undefined when there was none.
138+ */
139+export function retireOldMod(
140+ spec: ModSpec,
141+ env: Readonly<Record<string, string | undefined>> = process.env,
142+ now: Date = new Date(),
143+): string | undefined {
144+ const old = OLD_MOD_NAMES[spec.name];
145+ if (old === undefined) return undefined;
146+ const from = skillsFolder(old, env);
147+ if (!existsSync(from)) return undefined;
148+ const to = join(homedir(), ".abso", "retired-mods", `${old}-${now.toISOString().replace(/[:.]/g, "-")}`);
149+ mkdirSync(dirname(to), { recursive: true });
150+ renameRetrying(from, to);
151+ return to;
152+}
131154/** The version an install of `spec` gets: plugin.json's, plus the last commit that changed its files (and .dirty when they differ from it). */
132155export function versionFor(spec: ModSpec, commit?: string | null): string {
133156 const manifest = JSON.parse(readFileSync(at(spec.from, MANIFEST), "utf8")) as { version?: unknown };
@@ -405,6 +428,9 @@
405428 }
406429 const unchecked = options.includes("--unchecked");
407430 const r = installMod(spec, { target, check: unchecked ? () => undefined : checkWithClaude(spec) });
431+ // Only for the real skills folder: an install to another folder leaves the old mod alone.
432+ const retired = target === resolve(skillsFolder(spec.name)) ? retireOldMod(spec) : undefined;
433+ if (retired) console.log(`Moved the old ${OLD_MOD_NAMES[spec.name]} mod out of the skills folder, to ${retired}.`);
408434 if (!r.changed) {
409435 console.log(`The ${spec.name} mod ${r.version} is already installed in ${target}; nothing changed.`);
410436 return;
--- a/client/src/state-dir.ts
+++ b/client/src/state-dir.ts
@@ -24,7 +24,7 @@
2424export const MOD_KNOWS_ABSO = [0, 2, 0] as const;
2525
2626/** Every name a mod has been installed under, in Claude Code's skills folder. */
27−const MOD_NAMES = ["avcs", "avcs-view", "abso", "abso-view"] as const;
27+const MOD_NAMES = ["avcs", "avcs-view", "abso", "abso-view", "abso-hooks"] as const;
2828
2929function versionAtLeast(version: string, min: readonly number[]): boolean {
3030 const parts = version.split("+")[0]!.split(".").map(Number);
--- a/client/src/status-commands.ts
+++ b/client/src/status-commands.ts
@@ -90,14 +90,17 @@
9090 */
9191export function staleModText(root: string, env: Readonly<Record<string, string | undefined>>): string[] {
9292 let installed: string | undefined;
93− try {
94− const dir = join(env.CLAUDE_CONFIG_DIR || join(env.USERPROFILE || env.HOME || "", ".claude"), "skills", "avcs");
95− installed = String(
96− (JSON.parse(readFileSync(join(dir, ".claude-plugin", "plugin.json"), "utf8")) as { version?: unknown }).version,
97− );
98− } catch {
99− return [];
93+ const skills = join(env.CLAUDE_CONFIG_DIR || join(env.USERPROFILE || env.HOME || "", ".claude"), "skills");
94+ for (const name of ["abso-hooks", "avcs"]) {
95+ try {
96+ installed = String(
97+ (JSON.parse(readFileSync(join(skills, name, ".claude-plugin", "plugin.json"), "utf8")) as { version?: unknown })
98+ .version,
99+ );
100+ break;
101+ } catch {}
100102 }
103+ if (installed === undefined) return [];
101104 if (!installed.includes("+")) return [];
102105 let last: string[] | undefined;
103106 try {
--- a/client/test/install.test.ts
+++ b/client/test/install.test.ts
@@ -24,7 +24,16 @@
2424import { after, describe, it } from "node:test";
2525import { Api } from "../src/api.ts";
2626import { clientVersion, headCommit } from "../src/client-version.ts";
27−import { installMod, type ModSpec, modsBehindText, rollbackMod, versionFor, versionReport } from "../src/install.ts";
27+import {
28+ AVCS_MOD,
29+ installMod,
30+ type ModSpec,
31+ modsBehindText,
32+ retireOldMod,
33+ rollbackMod,
34+ versionFor,
35+ versionReport,
36+} from "../src/install.ts";
2837import { main } from "../src/main.ts";
2938
3039const hasGit = spawnSync("git", ["--version"]).status === 0;
@@ -335,7 +344,7 @@
335344 const config = temp();
336345 const spec = source();
337346 installMod(spec, {
338− target: join(config, "skills", "avcs"),
347+ target: join(config, "skills", "abso-hooks"),
339348 check: pass,
340349 commit: "aaaaaaa",
341350 now: new Date("2026-10-05T04:30:00Z"),
@@ -346,9 +355,9 @@
346355 assert.equal(client, `abso ${clientVersion()} (${dirname(import.meta.dirname)})`);
347356 assert.match(
348357 mod!,
349− /^the avcs mod: 0\.1\.0\+aaaaaaa in .*skills[\\/]avcs, installed 2026-10-05 04:30 UTC; this client has 0.2.0(\+[0-9a-f]{7}(\.dirty)?)?: node client\/install-mod\.ts installs it$/,
358+ /^the abso-hooks mod: 0\.1\.0\+aaaaaaa in .*skills[\\/]abso-hooks, installed 2026-10-05 04:30 UTC; this client has 0.2.0(\+[0-9a-f]{7}(\.dirty)?)?: node client\/install-mod\.ts installs it$/,
350359 );
351− assert.equal(view, "the avcs-view mod: not installed (node client/install-view.ts)");
360+ assert.equal(view, "the abso-view mod: not installed (node client/install-view.ts)");
352361 const json = JSON.parse(
353362 (await main(["--version", "--json"], { cwd: config, env: { CLAUDE_CONFIG_DIR: config }, write: () => {} }))
354363 .stdout,
@@ -357,12 +366,35 @@
357366 assert.equal(json.mods[0].version, "0.1.0+aaaaaaa");
358367 });
359368
369+ it("moves the old avcs mod folder out of the skills folder, not deleting it, once abso-hooks is in", () => {
370+ const config = temp();
371+ const old = join(config, "skills", "avcs");
372+ write(old, ".claude-plugin/plugin.json", '{"name":"avcs","version":"0.1.0"}');
373+ const home = temp();
374+ const was = process.env.USERPROFILE;
375+ const was2 = process.env.HOME;
376+ process.env.USERPROFILE = home;
377+ process.env.HOME = home;
378+ try {
379+ const to = retireOldMod(AVCS_MOD, { CLAUDE_CONFIG_DIR: config });
380+ assert.ok(to?.startsWith(join(home, ".abso", "retired-mods")));
381+ assert.equal(existsSync(old), false);
382+ assert.equal(existsSync(join(to!, ".claude-plugin", "plugin.json")), true);
383+ assert.equal(retireOldMod(AVCS_MOD, { CLAUDE_CONFIG_DIR: config }), undefined);
384+ } finally {
385+ if (was === undefined) delete process.env.USERPROFILE;
386+ else process.env.USERPROFILE = was;
387+ if (was2 === undefined) delete process.env.HOME;
388+ else process.env.HOME = was2;
389+ }
390+ });
360392 it("status says when an installed mod is behind this client, where the client knows its commit (abso issue 41)", () => {
361393 const config = temp();
362394 const env = { CLAUDE_CONFIG_DIR: config };
363395 assert.deepEqual(modsBehindText(env), [], "nothing installed, nothing to say");
364396 installMod(source(), {
365− target: join(config, "skills", "avcs"),
397+ target: join(config, "skills", "abso-hooks"),
366398 check: pass,
367399 commit: "aaaaaaa",
368400 now: new Date("2026-10-05T04:30:00Z"),
--- a/client/view/.claude-plugin/plugin.json
+++ b/client/view/.claude-plugin/plugin.json
@@ -1,5 +1,5 @@
11{
2− "name": "avcs-view",
2+ "name": "abso-view",
33 "version": "0.2.0",
44 "description": "Shows this chat's abso state: its space, its draft, who else is on the same files, and recent news",
55 "types": "./types/index.d.ts"
--- a/client/view/hooks/register.test.ts
+++ b/client/view/hooks/register.test.ts
@@ -1,4 +1,4 @@
1−// avcs-view against the engine: the server and the folder are answered here.
1+// abso-view against the engine: the server and the folder are answered here.
22
33import type { On } from "claude-code";
44import { expect, mock, test } from "claude-code/testing";
@@ -80,7 +80,7 @@
8080 await w.clock.advance(1);
8181 expect(w.fetched).toEqual(["https://avcs.test/p/p/status", "https://avcs.test/p/p/where"]);
8282 expect(w.statuses.at(-1)).toBe(
83− "abso: shared · 2 files unpublished · shared is 2 ahead (abso sync) · bob also on your files · 1 news item (/avcs-view)",
83+ "abso: shared · 2 files unpublished · shared is 2 ahead (abso sync) · bob also on your files · 1 news item (/abso-view)",
8484 );
8585 await w.clock.advance(31_000);
8686 expect(w.fetched.length).toBe(4);
@@ -92,10 +92,10 @@
9292 await w.clock.advance(1);
9393 for (const surface of ["terminal", "desktop"] as const) {
9494 const ui = await $.ui.mount({
95− plugin: "avcs-view",
95+ plugin: "abso-view",
9696 surface,
9797 component: "Pane",
98− requestId: "avcs-view",
98+ requestId: "abso-view",
9999 props: { title: "avcs", isFocused: false, bodyColumns: 80, placement: "dock" } as never,
100100 });
101101 expect(await ui.find({ text: /Working in shared, at version 7/ })).toBeDefined();
@@ -106,14 +106,14 @@
106106 }
107107});
108108
109−test("/avcs-view opens the pane, and the status line stops counting the news it showed", async ($, on) => {
109+test("/abso-view opens the pane, and the status line stops counting the news it showed", async ($, on) => {
110110 const w = world(on, true);
111111 await $.session.start({ cwd: "/w/proj/src" });
112112 await w.clock.advance(1);
113113 expect(w.statuses.at(-1)).toContain("1 news item");
114− const answer = await $.command.run({ command: "avcs-view", args: "" } as never);
115− expect(answer).toMatchObject({ text: "Opened the avcs view." });
116− expect(w.opened).toEqual(["avcs-view"]);
114+ const answer = await $.command.run({ command: "abso-view", args: "" } as never);
115+ expect(answer).toMatchObject({ text: "Opened the abso view." });
116+ expect(w.opened).toEqual(["abso-view"]);
117117 expect(w.statuses.at(-1)).not.toContain("news");
118118});
119119
--- a/client/view/hooks/register.tsx
+++ b/client/view/hooks/register.tsx
@@ -1,9 +1,9 @@
1−// avcs-view: what abso knows about this chat's folder, at a glance (#12).
1+// abso-view: what abso knows about this chat's folder, at a glance (#12).
22//
33// A status line entry, kept current: the space the folder is in, how many
44// files the draft changes, how far shared has moved on, who else has
55// unpublished changes in the same files, and news not yet looked at.
6−// `/avcs-view` opens a pane with the whole picture.
6+// `/abso-view` opens a pane with the whole picture.
77//
88// Outside an abso folder it costs one folder lookup at session start and
99// nothing after. Inside one, it asks the server for /status and /where at
@@ -15,18 +15,18 @@
1515import type { AvcsView } from "../types";
1616import { STAMP } from "./stamp.ts";
1717
18−const PANE = "avcs-view";
19−const COMMAND = "avcs-view";
18+const PANE = "abso-view";
19+const COMMAND = "abso-view";
2020const TICK_MS = 3_000;
2121const REFRESH_MS = 30_000;
2222const AFTER_EDIT_MS = 2_000;
2323const NEWS_SHOWN = 12;
2424const EDIT_TOOLS = ["Edit", "MultiEdit", "Write", "NotebookEdit", "Bash"];
2525/** Sent with each call, so the server can tell which mod, from which commit, made it (#29). */
26−const CLIENT = `avcs-view/${STAMP ?? "checkout"}`;
26+const CLIENT = `abso-view/${STAMP ?? "checkout"}`;
2727
28−const view = atom({ plugin: "avcs-view", key: "view" } as const, null);
29−const seenNewsAt = atom({ plugin: "avcs-view", key: "seenNewsAt" } as const, "");
28+const view = atom({ plugin: "abso-view", key: "view" } as const, null);
29+const seenNewsAt = atom({ plugin: "abso-view", key: "seenNewsAt" } as const, "");
3030
3131// The engine interface, passed along (the validator refuses keeping it).
3232type Engine = any;
@@ -204,7 +204,7 @@
204204 parts.push(`${v.space === "shared" ? "shared" : "the draft"} is ${v.version - v.base} ahead (abso sync)`);
205205 if (v.overlap.length > 0) parts.push(`${v.overlap.map((o) => o.agent).join(", ")} also on your files`);
206206 const fresh = unread(v, seen);
207− if (fresh > 0) parts.push(`${plural(fresh, "news item")} (/avcs-view)`);
207+ if (fresh > 0) parts.push(`${plural(fresh, "news item")} (/abso-view)`);
208208 return parts.join(" · ");
209209}
210210
@@ -244,7 +244,7 @@
244244 await update($, seenNewsAt, () => newest);
245245 $.ui.status(statusLine(v, newest));
246246 }
247− return { text: "Opened the avcs view." };
247+ return { text: "Opened the abso view." };
248248 });
249249
250250 on("ui.render", { component: "Pane", requestId: PANE }, async ($, e) => {
--- a/client/view/types/index.d.ts
+++ b/client/view/types/index.d.ts
@@ -23,6 +23,6 @@
2323
2424declare module "claude-code" {
2525 interface PluginState {
26− "avcs-view": { view: AvcsView | null; seenNewsAt: string };
26+ "abso-view": { view: AvcsView | null; seenNewsAt: string };
2727 }
2828}