II.
HookSurface overview
Reference · livehook-surface:opencode.on-step
on_step (OpenCode) overview
OpenCode's per-step hook. Fires once per agent loop iteration. Canonicalizes to post-tool-use for cross-product policies.
Attributes
eventName
on_step (OpenCode)
displayName
on_step (OpenCode)
kind
native
originVendor
OpenCode
direction
post
blocking
false
family
shell-hook
payloadSchema
type
object
required
- step
properties
step
type
object
description
OpenCode's per-step hook. Fires once per agent loop iteration.
Canonicalizes to post-tool-use for cross-product policies.
Outgoing edges
canonicalized_to1
- hook-surface:post-tool-use·HookSurfacePostToolUse (canonical)
Incoming edges
exposes1
- agent-runtime-impl:opencode.runtime@1.x·AgentRuntimeImplOpenCode Runtime (1.x)
maps_hook1
- hook-mapping:opencode-on-step·HookMapping