graphiti-incremental-update

graphiti-incremental-update is a skill for Claude Code, Codex from AnthonyAlcaraz/agentic-graph-rag-skills. It costs 166 tokens per session (2,073 once invoked), scanned A, original, MIT.

An incremental method for updating a knowledge graph when new content arrives. It extracts and matches only the new entities and relationships, then changes only the affected part of the graph.

In plain words
What is it for?
Use it to add episodes, documents, or records to large graphs, resolve duplicate entities, and update nearby relationships without global re-clustering.
Why use it?
It avoids reprocessing and re-indexing the entire collection every time information is added, keeping update work tied to the new content.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add episodes, documents, or records to large graphs, resolve duplicate entities, and update nearby relationships without global re-clustering.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anthonyalcaraz/agentic-graph-rag-skills/graphiti-incremental-update
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.

Any agent
npx skills add AnthonyAlcaraz/agentic-graph-rag-skills --skill graphiti-incremental-update
Clone the repo
git clone --depth 1 https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills

Made for: Claude Code, Codex.

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 graphiti-incremental-update

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthonyalcaraz/agentic-graph-rag-skills/graphiti-incremental-update/github.svg)](https://agentmods.dev/skills/anthonyalcaraz/agentic-graph-rag-skills/graphiti-incremental-update)
Your own site
<a href="https://agentmods.dev/skills/anthonyalcaraz/agentic-graph-rag-skills/graphiti-incremental-update"><img src="https://agentmods.dev/badge/skills/anthonyalcaraz/agentic-graph-rag-skills/graphiti-incremental-update/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.

agentmods 80×15 button for graphiti-incremental-update

Your own site · 80×15
<a href="https://agentmods.dev/skills/anthonyalcaraz/agentic-graph-rag-skills/graphiti-incremental-update"><img src="https://agentmods.dev/badge/skills/anthonyalcaraz/agentic-graph-rag-skills/graphiti-incremental-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,073 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00166 $0.02073
Opus 5.5 $0.00066 $0.00829
Sonnet 5.5 $0.00033 $0.00415
Haiku 4.5 $0.00017 $0.00207

Measured 2mo ago against content hash 45570473e621, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

graphiti-incremental-update 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 2mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (cli.py, lib.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/memory/graphiti-incremental-update/SKILL.md · 149 lines

How it starts

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

Graphiti Incremental-Update

Overview

A naive add-to-graph implementation re-extracts entities across the whole corpus, re-computes embeddings, and re-clusters everything every time new content arrives. At millions-of-nodes scale this is fatal: update latency grows with graph size, and the agent ends up waiting for re-indexing instead of reasoning.

Graphiti (Zep) ships a different pattern (Ch4 Example 4-8):

  1. Extract entities and relationships only from the new episode. No backfill, no full-corpus re-pass.
  2. Entity-resolve: match each extracted entity against existing graph nodes by canonical name, then alias, then fuzzy/embedding similarity. If matched, reuse the existing node id. If not, create new.
  3. Incremental-update: modify only the touched neighborhood. New edges, possibly updated node metadata, no global re-clustering.

The chapter quote: "incremental_update modifies only the impacted neighborhood: the few nodes and edges touched by the new entities and relationships. The rest of the graph stays untouched, which keeps write operations predictably fast."

The retrieval side mirrors this: instead of one big query over everything, run parallel partial queries (vector / graph walk / keyword) targeting recent / specific / textual subsets, then merge. Production-grade Reciprocal Rank Fusion lives in a sibling skill; this skill is the ingestion side.

When to Use

  • Memory graph that grows continuously (every interaction adds nodes)
  • DevOps incident streams: new alerts, new deployments, new comments arriving every few seconds
  • Customer-support agents where each ticket is an "episode" — entities (customer, product, issue type) resolve to existing nodes, new edges are added
  • Multi-agent systems where each agent contributes new content to a shared graph and no agent should block on full-graph re-processing

Phrases: "incremental update", "don't re-process the whole graph", "entity resolution", "deduplicate against existing nodes", "Graphiti pattern", "add an episode".

Read the full file on GitHub · 149 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 149 lines · 166 tokens per session scan A 45570473e621

Subscribe to this mod's changes

graphiti-incremental-update is a skill published in the GitHub repository AnthonyAlcaraz/agentic-graph-rag-skills (28 stars, last pushed 3mo ago), licensed MIT. It adds 166 tokens to every session and 2,073 once invoked, about $0.0007 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-31.

Related

graphiti-incremental-update compared with skills from other repositories

graphiti-incremental-update next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
graphiti-incremental-updateAnthonyAlcaraz/agentic-graph-rag-skillsSkill283mo agoMITA166Claude Code, Codex
librarymocaOS/cortex-appSkill711d agoApache-2.0A39Claude Code, Codex
agent-v3-memory-specialistruvnet/rufloSkill81kyesterdayMITA25Claude Code
graphifyGraphify-Labs/graphifySkill143kyesterdayApache-2.0B76Claude Code, Codex
memmachine-memoryMemMachine/MemMachineSkill3.1kyesterdayApache-2.0A96Codex
mem0-integrationa5c-ai/babysitterSkill1.9k5d agoMITA27Claude Code
vector-memorya5c-ai/babysitterSkill1.9k5d agoMITA31Claude Code