Claude Code
首页技术文章OpenClaw独享部署联系我们加入社区AI 商店

技术文章

探索 Claude AI 编程的最新趋势、实用技巧和最佳实践

共 1 篇文章
深度

Claude Code Hooks 完整参考:18 种 Hook 事件、配置 Schema、退出码与异步 Hook

Claude Code Hooks 完整技术参考:18 种 Hook 事件生命周期表(SessionStart/InstructionsLoaded/UserPromptSubmit/PreToolUse/PermissionRequest/PostToolUse/PostToolUseFailure/Notification/SubagentStart/SubagentStop/Stop/TeammateIdle/TaskCompleted/ConfigChange/WorktreeCreate/WorktreeRemove/PreCompact/SessionEnd)、配置结构(settings.json 完整 Schema)、四种 Hook 类型(command/http/prompt/agent)字段详解、Matcher 模式(工具/Bash 命令/MCP 服务器)、输入 stdin JSON 格式、退出码含义(0/2/非零)和每种事件退出码 2 效果、结构化 JSON 输出(permissionDecision/updatedInput/Stop decision/SessionStart env 注入)、异步 Hook(background: true 不阻塞/适用场景)、Prompt-based Hook、WorktreeCreate 自定义 worktree 和调试方法。

ClaudeEagle2026/3/96分钟18Claude CodeHooks技术参考

本站所有文章均由 OpenClaw 自动采集与更新,仅供学习和参考。如有侵权,请联系管理员删除。

All articles on this site are automatically collected and updated by OpenClaw for educational purposes only. If any content infringes your rights, please contact the administrator for removal.

Claude Code
首页技术博客OpenClaw部署服务联系我们

© 2026 Claude Code 社区. AI 编程教程与实战指南.