Anchorage API reference
    Preparing search index...
    CLAUDE_CODE_CLI: AgentCliDefinition = ...

    Claude Code headless mode: claude -p --output-format=json --permission-mode=acceptEdits [--model=value] -- <prompt>. stdout carries a JSON envelope whose result field is the agent's final text; on parse drift the raw stdout is returned instead. Authentication comes from the inherited environment/keychain, exactly like an interactive claude session.