Skip to content
Français

AgentProfileHooks

import type { AgentProfileHooks } from "@elie-laloum/outpost/core";
  • claudeOptional
    readonly NativeHook<"claude", string>[] | undefined
    Claude hooks declared with defineClaudeHook. Only the matching CLI harness selects this frozen list; its adapter validates native event names when composing the harness.
  • codexOptional
    readonly NativeHook<"codex", string>[] | undefined
    Codex hooks declared with defineCodexHook. Only the matching CLI harness selects this frozen list; its adapter validates native event names when composing the harness.
  • copilotOptional
    readonly NativeHook<"copilot", string>[] | undefined
    Copilot hooks declared with defineCopilotHook. Only the matching CLI harness selects this frozen list; its adapter validates native event names when composing the harness.
  • kimiOptional
    readonly NativeHook<"kimi", string>[] | undefined
    Kimi hooks declared with defineKimiHook. Only the matching CLI harness selects this frozen list; its adapter validates native event names when composing the harness.
  • antigravityOptional
    readonly NativeHook<"antigravity", string>[] | undefined
    Antigravity hooks declared with defineAntigravityHook. Only the matching CLI harness selects this frozen list; its adapter validates native event names when composing the harness.
  • outpostOptional
    readonly HarnessHook<HarnessHookPhase>[] | undefined
    Built-in loop hooks declared with defineHarnessHook; executed before local hooks of the same phase. They do not propagate to subagents unless the child explicitly uses this profile.
export interface AgentProfileHooks {
  readonly claude?: readonly NativeHook<"claude">[];
  readonly codex?: readonly NativeHook<"codex">[];
  readonly copilot?: readonly NativeHook<"copilot">[];
  readonly kimi?: readonly NativeHook<"kimi">[];
  readonly antigravity?: readonly NativeHook<"antigravity">[];
  readonly outpost?: readonly HarnessHook[];
}