mavis_coder_agent
Automates complex coding tasks by running an iterative agent loop that calls available tools until the task is finished.
Instructions
Run a multi-step agent loop where MiniMax-M3 can call ANY mavis_* tool (mavis_bash, mavis_read, mavis_write, mavis_edit, mavis_search, mavis_git, mavis_supabase, mavis_run_tests, mavis_state, mavis_auditor, mavis_noter, mavis_session_log, mavis_coder) iteratively until the task is done. Default doctrine (B-6): ALL tools are exposed to the LLM — including non-LLM ones. The LLM is the one that decides which to call. Only mavis_coder_agent is excluded (recursion guard). Emits realtime progress notifications (visible in client UI) and persists the full run to ~/.mavis-mcp/agent-sessions/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id. Defaults to MiniMax-M3. | |
| tools | No | Subset of tool names to expose. If omitted, all mavis_* tools are available except coder tools. | |
| prompt | Yes | The task to accomplish. Be specific about what you want done. | |
| system | No | Optional system prompt. If omitted, uses a default efficiency-focused prompt. | |
| max_tokens | No | Max output tokens per iteration. Defaults to 4096. | |
| session_id | No | Optional session id. Auto-generated (UUID) if omitted. Use the same id to chain or reference via mavis_session_log. | |
| temperature | No | Sampling temperature. Defaults to 0.2 (deterministic). | |
| tool_choice | No | Tool choice strategy. "auto" (default), "required", "none", or { type: "function", function: { name: "X" } }. | |
| max_iterations | No | Max agent iterations. Defaults to 20. Hard cap 30. | |
| persist_session | No | If true (default), write the run to JSONL in ~/.mavis-mcp/agent-sessions/. Set false to skip persistence. |