Traversable Skill Graph for Persistent AI Agent Memory in Codebases

✍️ OpenClawRadar📅 Published: March 8, 2026🔗 Source
Traversable Skill Graph for Persistent AI Agent Memory in Codebases
Ad

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.md serves 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.
Ad

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

Ad

👀 See Also

SymDex: Open-Source MCP Code Indexer Reduces AI Agent Token Usage
Tools

SymDex: Open-Source MCP Code Indexer Reduces AI Agent Token Usage

SymDex is an open-source MCP code indexer that pre-indexes codebases to help AI coding agents find functions and classes without reading entire files, reducing token usage by approximately 97% per lookup according to the developer's benchmarks.

OpenClawRadar
Reddit discussion: Identity.md files insufficient for AI employee personality stability without proper model architecture
Tools

Reddit discussion: Identity.md files insufficient for AI employee personality stability without proper model architecture

A Reddit discussion argues that adjusting identity.md files to prevent personality bleed in AI employee teams is ineffective if the underlying model architecture only simulates role separation. The post recommends using Minimax M2.7 backend, which baked boundary awareness into base training through 100+ self-evolution cycles.

OpenClawRadar
Routerly: Self-Hosted LLM Gateway with Runtime Routing Policies and Budget Control
Tools

Routerly: Self-Hosted LLM Gateway with Runtime Routing Policies and Budget Control

Routerly is a free, open-source, self-hosted LLM gateway that provides runtime model selection based on routing policies like cheapest, fastest, or most capable, along with project-level budget limits with per-token tracking. It's OpenAI-compatible for drop-in use with tools like Cursor, LangChain, and Open WebUI.

OpenClawRadar
X-MCP 2.0: MCP Server for X/Twitter API Access from Claude
Tools

X-MCP 2.0: MCP Server for X/Twitter API Access from Claude

X-MCP 2.0 is an MCP server that connects Claude Desktop and Claude Code to the X/Twitter API v2 with OAuth 2.0 PKCE authentication, providing 10 tools for posting tweets, searching, getting timelines, liking, retweeting, replying, and viewing profiles.

OpenClawRadar