/agent-blackboard:distillfrom agent-blackboard
Use when distilling accumulated agent-blackboard sessions into concrete follow-ups, sweeping finished sessions after a time window or repository filter, or turning journal snapshots into evidence-backed action items. Exports, filters and digests snapshots, has small models read the partitions, groups entries by root cause, archives only when asked, and cleans up.
Ships in agent-blackboard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read every applicable AGENTS.md first. Repository-local policy overrides these defaults.
Turn finished agent-blackboard sessions into evidence-backed follow-ups without loading raw
snapshots across MCP or leaving temporary files behind. Filing follow-ups as tickets or issues stays
the caller's job.
Collect or confirm these parameters before starting:
inactiveForHours threshold (passed to snapshot_export)
and/or a since ISO-8601 cursor (passed to snapshot_partition, which applies it to each
session's lastEntryAt ?? createdAt).dataArrayContains: { "repositories": "owner/name" }
or data: { "repository": "owner/name" } on export, and repository on snapshot_partition),
plus any agent, version, or parentSessionId filter on export.archive (false by default). Never archive sessions unless the caller
explicitly asks.maxSessions (default 25) and maxBytes (this skill defaults to
262144, small enough for a small model's context).Run cleanup in a finally-style step regardless of success, empty results, or errors.
Export a generated snapshot.
Call snapshot_export without path so the tool creates a private temporary file and
returns { path, counts, checksum, manifest, cleanupToken }. Pass all requested selection
filters (inactiveForHours, data, dataArrayContains, agent, version, parentSessionId).
Never pass an explicit path if you intend to partition or clean up through MCP.
Partition into digests.
Always call snapshot_partition, even for a small export, so readers get a pre-filtered digest
instead of raw records:
{
"path": "<export.path>",
"cleanupToken": "<export.cleanupToken>",
"maxBytes": "<caller's maxBytes, or 262144>",
"maxSessions": "<caller's maxSessions, or omit>",
"since": "<iso-or-omit>",
"repository": "<owner/name-or-omit>",
"digest": true,
"checksum": "<export.checksum.value>",
"counts": "<export.counts>"
}
The tool applies since and repository itself and writes one digest-<n>.jsonl file per
partition: session lines (sessionId, parentSessionId, agent, lastEntryAt,
repositories) each followed
by that session's entries (createdAt, data). Cite an entry by its session line's sessionId
plus the entry's createdAt.
A session too large for one partition is never split or included: the response lists it in
oversized (sessionId, entries, bytes) and partitions the rest. Do not raise maxBytes
past what a small model can read. For each oversized session, dispatch one more small-model
reader with the oversized-session prompt in the
output schema reference: it reads the session once with
entry_get, applies the sweep's repository filter itself, and reports read: false if the read
fails or the session does not fit. List every oversized session in oversizedSessions, and
never archive one in this run.
Untagged entries are dropped for a repository sweep (tags are never inferred). Nothing matched
only when both partitions and oversized are empty. Record directory from the response so cleanup removes
both the snapshot and the partition directory.
Read partitions with small models, then group by root cause. Dispatch one subagent per partition file, using a small, inexpensive model (such as Haiku) with the prompt in the output schema reference. Do not read or filter partitions in the coordinating model. Then, as the coordinator:
ci:lockfile-drift); when present, group by it first.sessionId and createdAt citations; set missing fields to null rather than
inventing them.Return structured follow-ups. Emit follow-ups with concrete changes, evidence citations, and source session ids (see output schema and subagent prompt). Do not file issues, edit source code, or append distillation output back into source sessions — return the structured result to the caller.
Archive sessions only when asked.
archivedSessions: []).session_search({ "sessionId": "<id>" }). Call session_archive({ "sessionId": "<id>" })
only when its current lastEntryAt equals the exported lastEntryAt that the readers copied
from its session line. Otherwise skip it
and leave it out of archivedSessions. Record archivedAt for each archived session.data.repositories lists
other repositories that were not part of this sweep.Always clean up snapshot artifacts.
Call snapshot_cleanup before returning, even if zero sessions matched or an earlier step
failed:
{
"path": "<export.path>",
"directory": "<partition.directory-if-created>",
"cleanupToken": "<export.cleanupToken>"
}
Confirm { "removed": true } so no snapshot or partition files remain on disk.
When MCP is unavailable, run the identical sequence through the published CLI:
npx -y [email protected] snapshot export [filters...]npx -y [email protected] snapshot partition --path <path> --cleanup-token <token> --max-bytes <caller's maxBytes, or 262144> [--max-sessions <n>] --digest [--since <iso>] [--repository <owner/name>]npx -y [email protected] sessions get <id> and npx -y [email protected] sessions archive <id> (only when explicitly asked and lastEntryAt still matches the export)npx -y [email protected] snapshot cleanup --path <path> [--directory <dir>] --cleanup-token <token>What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub jonathanong/agent-blackboard --plugin agent-blackboard