create_session
Initiate a Kimi Code session with customized work directory, permission mode, and memory level for streamlined debugging and session orchestration.
Instructions
创建新的 Kimi Code session。可指定工作目录和权限模式(auto/manual/yolo)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | 工作目录的绝对路径,如 D:/code/glass-desktop/scene | |
| model | No | 模型标识符,如 deepseek/deepseek-v4-pro | |
| title | No | Session 标题,可选 | |
| policy | No | 任务策略。可选值: - "read-only": 只读(禁止写文件/执行命令) - "safe-edit": 安全编辑(禁止 shell 命令,可编辑文件) - "full-access": 全部允许(默认) - 自定义策略文件路径: 如 ".kimi-tunnel/policies/review.yaml" | |
| thinking | No | 思考级别,默认 max | |
| from_session | No | 接续的前置 session ID,自动拉取其 handoff 交接信息注入到首条 prompt。 | |
| memory_level | No | 冷启动内存注入级别。off=不注入, minimal=仅项目元信息, standard=meta+decisions(默认), full=meta+decisions+risks+learnings | standard |
| permission_mode | No | 权限模式:auto=自动审批所有工具调用,manual=需确认,yolo=超级自动 | auto |