mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-09 17:29:12 +00:00
chore(agent-core): remove experimental micro compaction (#1317)
* chore(agent-core): remove experimental micro compaction * fix(docs): drop micro compaction row from env-vars table
This commit is contained in:
parent
b40649b2ae
commit
78a058acd2
17 changed files with 170 additions and 150 deletions
|
|
@ -51,8 +51,8 @@ reserved_context_size = 50000
|
|||
max_running_tasks = 4
|
||||
keep_alive_on_exit = false
|
||||
|
||||
[experimental]
|
||||
micro_compaction = false
|
||||
# [experimental]
|
||||
# micro_compaction = false # disabled: micro compaction has been removed
|
||||
|
||||
[[permission.rules]]
|
||||
decision = "allow"
|
||||
|
|
@ -200,6 +200,7 @@ You can also switch models temporarily without touching the config file — by s
|
|||
|
||||
`keep_alive_on_exit` can be overridden by the `KIMI_CODE_BACKGROUND_KEEP_ALIVE_ON_EXIT` environment variable, which takes higher priority than `config.toml`.
|
||||
|
||||
<!--
|
||||
## `experimental`
|
||||
|
||||
`experimental` stores persistent overrides for experimental-feature flags. Currently, `micro_compaction` is the only user-facing entry and defaults to `false`; set it to `true` to enable automatic trimming of older large tool results.
|
||||
|
|
@ -207,6 +208,7 @@ You can also switch models temporarily without touching the config file — by s
|
|||
| Field | Type | Default | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `micro_compaction` | `boolean` | `false` | Trim older large tool results from context while preserving recent conversation |
|
||||
-->
|
||||
|
||||
## `services`
|
||||
|
||||
|
|
|
|||
|
|
@ -125,7 +125,6 @@ Switches that control the behavior of subsystems such as telemetry, background t
|
|||
| `KIMI_CODE_PLUGIN_MARKETPLACE_URL` | Override the plugin marketplace JSON loaded by `/plugins`; useful for dev loopback servers, staging CDN files, or alternate marketplace directories | `https://code.kimi.com/kimi-code/plugins/marketplace.json`; also accepts `http://`, `file://` URLs, and local paths |
|
||||
| `KIMI_CODE_AGENT_SWARM_MAX_CONCURRENCY` | Cap how many AgentSwarm subagents run concurrently during the initial ramp; leave unset for no cap | Positive integer; invalid values fail fast |
|
||||
| `KIMI_CODE_EXPERIMENTAL_FLAG` | Enable all registered experimental features for this process | `1`, `true`, `yes`, `on` |
|
||||
| `KIMI_CODE_EXPERIMENTAL_MICRO_COMPACTION` | Override [`[experimental].micro_compaction`](./config-files.md#experimental) for this process | Truthy or falsy |
|
||||
| `KIMI_SHELL_PATH` | Override the Git Bash path on Windows (used when auto-detection fails) | Absolute path |
|
||||
| `KIMI_MODEL_MAX_COMPLETION_TOKENS` | Hard cap on `max_completion_tokens` per LLM step; applies to the `kimi` provider only | Positive integer; `0` or negative disables clamping |
|
||||
| `KIMI_MODEL_TEMPERATURE` | Sampling temperature for every request; applies to the `kimi` provider only (global — independent of `KIMI_MODEL_NAME`) | Number, e.g. `0.3` |
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ reserved_context_size = 50000
|
|||
max_running_tasks = 4
|
||||
keep_alive_on_exit = false
|
||||
|
||||
[experimental]
|
||||
micro_compaction = false
|
||||
# [experimental]
|
||||
# micro_compaction = false # disabled: micro compaction has been removed
|
||||
|
||||
[[permission.rules]]
|
||||
decision = "allow"
|
||||
|
|
@ -200,6 +200,7 @@ default_effort = "high"
|
|||
|
||||
`keep_alive_on_exit` 可被环境变量 `KIMI_CODE_BACKGROUND_KEEP_ALIVE_ON_EXIT` 覆盖,优先级高于配置文件。
|
||||
|
||||
<!--
|
||||
## `experimental`
|
||||
|
||||
`experimental` 存放实验功能 flag 的持久化覆盖。目前 `micro_compaction` 是唯一用户可见的字段,默认值为 `false`;如需自动清理较旧的大型工具结果,把它设为 `true`。
|
||||
|
|
@ -207,6 +208,7 @@ default_effort = "high"
|
|||
| 字段 | 类型 | 默认值 | 说明 |
|
||||
| --- | --- | --- | --- |
|
||||
| `micro_compaction` | `boolean` | `false` | 清理较旧的大型工具结果内容,同时保留最近对话 |
|
||||
-->
|
||||
|
||||
## `services`
|
||||
|
||||
|
|
|
|||
|
|
@ -125,7 +125,6 @@ kimi
|
|||
| `KIMI_CODE_PLUGIN_MARKETPLACE_URL` | 覆盖 `/plugins` 加载的 plugin marketplace JSON,适合 dev loopback server、测试 CDN 文件或替换 marketplace 目录 | `https://code.kimi.com/kimi-code/plugins/marketplace.json`;也接受 `http://`、`file://` URL 和本地路径 |
|
||||
| `KIMI_CODE_AGENT_SWARM_MAX_CONCURRENCY` | 限制 AgentSwarm 初始提升并发阶段可同时运行的子 Agent 数量;不设置表示不限制 | 正整数;非法值会立即失败 |
|
||||
| `KIMI_CODE_EXPERIMENTAL_FLAG` | 在当前进程启用所有已注册的实验功能 | `1`、`true`、`yes`、`on` |
|
||||
| `KIMI_CODE_EXPERIMENTAL_MICRO_COMPACTION` | 覆盖当前进程的 [`[experimental].micro_compaction`](./config-files.md#experimental) | 真值或假值 |
|
||||
| `KIMI_SHELL_PATH` | Windows 上覆盖 Git Bash 路径(自动探测失败时使用) | 绝对路径 |
|
||||
| `KIMI_MODEL_MAX_COMPLETION_TOKENS` | 单步 LLM 请求的 `max_completion_tokens` 硬上限,仅对 `kimi` 供应商生效 | 正整数;`0` 或负数禁用 clamp |
|
||||
| `KIMI_MODEL_TEMPERATURE` | 每次请求的采样温度,仅对 `kimi` 供应商生效(全局生效,不依赖 `KIMI_MODEL_NAME`) | 数字,如 `0.3` |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue