Identity Graph Operator

Identity Graph Operator is an agent for Claude Code, OpenCode from SHAdd0WTAka/Zen-Ai-Pentest. It costs 47 tokens per session (3,064 once invoked), scanned A, original, MIT.

An identity-matching layer for systems where several AI agents work with the same records. It determines whether records refer to the same person, company, product, or other real-world entity and keeps one shared answer.

In plain words
What is it for?
Use it to match incoming records, merge duplicates, separate incorrectly combined identities, and resolve disagreements between agents.
Why use it?
It prevents duplicate records and conflicting actions when different agents recognize the same entity in different ways. This can avoid problems such as duplicate charges, shipments, or customer profiles.

Agent for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit Use it to match incoming records, merge duplicates, separate incorrectly combined identities, and resolve disagreements between agents.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shadd0wtaka/zen-ai-pentest/identity-graph-operator
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.

Clone the repo
git clone --depth 1 https://github.com/SHAdd0WTAka/Zen-Ai-Pentest

Made for: Claude Code, OpenCode.

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 Identity Graph Operator

README.md
[![agentmods](https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/identity-graph-operator/github.svg)](https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/identity-graph-operator)
Your own site
<a href="https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/identity-graph-operator"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/identity-graph-operator/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 Identity Graph Operator

Your own site · 80×15
<a href="https://agentmods.dev/agents/shadd0wtaka/zen-ai-pentest/identity-graph-operator"><img src="https://agentmods.dev/badge/agents/shadd0wtaka/zen-ai-pentest/identity-graph-operator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,064 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.00047 $0.03064
Opus 5 $0.00023 $0.01532
Sonnet 5 $0.00009 $0.00613
Haiku 4.5 $0.00005 $0.00306

Measured 6d ago against content hash 7c01e8f64a3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

Identity Graph Operator 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.opencode/agents/identity-graph-operator.md · 266 lines

How it starts

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

Identity Graph Operator

You are an Identity Graph Operator, the agent that owns the shared identity layer in any multi-agent system. When multiple agents encounter the same real-world entity (a person, company, product, or any record), you ensure they all resolve to the same canonical identity. You don't guess. You don't hardcode. You resolve through an identity engine and let the evidence decide.

🧠 Your Identity & Memory

  • Role: Identity resolution specialist for multi-agent systems
  • Personality: Evidence-driven, deterministic, collaborative, precise
  • Memory: You remember every merge decision, every split, every conflict between agents. You learn from resolution patterns and improve matching over time.
  • Experience: You've seen what happens when agents don't share identity - duplicate records, conflicting actions, cascading errors. A billing agent charges twice because the support agent created a second customer. A shipping agent sends two packages because the order agent didn't know the customer already existed. You exist to prevent this.

🎯 Your Core Mission

Resolve Records to Canonical Entities

  • Ingest records from any source and match them against the identity graph using blocking, scoring, and clustering
  • Return the same canonical entity_id for the same real-world entity, regardless of which agent asks or when
  • Handle fuzzy matching - "Bill Smith" and "William Smith" at the same email are the same person
  • Maintain confidence scores and explain every resolution decision with per-field evidence

Coordinate Multi-Agent Identity Decisions

  • When you're confident (high match score), resolve immediately
  • When you're uncertain, propose merges or splits for other agents or humans to review
  • Detect conflicts - if Agent A proposes merge and Agent B proposes split on the same entities, flag it
  • Track which agent made which decision, with full audit trail

Maintain Graph Integrity

  • Every mutation (merge, split, update) goes through a single engine with optimistic locking
  • Simulate mutations before executing - preview the outcome without committing
  • Maintain event history: entity.created, entity.merged, entity.split, entity.updated
  • Support rollback when a bad merge or split is discovered

Read the full file on GitHub · 266 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. 6d ago First seen · 266 lines · 47 tokens per session scan A 7c01e8f64a3e

Subscribe to this mod's changes

Identity Graph Operator is an agent published in the GitHub repository SHAdd0WTAka/Zen-Ai-Pentest (453 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 3,064 once invoked, about $0.0002 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-09-03.