Create a registry pre-populated with all built-in agent adapters. Currently includes: - Claude Code (`claude-code`) - Cline (`cline`) - Codex (`codex`) - Copilot (`copilot`) - Cursor (`cursor`) - Devin Desktop (`devin`) - Gemini CLI (`gemini-cli`) - Hermes Agent (`hermes`) - Kiro (`kiro`) - OpenCode (`opencode`) - Pi (`pi`) - Sherpa (`sherpa`)
()
| 258 | /// - Pi (`pi`) |
| 259 | /// - Sherpa (`sherpa`) |
| 260 | pub fn with_defaults() -> Self { |
| 261 | let mut registry = Self::new(); |
| 262 | registry.register(Box::new(claude_code::ClaudeCodeHook::new())); |
| 263 | registry.register(Box::new(cline::ClineHook::new())); |
| 264 | registry.register(Box::new(codex::CodexHook::new())); |
| 265 | registry.register(Box::new(copilot::CopilotHook::new())); |
| 266 | registry.register(Box::new(cursor::CursorHook::new())); |
| 267 | registry.register(Box::new(devin::DevinHook::new())); |
| 268 | registry.register(Box::new(gemini_cli::GeminiCliHook::new())); |
| 269 | registry.register(Box::new(hermes::HermesHook::new())); |
| 270 | registry.register(Box::new(kiro::KiroHook::new())); |
| 271 | registry.register(Box::new(opencode::OpenCodeHook::new())); |
| 272 | registry.register(Box::new(pi::PiHook::new())); |
| 273 | registry.register(Box::new(sherpa::SherpaHook::new())); |
| 274 | registry |
| 275 | } |
| 276 | |
| 277 | /// Register a new agent adapter. |
| 278 | /// |