clikcode 0.0.0-stage → 1.0.1
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/LICENSE +21 -0
- package/README.md +514 -2
- package/dist/ai-router-runtime.cjs +89343 -0
- package/dist/cli.js +80042 -0
- package/dist/harness-catalog.cjs +2015 -0
- package/dist/index.js +9 -0
- package/package.json +73 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) ClikDeploy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,515 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ClikCode
|
|
2
2
|
|
|
3
|
-
|
|
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
|
+
## When an account runs out
|
|
189
|
+
|
|
190
|
+
ClikCode watches how much each account has left — `/usage` shows it, and it
|
|
191
|
+
sits in the corner of the screen while you work. When the one you are on is
|
|
192
|
+
spent, the turn moves to another account of the same tool and the answer keeps
|
|
193
|
+
arriving. You are told after the fact, not asked first.
|
|
194
|
+
|
|
195
|
+
What travels is the point. ClikCode copies the tool's own conversation file
|
|
196
|
+
into the next account and resumes it there, so the model continues the real
|
|
197
|
+
thread instead of a summary of it. It does not re-read your project, and it
|
|
198
|
+
does not forget what it just said.
|
|
199
|
+
|
|
200
|
+
This happens automatically whenever another usable account for the same
|
|
201
|
+
provider and transport is available.
|
|
202
|
+
|
|
203
|
+
## Resume anything, from anywhere
|
|
204
|
+
|
|
205
|
+
`/resume` shows two things: your ClikCode conversations, and chats the tools
|
|
206
|
+
started on their own — ones you ran in Claude Code or Codex directly, before
|
|
207
|
+
ClikCode was involved.
|
|
208
|
+
|
|
209
|
+
Pick one of the second kind and it becomes one of the first. It gets a row in
|
|
210
|
+
your list, and you can carry it on, fork it, rename it or hand it to another
|
|
211
|
+
tool.
|
|
212
|
+
|
|
213
|
+
Claude Code, Codex and OpenCode hand over their full history when adopted, so
|
|
214
|
+
you can scroll back through it. For the others the thread is real and the tool
|
|
215
|
+
remembers all of it, but ClikCode's own view starts at your next message.
|
|
216
|
+
|
|
217
|
+
## Moving a conversation to another tool
|
|
218
|
+
|
|
219
|
+
Changing accounts keeps you on the same tool. Changing the tool is one
|
|
220
|
+
command: `/provider` to pick from a list, or its name directly — `/claude`,
|
|
221
|
+
`/codex`, `/gemini` — with your next message on the same line.
|
|
222
|
+
|
|
223
|
+
```
|
|
224
|
+
/codex have another look at the migration
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
The conversation keeps its name, its history and its place in your list. No
|
|
228
|
+
vendor can read another vendor's memory, so ClikCode writes the conversation
|
|
229
|
+
into the new tool's own thread where it knows that tool's format, and sends it
|
|
230
|
+
as context where it does not. When a tool has already summarized the opening
|
|
231
|
+
turns (a compaction), the summary goes in their place; `/history` and
|
|
232
|
+
`/export` show it, and the conversation's row says "first N turns summarized".
|
|
233
|
+
On a long thread that costs tokens and a few seconds. Nothing else changes.
|
|
234
|
+
|
|
235
|
+
## MCP servers for ClikCode's own agent
|
|
236
|
+
|
|
237
|
+
A tool's MCP servers, skills and hooks are that tool's own: ClikCode never
|
|
238
|
+
writes into its configuration. For ClikCode's own agent, record a server once:
|
|
239
|
+
|
|
240
|
+
```sh
|
|
241
|
+
clikcode mcp add postgres -- npx -y pg-mcp # record it for ClikCode's own agent
|
|
242
|
+
clikcode mcp list # what is recorded
|
|
243
|
+
clikcode mcp remove postgres # forget it
|
|
244
|
+
clikcode mcp login <name> # OAuth sign-in to a remote server
|
|
245
|
+
clikcode mcp logout <name> # forget that sign-in
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
A tool's own servers are managed with that tool's own commands (`/mcp` in a
|
|
249
|
+
conversation on it).
|
|
250
|
+
|
|
251
|
+
Claude Code's plugins (skills, commands, agents, hooks, MCP servers) can be
|
|
252
|
+
used by ClikCode's own agent too. `clikcode plugin list` shows the plugins
|
|
253
|
+
installed for Claude Code and whether ClikCode uses each;
|
|
254
|
+
`clikcode plugin enable <plugin>` and `disable <plugin>` choose. Installing a
|
|
255
|
+
plugin stays Claude Code's job.
|
|
256
|
+
|
|
257
|
+
## Everyday commands
|
|
258
|
+
|
|
259
|
+
Everything above is reachable from the command line too, for scripting or for
|
|
260
|
+
when you would rather type than pick.
|
|
261
|
+
|
|
262
|
+
| Command | What it does |
|
|
263
|
+
| --- | --- |
|
|
264
|
+
| `clikcode` | Open (or resume) the default interactive session |
|
|
265
|
+
| `clikcode doctor` | Which tools are installed, their versions and what each can do |
|
|
266
|
+
| `clikcode accounts providers` | Every supported tool and how it signs in |
|
|
267
|
+
| `clikcode accounts login <tool> [--label <label>]` | Run that tool's own login, kept separate from your others |
|
|
268
|
+
| `clikcode accounts list` / `status` / `logout` / `remove` | Your accounts: what they are called, and what is left on each |
|
|
269
|
+
| `clikcode models` | The models your local accounts offer |
|
|
270
|
+
| `clikcode usage` | The calls and tokens ClikCode recorded, every one (what is left on each account is `accounts list`) |
|
|
271
|
+
| `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 |
|
|
272
|
+
| `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 |
|
|
273
|
+
| `clikcode search <words>` | Find the conversations that mention something, any provider, most mentions first; `--json` gives each hit and its first mention |
|
|
274
|
+
| `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
|
+
| `clikcode permissions [ask\|bypass\|auto]` | Approval behavior for the active chat |
|
|
276
|
+
| `clikcode mcp add` / `list` / `remove` / `login` / `logout` | MCP servers for ClikCode's own agent (below) |
|
|
277
|
+
| `clikcode plugin list` / `enable <plugin>` / `disable <plugin>` | Which of Claude Code's plugins ClikCode's own agent uses |
|
|
278
|
+
| `clikcode acp add <command> <binary> [-- <flags>]` / `acp list` / `acp remove` | An ACP agent the catalog does not ship |
|
|
279
|
+
| `clikcode gateway login [--github]` / `gateway status` / `gateway models` | ClikDeploy Gateway sign-in (Google by default), and the models it offers |
|
|
280
|
+
| `clikcode gateway usage [--days N]` | Your AI use and credit as ClikDeploy Gateway records it: every call, by surface and model |
|
|
281
|
+
| `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 |
|
|
282
|
+
| `clikcode gateway credit --auto-topup on\|off` | Turn those automatic top-ups on or off |
|
|
283
|
+
|
|
284
|
+
Output is JSON when it is not going to a terminal, so ClikCode scripts
|
|
285
|
+
cleanly -- one record per line, so a command that reports twice is still
|
|
286
|
+
parseable -- and readable text when it is. `--json` or `--human` forces one,
|
|
287
|
+
and `--debug` adds the stack and HTTP detail when something fails.
|
|
288
|
+
|
|
289
|
+
## Inside a session
|
|
290
|
+
|
|
291
|
+
Most of the time you will not type any of those. You will be in a session,
|
|
292
|
+
where everything is a slash away.
|
|
293
|
+
|
|
294
|
+
Pressing `/` opens a searchable list of ClikCode's 43 commands. Ten are pinned
|
|
295
|
+
at the top, in the order people reach for them: resume a conversation, pick a
|
|
296
|
+
tool, an account on it, then its model, start over, change what needs your
|
|
297
|
+
approval, then settings, sessions, status and help. (The terminal leaves
|
|
298
|
+
`/resume` out of the list — ← on an empty line is the conversation board — so
|
|
299
|
+
it pins nine; typed, `/resume` still works.)
|
|
300
|
+
|
|
301
|
+
| Command | What it does |
|
|
302
|
+
| --- | --- |
|
|
303
|
+
| `/resume` | resume another conversation |
|
|
304
|
+
| `/provider` | choose a provider |
|
|
305
|
+
| `/account [label]` | switch accounts |
|
|
306
|
+
| `/model [name]` | choose or set a model |
|
|
307
|
+
| `/new [first message]` | start a fresh conversation (the current one stays resumable) |
|
|
308
|
+
| `/permissions [ask\|bypass\|auto]` | approval behavior |
|
|
309
|
+
| `/settings` | configure this workspace (below) |
|
|
310
|
+
| `/sessions` | manage conversations |
|
|
311
|
+
| `/status` | current configuration |
|
|
312
|
+
| `/help` | all commands |
|
|
313
|
+
|
|
314
|
+
`/help` lists every command grouped by topic instead of by frequency, since a
|
|
315
|
+
reference reads better that way. All of them, grouped as `/help` groups them:
|
|
316
|
+
|
|
317
|
+
**Conversation**
|
|
318
|
+
|
|
319
|
+
| Command | What it does |
|
|
320
|
+
| --- | --- |
|
|
321
|
+
| `/new [first message]` (also `/clear`, `/reset`) | start a fresh conversation (the current one stays resumable) |
|
|
322
|
+
| `/compact [focus]` | the tool's own compaction of this conversation, where it has one (ClikCode's own agent compacts by itself) |
|
|
323
|
+
| `/history` | show this conversation; a summary carried for its opening turns comes first |
|
|
324
|
+
| `/copy` | copy the last answer |
|
|
325
|
+
| `/export [path]` | write the transcript as markdown |
|
|
326
|
+
| `/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) |
|
|
327
|
+
| `/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 |
|
|
328
|
+
| `//text` | send text straight to the tool, unchanged |
|
|
329
|
+
| `/select` | release the mouse so you can select and copy text |
|
|
330
|
+
| `/redraw` | repaint the screen |
|
|
331
|
+
| `/exit` (also `/quit`) | save and leave |
|
|
332
|
+
|
|
333
|
+
Every turn's file changes are recorded for the whole conversation, so
|
|
334
|
+
`/changes` and `/redo` reach back to its first turn. The record
|
|
335
|
+
of an old turn keeps its files and line counts, but once a conversation's log
|
|
336
|
+
passes 2 MiB the oldest turns' diff text is dropped; such a turn is listed,
|
|
337
|
+
not reversed.
|
|
338
|
+
|
|
339
|
+
**Workspace**
|
|
340
|
+
|
|
341
|
+
| Command | What it does |
|
|
342
|
+
| --- | --- |
|
|
343
|
+
| `/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 |
|
|
344
|
+
| `/init` | create or improve the instructions file: the tool's own `/init` where it takes slash commands |
|
|
345
|
+
| `/memory [edit]` | show what the tool remembers about this project; `edit` opens `$EDITOR` |
|
|
346
|
+
| `/diff` | changes against HEAD, staged included, plus untracked files |
|
|
347
|
+
| `/cwd [dir]` | show or change the working directory |
|
|
348
|
+
| `/add-dir <dir>` | let the tool write in another directory too |
|
|
349
|
+
| `/mention [path\|clear]` | attach a file to the next request; alone, list what is attached; `clear` empties it |
|
|
350
|
+
|
|
351
|
+
**Provider**
|
|
352
|
+
|
|
353
|
+
| Command | What it does |
|
|
354
|
+
| --- | --- |
|
|
355
|
+
| `/provider` (also `/switch`) | choose a provider |
|
|
356
|
+
| `/account [label\|login\|add\|remove …]` (also `/accounts`) | switch, add or remove accounts |
|
|
357
|
+
| `/login` | sign in to the current provider |
|
|
358
|
+
| `/logout` | sign the current account out |
|
|
359
|
+
| `/gateway` | route this conversation through ClikDeploy Gateway |
|
|
360
|
+
|
|
361
|
+
**Settings**
|
|
362
|
+
|
|
363
|
+
| Command | What it does |
|
|
364
|
+
| --- | --- |
|
|
365
|
+
| `/model [name]` | choose or set a model |
|
|
366
|
+
| `/effort [level]` | reasoning level |
|
|
367
|
+
| `/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 |
|
|
369
|
+
| `/sandbox [on\|off]` | ClikCode's own agent: its shell commands write only the workspace, temp and caches (on by default) |
|
|
370
|
+
| `/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
|
+
| `/options` | provider-specific modes and controls |
|
|
372
|
+
| `/capabilities` | what the selected provider supports |
|
|
373
|
+
| `/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 |
|
|
374
|
+
|
|
375
|
+
**Plan mode** is a row in `/settings`: read-only, plan and change nothing. On
|
|
376
|
+
Claude Code and ClikCode's own agent it is kept on the chat until you approve
|
|
377
|
+
the plan; GitHub Copilot, Cursor, Cline, Antigravity, Factory Droid (spec mode),
|
|
378
|
+
Command Code and Auggie get it as their own option.
|
|
379
|
+
|
|
380
|
+
**Sessions**
|
|
381
|
+
|
|
382
|
+
| Command | What it does |
|
|
383
|
+
| --- | --- |
|
|
384
|
+
| `/sessions [list\|show\|open\|close <id>]` | manage conversations |
|
|
385
|
+
| `/resume [name]` | resume another conversation (the board, or straight to the one a name picks out) |
|
|
386
|
+
| `/search <words>` | open the conversation that mentions something most, at its first mention: ↑↓ walk the mentions, Tab the next conversation, Esc stays there |
|
|
387
|
+
| `/rename [name]` | name this conversation |
|
|
388
|
+
| `/fork [@N] [name]` | branch this conversation, or only through your prompt N |
|
|
389
|
+
| `/archive` | archive this conversation |
|
|
390
|
+
| `/delete [confirm]` | delete this conversation |
|
|
391
|
+
|
|
392
|
+
**Info**
|
|
393
|
+
|
|
394
|
+
| Command | What it does |
|
|
395
|
+
| --- | --- |
|
|
396
|
+
| `/status` | current configuration |
|
|
397
|
+
| `/context` | how much of the model's context this conversation is using |
|
|
398
|
+
| `/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
|
+
| `/doctor` | check your installed tools and accounts |
|
|
400
|
+
| `/help` | all commands |
|
|
401
|
+
|
|
402
|
+
A command that doesn't apply right now — no provider chosen yet, or a
|
|
403
|
+
Gateway-managed setting on the ClikDeploy Gateway route — stays listed with a reason
|
|
404
|
+
(`unavailable · …`) instead of disappearing, so the palette always explains
|
|
405
|
+
itself.
|
|
406
|
+
|
|
407
|
+
Three shortcuts are not in the list but work anywhere. Typing a tool's name —
|
|
408
|
+
`/claude`, `/codex` — hands the conversation to it, with your next message on
|
|
409
|
+
the same line if you want. `//` sends whatever follows straight to the
|
|
410
|
+
tool, unchanged, for the occasions when you want its own syntax rather than
|
|
411
|
+
ClikCode's. And `!<command>` runs a shell command here, its output going into
|
|
412
|
+
the next request.
|
|
413
|
+
|
|
414
|
+
Some tools bring commands of their own (`/mcp`, `/plugins`, …), and a few
|
|
415
|
+
announce more mid-conversation. Those work when typed and appear in `/help`,
|
|
416
|
+
but stay out of the list so they don't read as ClikCode's. On ClikCode's own
|
|
417
|
+
agent, `/mcp` lists its MCP servers, and `/mcp login <name>` and
|
|
418
|
+
`/mcp logout <name>` sign it in and out of one. Your own commands work too:
|
|
419
|
+
drop a `*.md` prompt template in `.clikcode/commands/` for this project, or
|
|
420
|
+
`~/.clikcode/commands/` for all of them, and it becomes a slash command named
|
|
421
|
+
after the file.
|
|
422
|
+
|
|
423
|
+
## Running without a vendor tool
|
|
424
|
+
|
|
425
|
+
Everything above assumes the tools are on your machine. When they are not,
|
|
426
|
+
sign in to ClikDeploy Gateway instead: it supplies the model, and ClikCode runs
|
|
427
|
+
the coding agent itself — same conversations, same commands, no vendor CLI.
|
|
428
|
+
|
|
429
|
+
Nothing is routed through it until you sign in with `clikcode gateway login`.
|
|
430
|
+
The gateway is ClikDeploy Gateway, and it is listed with your other providers.
|
|
431
|
+
|
|
432
|
+
## What ClikCode keeps, and where
|
|
433
|
+
|
|
434
|
+
Everything it owns is under `~/.clikcode`, readable only by you (directories
|
|
435
|
+
`0700`, files `0600`):
|
|
436
|
+
|
|
437
|
+
- `index.json` — accounts (labels and credential *references*), the session
|
|
438
|
+
index, usage records and the installation id
|
|
439
|
+
- `secrets.json` — this device's key
|
|
440
|
+
- `sessions/` — session records and history
|
|
441
|
+
- `turn-changes/` — each conversation's per-turn file changes (`/changes`, `/redo`)
|
|
442
|
+
- `profiles/<harness>/<account-id>/` — per-account vendor configuration roots
|
|
443
|
+
- `crash.log` — uncaught errors
|
|
444
|
+
|
|
445
|
+
Set `CLIKCODE_HOME` to relocate the state directory (tests, portable installs).
|
|
446
|
+
`crash.log` and a gateway credential, if you sign in, always live outside it:
|
|
447
|
+
`~/.clikcode/crash.log`, `~/.config/clikcode/auth.json` (or under
|
|
448
|
+
`$XDG_CONFIG_HOME`) and `~/.clikcode/api-key`.
|
|
449
|
+
|
|
450
|
+
## Tuning and accessibility
|
|
451
|
+
|
|
452
|
+
Two of these matter even if you set nothing else. `CLIKCODE_SCREEN_READER`
|
|
453
|
+
switches to a plain, append-only view that a screen reader announces once and
|
|
454
|
+
in order. `CLIKCODE_REDUCED_MOTION` holds the spinner still; the answer still
|
|
455
|
+
streams at full speed.
|
|
456
|
+
|
|
457
|
+
| Variable | Effect |
|
|
458
|
+
| --- | --- |
|
|
459
|
+
| `CLIKCODE_HOME` | State directory instead of `~/.clikcode` |
|
|
460
|
+
| `CLIKCODE_REDUCED_MOTION` | Any value other than empty, `0` or `false` holds the spinner on one frame and slows repainting. The turn still streams |
|
|
461
|
+
| `NO_MOTION` | Same as `CLIKCODE_REDUCED_MOTION`, used when that is unset |
|
|
462
|
+
| `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 |
|
|
463
|
+
| `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) |
|
|
464
|
+
| `FORCE_COLOR` | `0` disables color; `1`–`3` force a color level |
|
|
465
|
+
| `CLIKCODE_OUTPUT_MODE` | `json` or `human`, the same as `--json` / `--human` |
|
|
466
|
+
| `CLIKCODE_DEBUG` | `1` is the same as `--debug` |
|
|
467
|
+
| `CLIKCODE_GATEWAY_URL` | ClikDeploy Gateway endpoint used by `gateway login` and the gateway route |
|
|
468
|
+
|
|
469
|
+
## Development
|
|
470
|
+
|
|
471
|
+
If you want to work on ClikCode itself:
|
|
472
|
+
|
|
473
|
+
```sh
|
|
474
|
+
pnpm install
|
|
475
|
+
pnpm build # dist/index.js (the entry), cli.js, harness-catalog.cjs, ai-router-runtime.cjs
|
|
476
|
+
pnpm build:analyze # + bundle report: top inputs by bytes, runtime packages
|
|
477
|
+
pnpm build:strict # + fail on a missing or extra runtime dependency
|
|
478
|
+
pnpm type-check # tsc over src/ and over packages/clikrouter
|
|
479
|
+
pnpm test # the ClikCode suite
|
|
480
|
+
pnpm test:router # the router package's suite
|
|
481
|
+
pnpm test:all # both suites
|
|
482
|
+
pnpm test:smoke # build, then --help and doctor against the built binary
|
|
483
|
+
pnpm test:pack # assert tarball contents, npm install -g it into a temp prefix, run it
|
|
484
|
+
pnpm test:display # the terminal UI driven in a real pty: nothing flashes, vanishes or doubles
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
Three packages, one lockfile:
|
|
488
|
+
|
|
489
|
+
- `src/` — the CLI, one folder per layer: `cli/` (argv, output modes, errors),
|
|
490
|
+
`commands/` (the verbs), `session/` and `turn/` (state and the turn loop),
|
|
491
|
+
`agent/` (ClikCode's own coding agent: tools, permissions, checkpoints),
|
|
492
|
+
`harness/` (driving the vendor CLIs over argv/ACP/app-server),
|
|
493
|
+
`gateway/` (the gateway adapter), `tui/`, `runtime/`.
|
|
494
|
+
- `packages/clikrouter` (`@clikcode/router`) — provider-agnostic request
|
|
495
|
+
normalization and router selection across dozens of providers, consumed as source
|
|
496
|
+
and bundled into `dist/*.cjs`.
|
|
497
|
+
- `packages/vscode` — the VS Code extension (`clikcode.clikcode`). It runs the
|
|
498
|
+
installed ClikCode through `clikcode ide-bridge` (`src/ide/`); its own checks are
|
|
499
|
+
`pnpm --dir packages/vscode type-check`, `test`, `run package` and, in a real
|
|
500
|
+
VS Code, `test:integration`.
|
|
501
|
+
|
|
502
|
+
`dist/cli.js` inlines the small pure-JS dependencies (chalk, commander, conf,
|
|
503
|
+
cross-spawn, marked) so startup is a single file read, which is why the
|
|
504
|
+
published package declares only the runtime dependencies it loads
|
|
505
|
+
(`@huggingface/gguf`, `yaml`) — a property the build asserts rather than
|
|
506
|
+
assumes. The version reported by `--version` is
|
|
507
|
+
injected at build time from `package.json`.
|
|
508
|
+
|
|
509
|
+
Releases are published by ClikDeploy, not by hand or by CI: `package.json`
|
|
510
|
+
holds MAJOR.MINOR, and ClikDeploy assigns the patch, stamps it, and publishes
|
|
511
|
+
to npm with a matching GitHub release (see `packages/vscode/PUBLISHING.md`).
|
|
512
|
+
|
|
513
|
+
## License
|
|
514
|
+
|
|
515
|
+
MIT
|