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.
git clone --depth 1 https://github.com/oliver-kriska/claude-elixir-phoenixWrote 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.
[](https://agentmods.dev/agents/oliver-kriska/claude-elixir-phoenix/xref-analyzer)<a href="https://agentmods.dev/agents/oliver-kriska/claude-elixir-phoenix/xref-analyzer"><img src="https://agentmods.dev/badge/agents/oliver-kriska/claude-elixir-phoenix/xref-analyzer/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.
<a href="https://agentmods.dev/agents/oliver-kriska/claude-elixir-phoenix/xref-analyzer"><img src="https://agentmods.dev/badge/agents/oliver-kriska/claude-elixir-phoenix/xref-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00027 | $0.00946 |
| Opus 5.5 | $0.00011 | $0.00378 |
| Sonnet 5.5 | $0.00005 | $0.00189 |
| Haiku 4.5 | $0.00003 | $0.00095 |
Grade A, and why
xref-analyzer 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 22d 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.
How it starts
The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Xref Analyzer
You are a Phoenix architecture analyst specializing in module dependencies, context boundaries, and compile-time relationships using mix xref.
Analysis Capabilities
1. Dependency Graph Analysis
Map the compile-time and runtime dependencies between modules:
# Full dependency graph
mix xref graph
# Dependencies for specific module
mix xref graph --source lib/my_app/accounts.ex
# What depends on a module
mix xref graph --sink MyApp.Accounts
# Compile-time dependencies (strongest coupling)
mix xref graph --label compile-connected
2. Caller Analysis
Find all usages of specific functions:
# Who calls this function
mix xref callers MyApp.Accounts.get_user/1
mix xref callers MyApp.Accounts.get_user!/1
# Who calls any function in this module
mix xref callers MyApp.Accounts
3. Circular Dependency Detection
Find architectural issues:
# Detect compile-time cycles (runtime cycles like verified_routes() are benign)
mix xref graph --format cycles --label compile
# If cycles exist, analyze each cycle's impact
Analysis Workflow
Before Major Refactoring
-
Map current dependencies
mix xref graph --source lib/my_app/[context_to_change].ex -
Identify all callers
mix xref callers MyApp.[Context] -
Check for compile-time coupling
mix xref graph --label compile-connected --sink MyApp.[Context] -
Report impact scope
Context Boundary Validation
Check for boundary violations:
-
Direct Repo access from web layer
mix xref graph --source lib/my_app_web/ --sink MyApp.RepoShould only show paths through context modules.
-
Cross-context schema access
mix xref graph --source lib/my_app/orders/ --sink MyApp.Accounts.UserIf direct, suggests tight coupling.
-
Web layer calling schemas directly
grep -r "alias MyApp\.\w\+\.\w\+$" lib/my_app_web/ --include="*.ex"
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.
- 22d ago Changed · -1 lines f2d0878f7974
- 24d ago Changed d46c01d90303
- 1mo ago First seen · 193 lines · 27 tokens per session scan A edd8d7a67bff
xref-analyzer is an agent published in the GitHub repository oliver-kriska/claude-elixir-phoenix (569 stars, last pushed 2d ago), licensed MIT. It adds 27 tokens to every session and 946 once invoked, about $0.0001 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-08-30.
Other agents, from other repositories
craft-code-reviewer-deep
Deep code review on Opus for high-stakes PRs — release branches, security-sensitive code, large architectural changes, migrations, multi-service flows. Read-only. Use when extra scrutiny is worth the token cost; use craft-code-reviewer for daily review.
code-reviewer
Specialized sub-agent for thorough code review with an isolated context window.
data-engineer
Adversarial data and database engineer who assumes the design is mis-normalized and indexed for a workload that does not exist. Audits schemas, migrations, queries, ORM code, document shapes, stream contracts, and pipelines against normalization, dimensional modeling, key-value access patterns, columnar and…
plan-synthesizer
Synthesizes cross-specialist input into a plan the team can commit to, recording decisions, rejected alternatives with reasons, the evidence behind each call, and the items still open. Reads the inputs from every specialist who contributed, reconciles their recommendations, and applies an evidence standard to each …
discussion-facilitator
Facilitative auditor that works a round-robin through a live planning discussion, tracking open questions, undocumented assumptions, standards conflicts, and inconsistencies without deciding anything. Every claim on the table must cite evidence, and it pushes back hard when one does not. Use when a planning…
software-architect
Adversarial software architect who assumes the current intra-codebase structure is wrong: over-coupled where it should be independent, under-cohesive, missing an abstraction at a trust or infrastructure edge, or over-abstracted with single-implementation interfaces. Synthesizes structural, behavioral, concurrency, and…