Repository navigation
Add miniapp-af37075b-6a0d-41c1-bc4e-8817be9656b8 Mini App - #208
Merged
MyPrototypeWhat merged 1 commit intoDec 4, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds Work Group, a chat-style Mini App where several MiniMax Code Agents collaborate with you in
one thread: you mention the members you need, each replies from its own session, and a member can
mention another member to hand work over. Tool approvals and questions from an Agent arrive as cards
in the group, so a multi-agent workflow stays on one page instead of spreading across chats. I built
it because coordinating several Agents by hand meant repeating the same context in every
conversation.
Tested environment and results
the Agent.
reload → still present → delete with confirmation, send a message → a real Agent turn completed and
rendered, clear the conversation. Console: no errors. Network: no failed requests.
continuation, the approval card, the questionnaire card, member validation, restart recovery,
clear, and the unchanged-snapshot short circuit.
npm run check:validatereports 0 errors and 0 warnings for this package and for therepository.
npm testpasses 109 of 113 tests; the 2 failures and 2 skips are environmentlimits of the Windows machine this ran on, not this package —
test/files.test.mjscannotcreate symlinks without Developer Mode (
EPERM), and its case-collision tests skip on acase-insensitive temp directory.
Not verified
opening a member session in the chat side panel. These were exercised against the mocked runtime
only; the one live turn used no tools and asked no questions.
Declared access
agentAccess: ["session.run"]andagentConcurrency: 4, using the legacy spelling so the packagealso loads on clients before 3.1.20 (minimum client: 3.1.2).
window.mcode.miniapp.host.uialias andopens a member session through
window.mcode.miniapp.agent.open.npm run checkwarningsresults" and do not involve this package.
Written by MiniMax-M4
How it works
context.agent.agents()or a custom role that runs on thedefault Agent with its own instructions. Every member keeps its own session, so it remembers what
it did earlier.
context.agent.run. A reply that mentions anothermember queues that member next, up to 3 levels deep and 6 turns per message. With no mention, the
coordinator replies.
permission.requestedbecomes an approval card in the group and is answered withallowOnceordenyonly after the user chooses;question.requestedbecomes a questionnaire card and theanswer continues the turn.
context.dataDiras it changes. A restart marks interrupted turns and pending cards as expired instead of leaving
them waiting.
Files
miniapp/node/server.mjs— Node entry: routes, group domain service, Agent turn orchestration,persistence.
miniapp/client/index.html,styles.css,app.js— the page served at/group.miniapp/node/miniapp-api.ts— the repository's runtime type declarations; not loaded at runtime.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.