@kernelonpanic/kitcode 1.2.9 → 1.3.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/README.md CHANGED
@@ -109,7 +109,9 @@ Press `/` to open the command list.
109
109
  | `/provider` | Switch providers. |
110
110
  | `/login` · `/logout [provider]` | Add a provider or choose exactly which provider to remove. |
111
111
  | `/key [provider]` | Change API key for a provider. |
112
- | `/effort` · `/thinking` | Configure reasoning depth and output. |
112
+ | `/refresh [provider]` | Reload a provider's model list, bypassing the 24h cache. |
113
+ | `/effort [auto|low|medium|high|xhigh|max]` · `/thinking` | Select reasoning effort and configure reasoning output. |
114
+ | `/memory show` · `/memory set <text>` · `/memory clear` | View, replace, or clear this project's persistent notes. |
113
115
  | `/resume` · `/clear` | Resume a session or start a new one. |
114
116
  | `/sessions` | Search sessions, then resume, rename, delete, or export one. |
115
117
  | `/sessions list` | List all saved sessions. |
@@ -117,7 +119,7 @@ Press `/` to open the command list.
117
119
  | `/sessions delete <id>` | Delete a saved session. |
118
120
  | `/sessions delete all` | Delete every saved chat after two separate confirmations. |
119
121
  | `/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. |
122
+ | `/attach <path>` · `/attach clipboard` · `/attach clear` | Manage attachments for the next message; type `@` in the prompt to find and attach a workspace file. |
121
123
  | `/compact` | Replace older conversation context with a concise model-generated summary. |
122
124
  | `/update` | Check npm for a newer KitCode version. |
123
125
  | `/subagents` | Show the current number of active sub-agents. |
@@ -144,7 +146,7 @@ Press `/` to open the command list.
144
146
  | --- | --- |
145
147
  | `Enter` | Send a message or choose an item. |
146
148
  | `↑` / `↓` | Browse input history or menu items. |
147
- | `Tab` | Complete a slash command. |
149
+ | `Tab` | Complete a slash command or selected `@` file. |
148
150
  | `Shift+Tab` | Cycle `normal → accept → plan`. |
149
151
  | `Ctrl+V` / `Cmd+V` | Attach an image from the system clipboard; `/attach clipboard` is the explicit fallback. |
150
152
  | `Esc` | Cancel the current request or close an overlay. |
@@ -171,6 +173,44 @@ Before the built-in `write` and `edit` tools change a file, KitCode creates a pr
171
173
  After a message changes files, KitCode detects common project checks such as `lint`, `typecheck`,
172
174
  and `test`. The exact commands are shown for approval before they run.
173
175
 
176
+ ## Reasoning effort
177
+
178
+ Use `/effort` to open the picker or `/effort high` to choose a level directly. The command shows
179
+ both the selected level and the value KitCode will send to the API for the current conversation.
180
+ This confirms request encoding, not whether a gateway honors the parameter.
181
+
182
+ `auto` uses `medium` for short general requests and `high` for long requests or messages containing
183
+ coding-task keywords. It is a local heuristic, not a model-based difficulty assessment. Manual
184
+ levels bypass this heuristic. For the original GPT-5, GPT-5.1 and o-series, KitCode maps `xhigh`
185
+ and `max` to `high`; for GPT-5.2–5.4, it maps `max` to `xhigh`. It omits effort for unrecognized
186
+ OpenAI-compatible model names. The Anthropic adapter sends the resolved level in `output_config`.
187
+ Supported levels and their effect depend on the model and provider.
188
+
189
+ ## Project memory
190
+
191
+ Project notes persist across chats, `/clear`, and restarts. Manage them with:
192
+
193
+ ```text
194
+ /memory show
195
+ /memory set Run npm test before committing. Put changelogs only in GitHub Releases.
196
+ /memory clear
197
+ ```
198
+
199
+ `set` replaces the whole note; `clear` asks for confirmation. Notes are limited to 16,000 characters
200
+ and stored under `~/.kitcode/memory/`, separately for each canonical workspace path.
201
+
202
+ The agent can also use the `memory` tool to read, add, replace, or delete notes. Mutations require
203
+ a source, such as a user instruction or file/tool evidence. Updates appear in the tool transcript
204
+ with a diff. Exact-match replacement and deletion help avoid overwriting unrelated notes.
205
+ The tool is allowed by default in normal and accept modes; set `permissions.memory` to `ask` or
206
+ `deny` to restrict it. Plan mode blocks the tool, including its read action.
207
+
208
+ The agent is instructed to retain confirmed project facts, explicit preferences and accepted
209
+ decisions, and to verify potentially stale notes against current files. Temporary progress belongs
210
+ in the conversation. Secret-pattern redaction is best effort; do not put credentials in memory.
211
+ Context compaction separately asks the model to preserve requirements, evidence, verification
212
+ commands and outcomes, assumptions, and remaining work. Generated summaries can still omit details.
213
+
174
214
  ## Configuration
175
215
 
176
216
  KitCode uses these main paths:
package/README.ru.md CHANGED
@@ -109,7 +109,9 @@ http://localhost:11434/v1
109
109
  | `/provider` | Переключить провайдера. |
110
110
  | `/login` · `/logout [provider]` | Добавить провайдера или выбрать конкретный API для выхода. |
111
111
  | `/key [provider]` | Сменить ключ провайдера. |
112
- | `/effort` · `/thinking` | Настроить глубину и отображение reasoning. |
112
+ | `/refresh [provider]` | Перечитать список моделей провайдера в обход суточного кеша. |
113
+ | `/effort [auto|low|medium|high|xhigh|max]` · `/thinking` | Выбрать effort и настроить reasoning. |
114
+ | `/memory show` · `/memory set <текст>` · `/memory clear` | Просмотреть, заменить или очистить постоянные заметки проекта. |
113
115
  | `/resume` · `/clear` | Восстановить сессию или начать новую. |
114
116
  | `/sessions` | Найти сессию и открыть, переименовать, удалить или экспортировать её. |
115
117
  | `/sessions list` | Показать все сохранённые сессии. |
@@ -117,7 +119,7 @@ http://localhost:11434/v1
117
119
  | `/sessions delete <id>` | Удалить сохранённую сессию. |
118
120
  | `/sessions delete all` | Удалить все сохранённые чаты после двух отдельных подтверждений. |
119
121
  | `/sessions export <id> [путь]` | Экспортировать сессию в приватный Markdown-файл (по умолчанию `.kitcode-exports/`). |
120
- | `/attach <путь>` · `/attach clipboard` · `/attach clear` | Управлять вложениями следующего сообщения. |
122
+ | `/attach <путь>` · `/attach clipboard` · `/attach clear` | Управлять вложениями следующего сообщения; введите `@` в строке ввода для поиска и прикрепления файла проекта. |
121
123
  | `/compact` | Заменить старую часть контекста краткой сводкой модели. |
122
124
  | `/update` | Проверить новую версию KitCode в npm. |
123
125
  | `/subagents` | Показать текущее количество активных суб-агентов. |
@@ -143,7 +145,7 @@ http://localhost:11434/v1
143
145
  | --- | --- |
144
146
  | `Enter` | Отправить сообщение или выбрать пункт. |
145
147
  | `↑` / `↓` | Листать историю сообщений или пункты меню. |
146
- | `Tab` | Дополнить slash-команду. |
148
+ | `Tab` | Дополнить slash-команду или выбранный файл после `@`. |
147
149
  | `Shift+Tab` | Переключить режим `normal → accept → plan`. |
148
150
  | `Ctrl+V` / `Cmd+V` | Прикрепить картинку из системного буфера; явный запасной вариант — `/attach clipboard`. |
149
151
  | `Esc` | Остановить текущий запрос или закрыть окно. |
@@ -170,6 +172,44 @@ scrollback терминала, поэтому историю можно плав
170
172
  ручные изменения. После правок KitCode определяет стандартные команды проекта — например `lint`,
171
173
  `typecheck` и `test` — и перед запуском показывает их для подтверждения.
172
174
 
175
+ ## Reasoning effort
176
+
177
+ Откройте `/effort` для выбора в меню или используйте `/effort high`, чтобы задать уровень сразу.
178
+ Команда показывает выбранный уровень и значение, которое KitCode отправит API для текущей переписки.
179
+ Это проверяет кодирование запроса, но не гарантирует, что шлюз провайдера применит параметр.
180
+
181
+ `auto` выбирает `medium` для коротких общих запросов и `high` для длинных сообщений или задач с
182
+ признаками исправления, тестирования и реализации. Это локальная эвристика, а не оценка сложности
183
+ моделью. Ручной уровень отключает эвристику. Для исходного GPT-5, GPT-5.1 и o-серии KitCode
184
+ сводит `xhigh` и `max` к `high`; для GPT-5.2–5.4 `max` сводится к `xhigh`. Для неизвестных
185
+ OpenAI-совместимых моделей параметр не отправляется. Anthropic получает выбранный уровень в
186
+ `output_config`. Реальная поддержка зависит от модели и провайдера.
187
+
188
+ ## Память проекта
189
+
190
+ Заметки проекта сохраняются между чатами, `/clear` и перезапусками:
191
+
192
+ ```text
193
+ /memory show
194
+ /memory set Запускать npm test перед коммитом. Ченджлог публиковать только в GitHub Release.
195
+ /memory clear
196
+ ```
197
+
198
+ `set` заменяет всю заметку; `clear` запрашивает подтверждение. Лимит — 16 000 символов. Файлы
199
+ хранятся в `~/.kitcode/memory/`, отдельно для каждого канонического пути проекта.
200
+
201
+ Агент тоже может использовать инструмент `memory`: читать, добавлять, заменять и удалять записи.
202
+ Для изменений он обязан указать источник: инструкцию пользователя или подтверждение из файла либо
203
+ инструмента. В транскрипте показывается diff. Точная замена и удаление защищают соседние записи.
204
+ В обычном и accept-режимах инструмент разрешён по умолчанию. Ограничьте его через
205
+ `permissions.memory` значением `ask` или `deny`. Plan-режим блокирует инструмент.
206
+
207
+ Агент сохраняет подтверждённые факты проекта, явные предпочтения и принятые решения. Он должен
208
+ проверять старые заметки по текущим файлам. Временный прогресс остаётся в переписке. Redaction
209
+ секретов работает по известным шаблонам, поэтому ключи и пароли не записывайте. Сжатие контекста
210
+ отдельно сохраняет требования, подтверждения, команды проверок и результаты, предположения и
211
+ оставшуюся работу. Модель всё ещё может пропустить детали в автоматически созданной сводке.
212
+
173
213
  ## Конфигурация
174
214
 
175
215
  Основные файлы KitCode: