self-evolving-memory-graph

self-evolving-memory-graph is a skill for Claude Code, Codex from roedyrustam/vibes-plug. It costs 41 tokens per session (1,337 once invoked), scanned A, original, MIT.

A persistent memory system that records coding preferences, lessons from mistakes, and architecture decisions in project files for later conversations.

In plain words
What is it for?
Use it to save user corrections, debugging lessons, and decisions so future coding sessions can follow them.
Why use it?
It addresses the problem of an AI assistant forgetting important project context after a chat ends.

Skill for Claude CodeCodex

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 skills/roedyrustam/vibes-plug/self-evolving-memory-graph
Any agent
npx skills add roedyrustam/vibes-plug --skill self-evolving-memory-graph
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

Made for: Claude Code, Codex.

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 self-evolving-memory-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/self-evolving-memory-graph.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/self-evolving-memory-graph)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/self-evolving-memory-graph"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/self-evolving-memory-graph.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,337 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00041 $0.01337
Opus 5 $0.00020 $0.00668
Sonnet 5 $0.00008 $0.00267
Haiku 4.5 $0.00004 $0.00134

Measured yesterday against content hash fa9cfe530797, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

self-evolving-memory-graph 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 yesterday.

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/self-evolving-memory-graph/SKILL.md · 92 lines

How it starts

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

Self-Evolving Memory Graph (Episodic Memory)

English | Bahasa Indonesia


English

Orchestration & Integration

Connects and orchestrates with relevant domain skills like brainstorming, zero-to-prod-orchestrator, and project-context-mapper to ensure cohesive execution.

Description

Claude forgets everything once a chat is cleared, and its "Project Knowledge" requires manual human updating. This skill gives Antigravity the "superpower" of continuous, autonomous self-improvement. The agent actively listens for user corrections, stylistic preferences, and hard-learned debugging lessons, writing them into a persistent LEARNING_GRAPH.md (or .agents/LEARNING.md) file. The agent gets smarter and more aligned with the user over time.

Trigger Conditions

Activate this skill when:

  • The user corrects your code (e.g., "Don't use any, use unknown", or "Always use Arrow functions").
  • You just spent a long time fixing a very complex bug.
  • The user says "Remember this for the future."

Core Concepts

1. Memory Encoding

Whenever a hard lesson is learned or a strong user preference is stated, do not just say "I will remember that." You must physically write it down. Use the multi_replace_file_content or write_to_file tool to append the lesson to the memory file.

2. Memory Format (LEARNING_GRAPH.md)
# 🧠 Self-Evolving Memory Graph

## User Stylistic Preferences
- [2026-08-12] Always use `Tailwind v4 @theme` variables instead of arbitrary values like `text-[#ff0000]`.
- [2026-08-12] Prefer functional components with `const` over `function` declarations.

## Hard-Learned Lessons (Avoid these mistakes)
- [2026-08-11] Supabase RLS policies: Never use `auth.uid()` in a `FOR ALL` policy without checking role claims. It caused an infinite recursion bug in `users` table.

## Architectural Decisions
- [2026-08-10] State Management: We exclusively use `Zustand` for global state. Do not suggest Redux.

Read the full file on GitHub · 92 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. yesterday First seen · 92 lines · 41 tokens per session scan A fa9cfe530797

Subscribe to this mod's changes

self-evolving-memory-graph is a skill published in the GitHub repository roedyrustam/vibes-plug (49 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 1,337 once invoked, about $0.0002 per session on Opus 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-09-03.

Related

Other skills, from other repositories

context-engineering

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

addyosmani/agent-skills · 43 tokens

mm-handoff

Генерирует handoff.md — компактную сводку для нового чата claude.ai когда контекст текущего заполнился. Включает 15-категорийный Session Guide (вдохновлено context-mode), выжимку последних сессий, текущее состояние, открытые вопросы, и (если есть GSD) — current phase + last 3 SUMMARY.md. Use when user says "контекст…

mworldorg/markdown-memory · 164 tokens

mm-save-session

Закрывает текущую Claude Code сессию — сохраняет лог в Obsidian/Claude/Sessions/, обновляет project note, обновляет INDEX.md, перегенерирует handoff.md (для Project Knowledge claude.ai) через /mm-handoff. Если в проекте есть GSD (.planning/ или .gsd/) — также вызывает /gsd-pause-work для technical state в…

mworldorg/markdown-memory · 129 tokens

mm-clear-gate

Гейт перед /clear — read-only проверка «всё ли записано», вердикт из exit code скрипта, а не из реплики модели. Проверяет свежесть GSD-handoff в репозитории проекта, свежесть vault-файлов для Project Knowledge, состояние vault-репо, дерево проекта, запушенность, лог сессии, плюс validate.health как предупреждение. Два…

mworldorg/markdown-memory · 167 tokens

mm-setup

Онбординг/персонализация mm-системы под конкретного пользователя — спрашивает имя, чем занимается, стек, язык, путь к Obsidian vault, и записывает это в личный gitignored-оверлей config/mm-config.local.json + генерирует персональную копию claude.ai-скилла mm-web-bridge. Use when user says "/mm setup", "/mm onboard"…

mworldorg/markdown-memory · 152 tokens

mm-vault

Создаёт приватный vault-репозиторий памяти проекта в Obsidian и пушит его на GitHub для синхронизации с claude.ai Knowledge. Use when user says "создай vault", "синхронизация памяти", "memory sync", "/mm vault", "/mm-vault".

mworldorg/markdown-memory · 69 tokens