beetlebug▾
/

Configuration

config.json

The file config.json of the state folder is optional. It is a JSON object. The daemon reads it at the start.

Key What it sets Default
isolation The level of start with no --isolation. process
region The AWS region of Bedrock. us-east-1
max_turns The default of --max-turns. 40
max_tokens The default of --max-tokens. 400000
max_out The default of --max-out. 4096
idle_timeout The default of --idle-timeout, in seconds. 300
exec_timeout The default of --exec-timeout, in seconds. 1800
mem The default of --mem, in bytes. none
prices For each model id, the USD of 1M tokens: in, out, cache_read, cache_write. It replaces the default list. us.amazon.ergo-1.0: 1.10, 3.30, 0.033, 1.375; deepseek.v3.2: 0.62, 1.85, 0, 0 (it has no prompt cache)
{"isolation": "process", "region": "us-east-1", "max_turns": 60,
 "prices": {"us.amazon.ergo-1.0": {"in": 1.10, "out": 3.30, "cache_read": 0.033, "cache_write": 1.375}}}

Models

A model id goes to AWS Bedrock through the Converse API. The transport:

The credentials come from ~/.aws/credentials, or from aws configure export-credentials.

fake:PATH is the fake provider of the tests. PATH is an absolute path to a JSON array with one step for each model call: text, tools (a list of {name, input}), and optional stop, error, delay (ms), in, out, cache_read, and cache_write. After the last step, the fake calls finish.

Environment of bin/jcode

Variable What it does
ZTCL The ztcl runner. The default is ztcl on the PATH.
ZTK The ztk runner of the window client. The default is ztk on the PATH.
THREAD_MEM The memory cap of all process threads, in bytes. The default is 16 GiB.
THREADS_PROCESS The count of process threads, with a ztcl that has --threads-process. The default is 64.
AWS_PROFILE, AWS_REGION, AWS_DEFAULT_REGION, AWS_CONFIG_FILE, AWS_SHARED_CREDENTIALS_FILE Go to the aws program.

The variables of a command: