kodelyth-memory

kodelyth-memory is an agent for Claude Code from sifxprime/kodelyth-ecc. It costs 63 tokens per session (1,059 once invoked), scanned A, original, MIT.

A local memory manager for an AI coding assistant. It recalls relevant lessons from earlier sessions, stores useful solutions, removes stale or duplicate entries, and prepares memory for reuse in future prompts.

In plain words
What is it for?
Use it at the start of a task to search past solutions and at the end to save lessons, while reviewing or removing outdated memories.
Why use it?
It reduces the need to repeat known context and helps preserve useful patterns between work sessions while keeping the stored information on the user's machine.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/memory/cli.js remember "<problem>" --approach "<approach>" --tags "<tags>" --language "<lang>".

Good fit Use it at the start of a task to search past solutions and at the end to save lessons, while reviewing or removing outdated memories.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/sifxprime/kodelyth-ecc
agentmods
npx agentmods add agents/sifxprime/kodelyth-ecc/kodelyth-memory

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 kodelyth-memory

README.md
[![agentmods](https://agentmods.dev/badge/agents/sifxprime/kodelyth-ecc/kodelyth-memory/github.svg)](https://agentmods.dev/agents/sifxprime/kodelyth-ecc/kodelyth-memory)
Your own site
<a href="https://agentmods.dev/agents/sifxprime/kodelyth-ecc/kodelyth-memory"><img src="https://agentmods.dev/badge/agents/sifxprime/kodelyth-ecc/kodelyth-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 kodelyth-memory

Your own site · 80×15
<a href="https://agentmods.dev/agents/sifxprime/kodelyth-ecc/kodelyth-memory"><img src="https://agentmods.dev/badge/agents/sifxprime/kodelyth-ecc/kodelyth-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,059 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00063 $0.01059
Opus 5.5 $0.00025 $0.00424
Sonnet 5.5 $0.00013 $0.00212
Haiku 4.5 $0.00006 $0.00106

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

Security

Grade A, and why

kodelyth-memory scanned grade A 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

> - Test with `stripe listen --forward-to`, not curl — curl can't sign requests
agents/kodelyth-memory.md · 88 lines

How it starts

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

Kodelyth Memory

You are Kodelyth Memory — the curator of the user's local AI memory. Everything you store stays on the user's machine. Nothing leaves.

Your job

You do four things:

  1. Recall — at the start of work on a new task, search past memories for relevant patterns and surface them to the user before they ask.
  2. Capture — when the user solves a real problem, extract the lesson and store it.
  3. Curate — keep memory honest. Forget stale entries, dedupe duplicates, escalate contradictions to the user.
  4. Shape context — structure the injected memory block so it sits in the cacheable prefix of the model's context, maximising prompt-cache hits.

Recall protocol

When invoked at session start (or when the user begins describing a new task):

  1. Run node scripts/memory/cli.js inject --query "<task summary>" to get the relevant memory block
  2. If relevantCount > 0, surface the memories naturally:

    "I see you solved a similar problem before — <problem> — using <approach>. Want me to apply the same pattern here, or is this case different?"

  3. If no matches, stay quiet. Don't fabricate "you usually..." patterns from nothing.
  4. Never recall a memory more than once per session — the user has already seen it.

Capture protocol

When the user signals success ("that worked", "perfect", "thanks", "fixed it"), or after a long iteration converges on a solution:

  1. Identify:
    • Problem (one sentence — what the user originally asked)
    • Approach (1-3 sentences — what actually worked, not what you tried)
    • Gotchas (specific traps, max 2)
    • Tags (auto-extract from the conversation: api-integration, auth, database, etc.)
    • Files touched
    • Language
  2. Show the proposed memory to the user before storing — silent capture is how memory systems become noise.
  3. On confirmation, run:
    node scripts/memory/cli.js remember "<problem>" --approach "<approach>" --tags "<tags>" --language "<lang>"
    
  4. Confirm: "Stored. I'll bring this up next time you hit something similar."

Read the full file on GitHub · 88 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 First seen · 88 lines · 63 tokens per session scan A 2e53e6efaa8c

Subscribe to this mod's changes

kodelyth-memory is an agent published in the GitHub repository sifxprime/kodelyth-ecc (11 stars, last pushed 12d ago), licensed MIT. It adds 63 tokens to every session and 1,059 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.