beetlebug▾
/

Clients

The web page

Open http://localhost:PORT/ (7717 by default). The page needs a passkey (Sign in with a passkey). It shows the list of agents with the state, the level, the turns, and the tokens of each, and the transcript of the selected agent. It sends a message (Send) and stops an agent (Stop).

The web page of jcode: the list of agents, and the transcript of one agent.

The page uses no library and no inline script. Each text of an agent goes into the page as text.

The terminal client

jcode tui

A line interface: it prints lines and reads lines.

Input What it does
/list The agents, one line each.
/open ID Opens an agent: prints its transcript, then each new entry.
/stop Stops the open agent.
/help The commands.
/quit Ends the client.
Other text A message to the open agent.
jcode 0.1.0: /help for the commands
a2 done none turns 3/40 tokens 360 (in300 out60 cr0 cw0) …
/list  /open ID  /stop  /quit  (other text: a message to the open agent)
1 brief Add a --help option to hello.sh.
2 ask Shall I also add a --help option?
3 user coordinator: Yes, add it.

The client asks the daemon for new entries each second. It replaces each control character of agent text, so agent text cannot send escape sequences to the terminal.

The window client

ZTK=/path/to/ztk jcode gui

The window client runs on ztk. It has the agent list with the state and the level of each agent, the transcript of the selected agent, an input line, and the buttons Send and Stop. It asks the daemon for new entries each second. Text of an agent goes into a text widget as text.