capture

capture is a skill for Claude Code from anthonysuherli/br8n. It costs 90 tokens per session (1,784 once invoked), scanned A, original, MIT.

A workspace snapshot tool for br8n that saves the current repository, branch, open-file context, diff summary, and a one-line description of the current work. It also snapshots other live Claude Code sessions in the background.

In plain words
What is it for?
Capturing work before leaving, recording concurrent session state, and preparing context for a later br8n pickup.
Why use it?
It preserves enough context to resume work after switching sessions or returning later.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the br8n plugin — 11 skills, 3 hooks, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/anthonysuherli/br8n/capture
Any agent
npx skills add anthonysuherli/br8n --skill capture
Clone the repo
git clone --depth 1 https://github.com/anthonysuherli/br8n

Made for: Claude Code.

Or install br8n, the plugin that ships this one along with the rest of its 11 skills, 3 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for capture

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthonysuherli/br8n/capture.svg)](https://agentmods.dev/skills/anthonysuherli/br8n/capture)
Your own site
<a href="https://agentmods.dev/skills/anthonysuherli/br8n/capture"><img src="https://agentmods.dev/badge/skills/anthonysuherli/br8n/capture.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,784 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.01784
Opus 5 $0.00045 $0.00892
Sonnet 5 $0.00018 $0.00357
Haiku 4.5 $0.00009 $0.00178

Measured 6d ago against content hash 320eef02d67b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

capture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (live_sessions.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/capture/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

br8n — Capture

Persist a workspace snapshot so a later /br8n:pickup can replay it. The snapshot becomes a Finding in the repo+branch KB. The load-bearing field is the hypothesis — a one-line statement of current intent; it makes recovery 3–5× faster, so always try to fill it.

Capture is multi-session: it snapshots the current session inline (Steps 0–3), then in the background sweeps every other live Claude Code session and snapshots each distinct repo+branch too (Step 4). So one /br8n:capture checkpoints all your concurrent work at once, not just the window you're in.

Step 0 — Resolve target

project = git repo basename, kb = git branch (see ../_shared/preamble-first.md). No prior tap needed — capture is a pure write.

Step 1 — Gather workspace state

Collect from the environment (skip any that fail — all are optional except trigger and captured_at):

git rev-parse --show-toplevel        # project_path / repo
git branch --show-current            # branch
git diff --stat                      # git_diff_stat
  • captured_at — current ISO-8601 timestamp.
  • trigger"manual" for a user-invoked capture (other values: blur, checkout, idle, note).
  • cursor_file / cursor_line / open_files — from the user if they mention what they're editing; otherwise omit.
  • terminal_tail — last relevant command output if the user pastes it.

Step 2 — Write the hypothesis, then capture

If the user gave intent ("I'm tracking down the auth race"), use it verbatim as hypothesis. If not, infer one from the diff stat + recent conversation and confirm it in one line before saving — a wrong hypothesis is worse than none.

Also fill next_action — the single ~two-minute step future-you should do first (e.g. "rerun the failing test_auth.py", "finish the TODO in adapter.py:49"). If the user stated one, use it verbatim; otherwise infer it from the diff and conversation. Concrete and immediately startable — a command to run or a file:line to open, never a project-sized goal. Do not ask the user for it.

Read the full file on GitHub · 147 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 147 lines · 90 tokens per session scan A 320eef02d67b

Subscribe to this mod's changes

capture is a skill published in the GitHub repository anthonysuherli/br8n (1 stars, last pushed 1mo ago), licensed MIT. It adds 90 tokens to every session and 1,784 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.