@runloop/agent-axon-client
    Preparing search index...

    Type Alias BaseHookInput

    type BaseHookInput = {
        agent_id?: string;
        agent_type?: string;
        cwd: string;
        permission_mode?: string;
        session_id: string;
        transcript_path: string;
    }
    Index

    Claude SDK

    agent_id?: string

    Subagent identifier. Present only when the hook fires from within a subagent (e.g., a tool called by an AgentTool worker). Absent for the main thread, even in --agent sessions. Use this field (not agent_type) to distinguish subagent calls from main-thread calls.

    agent_type?: string

    Agent type name (e.g., "general-purpose", "code-reviewer"). Present when the hook fires from within a subagent (alongside agent_id), or on the main thread of a session started with --agent (without agent_id).

    cwd: string
    permission_mode?: string
    session_id: string
    transcript_path: string