Command line
kothar drives a running Kothar (the app, or npm run dev) from a terminal or a script.
It isn’t in the DMG yet. Run it from a clone of the repo with npm run kothar -- <command>, or put it on your path
with npm link -w @kothar/cli.
Commands
Section titled “Commands”kothar list # spaces and their workers, with status (--json for scripts)kothar new ~/code/app --name App # make a space on a folder; prints its idkothar send App "fix the failing test" --wait # stream the reply; exit when the turn endskothar status App # status, engine, model, queue, what it's waiting forkothar read App --last 5 # the latest messages (--tools adds tool calls)kothar stop App # stop the running turnkothar approve App # approve the permission request it's waiting onkothar deny App # or deny itName a chat by its id, the start of its id, or a space’s name. Home is home.
send –wait
Section titled “send –wait”send --wait streams the reply and exits when the turn ends:
| Exit code | Meaning |
|---|---|
0 |
The turn ended. |
1 |
The turn failed. |
3 |
It stopped at a permission request or a question. The chat keeps waiting for approve, deny or the app. |
4 |
--timeout ran out. |
--approve approves every request during the wait. Leave it off unless you’d have clicked Approve on all of them
anyway. Ctrl+C stops waiting but leaves the turn running.