@kernelonpanic/kitcode 1.2.9 → 1.3.0
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 +40 -1
- package/README.ru.md +40 -1
- package/dist/index.js +329 -183
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,7 +109,8 @@ 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` |
|
|
112
|
+
| `/effort [auto|low|medium|high|xhigh|max]` · `/thinking` | Select reasoning effort and configure reasoning output. |
|
|
113
|
+
| `/memory show` · `/memory set <text>` · `/memory clear` | View, replace, or clear this project's persistent notes. |
|
|
113
114
|
| `/resume` · `/clear` | Resume a session or start a new one. |
|
|
114
115
|
| `/sessions` | Search sessions, then resume, rename, delete, or export one. |
|
|
115
116
|
| `/sessions list` | List all saved sessions. |
|
|
@@ -171,6 +172,44 @@ Before the built-in `write` and `edit` tools change a file, KitCode creates a pr
|
|
|
171
172
|
After a message changes files, KitCode detects common project checks such as `lint`, `typecheck`,
|
|
172
173
|
and `test`. The exact commands are shown for approval before they run.
|
|
173
174
|
|
|
175
|
+
## Reasoning effort
|
|
176
|
+
|
|
177
|
+
Use `/effort` to open the picker or `/effort high` to choose a level directly. The command shows
|
|
178
|
+
both the selected level and the value KitCode will send to the API for the current conversation.
|
|
179
|
+
This confirms request encoding, not whether a gateway honors the parameter.
|
|
180
|
+
|
|
181
|
+
`auto` uses `medium` for short general requests and `high` for long requests or messages containing
|
|
182
|
+
coding-task keywords. It is a local heuristic, not a model-based difficulty assessment. Manual
|
|
183
|
+
levels bypass this heuristic. For the original GPT-5, GPT-5.1 and o-series, KitCode maps `xhigh`
|
|
184
|
+
and `max` to `high`; for GPT-5.2–5.4, it maps `max` to `xhigh`. It omits effort for unrecognized
|
|
185
|
+
OpenAI-compatible model names. The Anthropic adapter sends the resolved level in `output_config`.
|
|
186
|
+
Supported levels and their effect depend on the model and provider.
|
|
187
|
+
|
|
188
|
+
## Project memory
|
|
189
|
+
|
|
190
|
+
Project notes persist across chats, `/clear`, and restarts. Manage them with:
|
|
191
|
+
|
|
192
|
+
```text
|
|
193
|
+
/memory show
|
|
194
|
+
/memory set Run npm test before committing. Put changelogs only in GitHub Releases.
|
|
195
|
+
/memory clear
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
`set` replaces the whole note; `clear` asks for confirmation. Notes are limited to 16,000 characters
|
|
199
|
+
and stored under `~/.kitcode/memory/`, separately for each canonical workspace path.
|
|
200
|
+
|
|
201
|
+
The agent can also use the `memory` tool to read, add, replace, or delete notes. Mutations require
|
|
202
|
+
a source, such as a user instruction or file/tool evidence. Updates appear in the tool transcript
|
|
203
|
+
with a diff. Exact-match replacement and deletion help avoid overwriting unrelated notes.
|
|
204
|
+
The tool is allowed by default in normal and accept modes; set `permissions.memory` to `ask` or
|
|
205
|
+
`deny` to restrict it. Plan mode blocks the tool, including its read action.
|
|
206
|
+
|
|
207
|
+
The agent is instructed to retain confirmed project facts, explicit preferences and accepted
|
|
208
|
+
decisions, and to verify potentially stale notes against current files. Temporary progress belongs
|
|
209
|
+
in the conversation. Secret-pattern redaction is best effort; do not put credentials in memory.
|
|
210
|
+
Context compaction separately asks the model to preserve requirements, evidence, verification
|
|
211
|
+
commands and outcomes, assumptions, and remaining work. Generated summaries can still omit details.
|
|
212
|
+
|
|
174
213
|
## Configuration
|
|
175
214
|
|
|
176
215
|
KitCode uses these main paths:
|
package/README.ru.md
CHANGED
|
@@ -109,7 +109,8 @@ http://localhost:11434/v1
|
|
|
109
109
|
| `/provider` | Переключить провайдера. |
|
|
110
110
|
| `/login` · `/logout [provider]` | Добавить провайдера или выбрать конкретный API для выхода. |
|
|
111
111
|
| `/key [provider]` | Сменить ключ провайдера. |
|
|
112
|
-
| `/effort` · `/thinking` |
|
|
112
|
+
| `/effort [auto|low|medium|high|xhigh|max]` · `/thinking` | Выбрать effort и настроить reasoning. |
|
|
113
|
+
| `/memory show` · `/memory set <текст>` · `/memory clear` | Просмотреть, заменить или очистить постоянные заметки проекта. |
|
|
113
114
|
| `/resume` · `/clear` | Восстановить сессию или начать новую. |
|
|
114
115
|
| `/sessions` | Найти сессию и открыть, переименовать, удалить или экспортировать её. |
|
|
115
116
|
| `/sessions list` | Показать все сохранённые сессии. |
|
|
@@ -170,6 +171,44 @@ scrollback терминала, поэтому историю можно плав
|
|
|
170
171
|
ручные изменения. После правок KitCode определяет стандартные команды проекта — например `lint`,
|
|
171
172
|
`typecheck` и `test` — и перед запуском показывает их для подтверждения.
|
|
172
173
|
|
|
174
|
+
## Reasoning effort
|
|
175
|
+
|
|
176
|
+
Откройте `/effort` для выбора в меню или используйте `/effort high`, чтобы задать уровень сразу.
|
|
177
|
+
Команда показывает выбранный уровень и значение, которое KitCode отправит API для текущей переписки.
|
|
178
|
+
Это проверяет кодирование запроса, но не гарантирует, что шлюз провайдера применит параметр.
|
|
179
|
+
|
|
180
|
+
`auto` выбирает `medium` для коротких общих запросов и `high` для длинных сообщений или задач с
|
|
181
|
+
признаками исправления, тестирования и реализации. Это локальная эвристика, а не оценка сложности
|
|
182
|
+
моделью. Ручной уровень отключает эвристику. Для исходного GPT-5, GPT-5.1 и o-серии KitCode
|
|
183
|
+
сводит `xhigh` и `max` к `high`; для GPT-5.2–5.4 `max` сводится к `xhigh`. Для неизвестных
|
|
184
|
+
OpenAI-совместимых моделей параметр не отправляется. Anthropic получает выбранный уровень в
|
|
185
|
+
`output_config`. Реальная поддержка зависит от модели и провайдера.
|
|
186
|
+
|
|
187
|
+
## Память проекта
|
|
188
|
+
|
|
189
|
+
Заметки проекта сохраняются между чатами, `/clear` и перезапусками:
|
|
190
|
+
|
|
191
|
+
```text
|
|
192
|
+
/memory show
|
|
193
|
+
/memory set Запускать npm test перед коммитом. Ченджлог публиковать только в GitHub Release.
|
|
194
|
+
/memory clear
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
`set` заменяет всю заметку; `clear` запрашивает подтверждение. Лимит — 16 000 символов. Файлы
|
|
198
|
+
хранятся в `~/.kitcode/memory/`, отдельно для каждого канонического пути проекта.
|
|
199
|
+
|
|
200
|
+
Агент тоже может использовать инструмент `memory`: читать, добавлять, заменять и удалять записи.
|
|
201
|
+
Для изменений он обязан указать источник: инструкцию пользователя или подтверждение из файла либо
|
|
202
|
+
инструмента. В транскрипте показывается diff. Точная замена и удаление защищают соседние записи.
|
|
203
|
+
В обычном и accept-режимах инструмент разрешён по умолчанию. Ограничьте его через
|
|
204
|
+
`permissions.memory` значением `ask` или `deny`. Plan-режим блокирует инструмент.
|
|
205
|
+
|
|
206
|
+
Агент сохраняет подтверждённые факты проекта, явные предпочтения и принятые решения. Он должен
|
|
207
|
+
проверять старые заметки по текущим файлам. Временный прогресс остаётся в переписке. Redaction
|
|
208
|
+
секретов работает по известным шаблонам, поэтому ключи и пароли не записывайте. Сжатие контекста
|
|
209
|
+
отдельно сохраняет требования, подтверждения, команды проверок и результаты, предположения и
|
|
210
|
+
оставшуюся работу. Модель всё ещё может пропустить детали в автоматически созданной сводке.
|
|
211
|
+
|
|
173
212
|
## Конфигурация
|
|
174
213
|
|
|
175
214
|
Основные файлы KitCode:
|