Blockless Extension E2E
FreakStudioCN/mpy-hardware-extension
Run and debug the Blockless VS Code extension release gate: CI-equivalent API and extension tests, V0 protocol smoke, live DeepSeek full-stack e2e, VSIX packaging, local reinstall, direct…
Build or run a FAITHFUL in-MPK per-task latency gate (slowCTA at the production grid + cos) for a DeepSeek-V3 MPK decode kernel or shape.
$ npx skills add mirage-project/mirage --skill mpk-faithful-gate -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mirage-project/mirage mpk-faithful-gate --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mirage-project/mirage.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/mpk-faithful-gate .claude/skills/mpk-faithful-gate && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "mpk-faithful-gate" agent skill from https://github.com/mirage-project/mirage/tree/mpk/.claude/skills/mpk-faithful-gate into .claude/skills/mpk-faithful-gate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mpk-faithful-gate", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mirage-project/mirage/tree/mpk/.claude/skills/mpk-faithful-gateType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mirage-project/mirage --skill mpk-faithful-gate -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mirage-project/mirage mpk-faithful-gate --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mirage-project/mirage.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/mpk-faithful-gate .agents/skills/mpk-faithful-gate && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mpk-faithful-gate" agent skill from https://github.com/mirage-project/mirage/tree/mpk/.claude/skills/mpk-faithful-gate into .agents/skills/mpk-faithful-gate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mpk-faithful-gate", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mirage-project/mirage --skill mpk-faithful-gate -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mirage-project/mirage mpk-faithful-gate --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mirage-project/mirage.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/mpk-faithful-gate .cursor/skills/mpk-faithful-gate && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mpk-faithful-gate" agent skill from https://github.com/mirage-project/mirage/tree/mpk/.claude/skills/mpk-faithful-gate into .cursor/skills/mpk-faithful-gate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mpk-faithful-gate", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mirage-project/mirage.git --path .claude/skills/mpk-faithful-gate--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mirage-project/mirage --skill mpk-faithful-gate -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mirage-project/mirage mpk-faithful-gate --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mirage-project/mirage.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/mpk-faithful-gate .gemini/skills/mpk-faithful-gate && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mpk-faithful-gate" agent skill from https://github.com/mirage-project/mirage/tree/mpk/.claude/skills/mpk-faithful-gate into .gemini/skills/mpk-faithful-gate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mpk-faithful-gate", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mirage-project/mirage mpk-faithful-gateInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mirage-project/mirage --skill mpk-faithful-gate -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mirage-project/mirage.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/mpk-faithful-gate .github/skills/mpk-faithful-gate && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mpk-faithful-gate" agent skill from https://github.com/mirage-project/mirage/tree/mpk/.claude/skills/mpk-faithful-gate into .github/skills/mpk-faithful-gate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mpk-faithful-gate", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mirage-project/mirage --skill mpk-faithful-gate -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mirage-project/mirage mpk-faithful-gate --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mirage-project/mirage.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/mpk-faithful-gate .opencode/skills/mpk-faithful-gate && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mpk-faithful-gate" agent skill from https://github.com/mirage-project/mirage/tree/mpk/.claude/skills/mpk-faithful-gate into .opencode/skills/mpk-faithful-gate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mpk-faithful-gate", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mpk-faithful-gateBuild or run a FAITHFUL in-MPK per-task latency gate (slowCTA at the production grid + cos) for a DeepSeek-V3 MPK decode kernel or shape.
Mpk Faithful Gate is an agent skill from mirage-project/mirage. Build or run a FAITHFUL in-MPK per-task latency gate (slowCTA at the production grid + cos) for a DeepSeek-V3 MPK decode kernel or shape. Use this WHENEVER you need to measure, gate, or head-to-head-optimize an MPK kernel's per-task latency (dense FP8 GEMM, routed group-GEMM W13/W2, MLA decode, router/topk, AllReduce, etc.), stand up a faithful gate for a NEW kernel/shape, or dispatch a KDA/Ferret kernel agent against a faithful measure — and ESPECIALLY before trusting any per-task µs number in a DSv3 decode perf…
Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Meeting notes and agendas and End-to-end testing. It works with DeepSeek. The repository describes itself as: Mirage Persistent Kernel: Compiling LLMs into a MegaKernel. The licence is Apache-2.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit f9eb70c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
python3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Mpk Faithful Gate loads about 2.6k tokens when it runs. Until then it costs about 232 tokens; SKILL.md has 1,135 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from mirage-project/mirage at commit f9eb70c, republished under its Apache-2.0 licence (© mirage-project). 1,135 words, ~2,629 tokens.
.claude/skills/mpk-faithful-gate/SKILL.md (or your agent's skills folder).Two tempting measures LIE for the DSv3 decode campaign:
The trusted measure is the FAITHFUL in-MPK per-task number: compile the kernel INTO
the real megakernel, launch the PRODUCTION persistent grid (grid.x = num_workers, 136
on a B200), turn the persistent profiler ON, and extract THIS task's per-instance span:
| Family | Gate file | Notes |
|---|---|---|
| Dense FP8 GEMM (qkv_a/q_b/q_b_pe/kv_b/o_proj/shared_*/router) | tests/runtime_python/blackwell/sm100_fp8_gemm_dense/test_fp8_gemm_dense_*_pk_testmode.py + _build_helper.py (SHAPE_REGISTRY) + _faithful_helper.py | M=1 decode; shapes are named in SHAPE_REGISTRY (add a row for a new dense shape) |
| Routed group-GEMM W13/W2 | tests/runtime_python/blackwell/sm100_fp8_group_gemm_decode/test_fp8_group_gemm_faithful_pertask.py | decode geometry via MPK_GG_DECODE_M1; active experts via meta row-1 mask |
| (template core, kernel-agnostic) | sm100_fp8_gemm_dense/_faithful_helper.py → profiled_per_task_latency_by_id, resolve_num_workers, make_profiler_tensor | import these; do not rewrite |
| Candidate-overlay bridge | ~/ferret/scripts/faithful_eval.py (KIND map + _run_test + _run_group_gemm) | drives baseline vs shadow-overlay candidate in two subprocesses |
| GPU broker | ~/gpu_broker/ (gpu_gate.sh, gpu_pool.conf, acquire/release; machine-local) | shares local + remote box; flock-serialized; exclusivity-checked |
When the task fits one of these families, EXTEND it (add a shape row / a mode), don't
write a new harness. Only author a fresh test_*_faithful_pertask.py for a genuinely new
family (e.g. attention) — and even then mirror the group-GEMM file's structure exactly.
Find the task_type_id. Get the numeric TASK_*_SM100 enum from runtime_header.h
/ the kernel's register_* in src/kernel/task_register.cc. Match the profiler row
by this NUMERIC id, NOT the name — many task names are missing from
profiler_persistent.py's event_name_list so the CSV writes UNKNOWN_<id>.
profiled_per_task_latency_by_id(pk, TASK_ID, iters, label=...) handles this.
Build the input at PRODUCTION decode geometry (see "Decode geometry" below) — this
is the #1 correctness trap. Register the kernel through PersistentKernel(test_mode=True, num_workers=resolve_num_workers(...)), attach inputs, pk.compile(), pk() once for
correctness, then the profiled timing run.
Report slowCTA + wall + sumCTA + cos, and emit a single
FAITHFUL_RESULT {...} JSON line (mirror the group-GEMM gate's _lat_table /
FAITHFUL_RESULT format) so faithful_eval.py can parse baseline vs candidate.
Per-worker-count sweep. The optimal kernel FLIPS with the grid (GEMV wins at high
occupancy nw≥128; tcgen05 MMA wins at low nw≤68). Sweep nw ∈ {8, 64, 68, 128, 136}
(128 first), via MPK_TEST_NUM_WORKERS / the --num-workers plumb. The 64/68 points
feed the group-GEMM ‖ shared-expert worker-partition design.
Run it via the broker (never pick a fixed GPU; faithful needs an EXCLUSIVE card):
~/gpu_broker/gpu_gate.sh --holder <tag> -- \
--kind <finen|gemv_m1|largem_compact> --shape <S> --num-workers <W> \
--configs <S> [--candidate-role smallm] [--kernel <cand.cuh>] [--baseline] [--decode-m1]It auto-acquires a free local-or-remote slot, runs the gate, streams
KERNEL_RESULT/FAITHFUL_RESULT back, and releases (trap-on-EXIT). --baseline = the
in-tree kernel (ratio 1.0); --kernel <cand.cuh> overlays a candidate via a shadow
MIRAGE_ROOT (production tree never written).
Production decode is bs=1 → M=1 per active unit. A gate that feeds an all-128-rows-real activation measures a PREFILL-like geometry and CANNOT reward an M=1-aware kernel.
a_bf16 with only the live row (expert*128 + 0) of each active expert non-zero (the
other 127 rows are pad/zero), and validate cos on the LIVE rows ONLY. This is the
MPK_GG_DECODE_M1=1 mode. The active experts come from meta row-1's active_expert_mask
(~4–8 active at bs=1 TP8 EP2).MPK_GATE_TIMEOUT_S, default 420s). A buggy candidate can DEADLOCK
the megakernel and wedge the (exclusive) box indefinitely. faithful_eval.py's
_run_test wraps the test in subprocess.run(timeout=...) → on timeout it SIGKILLs the
child = the megakernel-HOST process → frees the card → returns rc=124 VERDICT=TIMEOUT_HANG.
The timeout MUST live in the .py (which runs the test as its subprocess); a wrapper-level
timeout orphans the test grandchild (it keeps holding the GPU). Keep this.num_workers; workers with fewer tiles EARLY-EXIT the loop,
so a __syncthreads()/bar.sync inside it deadlocks (the exited workers never reach it).
Each lane/warp does its full K-sweep independently; only a final intra-warp __shfl
reduction is allowed. (This deadlock wedged the exclusive box for 24 min.)<BOX_USER>@<BOX_IP> —
site-specific, resolve per session per v2-model-support/references/box-orchestration.md
§1-2; its mirage repo + ferret-scripts paths are box-local) does NOT see your local edits.
After editing a gate test / _build_helper.py (new shape) / faithful_eval.py (watchdog,
new flag), scp them there (keep a .bak). Verify with a remote
python3 -c "import ast; ...".faithful_eval.sh has an arg-allowlist (and is OFF-LIMITS to edit —
along with cc-run.sh). It REJECTS unknown flags (--decode-m1 → "unknown arg"). Forward
a new knob as an ENV var instead, via the machine-local box shim
(~/nebius_gate/faithful_eval_<box>.sh, which translates e.g. --decode-m1 →
MPK_GG_DECODE_M1=1 prefix on the remote command).
The test reads the env var directly and _run_test does NOT pop it. Local-only: the
ferret faithful_eval.sh similarly hardcodes a stale "GPU 5 = KDA job" refusal — route
around it via the broker gpu_pool.conf (disable the blocked local slot), don't edit the .sh.--num-workers / new flags to faithful_eval.py (argparse → run() →
_run_test/_run_group_gemm → the test env), NOT just an env var, so they cross the
remote shim as args. (The shim then env-translates the ones the remote .sh rejects.)--configs mis-gates. Pass --configs matching --shape.When handing a kernel to KDA/Ferret (the kda-kernel-agent / ferret-kernel-agent), the
faithful gate IS the promotion authority. Give the agent: the exact gpu_gate.sh command
(with --kind/--shape/--num-workers/--decode-m1), the measured in-tree baseline slowCTA
(measure it FIRST), the vLLM ref + the ≥20% target (≤ vLLM_ref ÷ 1.2), the per-worker-count
sweep set, and the barrier-free-tile-loop + alignment crash-safety constraints (gotcha #3).
The agent's candidate is overlaid via --kernel; the shadow MIRAGE_ROOT keeps the prod tree clean.
Each gate run prints one machine-parseable line the bridge/agents consume, e.g.:
FAITHFUL_RESULT {"kind":"...","shape":"...","num_active":8,"candidate":{"slowCTA_us":..,"wall_us":..,"sumCTA_us":..,"cos":1.0,"status":"PASS"},"baseline_in_tree":{...},"slowCTA_ratio_base_over_cand":..,"verdict":"PASS_GATE|BELOW_BAR|TIMEOUT_HANG|INVALID"}Keep this shape stable — the ferret/KDA loop greps it.
© mirage-project, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/mpk-faithful-gate of mirage-project/mirage.
Open the folder on GitHubat commit f9eb70c
Mpk Faithful Gate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Mpk Faithful Gate this skillmirage-project/mirage | 2.5k | — | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Blockless Extension E2EFreakStudioCN/mpy-hardware-extension | 154 | — | ~1.2k | Automated safety check: Notes | Custom licence | |
| Mmsp DevPrism-Shadow/model-message-stream-protocol | 113 | — | ~7.2k | Automated safety check: Pass | Apache-2.0 | |
| Local Platform E2Ecomputesdk/benchmarks | 126 | — | ~3k | Automated safety check: Notes | MIT | |
| playwright-cli Browser Automationgithub/gh-aw | 5.4k | 25 repos | ~2.8k | Automated safety check: Pass | MIT | |
| Kane CLI Browser TestingLambdaTest/kane-cli | 249 | — | ~8.4k | Automated safety check: Pass | Apache-2.0 |
FreakStudioCN/mpy-hardware-extension
Run and debug the Blockless VS Code extension release gate: CI-equivalent API and extension tests, V0 protocol smoke, live DeepSeek full-stack e2e, VSIX packaging, local reinstall, direct…
Prism-Shadow/model-message-stream-protocol
Fixed workflow for developing MMSP itself — adding or updating model support, and changing its pages.
computesdk/benchmarks
Stand up benchmarks-platform locally (Postgres + MinIO + ClickHouse in docker) and run a real @benchsdk/runner benchmark against it, with no cloud or provider credentials.
github/gh-aw
Drives a real browser from the command line with playwright-cli to open pages, interact, mock requests, save state and work with Playwright tests.
LambdaTest/kane-cli
Drives a real browser through the kane-cli tool and designs requirement-linked test suites from a PRD or a plain description, with mobile and cloud-grid runs.
Tabbit-Browser/dsh-tabbit
Control Tabbit Browser in a task-isolated Playwright workspace; never switch browser backends.
mirage-project/mirage
Runtime-V2 performance-iteration workflow. An agent skill from mirage-project/mirage.
mirage-project/mirage
Step-by-step guide for adding a new task implementation to Mirage Persistent Kernel (MPK).
mirage-project/mirage
A skill your agent uses when the user wants to design or extend a FlashAttention-style forward kernel on B200/Blackwell, involving the two MMAs QKᵀ and PV, online softmax, S/P/O in TMEM, warp roles…
mirage-project/mirage
A skill your agent uses when a batch of env-gated (ifdef MPKDSV3 / os.environ-controlled, default-OFF) MPK optimization levers needs to be consolidated into a single clean code path for a PR…
mirage-project/mirage
Guide for using MPK test mode to unit-test individual layers or multi-layer pipelines through the full compilation pipeline.
mirage-project/mirage
End-to-end pipeline for adding or porting a model to MPK Runtime-V2 — from a compute-graph spec (shapes + draw.io graph + HF checkpoint + TP/EP plan) to a working multi-GPU demo.
Works with
Categories
Build or run a FAITHFUL in-MPK per-task latency gate (slowCTA at the production grid + cos) for a DeepSeek-V3 MPK decode kernel or shape. Mpk Faithful Gate is an agent skill from mirage-project/mirage. Build or run a FAITHFUL in-MPK per-task latency gate (slowCTA at the production grid + cos) for a DeepSeek-V3 MPK decode kernel or shape.
Mpk Faithful Gate fits situations like: tasks that involve Meeting notes and agendas; tasks that involve End-to-end testing.
Run `npx skills add mirage-project/mirage --skill mpk-faithful-gate -a claude-code`. Or copy the skill folder (.claude/skills/mpk-faithful-gate in mirage-project/mirage) into .claude/skills/mpk-faithful-gate in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mirage-project/mirage --skill mpk-faithful-gate -a codex`. Or copy the skill folder (.claude/skills/mpk-faithful-gate in mirage-project/mirage) into .agents/skills/mpk-faithful-gate in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mirage-project/mirage --skill mpk-faithful-gate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mpk-faithful-gate, .gemini/skills/mpk-faithful-gate, .github/skills/mpk-faithful-gate and .opencode/skills/mpk-faithful-gate in your project.
Going by SKILL.md and its folder, Mpk Faithful Gate needs the command-line tools its instructions call (python3). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Mpk Faithful Gate is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Mpk Faithful Gate: Blockless Extension E2E (FreakStudioCN/mpy-hardware-extension, 154 stars), Mmsp Dev (Prism-Shadow/model-message-stream-protocol, 113 stars), Local Platform E2E (computesdk/benchmarks, 126 stars) and playwright-cli Browser Automation (github/gh-aw, 5.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mirage-project (a GitHub organization) maintains it in mirage-project/mirage, which has 2,545 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 7, 2026.
Source: mirage-project/mirage on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.