beetlebug▾
/

jcode wait

Synopsis

jcode wait ID ?--timeout S?

Description

Waits until the agent ID is not running, and prints its line, as jcode list prints it. With --timeout, it stops after S seconds and prints timeout: before the line. With no --timeout, it waits with no end.

A coordinator runs wait after start and after each send. The end of the line has the question of the agent or the reason of its state.

Options

Option Description
--timeout S The longest wait, in seconds.

Examples

$ jcode start --dir hello --model fake:run.json --brief brief.md --run all
a1
$ jcode wait a1 --timeout 20
a1 asks none turns 4/40 tokens 480 (in400 out80 cr0 cw0) fake:… …/hello | asks: Both cases work. Shall I also add a --help option?

Errors

Message Cause
404: no agent ID No agent has the id.
bad agent id "ID" The id has a character other than a-z and 0-9.