ClaudeCode.Session (ClaudeCode v0.1.0)

View Source

GenServer that manages Claude Code CLI subprocesses.

Each session can handle multiple concurrent queries, with each query spawning its own CLI subprocess. Communication is via JSON streaming over stdout/stderr.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts a new session GenServer.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

Starts a new session GenServer.