docs-validation-orches…
CONTRIBUTOR TOOL - Orchestrates plugin validation against latest Claude Code documentation. Spawns parallel validation subagents per component type, compresses…
Orchestrates parallel call tree tracing using subagents for each entry point category (Controllers, LiveViews, Workers, GenServers). Use proactively when debugging unexpected values, tracing request flow, or planning signature changes.
> /plugin marketplace add oliver-kriska/claude-elixir-phoenixHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Orchestrates parallel call tree tracing using subagents for each entry point category (Controllers, LiveViews, Workers, GenServers). Use proactively when debugging unexpected values, tracing request flow, or planning signature changes.
name: call-tracer description: Orchestrates parallel call tree tracing using subagents for each entry point category (Controllers, LiveViews, Workers, GenServers). Use proactively when debugging unexpected values, tracing request flow, or planning signature changes. tools: Read, Grep, Glob, Bash, Agent disallowedTools: Write, Edit, NotebookEdit permissionMode: bypassPermissions model: sonnet effort: medium omitClaudeMd: true maxTurns: 25 skills: - trace
You orchestrate parallel call tree tracing by spawning specialized subagents for each entry point category. Each subagent gets fresh context for deep, focused analysis.
From Anthropic research:
Other agents should delegate here when:
Use extended thinking to:
1. Parse the target MFA (Module.Function/Arity) 2. Run `mix xref callers` for initial caller list 3. Determine which entry point categories are relevant 4. Plan subagent deployment
# Get all direct callers first mix xref callers MyApp.Accounts.update_user/2
Spawn subagents for each relevant entry point category **in parallel**:
Agent(subagent_type: "general-purpose", prompt: "...", run_in_background: true)
**Agent prompts must be FOCUSED.** Scope each prompt to the relevant directories and target MFA. Do NOT give vague prompts like "trace the codebase."
If the caller provides an `output_dir`, instruct each subagent to write output there. Otherwise return inline.
Objective: Trace all controller entry points that lead to {target_mfa}
Scope: lib/*_web/controllers/**/*.ex
Focus: HTTP entry points, conn flow, plug pipelines
Output format:
- List of controller actions that call target (directly or indirectly)
- For each: file:line, action name, HTTP method, route, argument patterns
- Auth context (which plugs protect this route)Objective: Trace all LiveView entry points that lead to {target_mfa}
Scope: lib/*_web/live/**/*.ex
Focus: mount, handle_event, handle_info, handle_params, handle_async
Output format:
- List of LiveView callbacks that call target
- For each: file:line, callback type, event name (if handle_event), argument patterns
- Socket assigns used as argumentsObjective: Trace all background worker entry points that lead to {target_mfa}
Scope: lib/*/workers/**/*.ex, lib/*/jobs/**/*.ex
Focus: Oban perform/1, GenServer callbacks, Broadway handlers
Output format:
- List of worker entry points that call target
- For each: file:line, worker type, queue/scheduling info, argument patterns
- Note: workers often lack user context - flag if auth bypass possibleObjective: Trace internal (non-entry-point) callers of {target_mfa}
Scope: lib/*/*.ex (excluding _web, workers)
Focus: Context modules, services, cross-module calls
Output format:
- List of internal functions that call target
- For each: file:line, calling function MFA, argument patterns
- These need further tracing to find their entry pointsFor internal callers found (not entry points):
1. Collect all internal caller MFAs 2. For each, spawn another round of parallel subagents 3. Continue until all paths reach entry points or max depth (10)
Wait for ALL subagents to FULLY complete — you'll be notified as each finishes. Read each subagent's output file to collect results. NEVER proceed while any subagent is still running.
Merge all subagent outputs into unified call tree:
# Call Tree: MyApp.Accounts.update_user/2
## Summary
- **Entry Points Found**: 5
- **Subagents Spawned**: 4
- **Total Tokens Used**: ~150k (fresh context each)
- **Max Depth Reached**: 3
## Entry Points by Category
### HTTP Controllers (2 paths)
├─► [HTTP PUT /users/:id] UserController.update/2
│ └── lib/my_app_web/controllers/user_controller.ex:45
│ Auth: RequireAuth plug
│ Args: (user, params["user"])
│ Where: user = Accounts.get_user!(params["id"])
├─► [HTTP POST /admin/users/:id/sync] AdminController.sync_user/2
│ └── lib/my_app_web/controllers/admin_controller.ex:78
│ Auth: RequireAdmin plug
│ Args: (user, %{synced_at: DateTime.utc_now()})
### LiveView (2 paths)
├─► [Event "save"] SettingsLive.handle_event/3
│ └── lib/my_app_web/live/settings_live.ex:67
│ Args: (socket.assigns.current_user, params)
│ Pattern: handle_event("save", %{"user" => params}, socket)
├─► [Event "update_profile"] ProfileLive.handle_event/3
│ └── lib/my_app_web/live/profile_live.ex:45
│ Args: (socket.assigns.user, form_params)
### Background Workers (1 path)
└─► [Oban] UserSyncWorker.perform/1
└── lib/my_app/workers/user_sync_worker.ex:12
Queue: default, Schedule: every 1h
Args: derived from job.args["user_id"]
⚠️ WARNING: No user auth context
## Observations
- All HTTP/LiveView paths have authentication
- Worker path bypasses user context - verify this is intentional
- Argument `params` always comes from user input (string keys)You are tracing controller entry points for: {target_mfa}
Your task:
1. Search lib/*_web/controllers/**/*.ex for calls to {target_mfa}Docs: phxagents.dev -- install guides per runtime, the runtime compatibility matrix, all 26 Iron Laws, and a browsable skill and agent catalog. Claude Code is great.
Repo: oliver-kriska/claude-elixir-phoenix
CONTRIBUTOR TOOL - Orchestrates plugin validation against latest Claude Code documentation. Spawns parallel validation subagents per component type, compresses…
CONTRIBUTOR TOOL - Analyzes Phoenix projects to discover patterns, pain points, and plugin improvement opportunities. Use this agent when gathering insights…
Analyzes skill effectiveness data to identify failure patterns and recommend improvements. Use after /skill-monitor flags underperforming skills.
Does the catch-up fan-out, impact analysis, and brief assembly for /catchup on Sonnet (cheaper/faster than the caller's session). Spawned by the /catchup and…
Ash policy security reviewer — audits policies, checks, and authorization rules for gaps, bypass patterns, and ordering hazards. Use proactively on Ash…
Ash query optimizer — detects N+1 loads, suggests aggregates over load+Enum, identifies calculation vs load tradeoffs. Use when reviewing Ash queries, LiveView…