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

abso issue: say how to read attached files before their links

of shared·pinch··Not checked

An issue page lists each attachment with a link, but the link opens only for people signed in on the website; an agent that fetched it was refused and didn't know where else to look. When the issue, its comments, or its asks and answers carry files, the page now says so under the title, with the way in: "3 files are attached below. To read them: abso issue 7 · not public --save-attachments <folder> saves every one there, then open the files. The links are for people signed in on the website."

The abso skill gets the same as a line under "Issues and asks", in SKILL.md and in the copy the client carries. Tests in attach.test.ts cover the count across the issue, comments, questions and answers, and a page with no files saying nothing.

Version 46 · Files at version 47

4 files, 29 lines added, 0 removed.

--- a/client/skills/abso/SKILL.md
+++ b/client/skills/abso/SKILL.md
@@ -44,6 +44,9 @@
4444- `abso issue new "<title>" --description "..."`: open one.
4545- `abso issue <N> --comment "..."`: comment.
4646- `abso waiting --mine`, then `abso answer <ask> "..."`: answer what's asked of you.
47+- Images and files on an issue: `abso issue <N> --save-attachments <folder>`
48+ saves them, then read the files. Their links are for people signed in on
49+ the website, and refuse an agent's fetch.
4750
4851## When unsure
4952
--- a/client/src/issues.ts
+++ b/client/src/issues.ts
@@ -259,9 +259,20 @@
259259 ? `${i.closed.how === "done" ? "Done" : "Dropped"} by ${i.closed.by}${i.closed.version !== null ? ` in version ${i.closed.version}` : ""}, ${shortWhen(i.closed.at)}.`
260260 : "",
261261 ].filter((f) => f !== "");
262+ // The links below open for people signed in on the website; an agent's fetch of one is refused. Say the way in
263+ // before the first link, so an agent reads the files instead of hunting for them.
264+ const files =
265+ (i.attachments ?? []).length +
266+ p.comments.reduce((n, c) => n + (c.attachments ?? []).length, 0) +
267+ p.asks.reduce((n, a) => n + (a.attachments ?? []).length + (a.answer?.attachments ?? []).length, 0);
262268 return [
263269 `Issue ${i.id}: ${q(i.title)} [${i.status}]`,
264270 facts.join(" "),
271+ ...(files > 0
272+ ? [
273+ `${files === 1 ? "1 file is" : `${files} files are`} attached below. To read ${files === 1 ? "it" : "them"}: abso issue ${i.id} --save-attachments <folder> saves ${files === 1 ? "it" : "every one"} there, then open the files. The links are for people signed in on the website.`,
274+ ]
275+ : []),
265276 ...(i.lines ? [`From ${i.lines.file} lines ${i.lines.from}-${i.lines.to} at version ${i.lines.version}.`] : []),
266277 ...(i.description !== "" ? ["", ...i.description.split("\n").map((l) => ` ${l}`)] : []),
267278 ...attachmentLines(api, i.attachments, " "),
--- a/client/src/skill.ts
+++ b/client/src/skill.ts
@@ -54,6 +54,9 @@
5454- \`abso issue new "<title>" --description "..."\`: open one.
5555- \`abso issue <N> --comment "..."\`: comment.
5656- \`abso waiting --mine\`, then \`abso answer <ask> "..."\`: answer what's asked of you.
57+- Images and files on an issue: \`abso issue <N> --save-attachments <folder>\`
58+ saves them, then read the files. Their links are for people signed in on
59+ the website, and refuse an agent's fetch.
5760
5861## When unsure
5962
--- a/client/test/attach.test.ts
+++ b/client/test/attach.test.ts
@@ -318,6 +318,17 @@
318318 /attached a0123456789ab: "shot.png", 2 KB, https:\/\/issues.example\/p\/x\/attachments\/a0123456789ab/,
319319 );
320320 assert.match(text, /\n {4}attached a00000000000f: "mine.png", 3.0 MB/);
321+ // The way in comes before the first link, since an agent's fetch of a link is refused.
322+ assert.match(
323+ text,
324+ /^Issue [^\n]*\n[^\n]*\n3 files are attached below\. To read them: abso issue \d+ --save-attachments <folder> saves every one there, then open the files\. The links are for people signed in on the website\.\n/,
325+ );
326+ assert.doesNotMatch(
327+ issuePage({ ...page, issue: { ...page.issue, attachments: [] }, comments: [] } as unknown as IssuePage).join(
328+ "\n",
329+ ),
330+ /--save-attachments/,
331+ );
321332 // An SVG is listed as its PNG, with its own file as a download beside it.
322333 assert.match(
323334 text,
@@ -348,6 +359,7 @@
348359 ],
349360 } as unknown as IssuePage;
350361 const asks = issuePage(asked, { attachmentUrl: (id: string) => `https://i.example/${id}` }).join("\n");
362+ assert.match(asks, /\n5 files are attached below\./, "an ask's question and answer files count too");
351363 assert.match(
352364 asks,
353365 /ask 4: .*"Which\?"\n {4}attached a00000000000d: "a.png", 1 KB, https:\/\/i.example\/a00000000000d\n {4}answer: "This"\n {6}attached a00000000000e: "b.png", 1 KB/,