jcode runs coding agents in the background, each in a sandbox, for a coordinator: a person, or an AI session such as Claude Code. You give an agent a brief and a work folder; jcode runs the loop of model calls and tool calls, and you read the transcript, answer its questions, and read its report. It is a program in Tcl on ztcl, with models from AWS Bedrock.
Docs: https://beetlebug.org/jcode/
You need Linux, git, and AWS credentials for Bedrock. Install has the steps for ztcl.
git clone https://github.com/beetlebugorg/jcode && cd jcode
export PATH="$PWD/bin:$PATH"
cd ~/src/hello
jcode "hello.sh should take a name; with none it says hello, world"The first jcode asks for the model and the isolation level, starts the daemon in the background, and opens a chat with a new agent in the folder. A coordinator uses the commands:
jcode start --dir ~/src/hello --model us.amazon.ergo-1.0 --brief brief.md --isolation process --run all
jcode wait a1
jcode read a1a1
a1 done process turns 5/40 tokens 4730 (in3429 out266 cr0 cw1035) us.amazon.ergo-1.0 … | the agent gave its report
1 brief: Change hello.sh so that it takes a name as its first argument and prints "hello, NAME". …
2 tool: list_files {"path":"."}
…
8 tool: run {"command":"sh hello.sh Alice; sh hello.sh"}
9 result: ok: exit 0 hello, Alice hello, world
10 report: Updated hello.sh to greet the first argument: …
Then open http://localhost:7717/ and add a passkey with the one-time code in jcode.log.
| Level | What a command of the agent can do |
|---|---|
none |
Everything that you can do. |
process |
Change only the work folder; no network unless --net. Linux: Landlock, namespaces, cgroups. |
vm |
Run in a new Linux guest that sees only the work folder. Needs KVM. |
Isolation says what each level does not protect.
jcode is experimental, version 0.1.0, with no release yet.
- Works: the agent loop, the levels
noneandprocess, the command line, the terminal client, the web page, and the cost of each agent. - Works with limits: the level
vm(a new guest for each command), and the passkey sign-in (it needs a ztcl withztcl::crypto, in no release yet). - Not done: providers other than Bedrock, and a level for a cloud host.
- Docs: guides, commands, security.
- CONTRIBUTING.md, SECURITY.md, CHANGELOG.md.
- docs/dev/design.md: the design, and docs/dev/faults.md: the faults of live runs.
MIT license (LICENSE).
