relationships

relationships is a command for Claude Code from jghiringhelli/codeseeker. It costs 0 tokens per session (472 once invoked), scanned A, original, Apache-2.0.

A command for examining dependencies and other connections involving a file or a code pattern.

In plain words
What is it for?
Use it to explore what a file or code pattern depends on and what depends on it.
Why use it?
It helps reveal how code elements are related, which can make it easier to understand the effect of a change.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the codeseeker plugin — 6 commands shipped together

Good fit Use it to explore what a file or code pattern depends on and what depends on it.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jghiringhelli/codeseeker/relationships
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/jghiringhelli/codeseeker

Made for: Claude Code.

Or install codeseeker, the plugin that ships this one along with the rest of its 6 commands.

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 relationships

README.md
[![agentmods](https://agentmods.dev/badge/commands/jghiringhelli/codeseeker/relationships/github.svg)](https://agentmods.dev/commands/jghiringhelli/codeseeker/relationships)
Your own site
<a href="https://agentmods.dev/commands/jghiringhelli/codeseeker/relationships"><img src="https://agentmods.dev/badge/commands/jghiringhelli/codeseeker/relationships/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 relationships

Your own site · 80×15
<a href="https://agentmods.dev/commands/jghiringhelli/codeseeker/relationships"><img src="https://agentmods.dev/badge/commands/jghiringhelli/codeseeker/relationships.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 472 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.00000 $0.00472
Opus 5.5 $0.00000 $0.00189
Sonnet 5.5 $0.00000 $0.00094
Haiku 4.5 $0.00000 $0.00047

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

Security

Grade A, and why

relationships 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 1mo 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.

plugins/codeseeker/commands/relationships.md · 51 lines

What it actually says

Explore Code Relationships

Explore dependencies and relationships for a file or code pattern.

Arguments:

  • $ARGUMENTS - File path or search query to explore relationships for

What this does:

  1. Traverses the knowledge graph built from AST-parsed imports
  2. Shows import/export chains, class hierarchies, call relationships
  3. Follows edges in either direction

Instructions for Claude:

CodeSeeker exposes a single MCP tool, mcp__codeseeker__codeseeker, routed by action.

  1. If $ARGUMENTS looks like a file path, seed the traversal with it:

    {
      "action": "graph",
      "project": "<absolute path of the project root>",
      "graph": { "seed": "$ARGUMENTS", "depth": 1, "dir": "both", "max": 50 }
    }
    
  2. If $ARGUMENTS is a search term, let CodeSeeker find the seeds semantically:

    {
      "action": "graph",
      "project": "<absolute path of the project root>",
      "graph": { "q": "$ARGUMENTS", "depth": 1 }
    }
    
  3. Useful options:

    • graph.depth: 1–3. Depth 2 finds cross-file chains but leaks scope on broad queries.
    • graph.rel: filter edge types — imports, exports, calls, extends, implements, contains, uses, depends_on
    • graph.dir: "in" (who depends on this), "out" (what this depends on), "both"
  4. To look up a single symbol rather than traverse from a file, use action: "sym":

    { "action": "sym", "project": "<root>", "sym": { "name": "UserService" } }
    
  5. Present the result as a dependency tree: what imports this, what this imports, related classes and functions.

Note on accuracy: import edges are static and reliable; call edges use regex heuristics, so dynamic dispatch, callbacks, and event handlers are not detected.

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. 1mo ago Changed · +21 lines cb5985853b2e
  2. 1mo ago First seen · 30 lines · 0 tokens per session scan A c55072714e8a

Subscribe to this mod's changes

relationships is a command published in the GitHub repository jghiringhelli/codeseeker (20 stars, last pushed 13d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 472 tokens. 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-30.