Traversable Skill Graph for Persistent AI Agent Memory in Codebases

A Practical Solution to Stateless AI Assistants
AI coding assistants lack persistent memory between sessions, forcing developers to start from zero each time. The common approach of dumping everything into large rules files like .cursorrules fails due to token limits and dilution of instructions.
The solution presented is progressive disclosure through a traversable skill graph that lives inside the codebase. The AI navigates this graph autonomously across sessions.
Three-Layer Architecture
The system has three distinct layers:
- Layer 1 (Always Loaded): Under 150 lines (300 tokens). Contains stack identity, folder conventions, and non-negotiables. Includes one outbound pointer to
HANDOVER.md. - Layer 2 (Loaded Per Session):
HANDOVER.mdserves as an attention router, not a document. It tells the AI which domain file to load based on current task (payments, auth, database, api-routes). Each domain file ends with instructions pointing to the next relevant file, creating a self-directing system. - Layer 3 (Loaded Per Task): Prompt library with 12 categories. Each entry includes context, build, verify, and debug sections. The AI checks the index, loads the category, and follows the pattern.
Core Insight: Self-Directing Instructions
The key innovation is that instructions carry meaning, not just references. For example: "load security/threat-modeling.md before modifying webhook handlers" tells the AI when and why, not just what.
The developer has built this into a SaaS template that ships with the codebase, available at launchx.page for those wanting to examine the full graph structure.
📖 Read the full source: r/LocalLLaMA
👀 See Also
Why Coding Agents Prefer Grep Over LSP for Most Tasks
A study shows coding agents pick grep over LSP-backed tools 94-100% of the time on simple tasks, but switch when completeness matters. Forcing semantic paths can hurt success.

CodeLedger and Vibecop Updates for Multi-Agent AI Coding Cost and Quality Tracking
CodeLedger now tracks spending across Claude Code, Codex CLI, Cline, and Gemini CLI by reading local session files, while Vibecop adds automated quality checks with new LLM-specific detectors and a one-command setup for multiple AI coding tools.

memora: Version-Controlled, Typed Memory for AI Agents – Git for AI Beliefs
memora is a CLI tool written in Rust that version-controls AI agent memory with typed, provenance-tracked, branchable, and mergeable capabilities.

HTML Artifacts Replace Google Docs for Technical Docs, but Lack Commenting
Claude-generated HTML artifacts are replacing Google Docs for long-form technical content like spike readouts and architecture notes, but the sandboxed iframe nature prevents inline commenting and review features.