modstage

modstage · by Varun Pratap Bhardwaj

Runs Codex, Grok, Muse, Antigravity, Kimi, Qwen Code and OpenCode as Claude Code subagents in live tabs, with approvals and steering.

❯ /plugin marketplace add SeongGwangJu/k-mods
❯ /plugin install modstage@k-mods

Run /reload-plugins to apply it to an open session. Needs Claude Code 2.1.287 or later.

Notes

  • Every session start runs a local bridge (a Python program). It keeps running after Claude Code closes; stop it with kill $(cat ~/.modstage/bridge.pid).
  • Registers 12 tools (stage_*) without deferred loading, so their descriptions use context even in sessions that never use ModStage.
  • Running codex exec, muse exec or grok -p directly in Bash is denied with a pointer to stage_start. --help and --version still run.
  • Runs default to ask (risky actions wait for approval). auto allows every approval request automatically and starts Antigravity with --dangerously-skip-permissions. Even in ask, whether an agent actually asks depends on its CLI's own settings.

Requires

  • Python 3.10 or later
  • At least one agent CLI installed and signed in (Codex, Grok, Muse, Antigravity, Kimi, Qwen Code or OpenCode)

What it can do on your machine

Mods run unsandboxed with your permissions. These labels come from static analysis.

NetworkRuns programsCan hold/answer tool callsReads conversationReads env/settingsReads filesMessages sessions
Static analysis

Events handled

agent.spawncommand.run{command=modstage}prompt.submitsession.starttool.calltool.call{tool=?}tool.call{tool=Bash}tool.call{tool=mcp__modstage__stage_agents}tool.call{tool=mcp__modstage__stage_board}tool.call{tool=mcp__modstage__stage_claim}tool.call{tool=mcp__modstage__stage_close}tool.call{tool=mcp__modstage__stage_decide}tool.call{tool=mcp__modstage__stage_interrupt}tool.call{tool=mcp__modstage__stage_post}tool.call{tool=mcp__modstage__stage_release}tool.call{tool=mcp__modstage__stage_send}tool.call{tool=mcp__modstage__stage_start}tool.call{tool=mcp__modstage__stage_status}tool.call{tool=mcp__modstage__stage_wait}turn.completeui.messageui.render{component=AbovePrompt}ui.render{component=Pane, requestId=modstage}

Environment variables read

HOMEMODSTAGE_HOMEMODSTAGE_NO_CLIENT