Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1280 commits
Select commit Hold shift + click to select a range
e835c48
chore: drop changesets merged with the klient facade (#1768) (#1775)
sailist Jul 16, 2026
1348f49
fix: replay empty thinking verbatim on preserved-thinking endpoints (…
RealKai42 Jul 16, 2026
31b6640
fix: honor explicit thinking off on OpenAI-compatible providers (#1774)
RealKai42 Jul 16, 2026
ccb5485
feat(agent-core): align coder subagent tools with v2 and drain backgr…
sailist Jul 16, 2026
4cc7136
feat(vscode): migrate extension to Node SDK (#1769)
wbxl2000 Jul 16, 2026
e762be8
fix: scope Anthropic effort fallback profile to non-Kimi providers (#…
RealKai42 Jul 16, 2026
4250dba
fix(vscode): make the gear sign-in actually log in (#1779)
wbxl2000 Jul 16, 2026
99867a2
fix: report task stop reasons to the model (#1781)
kermanx Jul 16, 2026
92851bd
fix(agent-core-v2): keep context size readings on the measured path (…
sailist Jul 16, 2026
cf8e091
fix(agent-core-v2): skip no-op agent registration on session resume (…
sailist Jul 16, 2026
e5dc6bf
chore(vscode): release 0.6.1 (#1783)
wbxl2000 Jul 16, 2026
c1e2ab9
ci: release packages (#1767)
github-actions[bot] Jul 16, 2026
0dbaf30
docs(changelog): sync 0.26.0 from apps/kimi-code/CHANGELOG.md (#1786)
liruifengv Jul 16, 2026
c858984
fix: use timestamped default filename for session debug exports (#1788)
RealKai42 Jul 16, 2026
7b76fb8
refactor: remove git detection from workspace wire and folder browse …
sailist Jul 16, 2026
2dc7295
fix(agent-core): record and close tool calls interrupted mid-stream (…
RealKai42 Jul 16, 2026
a168cfa
fix: comprehensive bug fixes across 3 review rounds
7723qqq Jul 16, 2026
abe5262
merge: upstream v0.26.0
7723qqq Jul 16, 2026
88e8605
fix: restore config/schema env field and client improvements post-merge
7723qqq Jul 16, 2026
57c45e1
fix: remove stale cache-control test, upstream removed cacheControlTtl
7723qqq Jul 16, 2026
4a35066
fix: platform-aware native asset copy — detect linux/windows/darwin d…
7723qqq Jul 16, 2026
a435c51
fix: restore #/i18n path alias — add to tsdown config and package.jso…
7723qqq Jul 16, 2026
0f2a0a9
chore: fix server.token permissions to 0600
7723qqq Jul 16, 2026
28a0a73
docs(changelog): sync 0.26.0 from apps/kimi-code/CHANGELOG.md
7723qqq Jul 17, 2026
56d18d3
docs(changelog): sync 0.26.0 Chinese translation
7723qqq Jul 17, 2026
807ff50
docs(changelog): sync 0.26.0 Chinese translation
7723qqq Jul 17, 2026
23a0180
docs(changelog): sync 0.26.0 Chinese translation (up to 0.24.0)
7723qqq Jul 17, 2026
7198b8e
docs(changelog): sync 0.26.0 Chinese translation (0.23.6-0.20.2)
7723qqq Jul 17, 2026
595a980
docs(changelog): sync 0.26.0 Chinese translation (0.20.3 onwards)
7723qqq Jul 17, 2026
a393945
fix(security): close FetchURL SSRF bypasses and DNS-rebinding window …
sailist Jul 17, 2026
59e2e7c
fix(tui): dismiss /btw panel before cancelling compaction on Esc and …
liruifengv Jul 17, 2026
f76e1ab
Merge pull request #1 from 7723qqq/docs/changelog-sync-0.26.0
7723qqq Jul 17, 2026
5210c76
merge: 合并 origin/main 到本地 main
7723qqq Jul 17, 2026
cddb74f
chore: remove stale deployment check scripts
7723qqq Jul 17, 2026
aa5bc88
fix(vscode): stop mid-turn core errors from corrupting the active tur…
wbxl2000 Jul 17, 2026
6012807
docs: add requirement that every commit must be pushed to remote
7723qqq Jul 17, 2026
2747d71
fix(oauth): include the transport root cause in connection error mess…
wbxl2000 Jul 17, 2026
f8dd908
fix(workspace): dedupe workspaces across Windows path spelling varian…
sailist Jul 17, 2026
672a330
chore(vscode): release 0.6.2 (#1820)
wbxl2000 Jul 17, 2026
592eb82
chore(ci): remove the VSIX package audit job (#1823)
wbxl2000 Jul 17, 2026
4719350
feat: 优化缓存机制和连接池配置
7723qqq Jul 17, 2026
bafc27e
chore: remove Rust build artifacts from git tracking, add .gitignore …
7723qqq Jul 17, 2026
de4c22f
fix: remove prompt_cache_key from Anthropic request body, keep metada…
7723qqq Jul 17, 2026
6946ece
chore: sync i18n, migration, and tui changes
7723qqq Jul 17, 2026
00b4f53
feat(kimi-inspect): add kap-server web inspector with dev-only /api/v…
sailist Jul 17, 2026
46e9d55
feat(minidb): ClusterDb sharding, incremental reader catch-up, and en…
sailist Jul 17, 2026
b713707
feat(tui): add /copy slash command to copy the last assistant message…
liruifengv Jul 17, 2026
d46375e
feat: refresh model list for API-key providers at the managed endpoin…
liruifengv Jul 17, 2026
8138032
fix(tui): hide whitespace-only thinking from the transcript (#1829)
RealKai42 Jul 17, 2026
0fedaf0
fix: complete project i18n — translate codingPlan EN locale and repla…
7723qqq Jul 17, 2026
04af94e
fix: correct broken i18n key paths — tui.commands.* → tui.statusMessa…
7723qqq Jul 17, 2026
8eff82c
fix(vscode): allow editor mentions for files outside the working dire…
wbxl2000 Jul 17, 2026
d22ea9d
feat(agent-core): add i18n support with en/zh locale coverage
7723qqq Jul 17, 2026
1eb31c7
fix(agent-core-v2): follow symlinks when loading AGENTS.md (#1840)
7Sageer Jul 17, 2026
5b0edb8
fix(kimi-web): stop the prompt queue from ghost-sending stale attachm…
wbxl2000 Jul 17, 2026
2b41418
fix(vscode): reliable cancel and preserved session model on attach (#…
wbxl2000 Jul 17, 2026
259e5a1
fix(web): remember the thinking level per model (#1838)
wbxl2000 Jul 17, 2026
4d4ab79
fix(server): allow inline styles in CSP so web math renders on non-lo…
wbxl2000 Jul 17, 2026
8c71e91
chore: remove kimi-desktop app and desktop release pipeline (#1849)
wbxl2000 Jul 17, 2026
dcc9c0a
ci: release packages (#1785)
github-actions[bot] Jul 17, 2026
affdda8
docs(changelog): sync 0.27.0 from apps/kimi-code/CHANGELOG.md (#1852)
liruifengv Jul 17, 2026
f22fc7e
chore(vscode): release 0.6.3 (#1856)
wbxl2000 Jul 17, 2026
3a72074
chore: remove mimo-free provider (deprecated)
7723qqq Jul 17, 2026
5a2efb7
fix(agent-core): restructure i18n module to single-file and fix type …
7723qqq Jul 17, 2026
1a9f6d5
fix(agent-core): correct i18n key paths and locale translation patterns
7723qqq Jul 17, 2026
ca443bc
fix: unify YOLO and Auto permission mode descriptions across surfaces…
RealKai42 Jul 17, 2026
c1f2313
refactor: remove git detection from workspace wire and folder browse …
sailist Jul 16, 2026
7398aa6
fix(agent-core): record and close tool calls interrupted mid-stream (…
RealKai42 Jul 16, 2026
7c3a2f2
fix(security): close FetchURL SSRF bypasses and DNS-rebinding window …
sailist Jul 17, 2026
7c93398
fix(tui): dismiss /btw panel before cancelling compaction on Esc and …
liruifengv Jul 17, 2026
9944e0f
fix(vscode): stop mid-turn core errors from corrupting the active tur…
wbxl2000 Jul 17, 2026
57f4fae
fix(oauth): include the transport root cause in connection error mess…
wbxl2000 Jul 17, 2026
c874beb
chore(vscode): release 0.6.2 (#1820)
wbxl2000 Jul 17, 2026
17dfd8d
chore(ci): remove the VSIX package audit job (#1823)
wbxl2000 Jul 17, 2026
8a7f644
feat: refresh model list for API-key providers at the managed endpoin…
liruifengv Jul 17, 2026
dc2c399
fix(tui): hide whitespace-only thinking from the transcript (#1829)
RealKai42 Jul 17, 2026
e6a0cb3
fix(vscode): allow editor mentions for files outside the working dire…
wbxl2000 Jul 17, 2026
87917a8
fix(agent-core-v2): follow symlinks when loading AGENTS.md (#1840)
7Sageer Jul 17, 2026
e823c1d
fix(kimi-web): stop the prompt queue from ghost-sending stale attachm…
wbxl2000 Jul 17, 2026
75bf098
fix(vscode): reliable cancel and preserved session model on attach (#…
wbxl2000 Jul 17, 2026
d11996e
fix(web): remember the thinking level per model (#1838)
wbxl2000 Jul 17, 2026
0e3ddfb
fix(server): allow inline styles in CSP so web math renders on non-lo…
wbxl2000 Jul 17, 2026
597ec59
ci: release packages (#1785)
github-actions[bot] Jul 17, 2026
76f950b
chore(vscode): release 0.6.3 (#1856)
wbxl2000 Jul 17, 2026
9f87426
refactor: remove git detection from workspace wire and folder browse …
sailist Jul 16, 2026
31292ec
fix(agent-core): record and close tool calls interrupted mid-stream (…
RealKai42 Jul 16, 2026
18f4162
fix(security): close FetchURL SSRF bypasses and DNS-rebinding window …
sailist Jul 17, 2026
3059cd8
fix(tui): dismiss /btw panel before cancelling compaction on Esc and …
liruifengv Jul 17, 2026
2031130
fix(oauth): include the transport root cause in connection error mess…
wbxl2000 Jul 17, 2026
84c6fb4
feat: refresh model list for API-key providers at the managed endpoin…
liruifengv Jul 17, 2026
30c70a8
fix(tui): hide whitespace-only thinking from the transcript (#1829)
RealKai42 Jul 17, 2026
9d20385
fix(agent-core-v2): follow symlinks when loading AGENTS.md (#1840)
7Sageer Jul 17, 2026
f0adea6
fix(web): remember the thinking level per model (#1838)
wbxl2000 Jul 17, 2026
bc824b8
fix(server): allow inline styles in CSP so web math renders on non-lo…
wbxl2000 Jul 17, 2026
1d53b8a
ci: release packages (#1785)
github-actions[bot] Jul 17, 2026
dde149c
fix(workspace): dedupe workspaces across Windows path spelling varian…
sailist Jul 17, 2026
e0364f6
feat(minidb): ClusterDb sharding, incremental reader catch-up, and en…
sailist Jul 17, 2026
b6d7442
feat(tui): add /copy slash command to copy the last assistant message…
liruifengv Jul 17, 2026
da208a0
chore: remove kimi-desktop app and desktop release pipeline (#1849)
wbxl2000 Jul 17, 2026
8dbc231
fix: unify YOLO and Auto permission mode descriptions across surfaces…
7723qqq Jul 17, 2026
9557865
fix(kimi-web): stop the prompt queue from ghost-sending stale attachm…
wbxl2000 Jul 17, 2026
648f992
chore: add changesets from upstream cherry-picks
7723qqq Jul 17, 2026
a786e67
feat(kimi-inspect): add kap-server web inspector with dev-only /api/v…
sailist Jul 17, 2026
ab3f2c4
feat(kimi-inspect): add kap-server web inspector with dev-only /api/v…
sailist Jul 17, 2026
408abac
fix: use timestamped default filename for session debug exports (#1788)
RealKai42 Jul 16, 2026
e7ed30a
chore(vscode): release 0.6.2 (#1820)
wbxl2000 Jul 17, 2026
881d342
docs(changelog): sync 0.26.0 from apps/kimi-code/CHANGELOG.md (#1786)
liruifengv Jul 16, 2026
075d510
docs(changelog): sync 0.27.0 from apps/kimi-code/CHANGELOG.md (#1852)
liruifengv Jul 17, 2026
f6dd89f
feat: enhance goal system with budget tracking and native tools
7723qqq Jul 17, 2026
681e436
chore: merge upstream v0.27.0
7723qqq Jul 17, 2026
0c991db
chore: update pnpm-lock.yaml after merge
7723qqq Jul 17, 2026
0c63e0c
feat: merge Codex goal accounting improvements
7723qqq Jul 17, 2026
2d924b3
fix: strengthen swarm mode enter reminder to enforce AgentSwarm usage
7723qqq Jul 17, 2026
6006a20
perf: async-ify native_read and native_write with spawn_blocking
7723qqq Jul 17, 2026
27f1af8
feat: add speculative tool execution hint
7723qqq Jul 17, 2026
9208aa6
perf: add file read cache (Rust) + incremental token counting (TS)
7723qqq Jul 17, 2026
3eeb14f
fix: handle loop events in incremental token counting
7723qqq Jul 17, 2026
061bba1
fix: resolve plan+swarm mode prompt conflict
7723qqq Jul 17, 2026
47092ce
perf: async-ify native_edit with spawn_blocking
7723qqq Jul 18, 2026
b91c6ea
perf: batch context recording + wire nativeBatchRead + async native_edit
7723qqq Jul 18, 2026
6b28ac6
fix: set Anthropic SDK maxRetries to 3 and consolidate scattered retr…
7723qqq Jul 18, 2026
58c18ea
feat: extract shared i18n package and migrate all packages
7723qqq Jul 18, 2026
9b095bc
feat(cli): run kimi web and the TUI /web command in the foreground by…
wbxl2000 Jul 18, 2026
cb0574d
merge: upstream v0.27.0 — foreground web mode + fixes
Jul 18, 2026
a971870
feat: extract goal-mode, permission-DSL, and path-canonicalization de…
7723qqq Jul 18, 2026
fe6f861
feat: SEA native binary support - ensureNative() fallback for all i18…
Jul 18, 2026
b1679b7
Merge remote-tracking branch 'origin/main'
Jul 18, 2026
e6e2f78
fix: kimi-build PE injector now writes sentinel fuse flag, 03-inject.…
Jul 18, 2026
39d9c5f
feat: kimi-agent — Rust agent engine skeleton with stdio JSON-RPC bridge
Jul 18, 2026
237ae2a
feat: add agent.engine config toggle (js/rust) for switching agent ba…
Jul 18, 2026
86ec56c
feat: wire kimi-agent run_turn to real Rust loop, add LLM proxy
Jul 18, 2026
f332aa7
feat: integrate runTurnOverride into Agent/Session for Rust engine sw…
Jul 18, 2026
b284934
feat: add check-bundle command to kimi-build (Rust port of check-bund…
Jul 18, 2026
ea6b7bc
feat: add tool execution proxy to kimi-agent (Rust→JS via host/execut…
Jul 18, 2026
5cc6629
refactor: shared sentinel fuse flag for all platforms, remove postjec…
Jul 18, 2026
5d22957
chore: remove postject dependency, kimi-build is now the only injector
Jul 18, 2026
960ce9f
fix: use import instead of require in 03-inject.mjs (ESM compat)
Jul 18, 2026
733c56e
fix: multi-step turn loop feeds tool results back into messages
Jul 18, 2026
933ac97
chore: clean up remaining postject references
Jul 18, 2026
d80df2e
fix: pass tool definitions from JS through Rust LLM proxy
Jul 18, 2026
c56234e
feat: add --test flag to kimi-agent for self-testing the turn loop
Jul 18, 2026
b608381
feat: wire RunTurnOverride adapter for kimi-agent Rust engine
Jul 18, 2026
ca50d2f
chore: add kimi-agent to check-bundle allowlists and Makefile
Jul 18, 2026
6caa73f
feat: wire Rust engine in daemon/server path
Jul 18, 2026
ba74de7
feat(cli): replace the kimi server command tree with kimi web and sha…
sailist Jul 19, 2026
ad15ab7
feat(minidb): switch agent-core-v2 query-store to ClusterDb with 16 s…
sailist Jul 19, 2026
e27e439
fix(agent-core-v2): make host fs stat follow symlinks and add explici…
7Sageer Jul 19, 2026
d2488bc
fix(native-tools): expose i18n translation engine via napi
7723qqq Jul 19, 2026
4be9b9b
fix(native-build): repair SEA build resolution and blob injection
7723qqq Jul 19, 2026
7210a8f
feat: add thinking_effort to turn telemetry events (#1916)
7Sageer Jul 19, 2026
aa88521
fix(agent-core): remove stray brace in workspace-registry test
7723qqq Jul 19, 2026
5868b18
feat: add native GitHub tools (Rust ureq client + agent-core tools)
7723qqq Jul 19, 2026
672bc54
feat: scope thinking effort to the current session (#1933)
liruifengv Jul 20, 2026
5e9c4c5
feat(web): add a cache invalidation note to the model switcher (#1940)
wbxl2000 Jul 20, 2026
c048762
ci: release packages (#1868)
github-actions[bot] Jul 20, 2026
551df7e
merge: upstream v0.28.0 — kimi web, ClusterDb, thinking effort scope
7723qqq Jul 20, 2026
54f37f2
feat: add github_token config field and TUI settings input
7723qqq Jul 20, 2026
8e4c14b
fix: add GitHub tool names to enabledTools when github_tools flag is on
7723qqq Jul 20, 2026
9b64438
fix: use agent.experimentalFlags instead of module-level flags for gi…
7723qqq Jul 20, 2026
c4727ec
feat: integrate Rust native translation engine into shared i18n
7723qqq Jul 20, 2026
ff643ce
feat(transcript): add unified transcript layer, drop the /api/v2 RPC …
sailist Jul 20, 2026
d011a6b
fix(agent-core-v2): broadcast permission mode switches to live subage…
sailist Jul 20, 2026
94dd7e7
docs(changelog): sync 0.28.0 from apps/kimi-code/CHANGELOG.md (#1944)
liruifengv Jul 20, 2026
c7ca3a5
feat: show combined rainbow swarm-plan badge when both modes are active
7723qqq Jul 20, 2026
89d9591
feat(vscode): scope thinking effort to the current session (#1951)
wbxl2000 Jul 20, 2026
ab377e4
chore(vscode): release 0.6.4 (#1958)
wbxl2000 Jul 20, 2026
8efac65
feat: support max and exact version targeting for tips banner (#1960)
liruifengv Jul 20, 2026
e25e65e
feat(cli): foreground-only web servers, deprecated kimi server kill (…
sailist Jul 20, 2026
e9efd2a
fix(acp): allow configured provider auth (#934)
tt-a1i Jul 20, 2026
ee039df
ci: release packages (#1946)
github-actions[bot] Jul 20, 2026
2f38f06
docs(changelog): sync 0.28.1 from apps/kimi-code/CHANGELOG.md (#1975)
liruifengv Jul 20, 2026
3d61978
fix(agent-core): correct native goal engine integration (JSON parsing…
7723qqq Jul 20, 2026
edbd1d0
fix(agent-core): align goal status casing and objective limits with n…
7723qqq Jul 20, 2026
edb0ff7
feat(agent-core): broaden plugin manifest parsing (unicode names, num…
7723qqq Jul 20, 2026
1606d63
test(agent-core): refresh compaction token counts after tokenizer change
7723qqq Jul 20, 2026
d0b7bcd
fix(agent-core): reject empty required inputs in tool schemas
7723qqq Jul 20, 2026
963360c
fix(agent-core): reject null-byte paths and cross-validate native med…
7723qqq Jul 20, 2026
7b68b00
fix(agent-core): honor nocase in glob rule matching; sync permission …
7723qqq Jul 20, 2026
e980f99
test(agent-core): give the MCP tool-manager fake agent an experimenta…
7723qqq Jul 20, 2026
09b003b
fix(agent-core): validate Agent tool inputs, propagate abort, generic…
7723qqq Jul 20, 2026
a4383c3
test(agent-core): hoist approval-adapter inProc fixture to module scope
7723qqq Jul 20, 2026
38e9cb4
fix(agent-core): count media parts in message token estimates
7723qqq Jul 20, 2026
93405bf
fix(agent-core): run shell-builtin hook commands via shell; skip empt…
7723qqq Jul 20, 2026
9de23c3
fix(agent-core): flatten goal budget into the native reminder rendere…
7723qqq Jul 20, 2026
c14ce87
fix(agent-core): point project-local MCP config at <cwd>/.kimi-code/m…
7723qqq Jul 20, 2026
9ebf13c
fix(agent-core): tighten env-model config validation and stripping
7723qqq Jul 20, 2026
c22d642
fix(agent-core): bound workspace additional dirs and normalize traili…
7723qqq Jul 20, 2026
dfded57
fix(agent-core): harden plugin manager install/remove/reload
7723qqq Jul 20, 2026
b64cb2a
merge: upstream 0.28.1
7723qqq Jul 20, 2026
d03b2a3
fix(agent-core): prompt-metadata empty/redaction handling; sync agent…
7723qqq Jul 20, 2026
f298c1b
chore: sync local changes after upstream 0.28.1 merge
7723qqq Jul 20, 2026
04b76f0
fix(agent-core): reject a negative KIMI_MODEL_TEMPERATURE
7723qqq Jul 20, 2026
e97d579
feat(agent-core): enforce completionCriterion, enable verifier by def…
7723qqq Jul 21, 2026
411211d
chore: sync remaining local changes
7723qqq Jul 21, 2026
2395e18
feat: enforce completionCriterion on goal creation, fix verifier, and…
7723qqq Jul 21, 2026
e132fdd
fix(agent-core): drop vacuous assistant messages that permanently wed…
RealKai42 Jul 21, 2026
00da23a
feat: i18n hardcoded strings + goal token tracking with input/output …
7723qqq Jul 21, 2026
fdf7838
fix(tui): hide system-trigger messages in resume replay (#1990)
liruifengv Jul 21, 2026
a89d6e1
fix(tui): remove red coloring from code syntax highlighting (#1995)
liruifengv Jul 21, 2026
9503a78
refactor(agent-core-v2): rebuild the model wire layer on the kosong a…
sailist Jul 21, 2026
6d834af
fix(vscode): reduce webview streaming re-render churn (#1994)
RealKai42 Jul 21, 2026
0393289
feat(acp): support selecting thinking effort levels (#1992)
RealKai42 Jul 21, 2026
e84d7a5
feat(telemetry): emit turn_id and agent_id on turn and tool events (#…
7Sageer Jul 21, 2026
f67fa31
feat: support custom agent files (#1735)
7Sageer Jul 21, 2026
ed5c50e
feat(kap-server): broadcast agent.created/agent.disposed session even…
sailist Jul 21, 2026
ee119ec
fix(tui): keep long sessions responsive and bound resumed history (#1…
liruifengv Jul 21, 2026
dd6644d
fix: restore Astron Coding Plan changes after upstream merge
7723qqq Jul 21, 2026
08eef2d
fix(agent-core-v2): reconnect dropped MCP servers on tool call failur…
7Sageer Jul 21, 2026
4d4d450
feat(kap-server): add GET /api/v1/fs:content endpoint for host files …
sailist Jul 21, 2026
c536b11
feat(kap-server): expose per-tool active state in GET /api/v1/tools (…
7Sageer Jul 21, 2026
927a396
feat(config): add env overrides for loop control and background task …
RealKai42 Jul 21, 2026
d2fcb01
fix: i18n key path errors, locale drift, and TUI/CLI correctness fixes
h2o502 Jul 21, 2026
8f7fb5c
Merge pull request #2 from h2o502/fix/i18n-and-ui-bugs
7723qqq Jul 21, 2026
3e338db
Merge upstream/main into main
7723qqq Jul 21, 2026
b083551
Merge remote-tracking branch 'origin/main'
7723qqq Jul 21, 2026
83afb68
feat(cli): add third-party source note to update prompt (#2014)
liruifengv Jul 21, 2026
36380c0
fix(web): keep transparent images readable over a checkerboard canvas…
wbxl2000 Jul 21, 2026
6d01177
fix(agent-core-v2): clear dangling defaultModel and thinking on manag…
liruifengv Jul 21, 2026
1453a08
feat(kap-server): add GET /api/v1/oauth/usage for managed account pla…
liruifengv Jul 21, 2026
3ff9239
fix: consume the model metadata declared by the models.dev catalog (#…
RealKai42 Jul 21, 2026
dcdae70
fix: five correctness follow-ups to the catalog metadata work (#2030)
RealKai42 Jul 21, 2026
fb74e65
fix(i18n): localize kimi web command option descriptions
7723qqq Jul 21, 2026
37d2e9b
fix(astron): deduplicate model lists, wire astron thinking, and add i…
7723qqq Jul 22, 2026
6c5409f
chore: add vscode i18n locale JSONs and scan-hardcoded-v2 script
7723qqq Jul 22, 2026
34ba303
fix: add missing exports for build (LLM_NOT_SET_MESSAGE, estimateTokens)
7723qqq Jul 22, 2026
ab46522
fix(build): add missing llmProtocol bridge modules for native build
7723qqq Jul 22, 2026
1910c11
docs: add Linux native SEA build and deploy instructions
7723qqq Jul 22, 2026
a63eb63
fix(tui): add missing astron field to currentTuiConfig and fix llmNot…
7723qqq Jul 22, 2026
098fbd0
chore: remove accidentally committed .qoder/ settings
7723qqq Jul 22, 2026
ebef496
fix(i18n): apply locale from tui.toml instead of env-only detection
7723qqq Jul 22, 2026
fac1e1d
Revert "fix(i18n): apply locale from tui.toml instead of env-only det…
7723qqq Jul 22, 2026
4155ffe
fix(i18n): apply locale from tui.toml instead of env-only detection
7723qqq Jul 22, 2026
d16d252
fix(i18n): replace module-level t() constants with lazy getter functions
7723qqq Jul 22, 2026
3bb1010
fix(i18n): replace remaining module-level constant imports with gette…
7723qqq Jul 22, 2026
5ade83b
fix(i18n): evaluate translations lazily to respect configured locale
7723qqq Jul 22, 2026
928300d
fix(astron): expose thinking-effort levels for effort-capable models
7723qqq Jul 22, 2026
a21812e
chore(i18n): enforce zh↔en key parity at compile time and in CI
7723qqq Jul 22, 2026
68422c5
refactor(agent-core-v2): drop pass-through methods from AgentRPCServi…
sailist Jul 22, 2026
aa139ac
fix: gate always-thinking inference to OpenAI wires, plus catalog rev…
RealKai42 Jul 22, 2026
78de3f9
feat: send prompt-attached videos directly with the prompt (#1999)
RealKai42 Jul 22, 2026
8d57f4f
chore: remove vendored 参考目录/ reference copies
7723qqq Jul 22, 2026
7166fbb
fix(i18n): resolve type errors blocking the typecheck gate
7723qqq Jul 22, 2026
5f15f8f
chore(cli): remove unused background-install update module
7723qqq Jul 22, 2026
395aae4
docs(cron): drop references to the non-existent `kimi resume` command…
sailist Jul 22, 2026
ab815c5
ci: release packages (#1989)
github-actions[bot] Jul 22, 2026
c5c85a0
docs(changelog): sync 0.29.0 from apps/kimi-code/CHANGELOG.md (#2054)
liruifengv Jul 22, 2026
1d9756e
feat(v2-print): align kimi -p run lifecycle with the default engine (…
sailist Jul 22, 2026
1578a2b
feat: agent-core-v2 permission/workspace refactors and transcript dur…
sailist Jul 22, 2026
a016b1c
merge: update from upstream/main (v0.29.0)
7723qqq Jul 22, 2026
3890be9
fix(i18n): add toolsV2.abort.abortedByUser and v2Errors.mainAgentNotF…
7723qqq Jul 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
70 changes: 70 additions & 0 deletions .agents/skills/agent-core-dev/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
name: agent-core-dev
description: Use when developing in packages/agent-core-v2 (the DI × Scope agent engine) — adding or modifying a domain Service, choosing a LifecycleScope, wiring DI dependencies, splitting a domain across scopes, owning or migrating a config section, gating behavior behind an experimental flag, raising coded errors, working on the permission system, writing DI/Scope tests, porting business logic from agent-core (v1) to v2, triaging a main-branch commit against v2, or exposing a v2 domain over server-v2 while keeping the /api/v1 wire contract compatible with released clients. Self-contained guide organized by development stage (orient → design → implement → test → verify) plus align workflows for v1→v2 migration, main-branch commit triage, and server-v2 wire exposure; each file carries the rules, examples, and red lines for its step.
---

# agent-core-dev

> Develop `packages/agent-core-v2` by lifecycle stage. This skill is **self-contained**: every rule, recipe, and red line lives in the stage files below — it does not delegate to `packages/agent-core-v2/docs/`.

`agent-core-v2` is the new agent engine built on the **DI × Scope** architecture (a port of `packages/agent-core`). Everything resolves through the container: a service declares an **identity**, its **dependencies**, and a **lifetime**; the container decides construction, singleton-per-scope, ordering, and disposal. The stage files restate the rules in imperative form so you can work without reading the source docs.

## Lifecycle at a glance

```text
Orient → Design → Implement → Test → Verify
│ │ │ │ │
│ │ │ │ └─ lint:domain · typecheck · test · dep graph · red lines
│ │ │ └─ test.md
│ │ └─ implement.md (+ errors.md · flags.md · permission.md)
│ └─ design.md
└─ orient.md
```

Stages are ordered but not strictly linear: a test failure (stage 4) that reveals a wrong scope sends you back to design (stage 2); a `CyclicDependencyError` sends you to `design.md` §dependency-direction and `implement.md` §cycles.

## Workflows

End-to-end procedures that span the stages. Reach for these before reading the stage files individually.

- [Align (port `agent-core` → `agent-core-v2`)](align.md): split a v1 class into semantic units, fix each unit's domain / scope / Service / dependencies, then migrate the logic and tests. Use when the task is "move feature X from v1 to v2" or "port `IXxxService` to v2".
- [Commit align (triage a `main` commit against v2)](commit-align.md): given one `main` commit hash + a short note, find the v1 logic it changed, check whether v2 already has the corresponding implementation, bucket it (aligned / partial / missing / not-applicable), and recommend a minimal fix. Use in the `kimi-code-v2`-catching-up-to-`main` phase, for one commit at a time; escalate to [align.md](align.md) if the gap is a whole domain.
- [Server align (expose `agent-core-v2` over `server-v2`)](server-align.md): wire a v2 domain into `packages/kap-server` over `/api/v2` (native) and `/api/v1` (v1-compatible mirror), keep the wire schema byte-compatible with the established v1 contract by sharing the `@moonshot-ai/protocol` schema, and isolate v1-only behavior in a `<domain>Legacy` edge adapter instead of distorting the native v2 Service. Use when the task is "expose the new v2 Service on the server", "add a route to the `/api/v1` surface", or "keep server-v2 wire-compatible with released v1 clients".

## Stages

- [Stage 1 — Orient](orient.md): the DI black box (identity / dependencies / lifetime), the four `LifecycleScope` tiers and visibility, and the file-header comment convention. Read before touching business code.
- [Stage 2 — Design a service](design.md): pick a scope, split a domain across scopes, choose a calling style (direct call vs event vs hook), and direct dependencies. Decide *where things live and who knows whom* before coding.
- Topic: [Domain boundaries vs Scope](domain-boundaries.md) — keep `session` / `agent` / `turn` from becoming god objects; data-ownership test and their split conclusions.
- Topic: [Persistence layering](persistence.md) — the three-layer `Store → Storage → backend` model, naming Stores by access pattern, and which layer business code should depend on.
- Topic: [Edge exposure — `resource:action` + WS events](edge-exposure.md) — which Services are exposed over `/api/v2` (per-scope action map) and which events stream over WS; what to wrap in a facade.
- [Stage 3 — Implement](implement.md): the standard Service recipe and the DI building blocks — interface + identity, constructor injection, scoped registration, `Disposable`, eager vs delayed, `invokeFunction`, `createInstance`, child scopes, and the cycle-refactor playbook.
- Topic: [Service authoring](service-authoring.md) — file layout, naming, contract vs impl contents, interface style, constructor/field conventions, events, multi-Service domains, comment rules.
- Topic: [Config](config.md) — the section-registry model, App vs Session split, owning a config section, the TOML format, and the env overlay.
- Topic: [Errors](errors.md) — co-located `XxxError`, the central code registry, wire serialization, boundary translation.
- Topic: [Flags](flags.md) — `registerFlagDefinition`, `IFlagService.enabled(id)`, the `[experimental]` config section, resolution precedence.
- Topic: [Permission](permission.md) — risk-only chain-of-responsibility kernel, harness constraints and product reviews as domain `onBeforeExecuteTool` veto listeners (`veto` / `allow` / `pass` / cold `waitUntil` factories), shared `toolApproval` round-trip, policy registry + composer, `modes`/`agentTypes` metadata, `resolveExecution`/`accesses`.
- Topic: [Telemetry](telemetry.md) — emitting events via `ITelemetryService`, context propagation, and appender destinations (`ConsoleAppender` / `CloudAppender`).
- [Stage 4 — Test](test.md): resolve the system under test by interface, pick `TestInstantiationService` vs `createScopedTestHost`, shared stubs, service groups, teardown.
- [Stage 5 — Verify & submit](verify.md): `lint:domain`, `typecheck`, `test`, and the pre-submit checklist.

## How to use this skill

Jump to the stage you are in and read that one file; each is self-contained and ends with its own red lines. Skim the global red lines below before submitting — they catch most mistakes across every stage. The repo's source of truth remains the code in `packages/agent-core-v2/src/`; this skill codifies the same rules so you do not have to re-derive them.

## Global red lines

Invariants that hold across every stage. Each is expanded in the stage file noted.

1. No `new` on a class whose constructor carries `@IService` deps — inject with `@IX` or `accessor.get(IX)`. (implement.md)
2. `@IX` decorates constructor parameters only; parameter order depends on construction (static-first for `createInstance`, `@IX`-first for scoped services). (service-authoring.md)
3. Both interface and impl carry `_serviceBrand`; the `createDecorator` name is globally unique. (implement.md)
4. Parent scope never depends on child scope — short-lived may inject long-lived, never the reverse. (orient.md)
5. No cyclic dependencies — refactor (extract a third Service / use an event / re-scope); do not break the cycle with `Delayed`. (design.md, implement.md)
6. `ServicesAccessor` is valid only during `invokeFunction` — never stash it for async use. (implement.md)
7. Scope follows state identity — no `Map<sessionId, …>` at `App` to fake per-session state. (design.md)
8. Foundational layers never know upstream ones; business code never depends on the edge layer (`gateway`/`rpc`). (design.md)
9. Throw coded errors; register codes centrally; branch on `code` across the wire, never `instanceof`. (errors.md)
10. Gate unreleased behavior behind a flag contributed via `registerFlagDefinition` and resolved through `IFlagService.enabled(id)`; no ad-hoc env toggles. (flags.md)
11. Tests resolve the SUT by interface; shared stubs live under `test/`, never `src/`. (test.md)
12. Config is the preference registry: only preferences that are persistable, schema'd, and user/operator-facing go in `IConfigService`. Domain-specific config (including env-only operational toggles) goes through `registerSection` + `envOverlay`. Facts → `IBootstrapService` (kept domain-agnostic — never add cron/flags/model state); session state → Session scope; constants → code. Business domains never call `IBootstrapService.getEnv()` directly. (config.md)
Loading