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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ The MiniMax Code Agent communicates through the host MCP client. Business reques

| MiniApp | What it does | Author |
| --- | --- | --- |
| [MiniMax in WSL](plugins/jeisux92/minimax-in-wsl/) | Run the MiniMax Code agent inside WSL: pick a distro and a working directory, then watch every turn stream in as a chat with tool calls, token usage and a working Stop button | [jeisux92](https://github.com/jeisux92) |
| [Work Group](plugins/liuhaolin07/miniapp-af37075b-6a0d-41c1-bc4e-8817be9656b8/) | A chat-style work group where several MiniMax Code Agents reply in one thread, mention each other to hand work over, and ask you for tool approvals and answers as cards in the page | [liuhaolin07](https://github.com/liuhaolin07) |
| [Prompt Enhancer](plugins/skypata/prompt-enhancer/) | Rewrite a one-line request into a complete prompt for a coding assistant; the model list and reasoning levels come from MiniMax Code's own configuration, and the rewrite runs on your signed-in account | [skypata](https://github.com/skypata) |
| [Postman Lite](plugins/ssugarr/postman-lite/) | A lightweight local API request tool: build requests, send them through a local proxy that sidesteps browser CORS limits, and inspect responses, with collections kept as plain JSON | [ssugarr](https://github.com/ssugarr) |
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ MiniMax Code Agent 通过宿主 MCP 客户端与 MiniApp 协作。业务请求

| MiniApp | 功能 | 作者 |
| --- | --- | --- |
| [MiniMax in WSL](plugins/jeisux92/minimax-in-wsl/) | 在 WSL 里运行 MiniMax Code Agent:选择发行版和工作目录,每一轮都以聊天的形式流式呈现,并展示工具调用、token 用量和可用的停止按钮 | [jeisux92](https://github.com/jeisux92) |
| [工作群](plugins/liuhaolin07/miniapp-af37075b-6a0d-41c1-bc4e-8817be9656b8/README.zh-CN.md) | 聊天式工作群:多个 MiniMax Code Agent 在同一个群里回复、互相 @ 接力,工具审批和提问以卡片形式在页面里完成 | [liuhaolin07](https://github.com/liuhaolin07) |
| [提示词增强器](plugins/skypata/prompt-enhancer/) | 把一句话改写成可以直接交给编码助手的完整提示词,模型清单与推理等级取自 MiniMax Code 自己的配置,改写走你已登录的账号 | [skypata](https://github.com/skypata) |
| [Postman Lite](plugins/ssugarr/postman-lite/README.zh-CN.md) | 轻量的本地 API 请求工具:构建请求、通过本地代理转发(绕过浏览器 CORS 限制)、查看响应,集合以纯 JSON 保存 | [ssugarr](https://github.com/ssugarr) |
Expand Down
16 changes: 16 additions & 0 deletions plugins/jeisux92/minimax-in-wsl/.minimax-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"schemaVersion": 1,
"name": "minimax-in-wsl",
"displayName": "MiniMax in WSL",
"version": "1.0.0",
"description": "Run the MiniMax Code agent inside WSL and stream every turn into a chat workspace.",
"author": "jeisux92",
"icon": "icon.png",
"category": "Code",
"exampleQueries": [
"Open MiniMax in WSL and start a task in a project directory."
],
"apps": [],
"mcpServers": [],
"skills": []
}
21 changes: 21 additions & 0 deletions plugins/jeisux92/minimax-in-wsl/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 jeisux92

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
149 changes: 149 additions & 0 deletions plugins/jeisux92/minimax-in-wsl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# MiniMax in WSL (`minimax-in-wsl`)

Run the MiniMax Code agent inside WSL and watch every turn arrive in a chat.

Sometimes the code you want an agent to work on lives in a Linux environment: a
WSL distro with its own toolchain, its own dependencies, its own files. This
Mini App puts that agent in a workspace next to the conversation. You pick a
distro and a working directory, type a task, and the turn streams in as a
chat: the agent's messages, its reasoning, every tool call it makes, and the
token usage when it finishes.

Under the hood nothing is simulated. Each message starts a real
`mcode exec --output-format stream-json` inside the distro, driven by the
MiniMax Code CLI that you sign in to, working in the directory you chose.

## Install

Copy this directory, including the hidden `.minimax-plugin/`, into the
MiniMax Code plugins directory as `minimax-in-wsl/`
(`~/.minimax/plugins/minimax-in-wsl/` by default; the root README's Install
section explains where that directory is). Restart MiniMax Code and ask the
Agent to "Open MiniMax in WSL".

Requirements:

- Windows with WSL and `wsl.exe` on `PATH`. The app drives whatever distros
`wsl.exe -l -q` reports, and the first one that is not a Docker internal
distro is offered by default.
- The MiniMax Code CLI inside the distro. If it is missing, the app says so
and offers to install it with the official installer
(`https://filecdn.minimax.chat/public/install.sh`); it never installs
anything until you click.
- A signed-in MiniMax account in that distro. The app starts
`mcode login --region <region> --no-browser`, shows the authorization URL
and the user code, and you approve the request in your own browser.

The commands run as the default user of that distro for your Windows account.
On a stock Ubuntu install that is often `root`, because WSL falls back to root
when no default user is configured in `/etc/wsl.conf`. The app does not change
that, and it does not escalate privileges. If you want the agent to work as an
ordinary user, configure one in the distro first and make sure the directory
you pick is readable by it.

## Using it

- **Workspace.** The *Directory* picker lists the distro's home directory and
any directory below it, or below `/mnt/c/Users/*`, that looks like a project
(it contains `.git`, `package.json`, `pyproject.toml`, `Cargo.toml`, `go.mod`
or `AGENTS.md`). The list is a convenience, not a limit: the run uses exactly
the directory you select.
- **Permissions.** Headless `mcode exec` cannot stop for an approval prompt, so
the app offers the CLI's own policies instead. *Smart* is the CLI default and
lets it judge each action; *Full access* approves automatically; *Read only*
blocks changes. Choose deliberately — an agent with full access in a
directory can modify it.
- **Conversation.** Follow-up messages continue the same CLI session, so the
agent keeps the context of the turn before.
- **Stop.** Cancelling stops the CLI and everything it started, not just the
top-level process, so a long-running tool does not keep going in the
background.

## Tested environment

- MiniMax Code 3.1.23 on Windows 11 (arm64), installed from this directory and
opened through the Agent.
- The package declares `surface.window`, so it needs MiniMax Code 3.1.2 or
later.
- WSL 2 with Ubuntu 24.04.1 (aarch64) and the MiniMax Code CLI 0.8.2
installed inside it.
- Client acceptance exercised: the status probe read the CLI version and the
sign-in state from the distro; the workspace picker listed the detected
project directories; the setup panel offered the installer when the CLI was
absent and the sign-in flow when it was not authenticated; a real turn ran
end to end and streamed agent messages, reasoning and two tool calls into the
transcript; a follow-up turn continued the same session and answered from the
earlier context; the transcript survived a page reload; and a long-running
turn was cancelled with the Stop button, which stopped the CLI together with
the tool it had started.
- Not verified: macOS and Linux hosts, where `wsl.exe` does not exist; a distro
whose shell is not bash; the China account region; a host without a
reachable npm registry inside the distro.

## Data & access

**Agent turns.** This Mini App runs no Host Agent turns: it declares no
`permissions.agent` and never calls `context.agent` or `window.miniapp.agent`.
The agent you see is the MiniMax Code CLI running headless inside your own
WSL distro, under your own MiniMax account, with the CLI's own tools and its
own permission policy. Its output is rendered as untrusted text and is never
executed or interpreted by this app.

**Files read** (all inside the distro):

- `~/.minimax/config.yaml`, to show the configured default model.
- `~/.minimax/auth/prod/*/mcode-public/auth-state.json`, to tell "signed in"
from "not signed in". Only the `status` field is read; tokens in that file
are never read, copied or displayed.
- Directory names below the distro's home directory and below `/mnt/c/Users/*`,
to build the workspace picker.

**Files written:**

- `conversation.json` in the Mini App's own data directory (`context.dataDir`),
holding the transcript of the current conversation. It is written atomically
(temporary file, then rename).
- The browser's `localStorage`, key `minimax-wsl-view`, holding only the
selected distro and directory. This is a view preference, not domain data.
- Inside the distro, and only while a run is in flight: `/tmp/mcode-prompt-*`
(the prompt text, removed when the run ends), `/tmp/mcode-run-<id>.pid` (the
process id used to cancel a run, removed when the run ends or is cancelled)
and `/tmp/mcode-install-<id>.sh` (the downloaded installer).
- If you click *Install into WSL*, the official MiniMax Code installer writes
`~/.minimax-code/` (the CLI and its private Node.js runtime) and
`~/.minimax-code-install-logs/`, and appends the CLI's path to `~/.bashrc`.

**Network.** The Mini App's own process makes no outbound network requests; it
serves only the assigned loopback port. All network access happens inside the
distro, from the CLI and the installer:

- `account.minimax.io` — the sign-in page, which the app prints and you open in
your own browser.
- The MiniMax API endpoints the CLI itself uses for model requests.
- `filecdn.minimax.chat` — the official installer, only when you click
*Install into WSL*.
- `nodejs.org` — a private Node.js runtime, only when the installer finds that
the distro's npm cannot reach a registry.
- `registry.npmjs.org` — the npm registry, for resolving the CLI release and
for checking that npm works.

**Processes spawned.** Every command is run as an argument array, never through
an interactive shell, and user text never reaches a command line:

- `wsl.exe -d <distro> -- bash -s -- <token>`, which runs a fixed script
supplied on standard input. The prompt and the working directory are
base64-encoded inside that script and decoded in the distro, so neither can
alter the command.
- Inside the distro: `mcode --version`, `mcode login --region <region>
--no-browser`, `mcode exec --output-format stream-json --input - --cwd
<directory> --permission <policy>` (optionally `--session <id>`), `npm view
@minimax-ai/code version --json` as an npm health check, `curl` to download
the installer, `bash install.sh`, and `kill`/`pkill` to cancel a run.
- The CLI is started under `setsid` so it leads its own process group; a
cancel signals that whole group, which is why no tool keeps running after a
stop.

**Not used:** no Host Agent turns, no reading of your conversations, no
connector or MCP tools, no microphone, camera or system notifications, no Host
navigation reading, and no file-extension handlers. The Mini App declares no
permissions at all, so the plugin details show no switchable grants.
Binary file added plugins/jeisux92/minimax-in-wsl/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading