Skip to content

Add: MiCode system prompt (Xiaomi MiMo Team)#26

Open
vagishvedansh wants to merge 1 commit into
Piebald-AI:mainfrom
vagishvedansh:add-xiaomi-micode
Open

Add: MiCode system prompt (Xiaomi MiMo Team)#26
vagishvedansh wants to merge 1 commit into
Piebald-AI:mainfrom
vagishvedansh:add-xiaomi-micode

Conversation

@vagishvedansh

@vagishvedansh vagishvedansh commented Jun 14, 2026

Copy link
Copy Markdown

Added MiCode system prompt for Xiaomi open source AI coding assistant.

Summary by CodeRabbit

  • Documentation
    • Added comprehensive MiCode system prompt documentation that defines code agent behavior, establishes style guidelines, specifies git safety protocols, and outlines tool preferences.
    • Updated README to include the new system prompt reference with token count information for improved documentation accessibility.

@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Adds a new system prompt file system-prompts/system-prompt-micode.md defining the MiMo Code Agent (MiCode) identity, toolset, tone, Git safety rules, commit behavior, and memory guidance. The README index gains a corresponding bullet with the file link and token count (150 tks).

Changes

MiCode System Prompt Addition

Layer / File(s) Summary
MiCode prompt file and README registration
system-prompts/system-prompt-micode.md, README.md
Introduces the 17-line MiMo Code Agent system prompt specifying model identity, allowed tools, formatting/tone constraints, Git safety/commit rules, and memory approach; adds its entry to the README index with a relative link and token count.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

A bunny hopped in with a brand-new file,
MiCode's the name, and it's done in style! 🐇
Git safely commits, tools neatly aligned,
150 tokens — a prompt well-defined.
The README now lists it, one hop complete,
Another code agent joins the fleet! 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a MiCode system prompt file with clear context about the source team.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@system-prompts/system-prompt-micode.md`:
- Around line 1-17: The system prompt file is missing the required YAML
frontmatter block that should appear at the beginning of the file before the "#
MiCode System Prompt" heading. Add an HTML comment block containing YAML
metadata with the fields name set to 'System Prompt: MiCode', description set to
'System prompt for MiCode agent by Xiaomi MiMo Team', and ccVersion set to
'2.1.177', following the HTML comment format (<!-- ... -->) to match the
structure used in other system prompt files in the repository.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5839fd7e-42fd-40ee-b32f-e82f4f1eb837

📥 Commits

Reviewing files that changed from the base of the PR and between 27bd7c7 and 7f96d55.

📒 Files selected for processing (2)
  • README.md
  • system-prompts/system-prompt-micode.md

Comment on lines +1 to +17
# MiCode System Prompt

**Model:** mimo-auto (mimo/mimo-auto)
**Built by:** Xiaomi MiMo Team
**Date extracted:** June 2026

You are MiMo Code Agent, built by Xiaomi MiMo Team. An interactive agent for software engineering tasks.

Tools: Bash, Read, Edit, Write, Glob, Grep, Webfetch, Actor, Task, Memory, History, Question, Change_directory, Skill.

Tone: Concise, direct. Fewer than 4 lines. No emojis unless asked.
Code Style: No comments unless asked. No unnecessary abstractions. Security best practices.
Git Safety: Never update config. New commits only. No git add -A. Only commit when asked.
Tool Usage: Prefer dedicated tools. Batch calls. Lint/typecheck after.
Memory: File-based with project memory, session checkpoints, task progress, global memory. BM25 search.

*MiCode - Open source AI coding assistant by Xiaomi MiMo Team* No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

# List all system prompt files
find system-prompts -name "*.md" -type f | head -20

Repository: Piebald-AI/claude-code-system-prompts

Length of output: 1336


🏁 Script executed:

# Read the full content of the target file to see if frontmatter exists
cat system-prompts/system-prompt-micode.md

Repository: Piebald-AI/claude-code-system-prompts

Length of output: 918


🏁 Script executed:

# Check another system prompt file to see the expected format
find system-prompts -name "*.md" -type f | head -1 | xargs cat

Repository: Piebald-AI/claude-code-system-prompts

Length of output: 5293


🏁 Script executed:

# Check other system-prompt files specifically (not agent-prompt)
find system-prompts -name "system-prompt*.md" -type f | head -5 | while read f; do
  echo "=== $f ==="
  head -10 "$f"
done

Repository: Piebald-AI/claude-code-system-prompts

Length of output: 3748


Add YAML frontmatter to the system prompt file.

The file is missing the required HTML comment block with YAML metadata. All other system prompt files in the repository include frontmatter with name, description, and ccVersion fields. Add this block before the markdown heading:

Example frontmatter structure
<!--
name: 'System Prompt: MiCode'
description: System prompt for MiCode agent by Xiaomi MiMo Team
ccVersion: 2.1.177
-->
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@system-prompts/system-prompt-micode.md` around lines 1 - 17, The system
prompt file is missing the required YAML frontmatter block that should appear at
the beginning of the file before the "# MiCode System Prompt" heading. Add an
HTML comment block containing YAML metadata with the fields name set to 'System
Prompt: MiCode', description set to 'System prompt for MiCode agent by Xiaomi
MiMo Team', and ccVersion set to '2.1.177', following the HTML comment format
(<!-- ... -->) to match the structure used in other system prompt files in the
repository.

Sources: Coding guidelines, Learnings

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