forkmind-archivist

forkmind-archivist is a skill for Claude Code, Codex from Medhovarsh/forkmind. It costs 136 tokens per session (921 once invoked), scanned A, original, MIT.

A context-archiving tool that saves conversation material as an encrypted, branching history on disk before it is removed from the active AI context. It can later verify, restore, export, import, or permanently erase saved material.

In plain words
What is it for?
It helps archive large discussions or tool transcripts, restore all or selected parts later, move encrypted archives between machines or projects, and permanently delete an archive after explicit confirmation.
Why use it?
It prevents useful context from being lost when a conversation becomes too large. Verification and short handle lines make it possible to reduce the live context while keeping a way back to the saved material.

Skill for Claude CodeCodex

Part of the forkmind plugin — 2 skills, 1 command, 2 agents, 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/medhovarsh/forkmind/forkmind-archivist
Any agent
npx skills add Medhovarsh/forkmind --skill forkmind-archivist
Clone the repo
git clone --depth 1 https://github.com/Medhovarsh/forkmind

Made for: Claude Code, Codex.

Or install forkmind, the plugin that ships this one along with the rest of its 2 skills, 1 command, 2 agents, 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 forkmind-archivist

README.md
[![agentmods](https://agentmods.dev/badge/skills/medhovarsh/forkmind/forkmind-archivist.svg)](https://agentmods.dev/skills/medhovarsh/forkmind/forkmind-archivist)
Your own site
<a href="https://agentmods.dev/skills/medhovarsh/forkmind/forkmind-archivist"><img src="https://agentmods.dev/badge/skills/medhovarsh/forkmind/forkmind-archivist.svg" alt="Measured on agentmods" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 921 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.00136 $0.00921
Opus 5 $0.00068 $0.00461
Sonnet 5 $0.00027 $0.00184
Haiku 4.5 $0.00014 $0.00092

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

Security

Grade A, and why

forkmind-archivist 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 4d 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/forkmind-archivist/SKILL.md · 77 lines

How it starts

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

ForkMind Archivist — offload context as an encrypted DAG

Industry context managers treat a full window as a cache-eviction problem: truncate and lose it. ForkMind capsules invert that — persist first, verify, then compact. Nothing is dropped until it is provably on disk.

Core loop

Step Tool Rule
1. Save forkmind_context_save Pass items + a digest YOU write (≤5 lines, decision-relevant)
2. Verify forkmind_context_digest Re-reads from disk. Save is not real until this succeeds
3. Compact (your window) Replace archived material with one handle line
4. Probe forkmind_context_digest Later: check the digest before restoring anything
5. Restore forkmind_context_restore Full, or segmentIds for just one piece
6. Forget forkmind_context_forget Irreversible crypto-shred; explicit user ask + confirm: <id> only
7. Move forkmind_context_export / _import Portable passphrase-encrypted bundle for another machine/project

Handle line to keep in the window after compacting:

[capsule 9f3ac21b7e04 · "auth-refactor context" · restore via forkmind_context_restore]

When to offload

  • Window pressure: long session, old turns no longer active.
  • Finished sub-topics: debugging concluded, decision recorded.
  • Bulk payloads: file dumps, test logs, tool transcripts already acted on.
  • User privacy: sensitive material that should leave the window — save it without a digest (private capsule; manifest carries structure only).

Do NOT offload: the current task's active instructions, unresolved questions, or anything needed in the next few turns.

Guarantees (why this is safe)

  • Immutable + acyclic by construction — segments are content-addressed (hash over content + parents, Git-style), so capsules cannot be edited or contain cycles; forkmind context verify <id> re-proves it.
  • No plaintext at rest — AES-256-GCM per-capsule keys; the master key lives outside .forkmind/ (~/.forkmind-keys/), so a committed .forkmind/ leaks only ciphertext.
  • Crypto-shred delete — forgetting destroys the key first; backups of the ciphertext stay unreadable. Tombstones stop id resurrection.
  • Local-first — no cloud, no account, no telemetry; the underlying model and provider are never touched (this all happens in what the client sends).
  • RAID redundancy — if forkmind context replicas add <path> targets are configured, capsules mirror automatically (ciphertext only, never keys) and restore self-heals from replicas on primary loss/corruption. Check health with forkmind_context_replicas; after a forget with unreachable replicas, run a sync once they return.

Read the full file on GitHub · 77 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. 4d ago First seen · 77 lines · 136 tokens per session scan A 42d90f4cd59c

Subscribe to this mod's changes

forkmind-archivist is a skill published in the GitHub repository Medhovarsh/forkmind (3 stars, last pushed 16d ago), licensed MIT. It adds 136 tokens to every session and 921 once invoked, about $0.0007 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.

Related

Other skills, from other repositories

knowledge-base

Skill "knowledge-base" from Pinvou/pinvou-agent, covering ima knowledge base, operations, routing rules, examples and file upload guard.

Pinvou/pinvou-agent · 0 tokens

lynkr

Universal LLM gateway with intelligent routing, Graphify code intelligence, Distill compression, routing telemetry, Code Mode, and 12+ provider support. 60-80% cost reduction for Claude Code, Cursor, and Codex.

Fast-Editor/Lynkr · 50 tokens

knowledge-base

Build and maintain a company knowledge base as a wiki of interlinked markdown notes in the workspace — a private, compounding Wikipedia. Use when the user wants to start or organize a knowledge base / wiki, ingest sources (URLs, documents, pasted notes) into it, ask questions answered from it, or audit (lint) it.…

Open-Curiosity/gini-agent · 119 tokens

weknora-shared

Use when driving a WeKnora RAG server through the weknora CLI as an agent — authenticating, managing knowledge bases / documents / sessions / agents, running search or chat, or interpreting the CLI's JSON envelopes and exit codes. Read this before any other weknora- skill.

Tencent/WeKnora · 68 tokens

weknora-rag-search

Use when retrieving from or asking questions against a WeKnora knowledge base via the weknora CLI — and especially when unsure whether to use chat, session ask, or search chunks for a given goal.

Tencent/WeKnora · 54 tokens

plur-memory

Persistent learning for AI agents. Open engram format. Your agent learns from corrections, remembers across sessions, and transfers knowledge across domains.

plur-ai/plur · 31 tokens