Server-side this endpoint streams: POST /assistant/prompt returns chunked HTML with <div hidden>JSON</div><script>scriptStreamCallback(KEY)</script> markers, and new_message.json updates incrementally (waiting → streaming → done). kagi-cli waits for the final state and prints the whole thing at once.
Would like a --stream flag that emits NDJSON, one line per new_message.json update, with the md delta since last emission. Current behavior stays default.
Use case: building a proxy on top of kagi-cli. Right now I either fake the stream (chunk the buffered reply) or bypass kagi-cli entirely and parse the HTML protocol myself.
Server-side this endpoint streams:
POST /assistant/promptreturns chunked HTML with<div hidden>JSON</div><script>scriptStreamCallback(KEY)</script>markers, andnew_message.jsonupdates incrementally (waiting→streaming→done). kagi-cli waits for the final state and prints the whole thing at once.Would like a
--streamflag that emits NDJSON, one line pernew_message.jsonupdate, with themddelta since last emission. Current behavior stays default.Use case: building a proxy on top of kagi-cli. Right now I either fake the stream (chunk the buffered reply) or bypass kagi-cli entirely and parse the HTML protocol myself.