Skip to content

feat: prefer ReadMediaFile over manual frame extraction for video analysis#485

Open
bj456736 wants to merge 1 commit into
MoonshotAI:mainfrom
bj456736:feat/video-readmediafile-prompt
Open

feat: prefer ReadMediaFile over manual frame extraction for video analysis#485
bj456736 wants to merge 1 commit into
MoonshotAI:mainfrom
bj456736:feat/video-readmediafile-prompt

Conversation

@bj456736
Copy link
Copy Markdown
Contributor

@bj456736 bj456736 commented Jun 5, 2026

Summary

Adds explicit guidance in the system prompt to prefer the ReadMediaFile tool over writing Python/ffmpeg scripts when analyzing video content.

Problem

When users share video files with Kimi Code CLI, the AI may default to writing Python scripts or ffmpeg commands to extract frames manually. This is inefficient and fails to leverage the built-in multimodal video_in capability.

Solution

Modified system.md in the General Guidelines for Research and Data Processing section to explicitly state:

For video files, prefer using the ReadMediaFile tool to read them directly rather than writing Python scripts or ffmpeg commands to extract frames manually.

Changes

  • packages/agent-core/src/profile/default/system.md: updated one line in the multimedia processing guideline.

Testing

  • prompt-placeholders.test.ts: 4 tests pass
  • agent-profile-loader.test.ts: 6 tests pass

Related Task

Kimi CLI 视频分析希望默认调用 ReadMediaFile 而不是写 Python 切帧 (P0)

…ual frame extraction

Adds explicit guidance in system prompt to prefer ReadMediaFile tool over
writing Python/ffmpeg scripts when analyzing video content. This prevents
inefficient manual frame extraction and leverages built-in multimodal capabilities.

- Modified system.md General Guidelines for Research and Data Processing
- Target task: Kimi CLI 视频分析希望默认调用 ReadMediaFile 而不是写 Python 切帧
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 5, 2026

⚠️ No Changeset found

Latest commit: 1126077

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 5, 2026

pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@1126077
npx https://pkg.pr.new/@moonshot-ai/kimi-code@1126077

commit: 1126077

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant