ClaudeCodeClient

LLMClient implementation backed by the local `claude` binary in print mode.

Inherits LLMClient
Group libllm

Declared in src/libs/libllm/llm/clients/ClaudeCodeClient.hpp.

Detailed description

Spawns one `claude –print –output-format stream-json` child per turn and parses the newline-delimited JSON events it writes. Each completion is a new CLI session that is never resumed: the messages of the request carry the whole history. The client is shared by every caller of its model (LLMManager), so a resumed session would give one caller the conversation of another.

One child runs at a time. A completion that arrives while another runs waits in a queue, in order, and answers to its own request id when its turn ends. cancelRequest() takes a waiting completion out of the queue.

See also LLMClient, OnlineAPIClient.

In this section