Discover agents in current project using compositional queries
Find and filter agent definitions in your project's .claude/agents/ directory. Use this to discover available agents and their capabilities before delegating tasks.
/plugin marketplace add adimov-eth/phi/plugin install phi@phiDiscover agents in current project using compositional queries.
/phi agents [pattern]
Uses mcp__periphery__discover to find agent definitions:
(pipe
(find-files ".claude/agents/*.md")
(fmap (lambda (path)
(let ((content (read-file path))
(name (basename path ".md")))
(list 'agent name
(extract-field content "## Capabilities")
(extract-field content "## Safety Level")))))
(sort-by safety-level))
φ Agent Discovery
═════════════════
Found 3 agents in .claude/agents/
xln-3d-viz (low-risk)
• Fix Three.js rendering bugs
• Update visualization reactivity
• Visual debugging
xln-consensus (high-risk)
• BFT consensus correctness
• Threshold signatures
• Byzantine fault analysis
xln-jea (medium-risk)
• JEA architecture understanding
• Layer separation analysis
• Cross-layer interaction review
Use agents by: "Use the xln-3d-viz agent to..."
/phi agents viz # Find visualization-related agents
/phi agents high-risk # Show only high-risk agents
/phi agents consensus # Find consensus experts
When PROJECT-MAP.scm exists, shows which modules each agent covers:
xln-consensus (high-risk)
Modules: runtime/entity-consensus.ts, runtime/threshold-sigs.ts
Architecture layer: Entity (E)
This demonstrates compositional agent discovery:
Any project following .claude/agents/*.md convention gets automatic discovery.