persist

persist is a skill for Claude Code from kimgoetzke/coding-agent-configs. It costs 45 tokens per session (1,118 once invoked), scanned A, original, MIT.

A skill for saving research, analysis, or other important results to disk so they remain available after the agent's conversation memory is cleared.

In plain words
What is it for?
Persisting investigation results, summaries, compliance research, comparisons, and other work that does not yet involve changing the code.
Why use it?
It prevents useful findings from being lost when a task is long or the conversation reaches its context limit.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Persisting investigation results, summaries, compliance research, comparisons, and other work that does not yet involve changing the code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kimgoetzke/coding-agent-configs/persist
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 kimgoetzke/coding-agent-configs --skill persist
Clone the repo
git clone --depth 1 https://github.com/kimgoetzke/coding-agent-configs

Made for: Claude Code.

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 persist

README.md
[![agentmods](https://agentmods.dev/badge/skills/kimgoetzke/coding-agent-configs/persist/github.svg)](https://agentmods.dev/skills/kimgoetzke/coding-agent-configs/persist)
Your own site
<a href="https://agentmods.dev/skills/kimgoetzke/coding-agent-configs/persist"><img src="https://agentmods.dev/badge/skills/kimgoetzke/coding-agent-configs/persist/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 persist

Your own site · 80×15
<a href="https://agentmods.dev/skills/kimgoetzke/coding-agent-configs/persist"><img src="https://agentmods.dev/badge/skills/kimgoetzke/coding-agent-configs/persist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,118 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.
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.00045 $0.01118
Opus 5.5 $0.00018 $0.00447
Sonnet 5.5 $0.00009 $0.00224
Haiku 4.5 $0.00005 $0.00112

Measured 2d ago against content hash 220921bea1c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

persist 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 2d 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/persist/SKILL.md · 93 lines

How it starts

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

Core idea

  • Context window = RAM (volatile, limited)
  • Anything important gets persisted.

Persistence

A persistence implementation decides where and how output is stored. This skill writes to one of two skill groups, decided in Step 3:

Output Skill group Implementation file
Research documents research ./persistence/{implementation}.md
Documents inside an existing plan plans ../planning/persistence/{implementation}.md

Once Step 3 has picked the group, find the setting, replacing {group} with research or plans:

R="$(git rev-parse --show-toplevel 2>/dev/null)/.ai/config.properties"; { cat "$R" ~/.ai/config.properties | grep '^persistence\.{group}[[:space:]]*=[[:space:]]*[^[:space:]]'; cat "$R" ~/.ai/config.properties | grep '^persistence[[:space:]]*=[[:space:]]*[^[:space:]]'; } 2>/dev/null | head -1 | tr -d ' \t\r'
  • No output: use local-ai-folder-markdown, the default for both skill groups
  • persistence.{group}={value} or persistence={value}: use {value}. If the group's implementation file does not exist for {value}, tell the user the {group} skill group has no {value} implementation and use local-ai-folder-markdown

Read only that group's implementation file, and follow it whenever this skill creates or updates a document.

Workflow

Step 1: Determine task type

Before doing any work, determine whether the user's request is primarily about understanding or documenting existing code in the current repository.

  • If yes → invoke the research-codebase skill instead. Do not continue with this skill.
    • Examples: "how does the auth flow work?", "document the payment service", "explain the middleware chain", "what classes handle X?"
  • If no → continue with Step 2.
    • Examples: no argument or "analyse this RFC", "summarise the compliance requirements", "investigate options for a new library", "compare approaches for X"

Read the full file on GitHub · 93 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. 2d ago Changed · +16 lines · -2 tokens per session 220921bea1c1
  2. 1mo ago First seen · 77 lines · 47 tokens per session scan A bc26d1fc0416

Subscribe to this mod's changes

persist is a skill published in the GitHub repository kimgoetzke/coding-agent-configs (2 stars, last pushed 3d ago), licensed MIT. It adds 45 tokens to every session and 1,118 once invoked, about $0.0002 per session on Opus 5.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

codebase-memory

Use the codebase knowledge graph for structural code queries. Triggers on: explore the codebase, understand the architecture, what functions exist, show me the structure, who calls this function, what does X call, trace the call chain, find callers of, show dependencies, impact analysis, dead code, unused functions…

narumiruna/pi-extensions · 98 tokens

accordion-context-folding

Read this skill if you see {# FOLDED} markers in your context (e.g. {#3f9a2c FOLDED}), or if earlier parts of your context look summarized. Accordion is a desktop tool that may compact older context blocks to keep you under a token budget. The unfold tool restores a folded block (open from your next turn); the recall…

a-Fig/Accordion · 102 tokens

accordion-context-recall

Read this skill when you need to read the full content of a folded context block RIGHT NOW as a tool result — without opening it in your standing context. Use recall(codes) when you only need a value once and do not want to permanently restore the block. Accordion may fold older parts of your context to keep token…

a-Fig/Accordion · 89 tokens

memory-compounding

Review and sharpen persistent memory so it compounds instead of accumulating. Use when pruning pi-hermes-memory entries, doing monthly memory hygiene, or when the same lesson has been recorded multiple times.

romiluz13/auto-pi · 41 tokens

session-search

Search and verify Joel's Pi, Claude, Codex, Cursor, Grok, and OpenCode session history. Use when asked to recover prior context, find exact transcript evidence, inspect session receipts, continue old work, or verify capture health. Prefer flowing recall before raw transcript search when the question is about prior…

joelhooks/pi-tools · 70 tokens

session-capture

Historical pointer for the retired Codex-to-Central capture plugin. Use only to inspect legacy state during migration; current capture belongs to the joelclaw flowing-memory host adapter.

joelhooks/pi-tools · 40 tokens