@kernelonpanic/kitcode 1.4.3 → 1.4.6

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
@@ -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. |
@@ -124,7 +126,7 @@ Press `/` to open the command list.
124
126
  | `/attach <path>` · `/attach clipboard` · `/attach clear` | Manage attachments for the next message; type `@` in the prompt to find and attach a workspace file. |
125
127
  | `/compact` | Replace older conversation context with a concise model-generated summary. |
126
128
  | `/update` | Check npm for a newer KitCode version. |
127
- | `/subagents` | Show the current number of active sub-agents. |
129
+ | `/subagents [clear]` | Open sub-agent chats with completion status and stop reasons. `clear` removes finished agents from the list while keeping running agents and the transcript. |
128
130
  | `/undo` | Undo built-in file edits from the latest message. |
129
131
  | `/usage` | Show tokens, requests, cost, balance/key limits, and response rate-limit headers when available. |
130
132
  | `/checker` | Check the local setup and provider model listing without sending a paid chat request. |
@@ -154,6 +156,7 @@ Press `/` to open the command list.
154
156
  | `Shift+Tab` | Cycle `normal → accept → plan`. |
155
157
  | `Ctrl+V` / `Cmd+V` | Attach an image from the system clipboard; `/attach clipboard` is the explicit fallback. |
156
158
  | `Esc` | Cancel the current request or close an overlay. |
159
+ | `Ctrl+C` twice | Exit after a second press within 3 seconds. Any other key cancels the exit confirmation. |
157
160
 
158
161
  Messages entered while the agent is running are queued and processed in order; they are listed above the input, and ↑/↓ on an empty input pick one to edit. Status and settings
159
162
  commands — `/help`, `/usage`, `/context`, `/model`, `/effort`, `/thinking`, `/bell`, `/budget`, `/theme`,
@@ -213,6 +216,24 @@ and `max` to `high`; for GPT-5.2–5.4, it maps `max` to `xhigh`. It omits effor
213
216
  OpenAI-compatible model names. The Anthropic adapter sends the resolved level in `output_config`.
214
217
  Supported levels and their effect depend on the model and provider.
215
218
 
219
+ ## Custom system prompt
220
+
221
+ `/systemp` appends your own instructions to the built-in system prompt on every turn. Set it once and it persists in the config:
222
+
223
+ ```text
224
+ /systemp set Always answer in Russian. Never add comments that restate the code.
225
+ /systemp load ./my-prompt.txt
226
+ /systemp off
227
+ /systemp on
228
+ /systemp clear
229
+ ```
230
+
231
+ `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.
232
+
233
+ ## Turn step cap
234
+
235
+ `/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.
236
+
216
237
  ## Project memory
217
238
 
218
239
  Project notes persist across chats, `/clear`, and restarts. Manage them with:
@@ -282,8 +303,8 @@ Minimal manual provider configuration:
282
303
  }
283
304
  ```
284
305
 
285
- The main settings are `model`, `effort`, `thinking`, `contextWindow`, `maxTokens`, `budget`,
286
- `diagnostics`, `theme`, `permissions`, `providers`, and `mcp`. `budget` controls local per-message
306
+ The main settings are `model`, `effort`, `thinking`, `contextWindow`, `maxTokens`, `maxTurnSteps`,
307
+ `systemPrompt`, `systemPromptEnabled`, `budget`, `diagnostics`, `theme`, `permissions`, `providers`, and `mcp`. `budget` controls local per-message
287
308
  safety limits for model requests, tokens, estimated cost (when model pricing is available), and
288
309
  subagents. These values are
289
310
  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` | Показать все сохранённые сессии. |
@@ -125,7 +127,7 @@ http://localhost:11434/v1
125
127
  | `/attach <путь>` · `/attach clipboard` · `/attach clear` | Управлять вложениями следующего сообщения; введите `@` в строке ввода для поиска и прикрепления файла проекта. |
126
128
  | `/compact` | Заменить старую часть контекста краткой сводкой модели. |
127
129
  | `/update` | Проверить новую версию KitCode в npm. |
