record

record is a command for coding agents from rana/skills. It costs 0 tokens per session (676 once invoked), scanned A, original, MIT.

A command for saving useful conversation output in a project's session archive, with a short summary of the thread. The archive keeps important results from previous work.

In plain words
What is it for?
Use it after a substantial skill, command, analysis, or creative task to capture its result, infer archive details, and shorten very long output while keeping its key structure.
Why use it?
It prevents useful findings from being lost after a skill or analysis finishes. It also records details such as the producing command, subject, and final decision when available.

Command

Part of the y plugin — 36 skills, 14 commands, 8 agents 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 commands/rana/skills/record
Clone the repo
git clone --depth 1 https://github.com/rana/skills

Or install y, the plugin that ships this one along with the rest of its 36 skills, 14 commands, 8 agents.

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 record

README.md
[![agentmods](https://agentmods.dev/badge/commands/rana/skills/record.svg)](https://agentmods.dev/commands/rana/skills/record)
Your own site
<a href="https://agentmods.dev/commands/rana/skills/record"><img src="https://agentmods.dev/badge/commands/rana/skills/record.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 676 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 $0.00000 $0.00676
Opus 5 $0.00000 $0.00338
Sonnet 5 $0.00000 $0.00135
Haiku 4.5 $0.00000 $0.00068

Measured 3d ago against content hash 84a02d42fae9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

record 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 3d ago.

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.

commands/record.md · 63 lines

What it actually says

Save cognitive output to the project's session archive with thread distillation.

Run after any skill or command produces output worth keeping. General-purpose capture — the explicit version of what dream and codex do automatically.

$ARGUMENTS

Process

  1. Locate the output. Scan the conversation for the most recent substantial output — the last skill invocation's result, or the last analytical/creative block if no skill tag is obvious. If the argument names a specific skill or describes what to capture, use that as a hint.

  2. Infer frontmatter. From conversation context, determine:

    • skill: which skill or command produced this (compose, crucible, invoke, gaps, etc.)
    • chain: if compose, the full chain spec
    • focus: subject matter (infer from the skill's arguments or the output content)
    • threads: leave empty for now — populated in step 5
    • converged: if a converge pass ran, its final verdict

    If any field is ambiguous, make your best inference and note it.

  3. Compress if needed. If the raw output exceeds ~400 lines:

    • Preserve the full structure (section headers, key findings, verdicts)
    • Compress supporting detail (evidence lists, intermediate reasoning)
    • Keep all direct quotes and sharpest formulations verbatim
    • Mark compressed sections with [compressed]

    If under 400 lines, save verbatim.

  4. Save. Write to dream/sessions/YYYY-MM-DD-HHMMSS.md in the project root (not the skill repo). Create dream/sessions/ if it doesn't exist. Use the current timestamp. Frontmatter block at the top.

  5. Thread check. Read dream/INDEX.md if it exists. For each active thread, assess: does this session's output touch it? If yes:

    • Add the thread name to the session's threads frontmatter
    • Update the thread file: add a new evidence entry with session date and 1-3 sentence summary of what this session contributes
    • If the session sharpens the thread's core question, update the "Current Sharpest Form" section

    If the output introduces a tension not captured by any existing thread, note it but do NOT create a new thread. Threads require convergence from 2+ independent sessions. Instead, tag the session with threads: [candidate:tension-name] so a future record pass can detect convergence.

    If dream/INDEX.md doesn't exist, skip thread check and note that the project doesn't have a thread archive yet.

  6. Update INDEX.md. If any threads were updated, refresh the session count in the INDEX table. If a thread was resolved by this session's findings, move it to the Resolved section with a one-line resolution.

  7. Report. State:

    • File path saved
    • Which threads were updated (if any)
    • Any candidate threads noted (if any)
    • One sentence: what this session's output contributes that wasn't in the archive before
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. 3d ago First seen · 63 lines · 0 tokens per session scan A 84a02d42fae9

Subscribe to this mod's changes

record is a command published in the GitHub repository rana/skills (1 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 676 tokens. 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.