Skip to content

agentmbx hook

agentmbx hook session-start --cli <codex|kimi|claude|opencode> bind the running session (reads the hook JSON on stdin)
agentmbx hook session-end --cli claude release the exact session on terminal exit (keeps /clear and /resume bindings)
agentmbx hook prompt --cli <…> adds "N unread mbx messages" to the next turn when there is mail
agentmbx hook post-tool --cli claude surfaces new unread mail between tool calls
agentmbx hook permission --cli <claude|codex|kimi> YOLO: approves the prompt only under an active owner policy with the permissions class