rekal-save

rekal-save is a skill for Claude Code from janbjorge/rekal. It costs 79 tokens per session (1,183 once invoked), scanned A, original, MIT.

A skill for saving useful, lasting information from a coding session into Rekal, a session-memory system. It checks possible memories for duplicates before storing or replacing them.

In plain words
What is it for?
Use it when a task finishes, a session ends, the user says goodbye, or an important preference, decision, discovery, or bug cause emerges.
Why use it?
It helps future sessions retain decisions, conventions, procedures, and non-obvious fixes without saving temporary or trivial details.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the rekal-skills plugin — 4 skills, 4 hooks shipped together

Good fit Use it when a task finishes, a session ends, the user says goodbye, or an important preference, decision, discovery, or bug cause emerges.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/janbjorge/rekal/rekal-save
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.

Any agent
npx skills add janbjorge/rekal --skill rekal-save
Clone the repo
git clone --depth 1 https://github.com/janbjorge/rekal

Made for: Claude Code.

Or install rekal-skills, the plugin that ships this one along with the rest of its 4 skills, 4 hooks.

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 rekal-save

README.md
[![agentmods](https://agentmods.dev/badge/skills/janbjorge/rekal/rekal-save/github.svg)](https://agentmods.dev/skills/janbjorge/rekal/rekal-save)
Your own site
<a href="https://agentmods.dev/skills/janbjorge/rekal/rekal-save"><img src="https://agentmods.dev/badge/skills/janbjorge/rekal/rekal-save/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rekal-save

Your own site · 80×15
<a href="https://agentmods.dev/skills/janbjorge/rekal/rekal-save"><img src="https://agentmods.dev/badge/skills/janbjorge/rekal/rekal-save.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,183 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00079 $0.01183
Opus 5 $0.00039 $0.00592
Sonnet 5 $0.00016 $0.00237
Haiku 4.5 $0.00008 $0.00118

Measured 9d ago against content hash 7f3f6ea97745, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

rekal-save 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 9d 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.

skills/rekal-save/SKILL.md · 140 lines

How it starts

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

Save durable knowledge from this session into rekal. Goal: user never repeats themselves across sessions.

Step 1: Extract candidates

Review the conversation. Per item, apply this filter:

Would a fresh agent in a new session benefit from knowing this?
├── YES → candidate
└── NO  → skip

Candidate types:

What Example
Preference with reasoning "User prefers dataclasses over hand-written __init__ for less boilerplate"
Architecture/convention "Auth service uses JWT, lives in services/auth, 15-min token expiry"
Decision + why "Chose PostgreSQL over MySQL for JSONB support and better partial indexes"
Procedure "Deploy: 1) git tag vX.Y.Z 2) git push --tags 3) wait CI 4) merge to main"
Bug with non-obvious cause "OOM from unbounded LRU cache in parser, fixed with maxsize=1000"
Behavior correction "Never use grep/find. Use rg/fd. Strict, no exceptions."

Skip (do not store):

  • Transient state: "currently editing main.py", "tests passing now"
  • Trivially re-discoverable: "function foo is on line 42", "file has 200 lines"
  • Too vague: "user likes clean code", "project uses Python"
  • Session mechanics: "user asked me to fix a bug", "we discussed testing"
  • Secrets, API keys, passwords, tokens: never

If zero candidates survive, stop here. Do not force-store.

Step 2: Deduplicate each candidate

For EVERY candidate, before storing:

memory_build_context(query="<candidate topic in natural language>")

Read results. Apply:

Recall returned results?
├── NO match at all
│   └── Proceed to step 3 (store new)
│
├── Same topic, same info (duplicate)
│   └── SKIP. Do not store.
│
├── Same topic, new/updated info
│   └── memory_store(content="<updated content>", replaces="<matched memory id>")
│
└── Same topic, contradictory info
    └── memory_store(content="<corrected content>", replaces="<matched memory id>")
        Include what changed and why in the content.

Critical rule: Two memories about the same topic must never coexist. replaces supersedes the older memory so it stops surfacing. "User's preferred formatter" appears exactly once in the database.

Read the full file on GitHub · 140 lines

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. 9d ago First seen · 140 lines · 79 tokens per session scan A 7f3f6ea97745

Subscribe to this mod's changes

rekal-save is a skill published in the GitHub repository janbjorge/rekal (53 stars, last pushed 14d ago), licensed MIT. It adds 79 tokens to every session and 1,183 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

vault-for-llm

Connect OpenClaw to Vault Agent Memory as a local-first governed project memory layer. Search first, then bounded-read cited source ranges; propose new memories as candidates instead of writing directly into active memory.

zycaskevin/Vault-Agent-Memory · 46 tokens

hmem-write

Hmem write protocol — picks prefix (L/E/D/P/N/R/I/H…), tree location, and tags, and detects duplicates before persisting. Use before any writememory or appendmemory call (skipping it creates duplicates and misplaced entries), or when the user says 'remember this', 'save this', 'log this', or invokes /hmem-write.

Bumblebiber/hmem · 77 tokens

hmem-read

Load long-term memory from hmem via readmemory or loadproject. Use when starting fresh with no L1 summaries, after /compact, when the user asks 'what do you remember', 'continue where we left off', 'was war der letzte Stand', or about a project/topic visible in L1 summaries. Covers search, prefix filter, findrelated…

Bumblebiber/hmem · 85 tokens

hmem-config

View and change hmem memory settings, hooks, sync, and checkpoints. Use on /hmem-config, or when the user asks why context is huge, how to change auto-save, how often checkpoints fire, or how to set up sync.

Bumblebiber/hmem · 54 tokens

hmem-curate

Curate an .hmem file (your own or foreign) — mark obsolete/irrelevant, fix titles, consolidate duplicates, repair broken links. Requires the hmem-curate MCP server (skill prompts the user to enable it on entry). Use whenever the user says 'aufräumen', 'memory aufräumen', 'Speicher aufräumen', 'hmem aufräumen', 'clean…

Bumblebiber/hmem · 218 tokens

hmem-session-start

Mandatory entry point for every Cortex session — invoke at conversation start, after /clear, and after any loadproject call. All stable context (H-entries, projects, device, sync) is pre-injected by the hook — no readmemory(mode='essentials') needed. Surfaces pending git work, Next Steps + open T-tasks, and runs the…

Bumblebiber/hmem · 83 tokens