mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-09 17:29:12 +00:00
docs: document /export-md and /export-debug-zip slash commands (#114)
Add reference table entries for the new in-TUI export commands, and extend the Sessions guide so users can discover them alongside the existing `kimi export` CLI subcommand. Mirrored across en and zh.
This commit is contained in:
parent
028d069b12
commit
b7e7404d90
4 changed files with 8 additions and 0 deletions
|
|
@ -105,6 +105,8 @@ kimi export <sessionId> -o ~/Desktop/my-session.zip
|
|||
|
||||
The ZIP is written to the current working directory by default. The session's own diagnostic log is always bundled along with the session directory. The global diagnostic log at `$KIMI_CODE_HOME/logs/kimi-code.log` — which captures events that do not belong to a session, such as TUI startup and login — is also bundled by default; pass `--no-include-global-log` to skip it.
|
||||
|
||||
You can also export the current session without leaving the TUI. `/export-debug-zip` produces the same kind of debug ZIP as `kimi export`, while `/export-md` (alias `/export`) writes a human-readable Markdown transcript — useful for sharing or archiving a readable conversation history. `/export-md` accepts an optional path; with no argument, it writes to `kimi-export-<short-id>-<timestamp>.md` in the working directory.
|
||||
|
||||
::: tip Tip
|
||||
Exported files may contain sensitive information. Review the contents before sharing.
|
||||
:::
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ Some commands are only available in the idle state. Running them while the sessi
|
|||
| `/title [<text>]` | `/rename` | Without arguments, show the current session title; with an argument, set it as the new title (up to 200 characters). | Yes |
|
||||
| `/compact [<instruction>]` | — | Compact the current conversation context to free up token usage; optionally pass a custom instruction telling the model what to preserve during compaction. | No |
|
||||
| `/init` | — | Analyze the current codebase and generate `AGENTS.md`. | No |
|
||||
| `/export-md [<path>]` | `/export` | Export the current session as a Markdown file. With no argument, writes to `kimi-export-<short-id>-<timestamp>.md` in the working directory; pass a path to choose the output location. | No |
|
||||
| `/export-debug-zip` | — | Export the current session as a debug ZIP archive (mirrors [`kimi export`](./kimi-command.md#kimi-export)). The archive always includes the active global diagnostic log. | No |
|
||||
|
||||
## Mode and runtime control
|
||||
|
||||
|
|
|
|||
|
|
@ -105,6 +105,8 @@ kimi export <sessionId> -o ~/Desktop/my-session.zip
|
|||
|
||||
未指定 `-o` 时,ZIP 写入当前工作目录。会话目录里的诊断日志会一并打包;此外,全局诊断日志 `$KIMI_CODE_HOME/logs/kimi-code.log`(记录 TUI 启动、登录等不属于任何会话的事件)默认也会包含进来,不需要时加 `--no-include-global-log` 跳过。
|
||||
|
||||
也可以在不离开 TUI 的情况下导出当前会话。`/export-debug-zip` 产生与 `kimi export` 相同的调试 ZIP,而 `/export-md`(别名 `/export`)会写出一份人类可读的 Markdown 对话记录,适合分享或归档可读的会话内容。`/export-md` 可选接收一个路径参数;不带参数时,写入工作目录下的 `kimi-export-<short-id>-<timestamp>.md`。
|
||||
|
||||
::: tip 提示
|
||||
导出文件可能包含敏感信息,分享前请确认内容。
|
||||
:::
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@
|
|||
| `/title [<text>]` | `/rename` | 不带参数时显示当前会话标题;带参数时将其设置为新标题(最长 200 个字符)。 | 是 |
|
||||
| `/compact [<instruction>]` | — | 压缩当前对话上下文,释放 token 占用;可选附带一段自定义指令,提示模型在压缩时保留哪些信息。 | 否 |
|
||||
| `/init` | — | 分析当前代码库并生成 `AGENTS.md`。 | 否 |
|
||||
| `/export-md [<path>]` | `/export` | 将当前会话导出为 Markdown 文件。不带参数时写入工作目录下的 `kimi-export-<short-id>-<timestamp>.md`,传入路径可指定输出位置。 | 否 |
|
||||
| `/export-debug-zip` | — | 将当前会话导出为调试用的 ZIP 压缩包(与 [`kimi export`](./kimi-command.md#kimi-export) 行为一致)。压缩包始终包含当前活动的全局诊断日志。 | 否 |
|
||||
|
||||
## 模式与运行控制
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue