ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Deterministic lifecycle automation for agent sessions. Use hooks to enforce policy, automate validation, and inject runtime context.
| Path | Scope | |------|-------| | .github/hooks/*.json | Workspace (team-shared) | | .claude/settings.local.json | Workspace local (not committed) | | .claude/settings.json | Workspace | | ~/.claude/settings.json | User profile |
Hooks from all configured locations are collected and executed; workspace and user hooks do not override each other.
| Event | Trigger | |------|-------| | SessionStart | First prompt of a new agent session | | UserPromptSubmit | User submits a prompt | | PreToolUse | Before tool invocation | | PostToolUse | After successful tool invocation | | PreCompact | Before context compaction | | SubagentStart | Subagent starts | | SubagentStop | Subagent ends | | Stop | Agent session ends |
{
"hooks": {
"PreToolUse": [
{
"type": "command",
"command": "./scripts/validate-tool.sh",
"timeout": 15
}
]
}
}Each hook command supports:
type (must be command)command (default)windows, linux, osx (platform overrides)cwd, env, timeoutHooks receive JSON on stdin and can return JSON on stdout.
continue, stopReason, systemMessagePreToolUse permissions are read from hookSpecificOutput.permissionDecision (allow | ask | deny)PostToolUse output can block further processing with decision: blockPreToolUse example output:
{
"hookSpecificOutput": {
"hookEventName": "PreToolUse",
"permissionDecision": "ask",
"permissionDecisionReason": "Needs user confirmation"
}
}Exit codes:
0 success2 blocking error| Primitive | Behavior | |------|-------| | Instructions / Prompts / Skills / Agents | Guidance (non-deterministic) | | Hooks | Runtime enforcement and deterministic automation |
Use hooks when behavior must be guaranteed (for example: block dangerous commands, force validation, auto-inject context).
1. Keep hooks small and auditable 2. Validate and sanitize hook inputs 3. Avoid hardcoded secrets in scripts 4. Prefer workspace hooks for team policy, user hooks for personal automation