Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/video-readmedia-prompt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---

Add guidance in the system prompt to prefer `ReadMediaFile` for video analysis instead of extracting frames via Python scripts.
1 change: 1 addition & 0 deletions packages/agent-core/src/profile/default/system.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ The user may ask you to research on certain topics, process or generate certain
- Make plans before doing deep or wide research, to ensure you are always on track.
- Search on the Internet if possible, with carefully-designed search queries to improve efficiency and accuracy.
- Use proper tools or shell commands or Python packages to process or generate images, videos, PDFs, docs, spreadsheets, presentations, or other multimedia files. Detect if there are already such tools in the environment. If you have to install third-party tools/packages, you MUST ensure that they are installed in a virtual/isolated environment.
- When the user provides a video file for analysis, prefer using the `ReadMediaFile` tool to read the video directly. Only write Python scripts to extract frames when `ReadMediaFile` is unavailable or the format is not supported.
- Once you generate or edit any images, videos or other media files, try to read it again before proceed, to ensure that the content is as expected.
- Avoid installing or deleting anything to/from outside of the current working directory. If you have to do so, ask the user for confirmation.

Expand Down
Loading