hidden-dependencies

hidden-dependencies is a command for Claude Code from sigistry/marketplace. It costs 17 tokens per session (3,994 once invoked), scanned A, original, MIT.

A codebase analysis command that finds dependencies which are easy to miss, such as shared state, ordering assumptions, hidden data agreements, and configuration-based behaviour.

In plain words
What is it for?
Use it to inspect globals, caches, feature flags, environment settings, implicit contracts, and other hidden links between components.
Why use it?
It exposes connections that can make an apparently small code change break another part of the system.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the legacy-analyzer plugin — 5 commands shipped together

Good fit Use it to inspect globals, caches, feature flags, environment settings, implicit contracts, and other hidden links between components.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sigistry/marketplace/hidden-dependencies
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/sigistry/marketplace

Made for: Claude Code.

Or install legacy-analyzer, the plugin that ships this one along with the rest of its 5 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 hidden-dependencies

README.md
[![agentmods](https://agentmods.dev/badge/commands/sigistry/marketplace/hidden-dependencies.svg)](https://agentmods.dev/commands/sigistry/marketplace/hidden-dependencies)
Your own site
<a href="https://agentmods.dev/commands/sigistry/marketplace/hidden-dependencies"><img src="https://agentmods.dev/badge/commands/sigistry/marketplace/hidden-dependencies.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 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,994 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.00017 $0.03994
Opus 5 $0.00009 $0.01997
Sonnet 5 $0.00003 $0.00799
Haiku 4.5 $0.00002 $0.00399

Measured 5d ago against content hash 78d7d6cc9682, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

hidden-dependencies 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 5d 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/legacy-analyzer/commands/hidden-dependencies.md · 655 lines

How it starts

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

Hidden Dependencies Discovery Command

Uncover hidden dependencies, implicit contracts, and non-obvious couplings that aren't immediately apparent from the code structure. These are the things that make changes risky and break unexpectedly.

Objective

Identify all the non-obvious ways different parts of the codebase depend on each other, including:

  • Implicit data contracts
  • Shared global state
  • Ordering dependencies
  • Temporal coupling
  • Hidden assumptions
  • Magic values and configurations

Step 1: Global State Analysis

Find all shared mutable state:

Types of Global State

  • Global variables and singletons
  • Static class fields
  • Module-level state
  • Environment variables that affect behavior
  • Database connection pools
  • Caches and memoization
  • Feature flags

Output Format

## Global State Dependencies

### Global: [Name]
**Location**: `file_path:line_number`
**Type**: [Variable/Singleton/Cache/etc.]
**Mutability**: Read-only / Mutable

**What It Stores**: [Description of the data]

**Written By**:
- `file_path:line_number` - [Context]
- `file_path:line_number` - [Context]

**Read By**:
- `file_path:line_number` - [Usage context]
- `file_path:line_number` - [Usage context]
- [X more locations]

**Risk Assessment**:
- **Concurrency Issues**: [Thread-safety concerns]
- **Testing Difficulty**: [Hard to test because...]
- **Change Impact**: [What breaks if this changes]

**Hidden Assumptions**:
- [Assumption 1 about this state]
- [Assumption 2 about this state]

Step 2: Implicit Data Contracts

Identify places where code assumes specific data formats or structures:

Contract Types

  • Expected JSON structures
  • Database schema assumptions
  • API response formats
  • File formats
  • String encoding assumptions
  • Timezone assumptions

Output Format

## Implicit Data Contracts

### Contract: [Description]
**Location**: `file_path:line_number`

**Assumed Structure**:
```json
{
  "field1": "string",
  "nested": {
    "field2": 123
  }
}

Where It's Assumed:

  • file_path:line_number - Expects field1 to exist
  • file_path:line_number - Assumes nested.field2 is a number
  • file_path:line_number - Relies on specific order

Not Validated:

  • ✗ No null checks for nested object
  • ✗ No type validation for field2
  • ✗ No handling for missing fields

Breaking Changes Would Affect:

  • [List of dependent code locations]

Recommendation:

  • Add schema validation at: file_path:line_number
  • Define explicit TypeScript interface / JSON Schema
  • Add defensive null checks

Read the full file on GitHub · 655 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. 5d ago First seen · 655 lines · 17 tokens per session scan A 78d7d6cc9682

Subscribe to this mod's changes

hidden-dependencies is a command published in the GitHub repository sigistry/marketplace (3 stars, last pushed 4d ago), licensed MIT. It adds 17 tokens to every session and 3,994 once invoked, about $0.0001 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.