@kernelonpanic/kitcode 1.2.0 → 1.2.5
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 +286 -281
- package/README.ru.md +281 -276
- package/dist/index.js +952 -414
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,281 +1,286 @@
|
|
|
1
|
-
# KitCode
|
|
2
|
-
|
|
3
|
-
English · [Русский](./README.ru.md)
|
|
4
|
-
|
|
5
|
-
```text
|
|
6
|
-
╱\_╱\
|
|
7
|
-
( o.o )
|
|
8
|
-
> ^ <
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
KitCode is a terminal coding agent. It reads and edits files, searches a project, runs commands,
|
|
12
|
-
connects external tools through MCP, and keeps persistent session history.
|
|
13
|
-
|
|
14
|
-
The interface is built with TypeScript, React, and Ink. KitCode supports the Anthropic API and
|
|
15
|
-
OpenAI-compatible providers, including OpenRouter and local model servers.
|
|
16
|
-
|
|
17
|
-
## Features
|
|
18
|
-
|
|
19
|
-
- streaming responses with reasoning output;
|
|
20
|
-
- file reading, creation, and targeted editing;
|
|
21
|
-
- filename and content search;
|
|
22
|
-
- shell commands with approval prompts;
|
|
23
|
-
- `normal`, `accept`, and `plan` modes;
|
|
24
|
-
- persistent and resumable sessions with native terminal scrollback;
|
|
25
|
-
- searchable session management with rename, delete, and Markdown export;
|
|
26
|
-
- input history with the `↑` and `↓` keys;
|
|
27
|
-
- queued messages while the agent is working;
|
|
28
|
-
- image and UTF-8 text attachments;
|
|
29
|
-
- manual and automatic context compaction;
|
|
30
|
-
- token, estimated cost, exact context-window, and provider rate-limit indicators;
|
|
31
|
-
- automatic file checkpoints with `/undo`;
|
|
32
|
-
- detected project checks after file edits;
|
|
33
|
-
- model and provider switching from the TUI;
|
|
34
|
-
- live MCP add, enable, disable, and delete operations, plus skills and subagents;
|
|
35
|
-
- a local `/checker` report for the runtime, provider, session, context, and MCP setup;
|
|
36
|
-
- English and Russian interfaces with configurable accents.
|
|
37
|
-
|
|
38
|
-
## Requirements
|
|
39
|
-
|
|
40
|
-
- Node.js 22 or newer;
|
|
41
|
-
- npm.
|
|
42
|
-
|
|
43
|
-
## Install
|
|
44
|
-
|
|
45
|
-
```sh
|
|
46
|
-
npm i -g @kernelonpanic/kitcode
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Install from source
|
|
50
|
-
|
|
51
|
-
```sh
|
|
52
|
-
git clone https://github.com/KernelEditor/KitCode.git
|
|
53
|
-
cd KitCode
|
|
54
|
-
npm install
|
|
55
|
-
npm run build
|
|
56
|
-
npm link
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
After `npm link`, the `kitcode` command is available globally. To run without a global link:
|
|
60
|
-
|
|
61
|
-
```sh
|
|
62
|
-
npm run dev
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## First run
|
|
66
|
-
|
|
67
|
-
```sh
|
|
68
|
-
kitcode
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
On first launch, KitCode asks for the interface language, an API base URL, and an API key. It then
|
|
72
|
-
detects the provider type, loads the available models, and opens the main agent view.
|
|
73
|
-
|
|
74
|
-
Common base URLs:
|
|
75
|
-
|
|
76
|
-
```text
|
|
77
|
-
https://api.anthropic.com
|
|
78
|
-
https://openrouter.ai/api/v1
|
|
79
|
-
http://localhost:11434/v1
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Command line
|
|
83
|
-
|
|
84
|
-
| Command | Purpose |
|
|
85
|
-
| --- | --- |
|
|
86
|
-
| `kitcode` | Start the TUI in the current directory. |
|
|
87
|
-
| `kitcode -c` | Continue the latest session for this project. |
|
|
88
|
-
| `kitcode -r <id>` | Resume a session by id. |
|
|
89
|
-
| `kitcode --cwd <path>` | Use another working directory. |
|
|
90
|
-
| `kitcode --model <provider/model>` | Start with a selected model. |
|
|
91
|
-
| `kitcode --mode <normal
|
|
92
|
-
| `kitcode sessions` | List saved sessions. |
|
|
93
|
-
| `kitcode ask "question"` | Run one request without the TUI. |
|
|
94
|
-
| `kitcode add <url>` | Add a provider; the key is entered in a hidden prompt. |
|
|
95
|
-
| `kitcode add <url> --key-env <name>` | Read the provider key from an environment variable. |
|
|
96
|
-
| `kitcode trust` | Enable this workspace's project config and skills. |
|
|
97
|
-
| `kitcode config` | Show the config and key locations. |
|
|
98
|
-
| `kitcode config --local` | Create a project config at `./kitcode.json`. |
|
|
99
|
-
| `kitcode prompt list` | List saved prompts. |
|
|
100
|
-
| `kitcode prompt rm <slug>` | Delete a saved prompt. |
|
|
101
|
-
|
|
102
|
-
## TUI commands
|
|
103
|
-
|
|
104
|
-
Press `/` to open the command list.
|
|
105
|
-
|
|
106
|
-
| Command | Purpose |
|
|
107
|
-
| --- | --- |
|
|
108
|
-
| `/model` | Select a model. |
|
|
109
|
-
| `/provider` | Switch providers. |
|
|
110
|
-
| `/login` · `/logout [provider]` | Add a provider or choose exactly which provider to remove. |
|
|
111
|
-
| `/key [provider]` | Change API key for a provider. |
|
|
112
|
-
| `/effort` · `/thinking` | Configure reasoning depth and output. |
|
|
113
|
-
| `/resume` · `/clear` | Resume a session or start a new one. |
|
|
114
|
-
| `/sessions` | Search sessions, then resume, rename, delete, or export one. |
|
|
115
|
-
| `/sessions
|
|
116
|
-
| `/sessions
|
|
117
|
-
| `/sessions
|
|
118
|
-
| `/
|
|
119
|
-
| `/
|
|
120
|
-
| `/
|
|
121
|
-
| `/
|
|
122
|
-
| `/
|
|
123
|
-
| `/
|
|
124
|
-
| `/
|
|
125
|
-
| `/
|
|
126
|
-
| `/
|
|
127
|
-
| `/
|
|
128
|
-
| `/
|
|
129
|
-
| `/
|
|
130
|
-
| `/
|
|
131
|
-
| `/mcp
|
|
132
|
-
| `/
|
|
133
|
-
| `/
|
|
134
|
-
| `/
|
|
135
|
-
| `/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
| `
|
|
146
|
-
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
|
179
|
-
|
|
|
180
|
-
| `~/.kitcode/
|
|
181
|
-
| `~/.kitcode/
|
|
182
|
-
|
|
|
183
|
-
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
or
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
/mcp
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
{
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
src/
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
1
|
+
# KitCode
|
|
2
|
+
|
|
3
|
+
English · [Русский](./README.ru.md)
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
╱\_╱\
|
|
7
|
+
( o.o )
|
|
8
|
+
> ^ <
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
KitCode is a terminal coding agent. It reads and edits files, searches a project, runs commands,
|
|
12
|
+
connects external tools through MCP, and keeps persistent session history.
|
|
13
|
+
|
|
14
|
+
The interface is built with TypeScript, React, and Ink. KitCode supports the Anthropic API and
|
|
15
|
+
OpenAI-compatible providers, including OpenRouter and local model servers.
|
|
16
|
+
|
|
17
|
+
## Features
|
|
18
|
+
|
|
19
|
+
- streaming responses with reasoning output;
|
|
20
|
+
- file reading, creation, and targeted editing;
|
|
21
|
+
- filename and content search;
|
|
22
|
+
- shell commands with approval prompts;
|
|
23
|
+
- `normal`, `accept`, and `plan` modes;
|
|
24
|
+
- persistent and resumable sessions with native terminal scrollback;
|
|
25
|
+
- searchable session management with rename, delete, and Markdown export;
|
|
26
|
+
- input history with the `↑` and `↓` keys;
|
|
27
|
+
- queued messages while the agent is working;
|
|
28
|
+
- image and UTF-8 text attachments;
|
|
29
|
+
- manual and automatic context compaction;
|
|
30
|
+
- token, estimated cost, exact context-window, and provider rate-limit indicators;
|
|
31
|
+
- automatic file checkpoints with `/undo`;
|
|
32
|
+
- detected project checks after file edits;
|
|
33
|
+
- model and provider switching from the TUI;
|
|
34
|
+
- live MCP add, enable, disable, and delete operations, plus skills and subagents;
|
|
35
|
+
- a local `/checker` report for the runtime, provider, session, context, and MCP setup;
|
|
36
|
+
- English and Russian interfaces with configurable accents.
|
|
37
|
+
|
|
38
|
+
## Requirements
|
|
39
|
+
|
|
40
|
+
- Node.js 22 or newer;
|
|
41
|
+
- npm.
|
|
42
|
+
|
|
43
|
+
## Install
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
npm i -g @kernelonpanic/kitcode
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Install from source
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
git clone https://github.com/KernelEditor/KitCode.git
|
|
53
|
+
cd KitCode
|
|
54
|
+
npm install
|
|
55
|
+
npm run build
|
|
56
|
+
npm link
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
After `npm link`, the `kitcode` command is available globally. To run without a global link:
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
npm run dev
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## First run
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
kitcode
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
On first launch, KitCode asks for the interface language, an API base URL, and an API key. It then
|
|
72
|
+
detects the provider type, loads the available models, and opens the main agent view.
|
|
73
|
+
|
|
74
|
+
Common base URLs:
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
https://api.anthropic.com
|
|
78
|
+
https://openrouter.ai/api/v1
|
|
79
|
+
http://localhost:11434/v1
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Command line
|
|
83
|
+
|
|
84
|
+
| Command | Purpose |
|
|
85
|
+
| --- | --- |
|
|
86
|
+
| `kitcode` | Start the TUI in the current directory. |
|
|
87
|
+
| `kitcode -c` | Continue the latest session for this project. |
|
|
88
|
+
| `kitcode -r <id>` | Resume a session by id. |
|
|
89
|
+
| `kitcode --cwd <path>` | Use another working directory. |
|
|
90
|
+
| `kitcode --model <provider/model>` | Start with a selected model. |
|
|
91
|
+
| `kitcode --mode <normal|accept|plan>` | Select the initial agent mode. |
|
|
92
|
+
| `kitcode sessions` | List saved sessions. |
|
|
93
|
+
| `kitcode ask "question"` | Run one request without the TUI. |
|
|
94
|
+
| `kitcode add <url>` | Add a provider; the key is entered in a hidden prompt. |
|
|
95
|
+
| `kitcode add <url> --key-env <name>` | Read the provider key from an environment variable. |
|
|
96
|
+
| `kitcode trust` | Enable this workspace's project config and skills. |
|
|
97
|
+
| `kitcode config` | Show the config and key locations. |
|
|
98
|
+
| `kitcode config --local` | Create a project config at `./kitcode.json`. |
|
|
99
|
+
| `kitcode prompt list` | List saved prompts. |
|
|
100
|
+
| `kitcode prompt rm <slug>` | Delete a saved prompt. |
|
|
101
|
+
|
|
102
|
+
## TUI commands
|
|
103
|
+
|
|
104
|
+
Press `/` to open the command list.
|
|
105
|
+
|
|
106
|
+
| Command | Purpose |
|
|
107
|
+
| --- | --- |
|
|
108
|
+
| `/model` | Select a model. |
|
|
109
|
+
| `/provider` | Switch providers. |
|
|
110
|
+
| `/login` · `/logout [provider]` | Add a provider or choose exactly which provider to remove. |
|
|
111
|
+
| `/key [provider]` | Change API key for a provider. |
|
|
112
|
+
| `/effort` · `/thinking` | Configure reasoning depth and output. |
|
|
113
|
+
| `/resume` · `/clear` | Resume a session or start a new one. |
|
|
114
|
+
| `/sessions` | Search sessions, then resume, rename, delete, or export one. |
|
|
115
|
+
| `/sessions list` | List all saved sessions. |
|
|
116
|
+
| `/sessions rename <id> <title>` | Give a saved session a title. |
|
|
117
|
+
| `/sessions delete <id>` | Delete a saved session. |
|
|
118
|
+
| `/sessions delete all` | Delete every saved chat after two separate confirmations. |
|
|
119
|
+
| `/sessions export <id> [path]` | Export a session to a private Markdown file (default: `.kitcode-exports/`). |
|
|
120
|
+
| `/attach <path>` · `/attach clipboard` · `/attach clear` | Manage attachments for the next message. |
|
|
121
|
+
| `/compact` | Replace older conversation context with a concise model-generated summary. |
|
|
122
|
+
| `/update` | Check npm for a newer KitCode version. |
|
|
123
|
+
| `/subagents` | Show the current number of active sub-agents. |
|
|
124
|
+
| `/undo` | Undo built-in file edits from the latest message. |
|
|
125
|
+
| `/usage` | Show tokens, requests, cost, balance/key limits, and response rate-limit headers when available. |
|
|
126
|
+
| `/checker` | Check the local setup and provider model listing without sending a paid chat request. |
|
|
127
|
+
| `/prompt` | Insert a saved prompt. |
|
|
128
|
+
| `/prompt save <name>` | Save the latest message as a prompt. |
|
|
129
|
+
| `/prompt delete <name>` | Delete a saved prompt. |
|
|
130
|
+
| `/skills` | Show discovered skills. |
|
|
131
|
+
| `/mcp add <name> <https://url>` | Add and connect a remote MCP server. |
|
|
132
|
+
| `/mcp add <name> -- <command> [args]` | Add and connect a local MCP server. |
|
|
133
|
+
| `/mcp list` | Show configured MCP servers and connection status. |
|
|
134
|
+
| `/mcp enable <name>` · `/mcp disable <name>` | Connect or disconnect an MCP server without removing it. |
|
|
135
|
+
| `/mcp delete <name>` | Disconnect and remove an MCP server. |
|
|
136
|
+
| `/theme` · `/lang` | Change the accent or interface language. |
|
|
137
|
+
| `/config` | Show the active config. |
|
|
138
|
+
| `/bypass` | Toggle approval-free operation. |
|
|
139
|
+
| `/help` · `/exit` | Show help or quit. |
|
|
140
|
+
|
|
141
|
+
## Keyboard shortcuts
|
|
142
|
+
|
|
143
|
+
| Key | Action |
|
|
144
|
+
| --- | --- |
|
|
145
|
+
| `Enter` | Send a message or choose an item. |
|
|
146
|
+
| `↑` / `↓` | Browse input history or menu items. |
|
|
147
|
+
| `Tab` | Complete a slash command. |
|
|
148
|
+
| `Shift+Tab` | Cycle `normal → accept → plan`. |
|
|
149
|
+
| `Ctrl+V` / `Cmd+V` | Attach an image from the system clipboard; `/attach clipboard` is the explicit fallback. |
|
|
150
|
+
| `Esc` | Cancel the current request or close an overlay. |
|
|
151
|
+
|
|
152
|
+
Messages entered while the agent is running are queued and processed in order.
|
|
153
|
+
|
|
154
|
+
## Modes
|
|
155
|
+
|
|
156
|
+
- `normal` — file changes, shell commands, and MCP calls request approval when needed;
|
|
157
|
+
- `accept` — file edits are accepted automatically;
|
|
158
|
+
- `plan` — the agent explores the project and returns a plan without changing files.
|
|
159
|
+
|
|
160
|
+
The lower status panel shows the active mode, model, and usage. A left-to-right context capsule
|
|
161
|
+
stays on the right, changing from green to yellow at 60% and red at 85%, with the connected MCP
|
|
162
|
+
count below it. `ctx ?` means the provider has not returned exact usage for the current model yet.
|
|
163
|
+
Completed output is committed to
|
|
164
|
+
normal terminal scrollback, so it remains smooth to scroll while a response is streaming.
|
|
165
|
+
|
|
166
|
+
When exact usage reaches 80% of a known context window, KitCode automatically summarizes older
|
|
167
|
+
turns while keeping the latest two user turns. `/compact` runs the same operation manually.
|
|
168
|
+
|
|
169
|
+
Before the built-in `write` and `edit` tools change a file, KitCode creates a private checkpoint.
|
|
170
|
+
`/undo` restores the latest checkpoint and leaves files with newer manual changes untouched.
|
|
171
|
+
After a message changes files, KitCode detects common project checks such as `lint`, `typecheck`,
|
|
172
|
+
and `test`. The exact commands are shown for approval before they run.
|
|
173
|
+
|
|
174
|
+
## Configuration
|
|
175
|
+
|
|
176
|
+
KitCode uses these main paths:
|
|
177
|
+
|
|
178
|
+
| Path | Contents |
|
|
179
|
+
| --- | --- |
|
|
180
|
+
| `~/.kitcode/config.json` | Global settings. |
|
|
181
|
+
| `~/.kitcode/auth.json` | Provider keys. |
|
|
182
|
+
| `~/.kitcode/sessions/` | Saved sessions. |
|
|
183
|
+
| `~/.kitcode/checkpoints/` | Automatic file checkpoints used by `/undo`. |
|
|
184
|
+
| `~/.kitcode/prompts/` | Saved prompts. |
|
|
185
|
+
| `~/.kitcode/skills/` | Global skills. |
|
|
186
|
+
| `./.kitcode/skills/` | Project skills. |
|
|
187
|
+
| `./kitcode.json` | Project-local config. |
|
|
188
|
+
|
|
189
|
+
Minimal manual provider configuration:
|
|
190
|
+
|
|
191
|
+
```json
|
|
192
|
+
{
|
|
193
|
+
"version": 1,
|
|
194
|
+
"model": "openrouter/openai/gpt-5",
|
|
195
|
+
"providers": {
|
|
196
|
+
"openrouter": {
|
|
197
|
+
"type": "openai",
|
|
198
|
+
"baseUrl": "https://openrouter.ai/api/v1",
|
|
199
|
+
"keyEnv": "OPENROUTER_API_KEY"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
The main settings are `model`, `effort`, `thinking`, `maxTokens`, `budget`, and `diagnostics`,
|
|
206
|
+
`theme`, `permissions`, `providers`, and `mcp`. `budget` controls local per-message safety limits for model
|
|
207
|
+
requests, tokens, estimated cost (when model pricing is available), and subagents. These values are
|
|
208
|
+
not the provider's account balance or rate limits. `diagnostics.autoRun`
|
|
209
|
+
enables checks after file edits; `diagnostics.commands` can replace automatic detection with up to
|
|
210
|
+
eight explicit commands. KitCode checks npm for a newer version on every app start and prints the
|
|
211
|
+
upgrade command when one is available. `/update` repeats the check manually.
|
|
212
|
+
Manual editing is usually unnecessary: add a provider during onboarding
|
|
213
|
+
or with `/login`.
|
|
214
|
+
|
|
215
|
+
Project settings and project skills are enabled after reviewing the workspace and running:
|
|
216
|
+
|
|
217
|
+
```sh
|
|
218
|
+
kitcode trust
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
Run `kitcode trust --revoke` to return to global settings and skills for that workspace.
|
|
222
|
+
|
|
223
|
+
## MCP and skills
|
|
224
|
+
|
|
225
|
+
MCP supports local `stdio` servers and remote HTTP servers. Add one from the TUI and it connects
|
|
226
|
+
immediately without a restart:
|
|
227
|
+
|
|
228
|
+
```text
|
|
229
|
+
/mcp add docs https://mcp.example.com/mcp
|
|
230
|
+
/mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem .
|
|
231
|
+
/mcp list
|
|
232
|
+
/mcp disable filesystem
|
|
233
|
+
/mcp enable filesystem
|
|
234
|
+
/mcp delete filesystem
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
The server is saved to the active config. Use `${env:NAME}` references in a manually configured
|
|
238
|
+
`env` or `headers` object when a server needs a secret; this keeps the secret itself out of the
|
|
239
|
+
config file:
|
|
240
|
+
|
|
241
|
+
```json
|
|
242
|
+
{
|
|
243
|
+
"mcp": {
|
|
244
|
+
"github": {
|
|
245
|
+
"type": "stdio",
|
|
246
|
+
"command": "npx",
|
|
247
|
+
"args": ["-y", "@modelcontextprotocol/server-github"],
|
|
248
|
+
"env": {
|
|
249
|
+
"GITHUB_TOKEN": "${env:GITHUB_TOKEN}"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
A skill is a directory containing a `SKILL.md` file. Global skills live in
|
|
257
|
+
`~/.kitcode/skills`; project skills live in `./.kitcode/skills`.
|
|
258
|
+
|
|
259
|
+
Attachments support PNG, JPEG, GIF, and WebP images up to 10 MB, plus UTF-8 text files up to
|
|
260
|
+
256 KB. Pasting or dragging a standalone existing path queues it automatically and displays a
|
|
261
|
+
chip below the prompt. File contents are sent only when the attachment is submitted with a message.
|
|
262
|
+
|
|
263
|
+
## Development
|
|
264
|
+
|
|
265
|
+
```sh
|
|
266
|
+
npm run dev # run the TypeScript entry point through tsx
|
|
267
|
+
npm run build # build dist/index.js
|
|
268
|
+
npm run typecheck # check TypeScript
|
|
269
|
+
npm test # run the test suite
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
Project layout:
|
|
273
|
+
|
|
274
|
+
```text
|
|
275
|
+
src/app/ application startup and runtime
|
|
276
|
+
src/core/ agent loop, sessions, and usage
|
|
277
|
+
src/providers/ Anthropic and OpenAI-compatible adapters
|
|
278
|
+
src/tools/ file, shell, and utility tools
|
|
279
|
+
src/mcp/ MCP client and tool bridge
|
|
280
|
+
src/ui/ Ink TUI
|
|
281
|
+
test/ Vitest tests
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
## License
|
|
285
|
+
|
|
286
|
+
MIT
|