tree-ring-memory

tree-ring-memory is a skill for Claude Code from TerminallyLazy/tree-ring-memory-claude-plugin. It costs 38 tokens per session (5,627 once invoked), scanned B, a copy of tree-ring-memory, MIT.

Guidance for using Tree Ring Memory, a project memory system that keeps useful decisions, preferences, warnings, and future ideas over time.

In plain words
What is it for?
It helps capture and retrieve durable lessons, manage memory over its lifecycle, and check that the project’s memory tool is correctly available.
Why use it?
It helps an agent remember important project knowledge without treating every past conversation as permanent or storing sensitive information by default.

Skill for Claude Code

Written for Claude Code: SubagentStop hook event. Also seen: mentions AGENTS.md; mentions Codex.

Part of the tree-ring-memory plugin — 1 skill, 7 commands shipped together

Good fit It helps capture and retrieve durable lessons, manage memory over its lifecycle, and check that the project’s memory tool is correctly available.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/terminallylazy/tree-ring-memory-claude-plugin/tree-ring-memory
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 TerminallyLazy/tree-ring-memory-claude-plugin --skill tree-ring-memory
Clone the repo
git clone --depth 1 https://github.com/TerminallyLazy/tree-ring-memory-claude-plugin

Made for: Claude Code.

Or install tree-ring-memory, the plugin that ships this one along with the rest of its 1 skill, 7 commands.

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 tree-ring-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/terminallylazy/tree-ring-memory-claude-plugin/tree-ring-memory/github.svg)](https://agentmods.dev/skills/terminallylazy/tree-ring-memory-claude-plugin/tree-ring-memory)
Your own site
<a href="https://agentmods.dev/skills/terminallylazy/tree-ring-memory-claude-plugin/tree-ring-memory"><img src="https://agentmods.dev/badge/skills/terminallylazy/tree-ring-memory-claude-plugin/tree-ring-memory/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 tree-ring-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/terminallylazy/tree-ring-memory-claude-plugin/tree-ring-memory"><img src="https://agentmods.dev/badge/skills/terminallylazy/tree-ring-memory-claude-plugin/tree-ring-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,627 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% copy Near-identical to another mod 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.00038 $0.05627
Opus 5.5 $0.00015 $0.02251
Sonnet 5.5 $0.00008 $0.01125
Haiku 4.5 $0.00004 $0.00563

Measured 1mo ago against content hash 5651600c18fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

tree-ring-memory scanned grade B with 1 finding 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 1mo 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.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

# Set and export TREE_RING_COORDINATOR_TOKEN with a history-safe, no-echo prompt
Origin

This is a copy

94% identical to tree-ring-memory — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/tree-ring-memory/SKILL.md · 564 lines

How it starts

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

Tree Ring Memory

Use Tree Ring Memory as a lifecycle-aware memory layer, not as a transcript dump.

Tree Ring Memory preserves meaningful agent learning like tree rings:

  • fresh work stays detailed
  • older learning compresses into stable rings
  • important warnings remain visible as scars
  • durable truths become heartwood
  • speculative future work stays as seeds
  • sensitive data is blocked, redacted, or kept out by default

Runtime Bootstrap And Updates

Resolve the actual project root before running Tree Ring. Never initialize a plugin cache, downloaded package directory, home directory, or arbitrary working directory by accident.

  1. If <project-root>/.tree-ring/bin/tree-ring exists, prefer that binary for this project. Otherwise check command -v tree-ring and run tree-ring --version.

  2. Read existing <project-root>/.tree-ring/SKILL.md and CLI.md when present. Lifecycle hooks need CLI 0.15.6 or newer; older packages may omit automatic hooks. Current Codex packages include them, including the public upload. Use integrations status --verbose to inspect the last recall count and query class, and distinguish no receipt from zero results.

  3. This package targets Tree Ring Memory CLI 0.15.0 or newer. If no compatible CLI is available and the user's request already authorizes Tree Ring setup, install the verified current release project-locally from the project root. Otherwise explain the exact operation and obtain permission before the network download or software installation. Download the official, version-pinned v0.15.0/install.sh installer to a temporary file, verify its SHA-256 is ef0d5eb8f09cbe2e4c3abe80ee9a98a56759c89ad4ddd103d6c68314cd653ade, inspect it, and only then run:

    cd <project-root>
    sh <verified-installer-path> --project --init --release latest --no-animation
    

    Do not pipe a network response directly to a shell. The installer verifies the selected release archive against its published SHA-256 before placing the binary at <project-root>/.tree-ring/bin/tree-ring.

Read the full file on GitHub · 564 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. 1mo ago Changed · +13 lines 5651600c18fa
  2. 1mo ago Changed · +25 lines ff2421517828
  3. 1mo ago First seen · 526 lines · 38 tokens per session scan B 874f5bb44a43

Subscribe to this mod's changes

tree-ring-memory is a skill published in the GitHub repository TerminallyLazy/tree-ring-memory-claude-plugin (0 stars, last pushed 1mo ago), licensed MIT. It adds 38 tokens to every session and 5,627 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). It is 94% identical to tree-ring-memory, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

goodmem:mcp

Workflow guide for GoodMem MCP server tools. Use when an agent needs to understand what GoodMem MCP tools are available and how to use them. Parameter signatures are provided by the MCP protocol itself — do not hardcode them here.

PAIR-Systems-Inc/goodmem-claude-code-plugin · 51 tokens

goodmem:help

Overview of all available GoodMem skills and what a user needs to get started. Invoke when a user asks what GoodMem skills are available, how to get started, or what they need to set up.

PAIR-Systems-Inc/goodmem-claude-code-plugin · 46 tokens

goodmem:java

Use when the user wants to write Java code that interacts with GoodMem - creating embedders, spaces, memories, retrieval, pagination, streaming, or async workflows with the goodmem-java SDK.

PAIR-Systems-Inc/goodmem-claude-code-plugin · 45 tokens

graph-ask

Ask any natural language question about the memory graph. You generate Cypher directly and execute it. Use when the user has a complex or ad-hoc question that the standard graph tools don't cover.

stevepridemore/graph-memory · 43 tokens

goodmem:python

Use when the user wants to write Python code that interacts with GoodMem — creating embedders, spaces, memories, retrieval, managing API keys, etc. Provides the complete SDK reference for the goodmem Python package.

PAIR-Systems-Inc/goodmem-claude-code-plugin · 49 tokens

ingest-audio

Transcribe a local audio or video file using Whisper and ingest it into the memory graph. Use when the user has a local MP3, WAV, M4A, MP4, or similar audio/video file they want to add to their knowledge graph.

stevepridemore/graph-memory · 56 tokens