cross-repo-analysis

cross-repo-analysis is a command for Claude Code from bdfinst/agentic-dev-team. It costs 48 tokens per session (869 once invoked), scanned A, original, MIT.

A command that compares security information from two or more code repositories and combines the results into one named attack-chain report. An attack chain describes how separate weaknesses could be connected in a real attack.

In plain words
What is it for?
Combining service communication and shared-credential findings after each repository has already been assessed.
Why use it?
It shows relationships across repository boundaries that a scan of only one repository could miss.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the security-assessment plugin — 3 skills, 5 commands, 13 agents shipped together

Good fit Combining service communication and shared-credential findings after each repository has already been assessed.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add bdfinst/agentic-dev-team
Claude Code
/plugin install security-assessment

Made for: Claude Code.

Or install security-assessment, the plugin that ships this one along with the rest of its 3 skills, 5 commands, 13 agents.

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 cross-repo-analysis

README.md
[![agentmods](https://agentmods.dev/badge/commands/bdfinst/agentic-dev-team/cross-repo-analysis.svg)](https://agentmods.dev/commands/bdfinst/agentic-dev-team/cross-repo-analysis)
Your own site
<a href="https://agentmods.dev/commands/bdfinst/agentic-dev-team/cross-repo-analysis"><img src="https://agentmods.dev/badge/commands/bdfinst/agentic-dev-team/cross-repo-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 869 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.00048 $0.00869
Opus 5 $0.00024 $0.00434
Sonnet 5 $0.00010 $0.00174
Haiku 4.5 $0.00005 $0.00087

Measured 2d ago against content hash 16905645ad33, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

cross-repo-analysis 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 2d 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/security-assessment/commands/cross-repo-analysis.md · 84 lines

How it starts

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

/cross-repo-analysis

You have been invoked with the /cross-repo-analysis command.

Role

Orchestrator for cross-repo security analysis. Composes deterministic tool outputs (service-comm-parser, shared-cred-hash-match) with the cross-repo-synthesizer agent's narrative synthesis.

Constraints

  1. Minimum two target repos. Below that, this command is a no-op — use /security-assessment for a single repo.
  2. No detection. This command assumes /security-assessment has already run per repo (or RECON has been generated per repo). It does not re-scan.
  3. Mermaid passthrough. The diagram from service-comm-parser.py flows through unchanged to the final report.

Parse arguments

Arguments: $ARGUMENTS

Positional: two or more directory paths. Each must contain memory/recon-<slug>.json (produced by an earlier codebase-recon run) or the command refuses.

Steps

1. Verify RECON per repo

For each path, locate memory/recon-*.json. If any target path lacks a RECON artifact, stop and tell the user: "Target has no RECON artifact — run codebase-recon or /security-assessment <path> first."

2. Run service-comm-parser.py

python3 "${CLAUDE_PLUGIN_ROOT}/harness/tools/service-comm-parser.py" <path1> <path2> ... > memory/service-comm-<slug>.mermaid

Where <slug> is a dash-joined concatenation of target repo names.

3. Run shared-cred-hash-match.py

python3 "${CLAUDE_PLUGIN_ROOT}/harness/tools/shared-cred-hash-match.py" <path1> <path2> ... > memory/shared-cred-<slug>.sarif

The SARIF output is consumed by the synthesizer agent; it is NOT passed through the unified-finding SARIF parser at this stage (findings are shared-credential hashes, not code-level issues).

4. Dispatch cross-repo-synthesizer

Using the Agent tool, dispatch the cross-repo-synthesizer agent with inputs:

  • List of RECON artifact paths (one per repo)
  • Path to the Mermaid file from step 2
  • Path to the shared-cred SARIF from step 3

Read the full file on GitHub · 84 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. 2d ago First seen · 84 lines · 48 tokens per session scan A 16905645ad33

Subscribe to this mod's changes

cross-repo-analysis is a command published in the GitHub repository bdfinst/agentic-dev-team (280 stars, last pushed 2d ago), licensed MIT. It adds 48 tokens to every session and 869 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-05.