Repository navigation
Add vibe-learning Mini App - #215
Open
Chriswangc wants to merge 3 commits into
Open
Chriswangc wants to merge 3 commits into
Chriswangc wants to merge 3 commits into
Conversation
A port of Tasihi89's MIT-licensed Vibe Learning to the MiniMax Code Agent runtime: the learning page, the question/answer flow, the Agent-drawn diagrams and the per-project data format are kept as-is, and only the upstream `claude -p` subprocess is replaced.
Visual: white page, neutral grey surfaces, no borders or shadows, large radii, pill buttons, sans-serif headings. Brand colours #2293FF (actions), #29B3FC (hover) and #FF536E (highlights). Waiting state: the node entry now forwards turn.started, run.queued and tool.finished, so the page shows the real phase, tool steps, queue position, model and elapsed time instead of an opaque spinner. Desktop: the top bar now scales with the content, and the three-column breakpoint moves from 900px to 1120px.
Skill learning: a project is either a single topic or a skill. A skill project gets a roadmap of 4-8 sections in topic.json (optional `syllabus` field, so old projects are unaffected), each with a goal and the question that opens it. Picking a section fills the input; asking marks the section learned, and it can be unticked. Switching back to single topic only hides the roadmap and keeps the data; regenerating clears the learned marks and the section tags on answers. Export: the whole project or one answer as a single self-contained HTML file (marked, DOMPurify, KaTeX with its fonts, and the project's screenshots all inlined), or printed to PDF with stepped diagrams expanded one figure per step. The exported file hides everything that needs the local service. Desktop fit: the page scales up to 1.6x on very wide windows, diagrams keep a minimum width and scroll sideways in narrow windows, and the reading position is held when the window size changes.
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.
Vibe Learning is a learning page for MiniMax Code: write down one thing you want to understand, and the Agent answers with prose plus a diagram it draws itself, revealing the diagram one step at a time when the topic has a sequence. Select a passage you did not get and ask about it, and the answer arrives in a note card attached to that passage. It is a port of Tasihi89's MIT-licensed Vibe Learning, with the original's single Claude Code seam replaced by the MiniMax Code Agent.
Tested environment
"engines": { "mcode": ">=3.1.20" }because the package uses thepermissionsmanifest field, so it needs MiniMax Code 3.1.20 or later.npm run checkin this repository: 0 errors, 0 warnings for this package.What was exercised in the Client:
Not verified
permission.requestedwas raised during the session. The approval card's layout was checked in the real page, and the request/decision round trip was checked directly against the Node service.Access this Mini App declares
permissions.agent: ["run"]only.permissions.sessionis not declared), no Connector, no device permission, and no tool access.allowOnceis sent only after the user presses Allow once. Nothing is approved automatically.npm run checkwarningsNone for this package.
Written by MiniMax M3.1-Flash
What changed
plugins/chriswangc/vibe-learning/— a new Mini App package.README.md— one row at the top of the MiniApps table.README.zh-CN.md— the matching Chinese row.Ported from Vibe Learning
The upstream project is a standalone macOS app that drives
claude -pon the learner's own machine.This port keeps the interface, the answer format, the diagram rules and the on-disk data format, and
replaces that one seam with
context.agent.run:claude -pchild processcontext.agent.runin the Mini App's Node entry--allowedToolswhitelist~/.vibe-learning/context.dataDir127.0.0.1:4178context.listenportThe upstream MIT license is kept at
miniapp/client/LICENSE-vibe-learning-MIT.txt, and the bundledbrowser libraries (
marked,DOMPurify,KaTeX) keep their own licenses underminiapp/client/vendor/.How it works
as SVG. A stepped diagram is revealed one page at a time.
and the last few questions on the page, then streams the Agent's reply back to the page as NDJSON,
the same line protocol the upstream project used.
arguments.
allowOnceis sent only after the learner presses the button. A request nobody answerswithin 15 minutes is denied so that a turn cannot hang.
context.dataDiras it changes. A deleted project ismoved aside rather than erased.
Validation run locally
topic background turn, the approval round trip, and the path-traversal rejections.
node --checkon the Node entry, and a parse of the page script.acceptance above.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.