ClaudeCode.Adapter.Local (ClaudeCode v0.21.0)

View Source

Local 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.