The terminal
- graal Agentic Platform
- Version 0.29 (archived)
- Open source · Apache 2.0
- Source : graalsystems/tranibor@v0.29.5
The choregos command is a surface of the platform, like the console: the same assistants, the same
activity, the same decisions, under your rights and your organisation’s audit. It runs nothing on your
machine: no model, no agent, no tool, no file edit. Everything it shows, and everything it sends, goes
through your instance.
What you will be able to do
- Install the command from your instance and sign in as yourself.
- Ask an assistant a question, from a prompt or from a script.
- Follow what runs: the tree of projects, work items and runs, then one run’s steps.
- Work in one screen: conversation, live tree and decisions side by side.
- Approve or refuse what waits for you, one decision at a time.
- Read the colours, and turn them off.
Before you start
Section titled “Before you start”- The address of your instance (here
https://tranibor.example.com) and an account on it. - To ask, an assistant installed for a group you belong to (see Assistants).
- To decide, the same role and group the decision needs in the console (see Decisions).
Install
Section titled “Install”Your instance serves the command built for its own version, as a single file for Linux, macOS and Windows. On Linux and macOS:
curl -fsSL https://tranibor.example.com/cli/install.sh | shThe CLI install page has the Windows script, the files to download by hand and how to check them.
Sign in
Section titled “Sign in”choregos login --api-url https://tranibor.example.com --org acmechoregos whoamichoregos login opens your browser on the console, which shows a short code. Check that it is the one
the terminal printed, then approve. You sign in as yourself: the CLI holds a session of yours, never
a copy of a token you could reuse elsewhere.
- Over SSH, or on a machine without a display, nothing opens: the terminal prints the link, and you
open it in a browser anywhere.
--no-browserdoes the same on purpose. - Waiting ends when you approve, refuse in the console, or press Ctrl-C (nothing is saved then). A code
that was not approved in time expires: run
choregos loginagain. --freshmakes the console sign you in again at your identity provider before it asks you to approve. Use it when a decision says your sign-in is too old (below).--tokensaves an access token instead of opening a browser. It is for scripts and CI. A token is not a session of yours: it can read and write what its role allows, but it cannot decide (see Decide).- Sessions: each sign-in is listed under My account, Sessions. Ending it there signs the CLI out.
choregos logoutends it from the terminal and removes the credential from the profile.
choregos login --api-url https://tranibor.example.com --token "$TRANIBOR_TOKEN" --org acmechoregos login --freshchoregos logoutThe profile is saved in ~/.config/choregos/config.json. ask, activity, chat and live take --org to name another
organisation than the profile’s; so does a bare choregos, before the workspace opens.
choregos ask "What did we invoice Globex in October?"choregos ask --assistant billing "And in November?" --continueask is one turn of a conversation the platform keeps. The answer streams to standard output, and only
the answer does: the conversation’s id, the tokens and the money spent, and any write the assistant
proposed go to standard error. So choregos ask "…" > answer.md keeps the answer alone.
- Which assistant.
--assistant SLUG, or the only one that is ready for you in the organisation. When several are, the command names them and stops. - From standard input. Without a message, or with
-, the message is read from standard input. An empty message is refused before anything is sent. - Continue.
--continuepicks the assistant’s most recent open conversation;--conversation IDpicks one by its id. The conversation is the same one the console shows, so you can carry on there. - A proposed write. An assistant never writes on its own: when it proposes a write, the terminal prints
what it wants and a link to confirm or refuse it. Confirm there, or with
choregos decide. - For scripts.
--jsonprints nothing while the turn runs, then one JSON object:conversation_id,status,text,pending_actions,usageanderror. - Exit codes. 0 when the turn completed. 1 when the turn failed, or was not sent because no assistant could be chosen: the reason is printed. 130 after Ctrl-C, which cancels the turn on the platform; what it already spent is booked.
echo "Summarise yesterday's failed runs" | choregos ask -choregos ask --json "How many invoices are overdue?" > turn.jsonFollow what runs
Section titled “Follow what runs”choregos activitychoregos activity --watch --project billing-apiactivity draws what runs in the organisation as a tree: project, work item, run (stage, agent, model),
then your own sessions. Each line has a status (a glyph and a word), the elapsed time, the tokens and the
cost so far. A cost the platform cannot say shows as “—”, never as 0. Below the tree, what ended in the
last hour; last, a line organisation · N running · M waiting for you · X today (— when the platform cannot say how many wait), in the organisation’s currency (€ or $). An amount the platform gives in the other currency only is converted with the ratio of the organisation’s own cost report, or, with no spend yet, printed with its own symbol, never relabelled. It only reads: stopping stays in the console and in the
workspace.
--watchkeeps the tree live until you press Ctrl-C or the stream ends. Elapsed times move every second.- Filters.
--project SLUG,--workflow SLUG(the work items born in that workflow),--agent SLUG,--kind run|session|turn. - Sub-agents. When a run launched sub-agents, they are drawn under their run, with their own status and tool-call count.
For one run, give its id:
choregos activity --run RUN_IDchoregos activity --run RUN_ID --watchchoregos activity --run RUN_ID --jsonIt shows the plan the agent declared, its tool calls (state, time, title) and what fills the model’s
context now. A backend the platform cannot see into shows “Context: not measured”. --run takes none of
the tree’s filters. With --watch, it follows the run until it ends. With --json, it prints one object for a
script and draws nothing: the run, the plan (null when none was declared), every tool call (not only the latest
forty a screen shows), the count of updates of a kind the terminal does not know, and the context (null when
not measured); --json does not combine with --watch.
The workspace
Section titled “The workspace”choregos chatchoregos chat --assistant billingchoregoschoregos chat opens the workspace: one screen of six tabs, a one-line header, and a context pane on the
right. A bare choregos opens the same thing, but only when both its input and output are a terminal:
anywhere else (a pipe, a script) it prints the help, so no script that calls it changes behaviour.
choregos chat itself refuses to run without a terminal and points to ask and activity.
The header reads organisation · assistant, then how many runs are running, how many things wait for you
and what was spent today (— when the platform cannot say, never a false zero). The tabs:
| Tab | Shows |
|---|---|
| 1 Conversation | The conversation, and the composer (›, the cost of the turn at its right) |
| 2 Activity | The live tree: projects, work items, runs; what ended in the last hour |
| 3 Projects | Every project you can read, including those with no activity: running, waiting for you, spend this month. Enter opens a project’s work items, Enter again an item’s runs, Enter again a run’s plan and steps; Backspace or Esc goes back up. Amounts are in the organisation’s currency. |
| 4 Decisions | What waits for you, grouped by project, with its count in the tab |
| 5 Artefacts | What was delivered to you |
| 6 Live | The live flow of the default workflow of the project open (or under the cursor) in Projects, else the first project: the same drawing as choregos live, stations, tokens and ticker. Left and right (or up and down) choose a token, Enter opens the item. Leaving the tab closes its stream. |
The pane on the right follows the selection: the run, work item, decision or artefact under the cursor,
in full. Below 120 columns it folds away and the main view takes the width. There are no frames, only one
thin rule between the two; the status of a run is a glyph, a word and a colour, so NO_COLOR loses nothing.
A list is one line per thing. A failed run prints its reason as a word after its status (✗ failed · budget spent, loop, too many tool calls, timed out, gateway refused) and its summary is in the pane; a reason
that is not a short identifier (a provider’s raw error body) reads failed and is never printed in a list. A
decision’s title longer than one line shows its first line, and the whole text is in the pane. choregos activity prints the same words.
| Key | Does |
|---|---|
| Tab, Shift-Tab | Moves to the next or previous tab (works in the composer too) |
| 1 to 6 | Goes to a tab (when you are not typing in the composer), as does a click on its name |
| Enter, in the tree | Expands a project, a work item or a run (plan, tool calls, context, sub-agents) |
x, in the tree |
Stops the run or work item under the cursor, after asking why |
r, in the tree |
Relaunches the failed, cancelled or timed-out run (or the work item whose last run ended so) under the cursor: replays its stage, after asking why |
| Esc | Cancels the turn being answered; the platform books what it spent |
| Ctrl-O, Ctrl-N, Ctrl-A | Switches conversation, starts a new one, switches assistant |
F2, or Enter or d on a decision |
Opens a decision (see Decide) |
| Ctrl-K | Opens the palette |
| Ctrl-Q | Quits |
A stop always needs a reason: an empty one is not sent. The reason is audited and shown on the work item.
x says so when you may not stop what is under the cursor. The footer lists the keys that apply to
what you are on: r is there only on something that can be relaunched. A relaunch is the work item’s
rerun_stage action (choregos items action <id> rerun_stage): when the work item’s budget is spent the
platform refuses it and says so; grant a top-up with the command’s --top-up.
The palette
Section titled “The palette”Ctrl-K opens a search that reaches everything by name. Type a few letters, in order and not necessarily
next to each other (fnrd finds FIN-12 Fix the totals rounding): the best match comes first and its
letters are underlined. Up and Down move, Enter chooses, Esc closes. It lists:
- the six tabs;
- the projects of the organisation, and the work items the workspace has seen (those of the project you have open, and those on the activity board): Enter shows them in the Projects tab;
- the assistants ready for you, as Ctrl-A does;
- the other organisations you may read: choosing one reads everything again for it (the same as
starting
choregos chat --org <slug>); - the commands: decide what waits for you, stop the selected run or work item (
xin Activity; it still asks why), relaunch the selected failed run or work item (rin Activity; it asks why too), new conversation, open a conversation, choose the assistant, cancel the turn, quit.
Nothing is only in the palette: each line says on its right the key or the tab that reaches it too, and the footer keeps every key. The palette does not open over a dialog.
Watch the flow live
Section titled “Watch the flow live”choregos livechoregos live --project billing-api --workflow deliverylive opens a full-screen view of one workflow: its stations as boxes joined by arrows, the side states
(rejections, retries, waits for a person) on a row below, and each work item as a token parked in the station
it is in. A token is blue with a spinner while a run works on it, amber while a person has to decide, red
with a word for why when it failed (loop, budget, turns), dim when idle and green when done. When an
item changes station its token travels along the arrow and the arrow stays lit for a moment. The header says
LIVE or RECONNECTING; under it, a line counts what is in flight, waiting for a person, failed and done
today, with the day’s spend in your organisation’s currency (a dash when the platform cannot say). The last
events scroll at the bottom.
- Keys. Left and right walk the tokens, Enter opens the item (its runs and their steps, as
activity --runshows them), Escape closes it,qquits. - Narrow terminals. Below what the stations need, each shows its counts instead of its tokens and the selected token is named; below that, the view scrolls sideways.
- No colour, no motion.
NO_COLORdraws without colour and without animation (shape still tells the state: a failed station is double-ruled, a running one heavy).--no-motion(orTRANIBOR_NO_MOTION) keeps the colours but stops the spinner and the travel. A terminal that cannot draw Unicode gets plain ASCII. - It only reads. Nothing is written, and it needs a terminal; in a script use
choregos activity.
Decide
Section titled “Decide”choregos decide listchoregos decide show IDchoregos decide approve IDchoregos decide reject ID --reason "wrong cost centre"choregos decide answer ID --answer "Ship the patch release"decide list shows what waits for you across your organisations, newest first: a write or a workflow
start an assistant proposed, a governed action awaiting an approver, and a human step of a workflow.
show displays one without deciding anything.
The rules are the same here as in the workspace:
- You see it first. The operation, its arguments and the source’s diff, when there is one, are shown before you decide.
- One gesture decides one thing. The id is one argument and the verb is typed:
approve,rejectoranswer. There is no default, no--yes, no--all. After the details, the command asks you to type the verb; anything else leaves the item waiting and sends nothing. - A reason to refuse. Every rejection asks for a reason (give it with
--reason, or you are asked): a governed action, a step, and an assistant’s proposed write or launch alike. An empty one sends nothing. The audit keeps it; for an assistant’s write it is also kept on the action and the assistant is told it. - Not everything is decided here. A task’s form and a scope change stay in the console, and the command says so.
Why a pasted token is refused. A decision has to be yours, so it needs a session of yours: a token
saved with --token, or one pasted into TRANIBOR_TOKEN, may read but cannot decide. The platform
answers decision_requires_session, and the command tells you to run choregos login and repeat it.
When your sign-in is too old. Some decisions need a recent sign-in. The command then says so: run
choregos login --freshand repeat the decision.
Artefacts
Section titled “Artefacts”choregos artifacts list WORK_ITEMchoregos artifacts inbox --limit 20choregos artifacts download WORK_ITEM report.md ./outchoregos artifacts open WORK_ITEM report.mdchoregos artifacts compare WORK_ITEM report.md@1 report.md@2choregos artifacts diff RUN_IDlist shows every revision of every artefact of a work item; inbox the artefacts your tasks delivered,
newest first. A revision is name (the latest) or name@version. download saves the bytes exactly as
the platform served them to a path, a directory or the current one, and keeps an existing file unless you
pass --force. open uses your system’s viewer from a temporary copy. compare prints a unified diff of
two revisions of a text artefact, and diff what a run changed, file by file. list, inbox and diff
take --json.
Colours
Section titled “Colours”Colour orients, and is never alone: every status is a glyph, then a word, then a colour, so a monochrome terminal, a pipe or a screenshot in black and white loses nothing.
| Status | Glyph | ASCII | Word | Colour |
|---|---|---|---|---|
| Running | ● | * |
running | blue |
| Queued | ○ | o |
queued | grey |
| Waiting for a person | ⏸ | ! |
waiting for you | yellow |
| Done | ✓ | + |
done | green |
| Failed | ✗ | x |
failed | red |
| Stopped | ■ | # |
stopped | grey |
Blue frames the live tree and amber frames decisions; red is only ever a failure. The colours are your terminal’s own sixteen, so your theme sets the contrast, and no background is painted.
- Turn colour off with the
NO_COLORenvironment variable (any non-empty value), withTERM=dumb, or with--no-colorbefore the command. Output then has no escape sequence at all, and the glyphs and words stay. - ASCII fallback. When the terminal’s encoding is not UTF-8, the glyphs and the bars are drawn with
the ASCII characters of the table, and the separators
·and—are printed as-. Any other character the stream cannot hold degrades the same way (an accent loses its mark, the rest is?); the CLI never stops on the terminal’s encoding. - Force colour in a place that is not a terminal (a CI log that renders it) with
FORCE_COLOR=1.NO_COLORstill wins.
choregos --no-color activityNO_COLOR=1 choregos activity --run RUN_IDTERM=dumb choregos activityFORCE_COLOR=1 choregos activityWhat can go wrong
Section titled “What can go wrong”| Symptom | Why | Fix |
|---|---|---|
several assistants are ready for you |
The organisation has more than one assistant for you | Pass --assistant with one of the slugs it lists |
no assistant is ready for you |
None is installed for your groups, or its owners have not completed it | Ask an organisation administrator |
A decision says decision_requires_session |
You signed in with --token, or pasted a token |
Run choregos login, then repeat the decision |
| A decision says your sign-in is too old | The decision needs a recent sign-in | Run choregos login --fresh, then repeat it |
choregos chat says it needs a terminal |
Its input or output is a pipe | Use choregos ask or choregos activity in scripts |
no organisation |
Neither --org, the profile nor TRANIBOR_ORG names one |
Pass --org SLUG, or sign in with --org |