Skip to main content

Module claude

Module claude 

Source
Expand description

Claude Code adapter.

Supports two modes:

  • Print mode (-p --output-format stream-json): for automated runs where structured JSON output enables reliable completion/error detection.
  • Interactive mode (no -p): for supervised runs where the user can see and type into Claude’s native TUI. Batty supervises on top without breaking the interactive experience.

The supervisor decides which mode to use. The adapter provides spawn configs and prompt patterns for both.

Structs§

ClaudeCodeAdapter
Adapter for Claude Code CLI.

Enums§

ClaudeMode
How to run Claude Code.