beetlebug▾
/

jcode send

Synopsis

jcode send ID TEXT ?TEXT ...?
jcode send ID -

Description

Sends a message to the agent ID and prints its line. The words of TEXT go with one space between them. - reads the text from the standard input, for a long answer or one with quotes.

State of the agent What the message does
asks It is the answer to the question.
running It goes with the next tool results.
done, stalled, failed The agent goes on.
capped, stopped Refused.

Examples

$ jcode start --dir hello --model fake:run.json --brief brief.md --run all
a1
$ jcode wait a1 --timeout 20 > /dev/null
$ jcode send a1 No. Keep it to the name.
a1 running none turns 4/40 tokens 480 (in400 out80 cr0 cw0) fake:… …/hello
$ jcode wait a1 --timeout 20
a1 done none turns 5/40 tokens 600 (in500 out100 cr0 cw0) fake:… …/hello | the agent gave its report
$ jcode start --dir hello --model fake:run.json --brief brief.md --run all
a1
$ jcode wait a1 --timeout 20 > /dev/null
$ printf 'No.\nKeep it to the name.\n' | jcode send a1 -
a1 running none turns 4/40 tokens 480 (in400 out80 cr0 cw0) fake:… …/hello

Errors

Message Cause
409: the agent ID is stopped The agent is stopped or capped.
409: an empty message TEXT is empty.