Skip to main content

Module cli

Module cli 

Source
Expand description

The Claude CLI subprocess behind every ambient call: spawn it as bare text generation, race it against cancellation and a timeout, and parse its stream-json reply.

Constants§

AMBIENT_MODEL
The model every ambient call runs on.

Functions§

invoke_haiku
Invoke the Claude CLI on AMBIENT_MODEL for one ambient call, within timeout (the purpose’s own, purpose::Purpose::timeout).