rdr

rdr is a skill for Claude Code from tonydzi/charm-os. It costs 73 tokens per session (590 once invoked), scanned A, original, Apache-2.0.

A local command-line workflow that recalls past coding-agent sessions, creates research prompts for unanswered parts, and makes decision-memo files. It stores session history in a local SQLite database, a small file-based database.

In plain words
What is it for?
Use it before strategic or hard-to-reverse choices, to check what was already decided, focus new research on gaps, and draft a decision memo.
Why use it?
It helps avoid repeating research or losing decisions made in earlier sessions.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the charm-os plugin — 2 skills, 1 hook shipped together

Good fit Use it before strategic or hard-to-reverse choices, to check what was already decided, focus new research on gaps, and draft a decision memo.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add tonydzi/charm-os
Claude Code
/plugin install charm-os

Made for: Claude Code.

Or install charm-os, the plugin that ships this one along with the rest of its 2 skills, 1 hook.

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 rdr

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonydzi/charm-os/rdr/github.svg)](https://agentmods.dev/skills/tonydzi/charm-os/rdr)
Your own site
<a href="https://agentmods.dev/skills/tonydzi/charm-os/rdr"><img src="https://agentmods.dev/badge/skills/tonydzi/charm-os/rdr/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 rdr

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonydzi/charm-os/rdr"><img src="https://agentmods.dev/badge/skills/tonydzi/charm-os/rdr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 590 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.00073 $0.00590
Opus 5.5 $0.00029 $0.00236
Sonnet 5.5 $0.00015 $0.00118
Haiku 4.5 $0.00007 $0.00059

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

Security

Grade A, and why

rdr 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/rdr/SKILL.md · 62 lines

What it actually says

RDR: recall, research, decide

RDR is a three-step loop backed by modules/rdr/rdr.py (Python 3 standard library only). It reads the TurnState SQLite ledger that this plugin's Stop hook fills, so recall works on past sessions.

Run the script with the plugin root that Claude Code provides:

RDR="${CLAUDE_PLUGIN_ROOT}/modules/rdr/rdr.py"

Steps, in order

  1. Recall. See what past sessions already said about the question.

    python3 "$RDR" recall "<question>"
    

    Read the hits before doing anything else. If they already answer the question, say so and stop.

  2. Research. Print a deep-research prompt with the recall hits injected as context, so the research covers only the gaps.

    python3 "$RDR" research "<question>"
    

    This only prints text. Give it to the user, or run it in a research tool only if the user asks.

  3. Memo. Create a decision memo scaffold to fill with recall, research, options, risks and the decision.

    python3 "$RDR" memo "<topic>"
    

    It writes a new file under CHARMOS_MEMO_DIR (default ./decisions) and never overwrites an existing memo. Tell the user the path it printed.

Configuration (environment variables, optional)

variable default meaning
CHARMOS_TURNSTATE_DB ~/.charmos/turnstate/turnstate.db ledger to recall from
CHARMOS_NOTES_DIR unset extra folder of .md/.txt notes searched by recall
CHARMOS_MEMO_DIR ./decisions where memo writes

Notes

  • Recall is whole-word term overlap, not semantic search. Try a second phrasing before concluding that nothing was recorded.
  • An empty ledger usually means the Stop hook has not run yet, or the ledger lives at a different CHARMOS_TURNSTATE_DB path. Say which one you checked.
  • recall reads every .md/.txt file under CHARMOS_NOTES_DIR recursively; point it only at a folder the user intends.
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 · 62 lines · 73 tokens per session scan A 0abdc5874978

Subscribe to this mod's changes

rdr is a skill published in the GitHub repository tonydzi/charm-os (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 73 tokens to every session and 590 once invoked, about $0.0003 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-11-21.

Related

rdr compared with skills from other repositories

rdr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rdrtonydzi/charm-osSkill62d agoApache-2.0A73Claude Code
screenpipe-apitonydzi/second-brain-starter-kitSkill163d agoMITA68Claude Code
follower-onboardtonydzi/second-brain-starter-kitSkill163d agoMITA79Claude Code
brain-onboardtonydzi/second-brain-starter-kitSkill163d agoMITA121Claude Code
memory-tidytonydzi/second-brain-starter-kitSkill163d agoMITA78Claude Code
claudeai-synctonydzi/second-brain-starter-kitSkill163d agoMITA74Claude Code
five-hardtonydzi/second-brain-starter-kitSkill163d agoMITA59Claude Code