kodelyth-memory

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

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.

agentmods
npx agentmods add agents/sifxprime/kodelyth-ecc/kodelyth-memory
Clone the repo
git clone --depth 1 https://github.com/sifxprime/kodelyth-ecc
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. Scan, not verified.
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 $0.00063 $0.01059
Opus 5 $0.00032 $0.00530
Sonnet 5 $0.00013 $0.00212
Haiku 4.5 $0.00006 $0.00106

Measured 2d ago against content hash 2e53e6efaa8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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. 2d 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 11d ago), licensed MIT. It adds 63 tokens to every session and 1,059 once invoked, about $0.0003 per session on Opus 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.

Related

Other agents, from other repositories

security-auditor

Security engineer focused on vulnerability detection, threat modeling, and secure coding practices. Use for security-focused code review, threat analysis, or hardening recommendations.

addyosmani/agent-skills · 35 tokens

docs-impact

Reviews documentation affected by code changes. Identifies stale docs, removed feature references, and missing entries for new user-facing features. Reports findings with specific fixes. Advisory only - does not modify files.

coleam00/Archon · 42 tokens

scout

MUST be used for exploratory codebase research, rapid code analysis, and broad pattern searches. Fast read-only scout returning compressed context for handoff.

can1357/oh-my-pi · 33 tokens

codemap

Defines agent personalities (Orchestrator, Explorer, Librarian, etc.) and manages their configuration lifecycle. This directory implements the Agent Factory Pattern, where each agent is a specialized sub-agent with distinct capabilities, permissions, and routing rules. The Orchestrator agent (src/agents/index.ts)…

alvinunreal/oh-my-opencode-slim · 0 tokens

hatch3r-testability

Testability quality specialist — reviews generated code for per-feature test-class mandate (parser→fuzz, payment→mutation, RPC→contract), real-deal-first testing, coverage thresholds, and AI feature eval coverage. Use when test plans or test code are authored or modified.

hatch3r/hatch3r · 55 tokens

git-detective

Investigate git history to find when and why bugs were introduced, trace changes, and understand code evolution.

helderberto/agent-skills · 26 tokens