128
- | `/subagents` | Показать текущее количество активных суб-агентов. |
130
+ | `/subagents [clear]` | Открыть чаты субагентов со статусами и причинами остановки. `clear` очищает завершённых из списка, сохраняя работающих агентов и переписку. |
129
131
  | `/undo` | Откатить встроенные правки файлов из последнего сообщения. |
130
132
  | `/usage` | Показать токены, запросы, стоимость, доступный баланс и rate limits, если API их отдаёт. |
131
133
  | `/checker` | Проверить настройку и список моделей без платного chat-запроса. |
@@ -153,6 +155,7 @@ http://localhost:11434/v1
153
155
  | `Shift+Tab` | Переключить режим `normal → accept → plan`. |
154
156
  | `Ctrl+V` / `Cmd+V` | Прикрепить картинку из системного буфера; явный запасной вариант — `/attach clipboard`. |
155
157
  | `Esc` | Остановить текущий запрос или закрыть окно. |
158
+ | `Ctrl+C` дважды | Выйти при повторном нажатии в течение 3 секунд. Любая другая клавиша отменяет подтверждение выхода. |
156
159
 
157
160
  Сообщения можно вводить, пока агент работает: они попадут в очередь и выполнятся по порядку. Очередь видна над полем ввода, а ↑/↓ в пустом поле выбирают сообщение для правки.
158
161
  Статусные команды и настройки — `/help`, `/usage`, `/context`, `/model`, `/effort`, `/thinking`,
@@ -225,6 +228,24 @@ scrollback терминала, поэтому историю можно плав
225
228
  OpenAI-совместимых моделей параметр не отправляется. Anthropic получает выбранный уровень в
226
229
  `output_config`. Реальная поддержка зависит от модели и провайдера.
227
230
 
231
+ ## Дополнение к системному промпту
232
+
233
+ `/systemp` добавляет свои инструкции к встроенному системному промпту на каждый ход. Настройка сохраняется в конфиге:
234
+
235
+ ```text
236
+ /systemp set Всегда отвечай по-русски. Не добавляй комментарии, повторяющие код.
237
+ /systemp load ./my-prompt.txt
238
+ /systemp off
239
+ /systemp on
240
+ /systemp clear
241
+ ```
242
+
243
+ `off` сохраняет текст в конфиге, но не отправляет его; `clear` удаляет полностью. Дополнение идёт в конец системного промпта, после встроенных инструкций и памяти проекта.
244
+
245
+ ## Лимит вызовов модели за ход
246
+
247
+ `/steps` показывает текущий лимит вызовов модели за ход (по умолчанию 256). Ход, достигший лимита, останавливается с предупреждением вместо бесконечного цикла. `/steps 0` снимает лимит полностью — бюджет токенов при этом продолжает действовать.
248
+
228
249
  ## Память проекта
229
250
 
230
251
  Заметки проекта сохраняются между чатами, `/clear` и перезапусками:
@@ -281,8 +302,8 @@ OpenAI-совместимых моделей параметр не отправ
281
302
  }
282
303
  ```
283
304
 
284
- Основные параметры: `model`, `effort`, `thinking`, `contextWindow`, `maxTokens`, `budget` и
285
- `diagnostics`, `theme`, `permissions`, `providers` и `mcp`. Секция `budget` задаёт лимиты запросов к
305
+ Основные параметры: `model`, `effort`, `thinking`, `contextWindow`, `maxTokens`, `maxTurnSteps`,
306
+ `systemPrompt`, `systemPromptEnabled`, `budget`, `diagnostics`, `theme`, `permissions`, `providers` и `mcp`. Секция `budget` задаёт лимиты запросов к
286
307
  модели, токенов, примерной стоимости (если провайдер сообщает цены) и субагентов на одно сообщение.
287
308
  `diagnostics.autoRun` включает проверки после правок, а `diagnostics.commands` позволяет заменить
288
309
  автоопределение списком до восьми команд. При каждом входе KitCode проверяет новую версию в npm и,