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.
git clone --depth 1 https://github.com/k-kolomeitsev/data-structure-protocolWrote 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.
[](https://agentmods.dev/rules/k-kolomeitsev/data-structure-protocol/dsp-core)<a href="https://agentmods.dev/rules/k-kolomeitsev/data-structure-protocol/dsp-core"><img src="https://agentmods.dev/badge/rules/k-kolomeitsev/data-structure-protocol/dsp-core/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/k-kolomeitsev/data-structure-protocol/dsp-core"><img src="https://agentmods.dev/badge/rules/k-kolomeitsev/data-structure-protocol/dsp-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00504 | $0.00504 |
| Opus 5.5 | $0.00202 | $0.00202 |
| Sonnet 5.5 | $0.00101 | $0.00101 |
| Haiku 4.5 | $0.00050 | $0.00050 |
Grade A, and why
dsp-core 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 3mo 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.
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.
What it actually says
Data Structure Protocol — Core Rules
This project uses DSP (Data Structure Protocol) — a graph-based structural memory stored in .dsp/.
dsp-cli is shorthand for python <skill-path>/scripts/dsp-cli.py --root .. Arguments are positional — quote multi-word values.
Before Modifying Code
- Run
dsp-cli read-tocto see the project structure overview - Run
dsp-cli find-by-source <file-path>to check if the file you're about to change is tracked - If tracked, run
dsp-cli get-entity <uid>to understand its purpose, imports, and shared exports - Run
dsp-cli get-parents <uid>to see what depends on this entity — avoid breaking consumers
After Creating New Files
- Register modules/classes:
dsp-cli create-object <path> "<description>" - Register functions:
dsp-cli create-function "<path>#<symbol>" "<description>" --owner <parent-uid> - Record dependencies:
dsp-cli add-import <uid> <target-uid> "<reason>" - Expose public APIs:
dsp-cli create-shared <uid> <shared-entity-uid>— the shared argument is the UID of an existing entity (create it first), not an export name
After Deleting or Moving Files
- For deleted files:
dsp-cli remove-entity <uid> - For moved files:
dsp-cli move-entity <uid> <new-path> - For modules migrated between subprojects/roots:
dsp-cli move-to-toc <uid> --from <TOC> --to <TOC>(<TOC>= root UID ordefault) - Verify nothing is left dangling:
dsp-cli get-orphans
Quick Lookup Commands
dsp-cli search "<query>"— find entities by keyworddsp-cli get-children <uid>— dependency tree downwarddsp-cli get-recipients <uid>— find consumers of this entitydsp-cli get-stats— project-wide graph statisticsdsp-cli detect-cycles— find circular dependencies
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.
- 3mo ago First seen · 41 lines · 504 tokens per session scan A 32f8d6466bbe
dsp-core is a cursor rule published in the GitHub repository k-kolomeitsev/data-structure-protocol (67 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 504 tokens to every session, about $0.0020 per session on Opus 5.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-08-30.
dsp-core compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dsp-corek-kolomeitsev/data-structure-protocol | Cursor rule | 67 | 3mo ago | Apache-2.0 | A | 504 | Cursor |
| agent-working-memoryDesko77/cursor-1c-skills | Cursor rule | 78 | 7d ago | MIT | A | 22 | Cursor |
| swamr-obsidian-brainVedthakar/swamr | Cursor rule | 17 | 1mo ago | MIT | A | 62 | Cursor |
| mempalace-recall-alwaysMemPalace/mempalace | Cursor rule | 61k | today | MIT | A | 260 | Cursor |
| 1c-extension-specificsDesko77/cursor-1c-skills | Cursor rule | 78 | 7d ago | MIT | A | 0 | Cursor |
| common_memory_bankshalomeir/common-memory-bank | Cursor rule | 30 | 7mo ago | Unlicense | A | 1,801 | Cursor |
| self-improving-obsidian-llm-wikiBahgs/Self-Improving-Obsidian-LLM-Wiki | Cursor rule | 32 | 6mo ago | MIT | A | 146 | Cursor |