You can provide custom instructions to mimocode by creating an AGENTS.md file. This is similar to Cursor's rules. It contains instructions that will be included in the LLM's context to customize its behavior for your specific project.
To create a new AGENTS.md file, you can run the /init command in MiMo Code.
You should commit your project's AGENTS.mdfile to Git.
/init scans the important files in your repo, may ask a couple of targeted questions when the codebase cannot answer them, and then creates or updates AGENTS.md with concise project-specific guidance.
It focuses on the things future agent sessions are most likely to need:
If you already have an AGENTS.md, /init will improve it in place instead of blindly replacing it.
You can also just create this file manually. Here's an example of some things you can put into an AGENTS.md file.
We are adding project-specific instructions here and this will be shared across your team.
mimocode also supports reading the AGENTS.md file from multiple locations. And this serves different purposes.
Place an AGENTS.md in your project root for project-specific rules. These only apply when you are working in this directory or its sub-directories.
You can also have global rules in a ~/.config/mimocode/AGENTS.md file. This gets applied across all mimocode sessions.
Since this isn't committed to Git or shared with your team, we recommend using this to specify any personal rules that the LLM should follow.
For users migrating from Claude Code, MiMo Code supports Claude Code's file conventions as fallbacks:
CLAUDE.md in your project directory (used if no AGENTS.md exists)~/.claude/CLAUDE.md (used if no ~/.config/mimocode/AGENTS.md exists)~/.claude/skills/ — see Agent Skills for detailsTo disable Claude Code compatibility, set one of these environment variables:
When mimocode starts, it looks for rule files in this order:
AGENTS.md, CLAUDE.md)~/.config/mimocode/AGENTS.md~/.claude/CLAUDE.md (unless disabled)The first matching file wins in each category. For example, if you have both AGENTS.md and CLAUDE.md, only AGENTS.md is used. Similarly, ~/.config/mimocode/AGENTS.md takes precedence over ~/.claude/CLAUDE.md.
You can specify custom instruction files in your mimocode.json or the global ~/.config/mimocode/mimocode.json. This allows you and your team to reuse existing rules rather than having to duplicate them to AGENTS.md.
Example:
You can also use remote URLs to load instructions from the web.
Remote instructions are fetched with a 5 second timeout.
All instruction files are combined with your AGENTS.md files.
While mimocode doesn't automatically parse file references in AGENTS.md, you can achieve similar functionality in two ways:
The recommended approach is to use the instructions field in mimocode.json:
You can teach mimocode to read external files by providing explicit instructions in your AGENTS.md. Here's a practical example:
This approach allows you to:
For monorepos or projects with shared standards, using mimocode.json with glob patterns (like packages/*/AGENTS.md) is more maintainable than manual instructions.