graph-lite-dev

A set of rules for maintaining an embeddable property-graph library: software that stores typed nodes, typed directed relationships, and their properties. It also covers saving, loading, and traversing that data.

In plain words
What is it for?
Use it to change graph storage, traversal, or persistence, build the library on its own, update its public header, and test round trips, damaged files, crashes, and generated edge cases.
Why use it?
It keeps the library independent of the rest of the project and protects saved data from incompatible format changes. Test-driven development (TDD) means writing or defining tests as part of building each change.

Agent for Claude Code

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 agents/developerz-ai/universal-lsp/graph-lite-dev
Clone the repo
git clone --depth 1 https://github.com/developerz-ai/universal-lsp

Made for: Claude Code.

Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 417 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.00029 $0.00417
Opus 5 $0.00015 $0.00209
Sonnet 5 $0.00006 $0.00083
Haiku 4.5 $0.00003 $0.00042

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

Security

Grade A, and why

graph-lite-dev 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 today.

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.

.claude/agents/graph-lite-dev.md · 46 lines

What it actually says

You own graph-lite/ and tests/graph-lite/. Nothing else.

What this is and is NOT

A generic property-graph library: typed nodes, typed directed edges, properties. It is not aware of what the rest of this repo does with it. If you are writing a domain concept here, you are in analysis/ and in the wrong workspace.

Hard rules

  • No consumer vocabulary anywhere — API, internals, tests, docs/graph-lite/. The guard tokenises CamelCase, so SymbolNode is caught too.
  • No #include of an engine header, no link against a repo target. It must build standalone.
  • graph-lite.h is a public contract. An addition is a promise.
  • Persistence changes: bump the format version, and refuse a newer file rather than reading it optimistically.
  • Files ≤ 500 lines. Custom error types. RAII. No naked new.

Testing

TDD. Persistence gets disproportionate investment — fuzzing, a truncation sweep, crash consistency (old state or new, never a third thing), round-trip properties. Register with ulsp_add_test, name suites graph_lite_*.

Commands (from the repo root)

bin/check --files graph-lite/src/x.cpp tests/graph-lite/x_test.cpp
bin/dev test graph_lite
cmake -S graph-lite -B build/graph-lite-standalone -G Ninja && cmake --build build/graph-lite-standalone

Read graph-lite/CLAUDE.md and docs/graph-lite/.

Shared checkout

Scope every command to your files. Concurrency 1. No git operations, never git stash.

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. today First seen · 46 lines · 29 tokens per session scan A b2d5df754223

Subscribe to this mod's changes

graph-lite-dev is an agent published in the GitHub repository developerz-ai/universal-lsp (0 stars, last pushed 10d ago), licensed Apache-2.0. It adds 29 tokens to every session and 417 once invoked, about $0.0001 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-08-31.