clikcode 0.0.0-stage → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,652 @@
1
- # Temporary Holding Version
1
+ # ClikCode
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **The harness that logs in all your favorite AI coding providers — in the terminal and in VS Code.** Chats you can resume in any of them, and automatic account switching when you hit a usage limit.
4
+
5
+ Claude Code for one thing, Codex for another, Copilot because it came with the
6
+ editor, something you tried once and kept. Each has its own commands, its own
7
+ sign-in, its own idea of where your conversations live. None of them know the
8
+ others exist, so picking one up means learning it again and leaving your work
9
+ behind in the last one.
10
+
11
+ ClikCode sits in front of 29 of them, including four newer ACP agents under
12
+ experimental support. One sign-in, one list of conversations, one
13
+ set of controls, the same keystrokes whichever tool answers. It replaces
14
+ nothing — your tools stay yours, the logins you already had keep working — and
15
+ what it adds is this:
16
+
17
+ For the 21 harnesses with an ACP entry point or adapter, ClikCode uses ACP for
18
+ ordinary turns. When an agent cannot carry a particular image, model, or
19
+ reasoning choice over ACP, ClikCode uses that harness's CLI path where safe.
20
+ Any other ACP agent can be added with `clikcode acp add`, and it then appears
21
+ in the same provider list.
22
+
23
+ For example, `clikcode acp add my-agent /path/to/agent -- --stdio` registers
24
+ an installed ACP executable without changing ClikCode. In VS Code, use
25
+ **Add ACP Harness…** and enter launch arguments as a JSON array, such as
26
+ `["--stdio", "--config", "two words"]`. The agent still needs its own usable
27
+ credentials; a completed turn and resume should be checked before relying on
28
+ it for work.
29
+
30
+
31
+ **Every tool, one way of working.** Stop memorizing flags. ClikCode asks each
32
+ tool what it supports and offers you that — models, reasoning level, approval
33
+ behavior — in the same place every time.
34
+
35
+ **All your accounts, at once.** Work and personal, two subscriptions, an API
36
+ key kept for spillover. Keep them side by side and move between them in a
37
+ keystroke. Signing in still happens inside the tool itself; ClikCode never
38
+ sees your password or your key, only which account is which.
39
+
40
+ **One list of conversations.** Not one list per tool. Whichever one you were
41
+ using when you started a chat, it is in the same list, and you can carry it on
42
+ somewhere else. Chats you began in Claude Code or Codex directly, long before
43
+ ClikCode was involved, are in that list too.
44
+
45
+ **Run out, and keep going.** When an account hits its limit, ClikCode moves to
46
+ the next one and the answer keeps arriving. It takes the conversation with it,
47
+ so the model continues from what was actually said rather than a summary of
48
+ it. Nothing to click. You find out afterwards.
49
+
50
+ ## Install
51
+
52
+ ```sh
53
+ npm install -g clikcode
54
+ ```
55
+
56
+ Update the same way: `npm install -g clikcode@latest`. Without access to the npm
57
+ registry, install the same release from GitHub:
58
+ `npm install -g https://github.com/Jgracier/ClikCode/releases/latest/download/clikcode.tgz`.
59
+
60
+ For VS Code (and VSCodium, Cursor, Windsurf), the **ClikCode** extension
61
+ (`clikcode.clikcode`, on the Visual Studio Marketplace and Open VSX) puts the
62
+ same chats in a panel beside your code; it runs the ClikCode you installed.
63
+ The same slash commands work there. Its chat bar shows the account's usage and,
64
+ where turns report a price, what the chat has cost so far ("$1.23 this chat").
65
+ Right-click a file, in the editor or the explorer, for **Open the Conversation
66
+ That Edited This File**.
67
+
68
+ Requires **Node.js 22.12 or newer**. Nothing to configure. You do not need any
69
+ of the coding tools installed first: choose one — to sign in, or as the tool for
70
+ a conversation — and ClikCode installs it for you, with the vendor's own npm
71
+ package or installer.
72
+
73
+ Deep Agents Code, Devin CLI, Junie CLI and MiniMax Code are experimental ACP
74
+ integrations. Their official install and launch commands are wired. Devin,
75
+ Junie and MiniMax Code installed and answered ACP initialization on Linux;
76
+ authenticated turns remain unverified without usable vendor accounts. When an
77
+ agent offers one browser sign-in method over ACP, an interactive ClikCode turn
78
+ uses it; terminal sign-in methods still run through the vendor's CLI. See the
79
+ [per-harness verification record](https://github.com/Jgracier/ClikCode/blob/main/docs/ACP_OAUTH_VERIFICATION.md).
80
+
81
+ Google [ended Gemini CLI access for individual accounts](https://github.com/google-gemini/gemini-cli/discussions/28017).
82
+ Gemini Code Assist enterprise licenses and API key access remain supported by
83
+ the vendor; ClikCode cannot restore individual-account access.
84
+
85
+ ## Your first five minutes
86
+
87
+ Start by seeing what you can sign in to, then sign in to something:
88
+
89
+ ```sh
90
+ clikcode accounts providers # every supported tool, and how each signs in
91
+ clikcode accounts login claude # installs the CLI first if you need it
92
+ clikcode # start talking
93
+ ```
94
+
95
+ That second command runs the vendor's own sign-in — the same browser window
96
+ you would have seen running `claude` yourself. ClikCode watches it happen and
97
+ notes that the account exists. It does not read what came back.
98
+
99
+ Add more whenever you like, and name them so you can tell them apart:
100
+
101
+ ```sh
102
+ clikcode accounts login claude --label work
103
+ clikcode accounts login codex --label personal
104
+ clikcode accounts list # what you have, and what is left on each
105
+ ```
106
+
107
+ Now type `clikcode` and you are in a session. Press `/` for a searchable list
108
+ of everything you can do from here. That is the whole setup.
109
+
110
+ ## Three things to know
111
+
112
+ Everything in ClikCode is one of three nouns, and they stack in this order.
113
+
114
+ **A tool** is Claude Code, Codex, Gemini, Copilot — the thing that actually
115
+ does the work. `clikcode doctor` tells you which ones are on this machine, what
116
+ version, and what each can do.
117
+
118
+ **An account** is one sign-in to one tool. Most people end up with several.
119
+ Accounts are kept apart from one another, and apart from the login you already
120
+ had before ClikCode existed — that one keeps working exactly as it did.
121
+
122
+ **A conversation** belongs to you, not to a tool. It has a name, a history and
123
+ a working directory, and it survives changing your mind about which tool or
124
+ which account should answer it. Running `clikcode` with no arguments picks up
125
+ the last one you were in.
126
+
127
+ ## Driving it
128
+
129
+ Two keys do almost everything.
130
+
131
+ **Right Arrow opens, and Right Arrow selects.** On an empty line it opens the
132
+ command list. On a highlighted row it opens that row — a tool, an account, a
133
+ conversation. You can go a long way without typing anything.
134
+
135
+ **Left Arrow goes back** out of any menu or picker, and never confirms. That
136
+ one rule is why you can explore a menu without worrying about setting something
137
+ by accident. (In the composer it moves the cursor, as you would expect.)
138
+
139
+ | Key | What it does |
140
+ | --- | --- |
141
+ | **→** | Open the command list, or select what is highlighted |
142
+ | **←** | Back, one level. On an empty message line, the conversation board: what is running, and what you can resume |
143
+ | **↑ ↓** | Move through a list; in an empty composer, your previous messages |
144
+ | **Enter** | Send, or confirm the highlighted row. While an answer runs, what you type is steered into it at its next pause or waits for it to end (`/send steer\|queue`); Enter again with nothing typed puts the waiting message into the answer now, which keeps running |
145
+ | **Tab** | Complete the highlighted command |
146
+ | **Delete** | In a picker, the destructive action on a row — remove an account, delete a conversation |
147
+ | **Esc** | While an answer runs: back to the live end if you have scrolled up; otherwise your newest waiting message comes back to edit; with none waiting, a prompt not answered yet comes back to edit, and an answer already under way stops. Otherwise closes the command list and clears its filter |
148
+ | **Ctrl+C** | Stop the answer (one with nothing in it yet gives your prompt back, unless you have typed something). On a draft, clears it; twice within two seconds exits |
149
+ | **Ctrl+D** | Exit, on an empty line |
150
+ | **Ctrl+Z** | Drop to a shell; `fg` brings you back |
151
+ | **Ctrl+L** | Redraw the fullscreen view if a terminal loses or garbles cells; keeps the chat and draft |
152
+ | **PgUp / PgDn** | Scroll back through the conversation |
153
+
154
+ Enter sends. For a newline that works in every terminal and over every SSH
155
+ client, end the line with a backslash and press Enter; Shift+Enter also works
156
+ where the terminal supports it.
157
+
158
+ Scrolling with a mouse or a trackpad works. When you want your terminal's own
159
+ selection instead — to copy something out — `/select` releases the mouse, and
160
+ `/select` again takes it back.
161
+
162
+ ## Signing in, and adding more
163
+
164
+ `clikcode accounts login <tool>` runs that tool's own sign-in and gives the
165
+ result a name. Run it again with a different `--label` and you have a second
166
+ account. Nothing stops you at two.
167
+
168
+ That is what makes the rest possible — running out only survives if there is
169
+ somewhere else to go.
170
+
171
+ Each account gets its own directory under `~/.clikcode/profiles/`, and
172
+ ClikCode points the tool at it for one child process at a time. Nine tools
173
+ have a supported setting for that — `CLAUDE_CONFIG_DIR` (Claude Code),
174
+ `CODEX_HOME`, `COPILOT_HOME`, `GEMINI_CLI_HOME`, `QWEN_HOME`,
175
+ `PI_CODING_AGENT_DIR`, `HERMES_HOME`, `OPENCLAW_STATE_DIR` and `VIBE_HOME`
176
+ (Mistral Vibe). Nothing global changes, and the `~/.claude`, `~/.codex` logins
177
+ you already had are untouched.
178
+
179
+ The other twenty have no such setting, so ClikCode points `HOME` elsewhere for
180
+ that one process instead. On its own that would also hide your git, npm, GitHub
181
+ CLI, Docker, GnuPG, Cargo, rustup and ssh-agent configuration from the agent,
182
+ so ClikCode points those back at your real home. Turns still commit, push and
183
+ install as you.
184
+
185
+ Switch by hand with `/account` in a session, or
186
+ `clikcode sessions set <id> --account <label>`.
187
+
188
+ ### An older Intel Mac
189
+
190
+ Claude Code is built for macOS 13. A 2012-2016 Intel iMac or MacBook that cannot update past macOS 10.15, 11 or 12 cannot start it: it stops at
191
+ launch with `Symbol not found ... built for Mac OS X 13.0`. On such a Mac ClikCode makes a copy of the program without its code signature and starts
192
+ it with a small library that supplies the few system functions macOS lacks (`native/macos-compat`), for sign-in, version checks and chats alike. The
193
+ copy is made on the Mac, the installed program is never touched, and nothing happens on any other Mac. Anthropic does not support this: number-range
194
+ formatting in `Intl` is the one feature known not to work, and a future release that imports something else the old system lacks stops at launch
195
+ until the library gains it.
196
+
197
+ ## When an account runs out
198
+
199
+ ClikCode watches how much each account has left — `/usage` shows it, and it
200
+ sits in the corner of the screen while you work. When the one you are on is
201
+ spent, the turn moves to another account of the same tool and the answer keeps
202
+ arriving. You are told after the fact, not asked first.
203
+
204
+ What travels is the point. ClikCode copies the tool's own conversation file
205
+ into the next account and resumes it there, so the model continues the real
206
+ thread instead of a summary of it. It does not re-read your project, and it
207
+ does not forget what it just said.
208
+
209
+ This happens automatically whenever another usable account for the same
210
+ provider and transport is available.
211
+
212
+ ## Resume anything, from anywhere
213
+
214
+ `/resume` shows two things: your ClikCode conversations, and chats the tools
215
+ started on their own — ones you ran in Claude Code or Codex directly, before
216
+ ClikCode was involved.
217
+
218
+ Pick one of the second kind and it becomes one of the first. It gets a row in
219
+ your list, and you can carry it on, fork it, rename it or hand it to another
220
+ tool.
221
+
222
+ Claude Code, Codex and OpenCode hand over their full history when adopted, so
223
+ you can scroll back through it. For the others the thread is real and the tool
224
+ remembers all of it, but ClikCode's own view starts at your next message.
225
+
226
+ ## Your other machines (ClikCode Remote)
227
+
228
+ The board (← on an empty prompt) can show the chats on your other machines
229
+ too: each machine is a section below this one's, with every chat's state —
230
+ working, stalled, needs you, back at, or when it last changed — and anything
231
+ that needs you, on any machine, pinned at the top. A machine that is offline
232
+ stays listed, dimmed, with the chats it had when it was last seen. Choosing a chat
233
+ there opens it live on that machine; a chat is listed only on the machine it
234
+ is on.
235
+
236
+ `/machine` is where machines are kept, as well as where a chat moves: it
237
+ lists this machine, the ones you have added (connected, offline, needs
238
+ update, or install not finished), then the machines
239
+ [Tailscale](https://tailscale.com) knows that are yours — the same Tailscale
240
+ login as this machine, Linux, macOS or Windows, seen in the last 30 days, one
241
+ row per machine (shared-in machines and phones are left out) — and
242
+ **Add by SSH address…** for any `user@host` or `~/.ssh/config` Host alias you
243
+ can reach, Tailscale or not. Choosing one moves the chat there (a chat nothing
244
+ was said in becomes a new chat there); choosing one not added yet adds it
245
+ first. The board's Machines list (← twice) adds them too, and VS Code has the
246
+ same in its machine chip and its history's Machines.
247
+
248
+ It is built on plain SSH. Tailscale only finds the machines and names them,
249
+ and where Tailscale SSH is on, logging in needs no keys; anywhere else your
250
+ SSH keys or agent do. ClikCode never asks for or handles a password
251
+ (`ssh -o BatchMode=yes`), sends no secrets, and opens no port on either
252
+ machine: the window talks to the other machine's own ClikCode over one SSH
253
+ connection per machine, closed with the window.
254
+
255
+ Adding a machine installs ClikCode there, fresh from GitHub `main`, a step at
256
+ a time in your chat:
257
+
258
+ 1. check the machine (`uname`, on macOS `sw_vers`, git, Node, `$HOME`). A
259
+ Node counts only if `node -v` runs. A Mac older than macOS 10.15 is
260
+ refused here, before anything is downloaded: ClikCode needs Node.js 22.12
261
+ or newer, and no build of it runs there (update macOS, or install Node.js
262
+ 22.12+ yourself and add the machine again);
263
+ 2. Node.js: when it has none at 22.12 or newer that runs, a user-local one
264
+ into `~/.local/share/clikcode/node` (no sudo), from the source that runs
265
+ on that OS:
266
+ - Linux, and macOS 13.5 or newer: nodejs.org `latest-v24.x`;
267
+ - macOS 11.0 – 13.4: nodejs.org `latest-v22.x` (Node 24's macOS builds
268
+ need 13.5);
269
+ - macOS 10.15 (Intel): MacPorts' prebuilt `nodejs22`, with the zlib and
270
+ ICU libraries it loads and MacPorts' `npm10`, every archive checked
271
+ against a SHA-256 pinned in ClikCode; the libraries are relinked to
272
+ sit beside it (`install_name_tool`, then `codesign -s -`), nothing goes
273
+ in `/opt/local`.
274
+
275
+ nodejs.org's tarballs are checked against the published
276
+ `SHASUMS256.txt`. The new Node is then run: if it does not, the install
277
+ stops here with what it said. An earlier install's Node that no longer
278
+ runs is replaced, never reused;
279
+ 3. git: required — without it the install stops and says how to get it
280
+ (`xcode-select --install` on macOS, the package manager on Linux);
281
+ 4. a shallow clone into `~/.local/share/clikcode/src` (or a fetch and hard
282
+ reset of that clone: the directory is ClikCode's own);
283
+ 5. `pnpm install --frozen-lockfile` and `pnpm run install-local`, which links
284
+ `~/.local/bin/clikcode`;
285
+ 6. the new `~/.local/bin/clikcode` asked for its version and installation id.
286
+
287
+ Tailscale gives the address; the one thing it cannot know is the user to log
288
+ in as, so adding a machine asks that first — "Log in to <machine> as which
289
+ user?", typed, with nothing suggested or assumed (Esc adds nothing) — and
290
+ remembers it as `user@host`. A refused login asks once more.
291
+ Nothing is copied from this machine — no accounts, sign-ins or settings: the
292
+ other machine signs in to its providers from scratch, in its own chats.
293
+ Windows machines are listed but not supported yet.
294
+
295
+ It works both ways. Whenever this machine connects to another one, from the
296
+ board, `/machine`, a chat running there or VS Code, it tells the ClikCode there
297
+ how to reach it back: its Tailscale name and the user it runs as. That machine
298
+ then lists this one in its own `/machine` and board, so you can sit at the other
299
+ machine, drive this one, and move a chat back here.
300
+
301
+ - It is added there only after that machine has logged in to this one with that
302
+ address. A tailnet policy that allows one direction only lists nothing that
303
+ cannot be reached.
304
+ - It happens only over Tailscale. Without Tailscale, you add this machine there
305
+ yourself by SSH address.
306
+ - A machine you remove with **Remove…** does not add itself back. Adding it again
307
+ by hand undoes that.
308
+ - A machine added this way follows what it says of itself: a new name or user is
309
+ picked up. It is updated only when you say so ("ask first"), because two
310
+ machines each keeping the other at its own build would undo each other's
311
+ updates.
312
+ - A machine you added yourself keeps the address and update setting you gave it.
313
+
314
+ A machine is kept at this machine's build: when it runs another commit, the
315
+ board updates it to this build's commit in the background (fetched by sha,
316
+ built, installed), once per machine per commit, and its chats switch to the
317
+ new build only once they are quiet — never mid-turn. A failed update is shown
318
+ ("update failed") and not retried in a loop. A build with no commit of its own
319
+ (the npm package) updates nothing by itself.
320
+
321
+ Tab on an added machine in `/machine` offers **Update ClikCode** (to this
322
+ build's commit; **Finish installing** for one whose install stopped),
323
+ **Updates: automatic / ask first** (ask first: it is shown as "needs update"
324
+ and updated only when you say so) and **Remove…**: forget it
325
+ here, and optionally uninstall it there (`~/.local/share/clikcode` and the
326
+ `~/.local/bin/clikcode` link) — its own chats and accounts in `~/.clikcode`
327
+ are deleted only if you choose that too. The machines are kept in
328
+ `~/.clikcode/remote/machines.json`.
329
+
330
+ `/update [commit]` updates ClikCode on the machine the chat runs on — in a
331
+ chat on another machine, that machine. A ClikCode Remote install is reset to
332
+ GitHub `main` (or the commit) and rebuilt; the npm package runs
333
+ `npm install -g clikcode@latest`; a developer checkout is left alone, and
334
+ `/update` says what to run in it. `clikcode update` does the same from a
335
+ shell.
336
+
337
+ ## Moving a conversation to another tool
338
+
339
+ Changing accounts keeps you on the same tool. Changing the tool is one
340
+ command: `/provider` to pick from a list, or its name directly — `/claude`,
341
+ `/codex`, `/gemini` — with your next message on the same line.
342
+
343
+ ```
344
+ /codex have another look at the migration
345
+ ```
346
+
347
+ The conversation keeps its name, its history and its place in your list. No
348
+ vendor can read another vendor's memory, so ClikCode writes the conversation
349
+ into the new tool's own thread where it knows that tool's format, and sends it
350
+ as context where it does not. When a tool has already summarized the opening
351
+ turns (a compaction), the summary goes in their place; `/history` and
352
+ `/export` show it, and the conversation's row says "first N turns summarized".
353
+ On a long thread that costs tokens and a few seconds. Nothing else changes.
354
+
355
+ ## MCP servers for ClikCode's own agent
356
+
357
+ A tool's MCP servers, skills and hooks are that tool's own: ClikCode never
358
+ writes into its configuration. For ClikCode's own agent, record a server once:
359
+
360
+ ```sh
361
+ clikcode mcp add postgres -- npx -y pg-mcp # record it for ClikCode's own agent
362
+ clikcode mcp list # what is recorded
363
+ clikcode mcp remove postgres # forget it
364
+ clikcode mcp login <name> # OAuth sign-in to a remote server
365
+ clikcode mcp logout <name> # forget that sign-in
366
+ ```
367
+
368
+ A tool's own servers are managed with that tool's own commands (`/mcp` in a
369
+ conversation on it).
370
+
371
+ Claude Code's plugins (skills, commands, agents, hooks, MCP servers) can be
372
+ used by ClikCode's own agent too. `clikcode plugin list` shows the plugins
373
+ installed for Claude Code and whether ClikCode uses each;
374
+ `clikcode plugin enable <plugin>` and `disable <plugin>` choose. Installing a
375
+ plugin stays Claude Code's job.
376
+
377
+ ## Everyday commands
378
+
379
+ Everything above is reachable from the command line too, for scripting or for
380
+ when you would rather type than pick.
381
+
382
+ | Command | What it does |
383
+ | --- | --- |
384
+ | `clikcode` | Open (or resume) the default interactive session |
385
+ | `clikcode doctor` | Which tools are installed, their versions and what each can do |
386
+ | `clikcode update [commit]` | Update this machine's ClikCode the way it was installed |
387
+ | `clikcode accounts providers` | Every supported tool and how it signs in |
388
+ | `clikcode accounts login <tool> [--label <label>]` | Run that tool's own login, kept separate from your others |
389
+ | `clikcode accounts list` / `status` / `logout` / `remove` | Your accounts: what they are called, and what is left on each |
390
+ | `clikcode models` | The models your local accounts offer |
391
+ | `clikcode usage` | The calls and tokens ClikCode recorded, every one (what is left on each account is `accounts list`) |
392
+ | `clikcode sessions list` / `show` / `create` / `resume` (also `open`) / `send` / `command` / `set` / `close` | Your conversations, including ones a tool started on its own; `command <id> <slash…>` runs a slash command on one |
393
+ | `clikcode send <prompt> [--chat <id\|name\|last>] [--harness <tool>] [--model <model>] [--permissions <mode>]` | Send one message without opening a session: a new chat, or continue one |
394
+ | `clikcode search <words>` | Find the conversations that mention something, any provider, most mentions first; `--json` gives each hit and its first mention |
395
+ | `clikcode logs [--session <id>] [--role <role>] [--since 10m] [-f]` | What every ClikCode window, worker and editor bridge did, in order; the first place to look when something went wrong |
396
+ | `clikcode permissions [ask\|bypass\|auto]` | Approval behavior for the active chat |
397
+ | `clikcode computer on` / `off` / `status` / `inspect` / `login [url] [--new]` / `logins` | Browser and desktop use for ClikCode's agent, and its private sign-in: see `docs/COMPUTER_USE.md` |
398
+ | `clikcode mcp add` / `list` / `remove` / `login` / `logout` | MCP servers for ClikCode's own agent (below) |
399
+ | `clikcode plugin list` / `enable <plugin>` / `disable <plugin>` | Which of Claude Code's plugins ClikCode's own agent uses |
400
+ | `clikcode acp add <command> <binary> [-- <flags>]` / `acp list` / `acp remove` | An ACP agent the catalog does not ship |
401
+ | `clikcode gateway login [--github]` / `gateway status` / `gateway models` | ClikDeploy Gateway sign-in (Google by default), and the models it offers |
402
+ | `clikcode gateway usage [--days N]` | Your AI use and credit as ClikDeploy Gateway records it: every call, by surface and model |
403
+ | `clikcode gateway credit [--amount USD]` | Add AI credit: opens a Stripe checkout ($5–$500). Paying it also saves your card for automatic top-ups when credit runs low |
404
+ | `clikcode gateway credit --auto-topup on\|off` | Turn those automatic top-ups on or off |
405
+
406
+ Output is JSON when it is not going to a terminal, so ClikCode scripts
407
+ cleanly -- one record per line, so a command that reports twice is still
408
+ parseable -- and readable text when it is. `--json` or `--human` forces one,
409
+ and `--debug` adds the stack and HTTP detail when something fails.
410
+
411
+ ## Inside a session
412
+
413
+ Most of the time you will not type any of those. You will be in a session,
414
+ where everything is a slash away.
415
+
416
+ Pressing `/` opens a searchable list of ClikCode's 50 commands. Twelve are pinned
417
+ at the top, in the order people reach for them: resume a conversation, pick a
418
+ tool, an account on it, then its model, a private model, the machine it runs on,
419
+ start over, change what needs your approval, then settings, sessions, status and
420
+ help. (The terminal leaves `/resume` out of the list — ← on an empty line is the
421
+ conversation board — so it pins eleven; typed, `/resume` still works.)
422
+
423
+ | Command | What it does |
424
+ | --- | --- |
425
+ | `/resume` | resume another conversation |
426
+ | `/provider` | choose a provider |
427
+ | `/account [label]` | switch accounts |
428
+ | `/model [name]` | choose or set a model |
429
+ | `/hosted ai` | search Hugging Face and run a hosted AI model on ClikDeploy compute |
430
+ | `/machine` | the machine this chat runs on: move it, add one, or update or remove one |
431
+ | `/restart` | switch this window to the newest installed ClikCode; the chat stays and what is running keeps running |
432
+ | `/new [first message]` | start a fresh conversation (the current one stays resumable) |
433
+ | `/permissions [ask\|bypass\|auto]` (also `/permission`) | approval behavior |
434
+ | `/settings` | configure this workspace (below) |
435
+ | `/sessions` | manage conversations |
436
+ | `/status` | current configuration |
437
+ | `/help` | all commands |
438
+
439
+ `/help` lists every command grouped by topic instead of by frequency, since a
440
+ reference reads better that way. All of them, grouped as `/help` groups them:
441
+
442
+ **Conversation**
443
+
444
+ | Command | What it does |
445
+ | --- | --- |
446
+ | `/new [first message]` (also `/clear`, `/reset`) | start a fresh conversation (the current one stays resumable) |
447
+ | `/compact [focus]` | ask the selected vendor harness to compact this conversation, where it supports the command |
448
+ | `/history` | show this conversation; a summary carried for its opening turns comes first |
449
+ | `/hindsight` | this conversation cut into topics, newest first, with the files each one changed, numbered by your prompts — the numbers `/fork @N` and `/redo @N` take |
450
+ | `/copy` | copy the last answer |
451
+ | `/export [path]` | write the transcript as markdown |
452
+ | `/changes [N\|path]` | each turn's file edits, newest first; `N` shows that turn's diff. With a path, every turn in any conversation that edited that file, newest first: pick one and its conversation opens at that turn (↑↓ to the others) |
453
+ | `/redo [@N] [keep]` | go back to before one of your prompts and send it again, edited or not; that turn's file edits and every later one's are put back (unless `keep`), and a file changed since is left alone and named. The conversation as it was is archived beside it. ClikCode's agent restores its own snapshots; a vendor harness's edits are reversed from the diffs it reported (not on the plain-text CLIs, Aider and Continue). What a shell command changed is put back only for ClikCode's agent, and only files tracked in the git repository. To undo a turn, `/redo` to before it and leave the prompt unsent; there is no separate undo command |
454
+ | `//text` | send text straight to the tool, unchanged |
455
+ | `/select` | release the mouse so you can select and copy text |
456
+ | `/redraw` | repaint the screen |
457
+ | `/exit` (also `/quit`) | save and leave |
458
+
459
+ Every turn's file changes are recorded for the whole conversation, so
460
+ `/changes`, `/hindsight` and `/redo` reach back to its first turn. The record
461
+ of an old turn keeps its files and line counts, but once a conversation's log
462
+ passes 2 MiB the oldest turns' diff text is dropped; such a turn is listed,
463
+ not reversed.
464
+
465
+ **Workspace**
466
+
467
+ | Command | What it does |
468
+ | --- | --- |
469
+ | `/review [focus]` | review uncommitted changes: the tool's own `/review` where it takes slash commands, and ClikCode's own agent; not available for other tools |
470
+ | `/init` | create or improve the instructions file: the tool's own `/init` where it takes slash commands |
471
+ | `/memory [edit]` | show what the tool remembers about this project; `edit` opens `$EDITOR` |
472
+ | `/diff` | changes against HEAD, staged included, plus untracked files |
473
+ | `/cwd [dir]` | show or change the working directory |
474
+ | `/add-dir <dir>` | let the tool write in another directory too |
475
+ | `/mention [path\|clear]` | attach a file to the next request; alone, list what is attached; `clear` empties it |
476
+
477
+ **Provider**
478
+
479
+ | Command | What it does |
480
+ | --- | --- |
481
+ | `/provider` (also `/switch`) | choose a provider |
482
+ | `/account [label\|login\|add\|remove …]` (also `/accounts`) | switch, add or remove accounts |
483
+ | `/login` | sign in to the current provider |
484
+ | `/logout` | sign the current account out |
485
+ | `/gateway` | route this conversation through ClikDeploy Gateway |
486
+
487
+ **Settings**
488
+
489
+ | Command | What it does |
490
+ | --- | --- |
491
+ | `/model [name]` | choose or set a model |
492
+ | `/hosted ai` | search Hugging Face and run a hosted AI model on ClikDeploy compute: a model of your own, started when you choose it and waited for (the Gateway reports how the start is going) rather than failing |
493
+ | `/effort [level]` | reasoning level |
494
+ | `/fast [on\|off]` | on ClikDeploy Gateway, serve from the fastest provider of the model instead of the cheapest |
495
+ | `/permissions [ask\|bypass\|auto]` (also `/permission`) | approval behavior |
496
+ | `/sandbox [on\|off]` | ClikCode's own agent: its shell commands write only the workspace, temp and caches (on by default) |
497
+ | `/computer [on\|off\|inspect\|logins\|login [url] [--new]]` | let the agent use this computer's browser and desktop. `login` signs in privately: the one saved account is used, several show a picker, new logins are saved only once sign-in completes, and one-time codes are asked for each time and never kept. `logins` reviews and removes saved logins (shown only to you); `inspect` shows the sign-in fields without their values |
498
+ | `/send [steer\|queue]` | messages typed mid-turn: steer them into the running turn at its next pause (where the agent takes steering; elsewhere they queue, and say so), or queue them for after it. Global; bare `/send` shows the two |
499
+ | `/options` | provider-specific modes and controls |
500
+ | `/capabilities` | what the selected provider supports |
501
+ | `/settings [tools\|route\|account\|model\|effort\|permissions\|option\|global\|provider …]` | configure this workspace. Bare, the settings screen; `tools` goes straight to MCP servers, skills and agents; `option <id> <value\|default>` sets one of the tool's own options; `global <effort\|permissions\|send> <value>` and `provider <id> <model\|effort\|permissions> <value>` (or `provider <id> clear`) set defaults |
502
+
503
+ **Plan mode** is a row in `/settings`: read-only, plan and change nothing. On
504
+ Claude Code and ClikCode's own agent it is kept on the chat until you approve
505
+ the plan; GitHub Copilot, Cursor, Cline, Antigravity, Factory Droid (spec mode),
506
+ Command Code and Auggie get it as their own option.
507
+
508
+ **Sessions**
509
+
510
+ | Command | What it does |
511
+ | --- | --- |
512
+ | `/sessions [list\|show\|open\|close <id>]` | manage conversations |
513
+ | `/resume [name]` | resume another conversation (the board, or straight to the one a name picks out) |
514
+ | `/search <words>` | open the conversation that mentions something most, at its first mention: ↑↓ walk the mentions, Tab the next conversation, Esc stays there |
515
+ | `/rename [name]` | name this conversation |
516
+ | `/fork [@N] [name]` | branch this conversation, or only through your prompt N |
517
+ | `/archive` | archive this conversation |
518
+ | `/delete [confirm]` | delete this conversation |
519
+ | `/machine` | the machine this chat runs on: move it to this one, one added, one on your tailnet or one by SSH address (added first, ClikCode installed there over SSH); Tab on an added one to update or remove it ([ClikCode Remote](#your-other-machines-clikcode-remote)) |
520
+
521
+ **Tools**
522
+
523
+ | Command | What it does |
524
+ | --- | --- |
525
+ | `/agents [stop <id>\|stop all] [confirm]` | background agents: list them, or stop one. Esc, Ctrl+C, closing a window and a new ClikCode build never stop them; this does, after naming what it ends |
526
+
527
+ **Info**
528
+
529
+ | Command | What it does |
530
+ | --- | --- |
531
+ | `/status` | current configuration |
532
+ | `/context` | how much of the model's context this conversation is using |
533
+ | `/usage [all]` (also `/cost`) | quota, tokens, and cost for the provider you are in, and this chat; `all` for every provider and the last seven days |
534
+ | `/doctor` | check your installed tools and accounts |
535
+ | `/update [commit]` | update ClikCode on the machine this chat runs on ([ClikCode Remote](#your-other-machines-clikcode-remote)) |
536
+ | `/help` | all commands |
537
+
538
+ A command that doesn't apply right now — no provider chosen yet, or a
539
+ Gateway-managed setting on the ClikDeploy Gateway route — stays listed with a reason
540
+ (`unavailable · …`) instead of disappearing, so the palette always explains
541
+ itself.
542
+
543
+ Three shortcuts are not in the list but work anywhere. Typing a tool's name —
544
+ `/claude`, `/codex` — hands the conversation to it, with your next message on
545
+ the same line if you want. `//` sends whatever follows straight to the
546
+ tool, unchanged, for the occasions when you want its own syntax rather than
547
+ ClikCode's. And `!<command>` runs a shell command here, its output going into
548
+ the next request.
549
+
550
+ Some tools bring commands of their own (`/mcp`, `/plugins`, …), and a few
551
+ announce more mid-conversation. Those work when typed and appear in `/help`,
552
+ but stay out of the list so they don't read as ClikCode's. On ClikCode's own
553
+ agent, `/mcp` lists its MCP servers, and `/mcp login <name>` and
554
+ `/mcp logout <name>` sign it in and out of one. Your own commands work too:
555
+ drop a `*.md` prompt template in `.clikcode/commands/` for this project, or
556
+ `~/.clikcode/commands/` for all of them, and it becomes a slash command named
557
+ after the file.
558
+
559
+ ## Running without a vendor tool
560
+
561
+ Everything above assumes the tools are on your machine. When they are not,
562
+ sign in to ClikDeploy Gateway instead: it supplies the model, and ClikCode runs
563
+ the coding agent itself — same conversations, same commands, no vendor CLI.
564
+
565
+ Nothing is routed through it until you sign in with `clikcode gateway login`.
566
+ The gateway is ClikDeploy Gateway, and it is listed with your other providers.
567
+
568
+ ## What ClikCode keeps, and where
569
+
570
+ Everything it owns is under `~/.clikcode`, readable only by you (directories
571
+ `0700`, files `0600`):
572
+
573
+ - `index.json` — accounts (labels and credential *references*), the session
574
+ index, usage records and the installation id
575
+ - `secrets.json` — this device's key
576
+ - `sessions/` — session records and history
577
+ - `turn-changes/` — each conversation's per-turn file changes (`/changes`, `/redo`)
578
+ - `profiles/<harness>/<account-id>/` — per-account vendor configuration roots
579
+ - `crash.log` — uncaught errors
580
+ - `remote/machines.json` — the machines added (`/machine`), and their chats as last seen
581
+
582
+ Set `CLIKCODE_HOME` to relocate the state directory (tests, portable installs).
583
+ `crash.log` and a gateway credential, if you sign in, always live outside it:
584
+ `~/.clikcode/crash.log`, `~/.config/clikcode/auth.json` (or under
585
+ `$XDG_CONFIG_HOME`) and `~/.clikcode/api-key`.
586
+
587
+ ## Tuning and accessibility
588
+
589
+ Two of these matter even if you set nothing else. `CLIKCODE_SCREEN_READER`
590
+ switches to a plain, append-only view that a screen reader announces once and
591
+ in order. `CLIKCODE_REDUCED_MOTION` holds the spinner still; the answer still
592
+ streams at full speed.
593
+
594
+ | Variable | Effect |
595
+ | --- | --- |
596
+ | `CLIKCODE_HOME` | State directory instead of `~/.clikcode` |
597
+ | `CLIKCODE_REDUCED_MOTION` | Any value other than empty, `0` or `false` holds the spinner on one frame and slows repainting. The turn still streams |
598
+ | `NO_MOTION` | Same as `CLIKCODE_REDUCED_MOTION`, used when that is unset |
599
+ | `CLIKCODE_SCREEN_READER` | Any value other than empty, `0` or `false` switches to the append-only, line-oriented renderer so output is announced once, in order |
600
+ | `CLIKCODE_TUI` | `classic` uses the terminal's native scrollback and a line-oriented prompt if fullscreen rendering misbehaves; `fullscreen` uses the interactive alternate-screen view (the default on capable terminals) |
601
+ | `FORCE_COLOR` | `0` disables color; `1`–`3` force a color level |
602
+ | `CLIKCODE_OUTPUT_MODE` | `json` or `human`, the same as `--json` / `--human` |
603
+ | `CLIKCODE_DEBUG` | `1` is the same as `--debug` |
604
+ | `CLIKCODE_GATEWAY_URL` | ClikDeploy Gateway endpoint used by `gateway login` and the gateway route |
605
+
606
+ ## Development
607
+
608
+ If you want to work on ClikCode itself:
609
+
610
+ ```sh
611
+ pnpm install
612
+ pnpm build # dist/index.js (the entry), cli.js, harness-catalog.cjs, ai-router-runtime.cjs
613
+ pnpm build:analyze # + bundle report: top inputs by bytes, runtime packages
614
+ pnpm build:strict # + fail on a missing or extra runtime dependency
615
+ pnpm type-check # tsc over src/ and over packages/clikrouter
616
+ pnpm test # the ClikCode suite
617
+ pnpm test:router # the router package's suite
618
+ pnpm test:all # both suites
619
+ pnpm test:smoke # build, then --help and doctor against the built binary
620
+ pnpm test:pack # assert tarball contents, npm install -g it into a temp prefix, run it
621
+ pnpm test:display # the terminal UI driven in a real pty: nothing flashes, vanishes or doubles
622
+ ```
623
+
624
+ Three packages, one lockfile:
625
+
626
+ - `src/` — the CLI, one folder per layer: `cli/` (argv, output modes, errors),
627
+ `commands/` (the verbs), `session/` and `turn/` (state and the turn loop),
628
+ `agent/` (ClikCode's own coding agent: tools, permissions, checkpoints),
629
+ `harness/` (driving the vendor CLIs over argv/ACP/app-server),
630
+ `gateway/` (the gateway adapter), `tui/`, `runtime/`.
631
+ - `packages/clikrouter` (`@clikcode/router`) — provider-agnostic request
632
+ normalization and router selection across dozens of providers, consumed as source
633
+ and bundled into `dist/*.cjs`.
634
+ - `packages/vscode` — the VS Code extension (`clikcode.clikcode`). It runs the
635
+ installed ClikCode through `clikcode ide-bridge` (`src/ide/`); its own checks are
636
+ `pnpm --dir packages/vscode type-check`, `test`, `run package` and, in a real
637
+ VS Code, `test:integration`.
638
+
639
+ `dist/cli.js` inlines the small pure-JS dependencies (chalk, commander, conf,
640
+ cross-spawn, marked) so startup is a single file read, which is why the
641
+ published package declares only the runtime dependencies it loads
642
+ (`@huggingface/gguf`, `playwright-core`, `unpdf`, `yaml`) — a property the build asserts rather than
643
+ assumes. The version reported by `--version` is
644
+ injected at build time from `package.json`.
645
+
646
+ Releases are published by ClikDeploy, not by hand or by CI: `package.json`
647
+ holds MAJOR.MINOR, and ClikDeploy assigns the patch, stamps it, and publishes
648
+ to npm with a matching GitHub release (see `packages/vscode/PUBLISHING.md`).
649
+
650
+ ## License
651
+
652
+ MIT