k-kolomeitsev/data-structure-protocol
FreeGraph-based memory for faster context and safer refactors
About k-kolomeitsev/data-structure-protocol
Data Structure Protocol (DSP) is an open-source, graph-based long-term memory skill for AI coding agents that provides a persistent, versionable map of a codebase — entities, dependencies, public APIs, and the reasons behind connections. Stored in a .dsp/ directory, DSP eliminates the need for agents to re-scan the entire codebase each session, reducing token usage and startup time. It supports agents like Claude Code, Cursor, and Codex, and is git-native for clean diffs and team collaboration. An honest trade-off: bootstrapping on a large project requires significant initial effort, but pays back over the project lifetime through lower per-task token consumption and more predictable agent behavior.
Key Features
Pros & Cons
- Persistent long-term memory eliminates repetitive context rebuilding across sessions
- Reduces token consumption by avoiding full-repo scans each session
- Enables faster dependency discovery and impact analysis
- Works with multiple popular AI coding agents (Claude Code, Cursor, Codex)
- Git-native and versionable facilitates team collaboration and code review
- Each connection includes a rationale ('why') for better understanding
- Open source and free to use
- Bootstrapping DSP on a large project takes real effort in time, tokens, and discipline
- Requires initial setup and ongoing maintenance of the .dsp/ graph
- Effectiveness depends on agent skill integration and consistency of use
- Graph may become stale if not updated regularly with codebase changes