code-structure

code-structure is an agent for Claude Code from MaquinaTech/graph-indexer. It costs 129 tokens per session (588 once invoked), scanned A, original, MIT.

A repository code map that answers where functions, methods, classes, and types are connected. It uses an indexed view of the code to distinguish same-named methods and track callers, inheritance, and affected tests.

In plain words
What is it for?
It helps find call sites, trace callers across multiple levels, identify subclasses and implementations, read definitions, and check what a proposed change may affect.
Why use it?
It removes the need to search manually through a large codebase and reduces mistakes caused by matching names without understanding imports or types.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; names the NotebookEdit tool.

Part of the graph-indexer plugin — 1 agent, 3 hooks, 1 MCP server shipped together

Good fit It helps find call sites, trace callers across multiple levels, identify subclasses and implementations, read definitions, and check what a proposed change may affect.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/maquinatech/graph-indexer/code-structure
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/MaquinaTech/graph-indexer

Made for: Claude Code.

Or install graph-indexer, the plugin that ships this one along with the rest of its 1 agent, 3 hooks, 1 MCP server.

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 code-structure

README.md
[![agentmods](https://agentmods.dev/badge/agents/maquinatech/graph-indexer/code-structure/github.svg)](https://agentmods.dev/agents/maquinatech/graph-indexer/code-structure)
Your own site
<a href="https://agentmods.dev/agents/maquinatech/graph-indexer/code-structure"><img src="https://agentmods.dev/badge/agents/maquinatech/graph-indexer/code-structure/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 code-structure

Your own site · 80×15
<a href="https://agentmods.dev/agents/maquinatech/graph-indexer/code-structure"><img src="https://agentmods.dev/badge/agents/maquinatech/graph-indexer/code-structure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 129 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 588 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.00129 $0.00588
Opus 5.5 $0.00052 $0.00235
Sonnet 5.5 $0.00026 $0.00118
Haiku 4.5 $0.00013 $0.00059

Measured 12d ago against content hash 0dc0cf4b746c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-structure 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 12d 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.

integrations/claude-code/agents/code-structure.md · 23 lines

What it actually says

You answer structural questions about the code in this repository — where something is used, who calls it, what extends or implements it, what a change would affect — exactly and briefly, from graph-indexer's index (the graph-indexer tools). The index binds every reference through scopes, imports and receiver types, so methods that only share a name are kept apart, and it re-syncs with the files before every answer.

How to answer

  • Call sites or other uses of a function, method or class: find_references on it (Class.method, or path:Name when the name is ambiguous), with kind call for calls only, include_tests: false when tests are excluded and path for one directory. It says when the list is complete.
  • Callers of callers: call_graph with direction callers and the depth asked for (two levels up is depth 2), with include_tests: false when tests are excluded.
  • Classes that extend a class or implement an interface, directly or through other classes: find_references with kind inherit.
  • What a change affects (call sites to update, overrides, subclasses that inherit it, tests to run): change_impact with the symbols.
  • A definition or a signature: read_code with its name.
  • Answer from these results. Read code or search text only to settle what they report as unresolved or incomplete (a call through a name built at run time, a receiver of unknown type), not to redo a list they give as complete.
  • Keep to the scope asked: the directories, whether tests count, how many levels.

Reply

  • When the request gives an answer format, follow it exactly.
  • Otherwise one item per line as path:LINE, relative to the repository root, with a few words after it when they help (the enclosing function, the kind of use), then one line saying whether the list is complete or what could not be resolved.
  • Nothing else: no account of how you found it. You do not change files.
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. 12d ago First seen · 23 lines · 129 tokens per session scan A 0dc0cf4b746c

Subscribe to this mod's changes

code-structure is an agent published in the GitHub repository MaquinaTech/graph-indexer (11 stars, last pushed 12d ago), licensed MIT. It adds 129 tokens to every session and 588 once invoked, about $0.0005 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-09-26.

Related

Other agents, from other repositories

build-failure-analyst

Expert build-failure analyst for .NET / MSBuild repositories. Invoke when a build produced a binary log (.binlog) and you need to identify the root cause(s) of failure, group related errors, and propose concrete fixes. Queries the binlog live through the binlog-mcp MCP server (containerised — see the calling…

dotnet/skills · 108 tokens

swiftui-performance-analyzer

Use this agent when the user mentions SwiftUI performance, janky scrolling, slow animations, or view update issues — expensive bodies, formatters, whole-collection dependencies, and missing lazy containers.

CharlesWiltgen/Axiom · 45 tokens

predictive-analyst

Precognition agent. Analyzes code changes to predict impact, regressions, and conflicts BEFORE they happen. Uses dependency graphs and historical data.

softspark/ai-toolkit · 35 tokens

gentle-ai-explore

Read-only exploration and mapping for generic non-SDD work.

Gentleman-Programming/gentle-pi · 18 tokens

silent-failure-hunter

Use this agent when reviewing code changes in a pull request to identify silent failures, inadequate error handling, and inappropriate fallback behavior. Invoke it after work involving error handling, catch blocks, fallback logic, or any code that could suppress errors. See "When to invoke" in the agent body for…

nota-america/forgecat-agent-profiles · 67 tokens

code-reviewer-bug

name: code-reviewer-bug description: Specialized code reviewer for bug patterns — null safety, race conditions, resource leaks, logic and error-handling defects. Returns scored findings (severity × impact × confidence). skills: code-review model: inherit.

zxpmail/ReqForge · 0 tokens