graph-x CLAUDE.md

graph-x CLAUDE.md is an instructions file for coding agents from vugarfamiloglu/graph-x. It costs 887 tokens per session, scanned A, original, MIT.

Project instructions for Graph X, a local knowledge graph that indexes files and stores their relationships in SQLite. It can expose project maps, searches, connections, and impact paths through an MCP server and graph interface.

In plain words
What is it for?
Configuring, developing, or using Graph X to scan code and documents, find links between files, search project content, and trace possible impacts of changes.
Why use it?
It helps an agent understand the project's architecture and query indexed relationships instead of repeatedly reading every file.

Instructions file

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 instructions/vugarfamiloglu/graph-x/claude-md
Clone the repo
git clone --depth 1 https://github.com/vugarfamiloglu/graph-x

Wrote 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.

agentmods badge for graph-x CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/vugarfamiloglu/graph-x/claude-md.svg)](https://agentmods.dev/instructions/vugarfamiloglu/graph-x/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/vugarfamiloglu/graph-x/claude-md"><img src="https://agentmods.dev/badge/instructions/vugarfamiloglu/graph-x/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 887 This file is loaded in full into every session.
When invoked 887 The same file — it is already loaded in full.
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.00887 $0.00887
Opus 5 $0.00443 $0.00443
Sonnet 5 $0.00177 $0.00177
Haiku 4.5 $0.00089 $0.00089

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

Security

Grade A, and why

graph-x CLAUDE.md 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 4d 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.

CLAUDE.md · 41 lines

How it starts

The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Graph X

Local knowledge graph tool for any project (formerly "bilik-qrafi"): incremental indexer + SQLite graph DB + MCP server + interactive graph UI. Zero npm dependencies (uses portable Node 24 in .tools/node/, built-in node:sqlite). Goal: cut Claude Code token usage by querying the graph instead of reading files.

Architecture

  • src/config.js — ignore rules, file classification, settings loader (graphx.config.json, see docs/CONFIGURATION.md)
  • src/scan.js — recursive walker, .gitignore support
  • src/parsers.js — regex-based import/export/link extraction (JS/TS, Python, Markdown, CSS, HTML, package.json) + import resolution
  • src/extractors.js — zero-dep PDF/DOCX text extraction (node:zlib; FlateDecode + ToUnicode CMaps, ZIP central directory)
  • src/tfidf.js — tokenizer, TF-IDF vectors, cosine similarity, semantic edge discovery
  • src/summary.js — structural summaries (Azerbaijani)
  • src/indexer.js — orchestrates scan → parse → store; hash-based incremental; rebuilds edges + semantic pairs
  • src/db.js — SQLite schema: files / edges / meta (.graph/graph.db in target project)
  • src/graph.js — query layer: project map, search, connections, impact BFS, graph JSON
  • src/mcp-server.js — hand-rolled newline-JSON-RPC stdio MCP server (7 tools)
  • src/server.js — HTTP UI server + SSE live updates + fs.watch auto-reindex (port 7341)
  • src/setup.js — attach the tool to another project (.mcp.json + CLAUDE.md + launch.json + first index; migrates legacy bilik-qrafi/galaxy-x entries)
  • src/snapshot.js — static SVG renderer (headless force layout, top-N cap for big graphs)
  • src/github.js — GitHub repo download over HTTPS (no git; zip extractor from extractors.js)
  • ui/ — canvas force-directed graph interface (vanilla JS, no libraries), dual-theme neumorphic chrome

Read the full file on GitHub · 41 lines

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. 4d ago First seen · 41 lines · 887 tokens per session scan A ed8e213a6f2b

Subscribe to this mod's changes

graph-x CLAUDE.md is an instructions file published in the GitHub repository vugarfamiloglu/graph-x (0 stars, last pushed 1mo ago), licensed MIT. It adds 887 tokens to every session, about $0.0044 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.