@kernelonpanic/kitcode 1.4.2 → 1.4.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 +22 -2
- package/README.ru.md +22 -2
- package/dist/index.js +328 -62
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -114,6 +114,8 @@ Press `/` to open the command list.
|
|
|
114
114
|
| `/bell [on\|off]` | Toggle the beep when a long answer finishes or a permission prompt appears. |
|
|
115
115
|
| `/context [tokens]` | Show or set the model context window used by the meter and automatic compaction. |
|
|
116
116
|
| `/memory show` · `/memory set <text>` · `/memory clear` | View, replace, or clear this project's persistent notes. |
|
|
117
|
+
| `/systemp [show]` · `/systemp set <text>` · `/systemp load <path>` · `/systemp on\|off` · `/systemp clear` | Append custom instructions to the system prompt; toggle without deleting. |
|
|
118
|
+
| `/steps [0-1000]` | Cap model calls per turn (default 256, 0 = unlimited). |
|
|
117
119
|
| `/resume` · `/clear` | Resume a session or start a new one. |
|
|
118
120
|
| `/sessions` | Search sessions, then resume, rename, delete, or export one. |
|
|
119
121
|
| `/sessions list` | List all saved sessions. |
|
|
@@ -213,6 +215,24 @@ and `max` to `high`; for GPT-5.2–5.4, it maps `max` to `xhigh`. It omits effor
|
|
|
213
215
|
OpenAI-compatible model names. The Anthropic adapter sends the resolved level in `output_config`.
|
|
214
216
|
Supported levels and their effect depend on the model and provider.
|
|
215
217
|
|
|
218
|
+
## Custom system prompt
|
|
219
|
+
|
|
220
|
+
`/systemp` appends your own instructions to the built-in system prompt on every turn. Set it once and it persists in the config:
|
|
221
|
+
|
|
222
|
+
```text
|
|
223
|
+
/systemp set Always answer in Russian. Never add comments that restate the code.
|
|
224
|
+
/systemp load ./my-prompt.txt
|
|
225
|
+
/systemp off
|
|
226
|
+
/systemp on
|
|
227
|
+
/systemp clear
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
`off` keeps the text in the config but stops sending it; `clear` removes it entirely. The addition appears at the end of the system prompt, after the built-in instructions and project memory.
|
|
231
|
+
|
|
232
|
+
## Turn step cap
|
|
233
|
+
|
|
234
|
+
`/steps` shows the current cap on model calls per turn (default 256). A turn that hits the cap stops with a warning instead of looping forever. Set `/steps 0` for no cap — the turn budget and token limits still apply.
|
|
235
|
+
|
|
216
236
|
## Project memory
|
|
217
237
|
|
|
218
238
|
Project notes persist across chats, `/clear`, and restarts. Manage them with:
|
|
@@ -282,8 +302,8 @@ Minimal manual provider configuration:
|
|
|
282
302
|
}
|
|
283
303
|
```
|
|
284
304
|
|
|
285
|
-
The main settings are `model`, `effort`, `thinking`, `contextWindow`, `maxTokens`, `
|
|
286
|
-
`diagnostics`, `theme`, `permissions`, `providers`, and `mcp`. `budget` controls local per-message
|
|
305
|
+
The main settings are `model`, `effort`, `thinking`, `contextWindow`, `maxTokens`, `maxTurnSteps`,
|
|
306
|
+
`systemPrompt`, `systemPromptEnabled`, `budget`, `diagnostics`, `theme`, `permissions`, `providers`, and `mcp`. `budget` controls local per-message
|
|
287
307
|
safety limits for model requests, tokens, estimated cost (when model pricing is available), and
|
|
288
308
|
subagents. These values are
|
|
289
309
|
not the provider's account balance or rate limits. `diagnostics.autoRun`
|
package/README.ru.md
CHANGED
|
@@ -115,6 +115,8 @@ http://localhost:11434/v1
|
|
|
115
115
|
| `/bell [on\|off]` | Включить/выключить сигнал о готовом долгом ответе и запросе разрешения. |
|
|
116
116
|
| `/context [tokens\|auto]` | Показать или задать окно контекста модели для индикатора и автосжатия. |
|
|
117
117
|
| `/memory show` · `/memory set <текст>` · `/memory clear` | Просмотреть, заменить или очистить постоянные заметки проекта. |
|
|
118
|
+
| `/systemp [show]` · `/systemp set <текст>` · `/systemp load <путь>` · `/systemp on\|off` · `/systemp clear` | Добавить свои инструкции к системному промпту; включать и выключать без удаления. |
|
|
119
|
+
| `/steps [0-1000]` | Ограничить число вызовов модели за ход (по умолчанию 256, 0 = без лимита). |
|
|
118
120
|
| `/resume` · `/clear` | Восстановить сессию или начать новую. |
|
|
119
121
|
| `/sessions` | Найти сессию и открыть, переименовать, удалить или экспортировать её. |
|
|
120
122
|
| `/sessions list` | Показать все сохранённые сессии. |
|
|
@@ -225,6 +227,24 @@ scrollback терминала, поэтому историю можно плав
|
|
|
225
227
|
OpenAI-совместимых моделей параметр не отправляется. Anthropic получает выбранный уровень в
|
|
226
228
|
`output_config`. Реальная поддержка зависит от модели и провайдера.
|
|
227
229
|
|
|
230
|
+
## Дополнение к системному промпту
|
|
231
|
+
|
|
232
|
+
`/systemp` добавляет свои инструкции к встроенному системному промпту на каждый ход. Настройка сохраняется в конфиге:
|
|
233
|
+
|
|
234
|
+
```text
|
|
235
|
+
/systemp set Всегда отвечай по-русски. Не добавляй комментарии, повторяющие код.
|
|
236
|
+
/systemp load ./my-prompt.txt
|
|
237
|
+
/systemp off
|
|
238
|
+
/systemp on
|
|
239
|
+
/systemp clear
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
`off` сохраняет текст в конфиге, но не отправляет его; `clear` удаляет полностью. Дополнение идёт в конец системного промпта, после встроенных инструкций и памяти проекта.
|
|
243
|
+
|
|
244
|
+
## Лимит вызовов модели за ход
|
|
245
|
+
|
|
246
|
+
`/steps` показывает текущий лимит вызовов модели за ход (по умолчанию 256). Ход, достигший лимита, останавливается с предупреждением вместо бесконечного цикла. `/steps 0` снимает лимит полностью — бюджет токенов при этом продолжает действовать.
|
|
247
|
+
|
|
228
248
|
## Память проекта
|
|
229
249
|
|
|
230
250
|
Заметки проекта сохраняются между чатами, `/clear` и перезапусками:
|
|
@@ -281,8 +301,8 @@ OpenAI-совместимых моделей параметр не отправ
|
|
|
281
301
|
}
|
|
282
302
|
```
|
|
283
303
|
|
|
284
|
-
Основные параметры: `model`, `effort`, `thinking`, `contextWindow`, `maxTokens`, `
|
|
285
|
-
`diagnostics`, `theme`, `permissions`, `providers` и `mcp`. Секция `budget` задаёт лимиты запросов к
|
|
304
|
+
Основные параметры: `model`, `effort`, `thinking`, `contextWindow`, `maxTokens`, `maxTurnSteps`,
|
|
305
|
+
`systemPrompt`, `systemPromptEnabled`, `budget`, `diagnostics`, `theme`, `permissions`, `providers` и `mcp`. Секция `budget` задаёт лимиты запросов к
|
|
286
306
|
модели, токенов, примерной стоимости (если провайдер сообщает цены) и субагентов на одно сообщение.
|
|
287
307
|
`diagnostics.autoRun` включает проверки после правок, а `diagnostics.commands` позволяет заменить
|
|
288
308
|
автоопределение списком до восьми команд. При каждом входе KitCode проверяет новую версию в npm и,
|