clikcode 1.0.1 → 1.0.3
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 +147 -10
- package/dist/ai-router-runtime.cjs +166 -117
- package/dist/cli.js +93965 -57886
- package/dist/computer-tools.js +24206 -0
- package/dist/harness-catalog.cjs +78 -95
- package/dist/index.js +1 -1
- package/dist/libclikcode-compat-x64.dylib +0 -0
- package/package.json +7 -1
package/README.md
CHANGED
|
@@ -185,6 +185,15 @@ install as you.
|
|
|
185
185
|
Switch by hand with `/account` in a session, or
|
|
186
186
|
`clikcode sessions set <id> --account <label>`.
|
|
187
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
|
+
|
|
188
197
|
## When an account runs out
|
|
189
198
|
|
|
190
199
|
ClikCode watches how much each account has left — `/usage` shows it, and it
|
|
@@ -214,6 +223,117 @@ Claude Code, Codex and OpenCode hand over their full history when adopted, so
|
|
|
214
223
|
you can scroll back through it. For the others the thread is real and the tool
|
|
215
224
|
remembers all of it, but ClikCode's own view starts at your next message.
|
|
216
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
|
+
|
|
217
337
|
## Moving a conversation to another tool
|
|
218
338
|
|
|
219
339
|
Changing accounts keeps you on the same tool. Changing the tool is one
|
|
@@ -263,6 +383,7 @@ when you would rather type than pick.
|
|
|
263
383
|
| --- | --- |
|
|
264
384
|
| `clikcode` | Open (or resume) the default interactive session |
|
|
265
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 |
|
|
266
387
|
| `clikcode accounts providers` | Every supported tool and how it signs in |
|
|
267
388
|
| `clikcode accounts login <tool> [--label <label>]` | Run that tool's own login, kept separate from your others |
|
|
268
389
|
| `clikcode accounts list` / `status` / `logout` / `remove` | Your accounts: what they are called, and what is left on each |
|
|
@@ -273,6 +394,7 @@ when you would rather type than pick.
|
|
|
273
394
|
| `clikcode search <words>` | Find the conversations that mention something, any provider, most mentions first; `--json` gives each hit and its first mention |
|
|
274
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 |
|
|
275
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` |
|
|
276
398
|
| `clikcode mcp add` / `list` / `remove` / `login` / `logout` | MCP servers for ClikCode's own agent (below) |
|
|
277
399
|
| `clikcode plugin list` / `enable <plugin>` / `disable <plugin>` | Which of Claude Code's plugins ClikCode's own agent uses |
|
|
278
400
|
| `clikcode acp add <command> <binary> [-- <flags>]` / `acp list` / `acp remove` | An ACP agent the catalog does not ship |
|
|
@@ -291,12 +413,12 @@ and `--debug` adds the stack and HTTP detail when something fails.
|
|
|
291
413
|
Most of the time you will not type any of those. You will be in a session,
|
|
292
414
|
where everything is a slash away.
|
|
293
415
|
|
|
294
|
-
Pressing `/` opens a searchable list of ClikCode's
|
|
416
|
+
Pressing `/` opens a searchable list of ClikCode's 50 commands. Twelve are pinned
|
|
295
417
|
at the top, in the order people reach for them: resume a conversation, pick a
|
|
296
|
-
tool, an account on it, then its model,
|
|
297
|
-
approval, then settings, sessions, status and
|
|
298
|
-
`/resume` out of the list — ← on an empty line is the
|
|
299
|
-
it pins
|
|
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.)
|
|
300
422
|
|
|
301
423
|
| Command | What it does |
|
|
302
424
|
| --- | --- |
|
|
@@ -304,8 +426,11 @@ it pins nine; typed, `/resume` still works.)
|
|
|
304
426
|
| `/provider` | choose a provider |
|
|
305
427
|
| `/account [label]` | switch accounts |
|
|
306
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 |
|
|
307
432
|
| `/new [first message]` | start a fresh conversation (the current one stays resumable) |
|
|
308
|
-
| `/permissions [ask\|bypass\|auto]` | approval behavior |
|
|
433
|
+
| `/permissions [ask\|bypass\|auto]` (also `/permission`) | approval behavior |
|
|
309
434
|
| `/settings` | configure this workspace (below) |
|
|
310
435
|
| `/sessions` | manage conversations |
|
|
311
436
|
| `/status` | current configuration |
|
|
@@ -319,8 +444,9 @@ reference reads better that way. All of them, grouped as `/help` groups them:
|
|
|
319
444
|
| Command | What it does |
|
|
320
445
|
| --- | --- |
|
|
321
446
|
| `/new [first message]` (also `/clear`, `/reset`) | start a fresh conversation (the current one stays resumable) |
|
|
322
|
-
| `/compact [focus]` | the
|
|
447
|
+
| `/compact [focus]` | ask the selected vendor harness to compact this conversation, where it supports the command |
|
|
323
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 |
|
|
324
450
|
| `/copy` | copy the last answer |
|
|
325
451
|
| `/export [path]` | write the transcript as markdown |
|
|
326
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) |
|
|
@@ -331,7 +457,7 @@ reference reads better that way. All of them, grouped as `/help` groups them:
|
|
|
331
457
|
| `/exit` (also `/quit`) | save and leave |
|
|
332
458
|
|
|
333
459
|
Every turn's file changes are recorded for the whole conversation, so
|
|
334
|
-
`/changes` and `/redo` reach back to its first turn. The record
|
|
460
|
+
`/changes`, `/hindsight` and `/redo` reach back to its first turn. The record
|
|
335
461
|
of an old turn keeps its files and line counts, but once a conversation's log
|
|
336
462
|
passes 2 MiB the oldest turns' diff text is dropped; such a turn is listed,
|
|
337
463
|
not reversed.
|
|
@@ -363,10 +489,12 @@ not reversed.
|
|
|
363
489
|
| Command | What it does |
|
|
364
490
|
| --- | --- |
|
|
365
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 |
|
|
366
493
|
| `/effort [level]` | reasoning level |
|
|
367
494
|
| `/fast [on\|off]` | on ClikDeploy Gateway, serve from the fastest provider of the model instead of the cheapest |
|
|
368
|
-
| `/permissions [ask\|bypass\|auto]` | approval behavior |
|
|
495
|
+
| `/permissions [ask\|bypass\|auto]` (also `/permission`) | approval behavior |
|
|
369
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 |
|
|
370
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 |
|
|
371
499
|
| `/options` | provider-specific modes and controls |
|
|
372
500
|
| `/capabilities` | what the selected provider supports |
|
|
@@ -388,6 +516,13 @@ Command Code and Auggie get it as their own option.
|
|
|
388
516
|
| `/fork [@N] [name]` | branch this conversation, or only through your prompt N |
|
|
389
517
|
| `/archive` | archive this conversation |
|
|
390
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 |
|
|
391
526
|
|
|
392
527
|
**Info**
|
|
393
528
|
|
|
@@ -397,6 +532,7 @@ Command Code and Auggie get it as their own option.
|
|
|
397
532
|
| `/context` | how much of the model's context this conversation is using |
|
|
398
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 |
|
|
399
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)) |
|
|
400
536
|
| `/help` | all commands |
|
|
401
537
|
|
|
402
538
|
A command that doesn't apply right now — no provider chosen yet, or a
|
|
@@ -441,6 +577,7 @@ Everything it owns is under `~/.clikcode`, readable only by you (directories
|
|
|
441
577
|
- `turn-changes/` — each conversation's per-turn file changes (`/changes`, `/redo`)
|
|
442
578
|
- `profiles/<harness>/<account-id>/` — per-account vendor configuration roots
|
|
443
579
|
- `crash.log` — uncaught errors
|
|
580
|
+
- `remote/machines.json` — the machines added (`/machine`), and their chats as last seen
|
|
444
581
|
|
|
445
582
|
Set `CLIKCODE_HOME` to relocate the state directory (tests, portable installs).
|
|
446
583
|
`crash.log` and a gateway credential, if you sign in, always live outside it:
|
|
@@ -502,7 +639,7 @@ Three packages, one lockfile:
|
|
|
502
639
|
`dist/cli.js` inlines the small pure-JS dependencies (chalk, commander, conf,
|
|
503
640
|
cross-spawn, marked) so startup is a single file read, which is why the
|
|
504
641
|
published package declares only the runtime dependencies it loads
|
|
505
|
-
(`@huggingface/gguf`, `yaml`) — a property the build asserts rather than
|
|
642
|
+
(`@huggingface/gguf`, `playwright-core`, `unpdf`, `yaml`) — a property the build asserts rather than
|
|
506
643
|
assumes. The version reported by `--version` is
|
|
507
644
|
injected at build time from `package.json`.
|
|
508
645
|
|