CLI
Install the JuhJuh command line to read and act on tickets, watch runs live, and chat with your agents from the terminal. Sign in, commands, scripting.
The juhjuh command line puts your workspace in a terminal. You read and act on tickets, follow a run as it happens, and talk to your agents, all from one input row.
Every command is a slash command. Anything else you type is a message to your assistant.
Install¶
The command line needs Python 3.12 or later.
pip install "juhjuh-harness[cli]"
Check that it installed:
juhjuh --version
You never give the command line an AI provider key. Work you start from the terminal runs in JuhJuh and is billed to your workspace, exactly like work started from the browser. See Billing.
Start a session¶
Run juhjuh with no arguments:
juhjuh
You see a welcome screen with your assistant's name, role and model, the folder you are in, and a few status lines:
- Signed in to your workspace and project, when you are signed in
- Not signed in: /login, when you are not
- the number of commands, with a reminder that
/helplists them
Below that is one input row marked ❯, pinned to the bottom of the window, with a status line under it: who answers and on which model, the repository and branch you are in, how much of the conversation's context is used, and the memory of the run's build machine. Everything you send and every reply print above the input row and scroll up, so the input row never moves. Type / to see every command with a one-line description; the list completes as you type. Press ? on an empty row to see the keys.
| Key | What it does |
|---|---|
| Enter | Sends the line. While a reply is running, steers it |
| Ctrl+S | While a reply is running, queues the line for after it |
Alt+Enter, Ctrl+J, or \ then Enter |
Starts a new line |
| Esc or Ctrl+C | Interrupts the reply or the watch |
| Esc Esc | Clears the row, keeping what you typed in the history |
| ↑ ↓, Ctrl+R | Walks and searches what you typed before in this folder |
/ and @ |
Completes commands and agent names |
| Ctrl+X, Ctrl+O, Ctrl+L | Shows the plan, unfolds tool output, redraws the screen |
| Ctrl+C twice or Ctrl+D twice | Leaves the session (so does /exit) |
A long paste is shown as [Pasted text #1 +120 lines] and sent in full.
Start a session with a workspace and project already chosen:
juhjuh --org my-team --project MYAPP
Sign in¶
- Run
/login. - Enter your username.
- Enter your password. It is not shown as you type and never stored.
- If your account has two-factor authentication on, enter the verification code.
❯ /login
Username: sam
Password:
Verification code:
Signed in to https://api.juhjuh.com as Sam Lee.
The key expires on 9 Feb 2027.
Signing in gives the command line a key that lasts 90 days. The key is kept in your system keychain, so a machine with no usable keychain (a headless server, for example) cannot sign in. Sign in again when the key expires.
Accounts that sign in through your organization's identity provider cannot use the command line yet. Use JuhJuh in the browser instead.
| Command | What it does |
|---|---|
/login [--server URL] [--username NAME] |
Signs in. --server points at a different JuhJuh address |
/logout |
Signs out of this server and removes the key |
/whoami |
Shows your name, every workspace you belong to (your default is marked), and when the key expires |
Workspace and project¶
Most commands act on one workspace and one project. The command line picks them in this order and uses the first one it finds:
graph LR
A["--org and --project"] -->|not given| B["The JuhJuh repository you are in"]
B -->|not in one| C["Your saved default"]--organd--projectwhen you started the session.- The repository in your current folder, when it is a clone of a JuhJuh repository. Its address names the workspace and project.
- The default you saved with
/org setand/project set, or the workspace chosen when you signed in.
/org set and /project set also switch the session you are in straight away, ahead of the repository, and /org then says "chosen for this session". Changing workspace starts a fresh conversation with that workspace's assistant.
A project always belongs to the workspace it was chosen with. A project from one workspace is never paired with another.
| Command | What it does |
|---|---|
/org or /org current |
Shows the current workspace and where it came from |
/org list |
Lists your workspaces |
/org set SLUG |
Switches to a workspace and saves it as your default |
/project or /project current |
Shows the current project |
/project list |
Lists the projects in the workspace |
/project set KEY |
Switches to a project and saves it as your default |
Tickets¶
List tickets¶
/tickets shows the project's tickets, newest first, with key, status, title and assignee.
❯ /tickets --mine --status running
| Option | What it does |
|---|---|
--mine |
Only tickets assigned to you |
--status S |
Only tickets in status S |
--assignee U |
Only tickets assigned to U |
--all |
Every project in the workspace, not only the current one |
--page N |
Page N of the results |
TEXT |
Search text |
Read a ticket¶
❯ /ticket MYAPP-42
You see the key and title, status, assignee, project, the description and the acceptance criteria with how many are done.
Act on a ticket¶
/ticket KEY ACTION runs the same action as the button on the ticket page, with the same permission check.
| Action | What it does |
|---|---|
queue |
Queues the ticket for its agents |
stop |
Stops the current run |
resume |
Resumes a stopped run |
analyze |
Starts analysis |
move STATUS [--reason WHY] |
Moves the ticket to another status |
comment TEXT |
Adds a comment |
edit FIELD=VALUE |
Changes title, description or priority |
diff |
Shows the changed files and the diff |
prd |
Shows the ticket's PRD |
Add --watch to an action to follow the run straight away:
❯ /ticket MYAPP-42 queue --watch
❯ /ticket MYAPP-42 edit priority=High
❯ /ticket MYAPP-42 move archived --reason "Duplicate of MYAPP-40"
queue, stop, resume, analyze, move, diff and prd work in the workspace you signed in to. For a ticket in another workspace, sign in there.
File a ticket¶
❯ /ticket new Add a retry button to failed imports
The ticket is created in the current project with the same template the ticket page uses. Add --description "..." to fill in the description.
Watch a run¶
/watch KEY follows a ticket's run live, the way the Run log on the ticket page does. You see what has happened so far, then each step as it arrives. Finished rows scroll up; the step still running, the plan and the status line stay at the bottom.
❯ /watch MYAPP-42
The watch ends when the run finishes. Press Ctrl+C to stop watching early; the run carries on and the session stays open.
Chat with agents¶
Type a line that does not start with / and it goes to your assistant, the same conversation you see in the assistant panel. The reply draws as it comes: text as it is written, and each tool the agent uses as one line with how long it took. The first reply names who answers and on which model; that line appears again only when another agent or model answers. When a reply includes a table or a chart, the table prints as aligned columns and the chart as bars, fitted to your window.
❯ What changed in MYAPP-42 since yesterday?
Write @name to address a specific agent, exactly as you would in chat:
❯ @reviewer look at the diff on MYAPP-42
/agents lists every agent you can address, with its role, model and when to use it.
Steer a reply¶
The input row stays open while a reply runs.
| Key | What it does |
|---|---|
| Enter | Sends your line to the agent now, to change direction |
| Ctrl+S | Queues your line for after this reply |
| Esc or Ctrl+C | Stops the reply |
Your steered or queued line shows dimmed until the agent receives it. A command you type while a reply runs waits until the reply ends, except /help and /exit. If the connection drops, the session reconnects and picks up where it left off.
Approvals and questions¶
When an agent asks you a question or needs your approval, it appears as a box with numbered choices. Pick one with the arrow keys and Enter, or press its number. Press Esc to skip and answer later in chat. When a question asks for a password, what you type is masked.
╭─ Deploy MYAPP to production? ─────────────╮
│ ❯ 1. Approve │
│ 2. Decline │
╰───────────────────────────────────────────╯
↑ ↓ or a number to choose · Enter to answer · Esc to skip
Conversations¶
| Command | What it does |
|---|---|
/sessions |
Lists your recent conversations with the assistant |
/resume ID |
Continues a conversation from /sessions |
/new |
Starts a new conversation |
Build machines, knowledge and models¶
| Command | What it does |
|---|---|
/brew KEY |
Shows a ticket's build machine as the ticket page's Brew tab does: its state, size, services and how much each uses, recent jobs and the preview link |
/kb [--all] TEXT |
Searches the knowledge base, in the current project unless --all. You only see pages you can open |
/models |
Lists the models your workspace may use, by provider, with their effort levels |
Run from scripts¶
-p runs one line and exits, with no welcome screen. Repeat it to run several lines in order.
juhjuh -p "/whoami"
juhjuh --org my-team --project MYAPP -p "/tickets --mine" -p "/ticket MYAPP-42"
The exit code is 0 when every line worked and 1 when one failed. The reason is printed. A line without / sends a message to your assistant, so you can script a question too.
| Flag | What it does |
|---|---|
--version |
Shows the version |
--org SLUG |
Workspace for this session |
--project KEY |
Project for this session |
-p "LINE" |
Runs one line and exits; repeat for more lines |
Command reference¶
| Command | Usage | What it does |
|---|---|---|
/login |
/login [--server URL] [--username NAME] |
Sign in |
/logout |
/logout |
Sign out of this server |
/whoami |
/whoami |
Who is signed in, their workspaces, when the key expires |
/org |
/org [list \| set SLUG \| current] |
Workspaces |
/project |
/project [list \| set KEY \| current] |
Projects in the workspace |
/tickets |
/tickets [--mine] [--status S] [--assignee U] [--all] [--page N] [TEXT] |
Tickets in the project, newest first |
/ticket |
/ticket KEY [queue\|stop\|resume\|analyze\|move S\|comment TEXT\|edit F=V\|diff\|prd] [--watch] |
Read a ticket, or act on it; /ticket new TITLE files one |
/watch |
/watch KEY |
Follow a ticket's run live, as the page's Run log |
/agents |
/agents |
Agents you can address with @name |
/sessions |
/sessions |
Your recent conversations with the assistant |
/resume |
/resume ID |
Continue a conversation from /sessions |
/new |
/new |
Start a new conversation |
/brew |
/brew KEY |
A ticket's build machine, as the page's Brew tab |
/kb |
/kb [--all] TEXT |
Search the knowledge base you can read |
/models |
/models |
The models this workspace may use |
/replay |
/replay FILE [--open] |
Draw a recorded run log |
/help |
/help |
This list |
/exit |
/exit |
Leave (/quit works too) |
Related¶
- Tickets: statuses, actions and the Run log the command line mirrors
- Agents: the agents you address with
@name - Projects: the projects
/projectchooses between - Permissions: which roles can queue, move and edit tickets
- Billing: how work started from the terminal is charged
- Pages: the knowledge base
/kbsearches - MCP Server: connect JuhJuh to other AI tools