Expand description
Multi-agent support — agent identification, tool name normalization, and protocol implementations.
This module provides:
AgentKind— enum identifying each supported agent- Canonical tool alias table — maps agent-native tool names to internal names
- Permission mode resolution — normalizes agent-specific mode strings
- Per-agent
HookProtocolimplementations
Modules§
- amazonq
- Amazon Q Developer CLI hook protocol implementation.
- claude
- Claude Code hook protocol implementation.
- codex
- OpenAI Codex CLI hook protocol implementation.
- copilot
- GitHub Copilot CLI hook protocol implementation.
- gemini
- Gemini CLI hook protocol implementation.
- opencode
- OpenCode hook protocol implementation.
Enums§
- Agent
Kind - Identifies which coding agent is calling.
Functions§
- canonical_
to_ internal - Given a canonical name (e.g. “shell”), return the internal name (e.g. “Bash”).
- display_
name - Return the best user-facing display name for a tool.
- internal_
to_ agent - Given an internal name and target agent, return the agent’s native tool name.
- internal_
to_ canonical - Given an internal name (e.g. “Bash”), return the canonical name (e.g. “shell”).
- resolve_
any_ to_ internal - Resolve any tool name to its internal form.
- resolve_
permission_ mode - Given an agent’s native permission mode string, return the canonical mode.
- resolve_
tool_ name - Given an agent’s native tool name, return the internal (Claude-style) name.