
MLView
Static analysis and interactive diagrams for Python ML/DL code: see the training pipeline, find leakage and training-loop defects, in VS Code, Claude Code an…
Install with your AI
Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.
Install and set up MLView (claude-plugin project) into my current project. Found on https://claudeers.com/mlview Repo: https://github.com/realmyang/MLView Homepage/docs: https://github.com/realmyang/MLView#readme Detected install method: claude-plugin → /plugin install mlview@realmyang/MLView Category: devtools. Platforms: api. Read the repo's README for exact setup and env vars, then install it and wire it into my project. Claudeers Health Verdict: unknown; community-verified: false. Confirm the source before running anything.
⚠ Unverified / not recently updated — review before pasting a run-this config.
/plugin marketplace add realmyang/MLView /plugin install mlview@realmyang/MLView
git clone https://github.com/realmyang/MLView
// compatibility
| Platforms | api |
|---|---|
| Operating systems | — |
| AI compatibility | claude |
| License | MIT |
| Pricing | open-source |
| Language | Python |
MLView
Use the LLM in your existing VS Code assistant to understand an ML workflow, then explore its source-linked interactive diagram. MLView provides a skill for GitHub Copilot, Codex, and Claude Code, a common artifact format, and a VS Code viewer. Your assistant reads the source and configuration, interprets the workflow, and authors the diagram and findings.
MLView requires no separate model API key. The selected assistant supplies the model, tools, permissions, and source-processing policy. Local helpers validate citations and structure; the viewer displays the result. Neither helper nor viewer executes the analyzed program. Citation validation does not prove the model's interpretation correct.
This is an experimental implementation. See implementation and validation status for what has actually been tested. Workflow interpretation and findings come from the active assistant model.
Get a diagram
The detailed install and refinement instructions are in LLM_WORKFLOW.md. From this checkout, with Python 3.10+ and Node 20.18.1+:
cd webview && npm ci && npm run build && cd ..
python3 tools/sync-assets.py
cd vscode-extension && npm ci && npm run package && cd ..
python3 tools/install_skill.py /path/to/your/project
Install the generated VSIX using VS Code's Extensions: Install from VSIX.
The installer copies the self-contained skill into the target project's
.agents/skills/mlview/ directory for Codex and Copilot. For Claude Code, use
the Claude plugin or the workspace install described
in the runbook. Only install one copy of the skill in each discovery path.
- Open the target project in VS Code and invoke
mlviewin your assistant's skill picker ($mlviewin Codex). Ask, for example: “Explain training with this config. Show data, model, losses, parameter updates, validation, and anything unresolved.” - The assistant publishes a
*.mlview.jsonfile. Run MLView: Open Generated Diagram and select it. Click a step, connection or finding to see its claim and quotes. Press Enter, double-click, or use an Open link to open the cited lines beside the diagram; focus stays in the diagram. Alt+Enter opens them and moves focus to the editor. - Ask the same assistant to refine the diagram. A valid new revision updates the panel; filtering and navigating the existing diagram do not call an LLM.
To refine a particular node, edge, or finding, select it and use Refine → Copy prompt. Choose an intent or enter a specific question, then paste the prompt into the same assistant. The header is one row: the title, the assistant and revision, search, the severity toggles, N not observed, a ⋯ menu (legend, flow animation, fit, exports, shortcuts) and Refine…. In a narrow panel, such as beside your code, search and the revision move into the ⋯ menu, and a row that is still too full folds N not observed into it too, so Refine… stays in view. The status bar counts steps and connections, shows the coverage status with its limitations, and says whether the cited files are unchanged (in muted text) or changed (with a warning).
Beside the diagram, the rail has four tabs: About, Findings, Selection and Outline. A new revision opens on About: the question that was asked, what the model says it traced, the coverage with its limitations (listed once), the scope, the run configuration, the cited files with their freshness, and who wrote it ("Model-authored; MLView checks citations, not the interpretation"). Selection shows the selected claim first: its phase, title and full detail, a short note when it is inferred or unresolved, the findings on it with What to change, its numbered source quotes with line numbers and Open, and what it comes from and feeds (for a group: the findings inside it, its steps and the connections across its edge). A click on the diagram or a search hit shows the claim in Selection; a row chosen in the Findings list or the Outline keeps that list in place. A matching quote only shows that the cited lines are unchanged since publishing; whether they support the claim is for you to judge. Challenge this claim prepares a focused refinement request. Selecting a finding frames every step it cites. The Outline's textual relationships provide All, Incoming, Outgoing and Unresolved views alongside the diagram. In a panel narrower than about 1260 px the rail is a bottom sheet under the diagram: a tab strip until you select something, then about half the height, with the selected card kept in view above it; Escape collapses it.
The workflow supports custom phases, nested groups, branches and cycles,
notebook cell references, and findings with evidence and counter-evidence.
Observed, inferred, and unresolved claims remain distinguishable: only the
inferred (dashed, with an inferred tag) and unresolved (dotted, with a
? unresolved tag) ones are marked on the diagram, and the header's
N not observed toggle fades the rest. Each phase is coloured by its place
in the document; colour is otherwise used only for problems. Finding badges
read F1, F2… in document order; the Selection tab and Refine prompts keep the
real finding id. The diagram opens at a zoom where cards can be read: the
whole document when it fits at 62% or more, otherwise the first phase at 90%.
Press 0 to return to that view, or use Fit the whole diagram in the
⋯ menu to see everything; zoomed out, cards show just their titles at about 11 px. Saved source
edits mark the steps, connections, findings and quotes that cite the changed
files, and block jumps into those files; malformed updates retain the last
valid diagram. When the workspace root is a parent of the folder the diagram
cites from, the viewer says so and offers to add that folder to the workspace.
How it works
Try the native Codex-generated example from this repository's workspace. Its validation log records native model invocations, citation checks, live navigation/refinement and remaining acceptance checks.
flowchart LR
A[Native assistant + MLView skill] --> B[Read source and config]
B --> C[LLM interpretation]
C --> D[WorkflowDocument draft]
D --> E[Local validation and publication]
E --> F[Interactive VS Code diagram]
F --> G[Source navigation]
A -->|Explicit refinement| C
The portable skill is in skills/mlview. The authoring format is WorkflowDocument 1.0, with its JSON Schema. Generated JSON is data, never a script or an instruction to the viewer.
The dated 2026-09-18 quality sprint records the skill improvements and development follow-ups of that date. Its review ledgers cover twelve native artifacts and three no-skill baselines; their semantic judgments remain provisional until human review.
The trust and usability campaign adds evidence review, validation scheduling, interpretation aids and reproducible performance and candidate checks. It preserves WorkflowDocument 1.0; it does not establish semantic accuracy or complete the human-reviewed pilot.
Development
Use a Python 3.10+ virtual environment on PATH. The local macOS default may be older. Component suites and the new skill checks run without an ML framework:
python -m pip install -r requirements-dev.txt
sh scripts/e2e.sh
The full check builds and tests the skill and viewer, validates evaluation
records, and inspects packaged skill ZIPs and the VSIX. On Windows use
powershell -File scripts/e2e.ps1.
See CONTRIBUTING.md, current status, security boundaries, and the documentation index. The CI badge reports the default branch, main.
// faq
What is MLView?
Static analysis and interactive diagrams for Python ML/DL code: see the training pipeline, find leakage and training-loop defects, in VS Code, Claude Code and a standalone report. It is open-source on GitHub.
Is MLView free to use?
MLView is open-source under the MIT license, so it is free to use.
What category does MLView belong to?
MLView is listed under devtools in the Claudeers registry of Claude-compatible tools.
// embed badge
[](https://claudeers.com/mlview)
// retro hit counter
[](https://claudeers.com/mlview)
// reviews
// guestbook
// related in Developer Tools
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Curs…
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA
AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs,…