Command Palette

Search for a command to run...

Back to skills
skill № 67677

mcode-island

Push the user's terminal out of focus to a Windows desktop Dynamic Island pill so the user can watch your work without switching back to mcode. On mcode…

FreeNo executable scripts
MiniMax-AIby MiniMax-AI★ 30 GitHub stars

Install mcode-island in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

mcode-island — 桌面灵动岛状态通知

让用户在不切回 mcode 窗口的情况下,从桌面顶部悬浮 pill 上看到你(agent)的实时工作状态。

What it looks like

A 320×60 pill anchored to the top center of the primary display, always-on-top, dark theme. Six states with distinct color and motion:

state color icon meaning
idle gray — waiting for user input
thinking yellow pulse — reasoning, no tool call yet
working blue pulse ⚙ actively running a tool
waiting orange ? tool needs user approval / input
done green ✓ step finished, more to do
error red ✕ tool or step failed

Click the pill to go back to where the work happens. The target is resolved on every click, in this order:

  1. A manual pin (mcode-island pin) — that window is focused.
  2. The originating terminal (caller.json) — one click hides it, the next brings it back maximized. This is the CLI habit, and this install keeps it.
  3. The desktop app window (MiniMax Inside Code / MiniMax Code / Mavis) — focused, never hidden, and only when there is no caller window to go back to.

The Marketplace build ships the other order: there the agent is hosted by the desktop app, so hiding the terminal behind it would leave the user staring at a static pill, and the click focuses the app window instead. Both builds are the same code — the source carries one switch, $script:clickPrefers, and the Marketplace builder flips it. Run mcode-island pin from inside a terminal to override the target explicitly (useful when the auto-detected HWND is wrong, e.g. Windows Terminal multi-tab, or when the desktop app is open next to a CLI session). mcode-island unpin clears the pin.

Two ways to drive the pill

Mode A — Hook-driven (mcode 0.2.4+ with io.minimax.mcode)

When mcode accepts the io.minimax.mcode client extension, the runtime spawns the script under io.minimax.mcode/hooks/scripts/<event>.ps1 for every matching lifecycle event. The agent does not need to push state manually.

event script pill state
SessionStart session-start.ps1 idle
SessionEnd session-end.ps1 idle
UserPromptSubmit user-prompt-submit.ps1 thinking
PreToolUse pre-tool-use.ps1 working
PostToolUse post-tool-use.ps1 done/error
Stop stop.ps1 done
PreCompact pre-compact.ps1 thinking
Notification notification.ps1 idle
SubagentStart subagent-start.ps1 (CODEX only) working
SubagentStop subagent-stop.ps1 (CODEX only) done
PermissionRequest permission-request.ps1 (returns {"decision":"allow"} so the runtime's fail-closed default does not deny) waiting
PermissionDenied permission-denied.ps1 error

The hooks conform to the portable spec proposed in MiniMax-Code-Plugins PR #20. Each script reads the JSON event payload from stdin, calls notify-island.ps1 with the appropriate state, and exits 0 (decision-bearing events also write a JSON decision to stdout). Self-push filtering prevents the pill from churning when the agent calls notify-island.ps1 directly through Bash.

If you are running on mcode 0.2.4+ and the pill is updating itself before you push anything, Mode A is active. Otherwise fall through to Mode B.

Mode B — Agent-pushed (legacy, always works)

For older mcode, or when the io.minimax.mcode extension is not yet active (registry validator has not accepted the namespace), the agent pushes state through notify-island.ps1 directly. The mcode-status-detect.ps1 detector also infers state from the runtime's ledger.jsonl / messages.jsonl, so the pill will still move — your manual pushes just sharpen the message and cover edge cases (notably ask_user).

moment state example message
receive user task, start reasoning thinking (none)
about to invoke any tool working "bash: npm test"
tool returned 0, before reporting back done "3 files modified"
tool needs approval (e.g. permission prompt) waiting "bash: needs approval"
about to call ask_user (user must pick)
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • mcode-island/SKILL.md

FAQ

What does the mcode-island skill do?

Push the user's terminal out of focus to a Windows desktop Dynamic Island pill so the user can watch your work without switching back to mcode. On mcode 0.2.4+ with the `io.minimax.mcode` Hooks extension enabled (forward-compatible with MiniMax-Code-Plugins PR

How do I install the mcode-island skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the mcode-island skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare mcode-island with