ClaudeCode.Adapter.CLI (ClaudeCode v0.16.0)

View Source

CLI adapter that manages a persistent Port connection to the Claude CLI.

This adapter:

  • Spawns the CLI subprocess with --input-format stream-json
  • Receives async messages from the Port
  • Parses JSON and forwards structured messages to Session
  • Handles Port lifecycle (connect, reconnect, cleanup)

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.