Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 3.05 KB

README.md

File metadata and controls

65 lines (46 loc) · 3.05 KB

jcode

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/

The web page of jcode: the list of agents, and the transcript of one agent that changed a shell script and ran it.

Start in 60 seconds

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 a1
a1
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.

Isolation levels

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.

State

jcode is experimental, version 0.1.0, with no release yet.

  • Works: the agent loop, the levels none and process, 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 with ztcl::crypto, in no release yet).
  • Not done: providers other than Bedrock, and a level for a cloud host.

Links

MIT license (LICENSE).