Agent Skills: Tree Ring Memory

Guides AI agents in using Tree Ring Memory for durable recall, project decisions, user preferences, warnings, future seeds, privacy-safe memory capture, and lifecycle-aware forgetting.

UncategorizedID: TerminallyLazy/Tree-Ring-Memory/tree-ring-memory

Install this agent skill to your local

pnpm dlx add-skill https://github.com/TerminallyLazy/Tree-Ring-Memory/tree/HEAD/skills/tree-ring-memory

Skill Files

Browse the full folder contents for tree-ring-memory.

Download Skill

Loading file tree…

skills/tree-ring-memory/SKILL.md

Skill Metadata

Name
tree-ring-memory
Description
Guides AI agents in using Tree Ring Memory for durable recall, project decisions, user preferences, warnings, future seeds, privacy-safe memory capture, and lifecycle-aware forgetting.

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

When To Recall

Recall memory before:

  • starting or resuming a project
  • changing architecture, storage, security, privacy, or release behavior
  • repeating a workflow where prior failures may matter
  • responding to a user correction
  • making a decision that depends on previous preferences or constraints
  • editing files in a repo that has a Tree Ring Memory or AGENTS.md contract
  • closing out meaningful work and deciding what should be remembered

Use narrow queries with project scope when possible. Prefer source-linked, high-confidence, non-superseded results.

When To Remember

Store a memory when the information is likely to help future work:

  • the user states a durable preference
  • the user corrects the agent
  • a decision is made and should survive the current session
  • an implementation lesson is validated by tests or production behavior
  • a failed approach should not be repeated
  • a security, privacy, release, or data-loss warning appears
  • a useful project convention is discovered
  • a future idea should be revisited later

Keep memory concise. Store the lesson, decision, or warning, not the full conversation.

Use tree-ring evidence instead of plain remember when the lesson comes from an evaluation, checkpoint, experiment, branch, incident, or reviewed run artifact.

Use source adapters when project artifacts already contain structured guidance or evaluated outcomes:

tree-ring dox sync --source-root . --dry-run
tree-ring revolve sync --source-root revolve --dry-run
tree-ring integrations scan --source-root .

Run adapter commands with --dry-run first. Sync only concise, source-linked summaries; never treat imported memory as more authoritative than the source AGENTS.md, Revolve record, evaluation, PR, issue, or test artifact.

Use the exact CLI commands exposed by the local install:

tree-ring --help
tree-ring dox sync --help
tree-ring revolve sync --help
tree-ring evidence --help

If the project was initialized with a project-local binary, prefer the generated .tree-ring/CLI.md reference and include --root .tree-ring when needed.

If this skill was loaded through a harness-native bridge file, treat that bridge as a pointer only. Read the project-local .tree-ring/SKILL.md and .tree-ring/CLI.md when present so commands match the installed project root. Do not assume a global Tree Ring setup applies to the current repo unless the user explicitly configured it.

Evidence outcome mapping:

  • promoted: durable heartwood from supported evidence
  • rejected: scar for reusable failed or rolled-back approaches
  • deferred: seed for promising unresolved options
  • observed: outer-ring evaluation result

Ring Selection

Use these rings:

  • cambium: active or recent task context
  • outer: recent decisions and task lessons
  • inner: older compressed project knowledge
  • heartwood: durable, high-confidence truths and user preferences
  • scar: important negative memory, failures, regressions, rejected approaches, and warnings
  • seed: unresolved ideas, hypotheses, follow-ups, and future work

Do not promote to heartwood from weak evidence. Prefer outer or seed unless the user confirms durability or the evidence is strong.

Event Types

Prefer specific event types:

  • user_preference
  • decision
  • lesson
  • warning
  • correction
  • file_change
  • tool_result
  • summary
  • hypothesis

If a host integration has stricter event type names, use the closest local equivalent.

What Not To Store

Do not store:

  • secrets
  • credentials
  • tokens
  • private keys
  • raw chain-of-thought
  • temporary scratchpad notes
  • unverified claims as durable truth
  • private health, financial, legal, or personal identifier details without explicit user instruction
  • copyrighted source text beyond short allowed snippets

If a useful memory contains sensitive material, store a redacted summary with enough context to be useful.

Source And Scope

Set project and scope deliberately:

  • use project scope for repo-specific rules, decisions, warnings, and lessons
  • use agent scope for agent-profile behavior
  • use global scope only for durable user preferences or cross-project guidance
  • include source references such as file paths, issue ids, PR ids, run ids, or docs paths
  • use tree-ring evidence ... --evidence-ref <ref> for evaluated outcomes
  • use tree-ring dox sync for concise AGENTS.md summaries
  • use tree-ring revolve sync for promoted, rejected, deferred, or observed evaluation records
  • use tree-ring integrations scan before configuring a new agent harness

Memory does not replace source documents. If a repo has AGENTS.md, project docs, tests, architectural records, or host-specific instruction files, read those sources directly and treat them as authoritative.

When DOX or Revolve source records change, re-run the matching sync adapter with --dry-run, inspect the generated memories, then run the write command only when the summaries are useful and source-linked.

Agent-Mediated Updates

Tree Ring Memory does not autonomously scrape chats or write durable memory in the background. The active agent is responsible for deciding when a Tree Ring command is warranted, then calling the CLI deliberately.

Use bridge files only to discover Tree Ring and its command reference:

  • project-level bridges should point to .tree-ring/SKILL.md and .tree-ring/CLI.md
  • global bridges should be treated as opt-in user configuration
  • TUI event-stream pulses are display signals, not durable memories

Before writing memory, verify the lesson is durable, useful, privacy-safe, and grounded in user instruction or source evidence.

Forgetting And Correction

If memory is wrong, private, stale, or superseded:

  • redact it when the durable shape is useful but details are unsafe
  • delete it when it should not be retained
  • supersede it when a newer decision replaces it
  • prefer explicit reasons for every forget operation

Never keep known-wrong memory merely because it was previously recalled.

Closeout Habit

At the end of meaningful work, ask:

  • What did we decide?
  • What did we learn?
  • What should future agents avoid repeating?
  • Did the user state a durable preference?
  • Is there a future seed worth revisiting?
  • Is any memory sensitive and better left unstored?

Only remember the answers that will materially improve future work.