Skip to content
Back to skills

Mipmux Example Review

ASecurity

Review an explicit Git comparison with a reviewer subagent that reads a mipmux context packet. Use only when the user invokes this workflow.

  • 18 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsgogit

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add w-winter/mipmux --skill mipmux-example-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mipmux Example Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mipmux Example Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/w-winter-mipmux-example-review-8a044b78/badge)](https://www.skillsdirectory.com/skills/w-winter-mipmux-example-review-8a044b78)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mipmux-example-review
description: Review an explicit Git comparison with a reviewer subagent that reads a mipmux context packet. Use only when the user invokes this workflow.
disable-model-invocation: true
---

# Review with a mipmux packet

You coordinate a review of the change the user names. mipmux's discovery agent collects the code the change touches into a context packet; the `mipmux-example-reviewer` subagent reads that packet and writes the review; you check its findings and save the report. You do not review the code yourself, and this workflow changes no product code.

## Host mechanics

**mipmux.** omp names the `mipmux` server's tools `mcp__mipmux_context_builder`, `mcp__mipmux_context_job` and `mcp__mipmux_context_prepare`. Wait with `context_job` and `{ "op": "wait", "jobId": "...", "durationMs": 50000 }`; the server's MCP `timeout` in omp, measured in milliseconds, must be longer.

**Asking the user.** Ask in the conversation and end your turn until they answer.

**Dispatching a subagent.** Use the `task` tool in its batched form, omp's default (`task.batch: true` and `task.structured: false`). Check the schema omp shows you, and report a mismatch rather than guessing fields. For the review:

```json
{
  "context": "Only the coordinator calls mipmux. Read the complete assigned packet and return the full answer. Do not edit files or delegate.",
  "tasks": [
    {
      "name": "PacketReview",
      "agent": "mipmux-example-reviewer",
      "task": "Read /absolute/project/prompt-exports/<run-name>-review/context.md through EOF using consecutive raw line ranges, continuing from the next unread line until the end even when a range comes back short. Perform the assignment in its final user_instructions section. Return the complete review as your final answer.",
      "solutionSpace": "Identify defects from the evidence; no specific defect is assumed."
    }
  ]
}
```

`solutionSpace` says which decisions are open. The path in a task is an instruction to read the file, not an attachment; omp's read tool takes it with a line selector, such as `context.md:raw:1-300`. An item's `tools` field selects tools the parent defines, not built-ins. Each dispatch starts a new task; do not revive an earlier agent or use `seance`.

**Choosing a model.** A task item can carry a `model`, as one exact `provider/model-id[:level]`, only when omp accepts one for that agent. If the item schema omp shows you has no `model` field, omp drops a `model` you send. Some omp versions show a `model` field that applies only to the bundled `seance` agent and reject it for any other agent with "`model` is only accepted for the `seance` agent". omp also refuses a model that the user's settings do not approve, or one for a role that `task.agentModelOverrides` routes. When the user named a model that omp cannot take, tell them that choosing a model per dispatch needs an omp version that accepts `model` for every agent and `task.perCallModel: on` in their omp settings, and ask whether to continue on the reviewer's own model. Do not drop the model on your own.

**Receiving the answer.** Wait for the task to complete, then read the complete answer through `agent://<id>:raw:1-300` and the ranges after it, using the identifier omp returned. An inline result can be only a preview, and `history://<id>` is a transcript, not the answer.

## 1. Survey the change

Check the Git state of each repository the request concerns: status, the current branch, recent commits, and the files the comparison changes. That is enough for this step; leave reading the code to discovery and the reviewer.

## 2. Confirm the comparison

Use the comparison the user's request names. If it is ambiguous or missing, offer the likely choices for the current branch and stop until the user answers:

- uncommitted work: the working tree against `HEAD`, with or without untracked files;
- staged changes against `HEAD`;
- a commit range `<base>..<target>`, which covers the commits after `<base>` up to and including `<target>`;
- the current branch against its trunk, as the range from their merge base to the branch.

A task that spans several repositories needs one comparison per repository. Note deleted files: they reach the reviewer through the patch.

Read the project's instructions, such as `AGENTS.md` or `CLAUDE.md`, and note the ones that govern the review; they go into the packet.

## 3. Choose the workspace and names

When the session supplies a `mipmux_workspace` declaration (the pi-mipmux and omp-mipmux extensions add one when the user selects a saved workspace), use it unchanged in every mipmux call. Otherwise confirm the source roots with the user rather than assuming the current directory is the project. Name every root the task needs and no others.

Use one output folder, `prompt-exports/` in the primary root, for every run in the project, and create it if it is missing. mipmux never indexes it. Before capturing a patch, make sure Git ignores it, and explain any ignore-file edit to the user first.

Choose an unused run name from the date and a short topic, such as `20261103-login-timeout`. Bundle names are siblings that start with it, such as `<run-name>-discovery` and `<run-name>-review`, and reports go in `<outputRoot>/<run-name>/`. Never overwrite an earlier run.

## 4. Collect review context

Call `context_builder` with:

- `workspace`: `{ "roots": [{ "name": "...", "absolutePath": "..." }], "outputRoot": "..." }`, plus the selected declaration's `exclusions` if it has any.
- `purpose`: `"review"`.
- `task`: the user's request, the roots, each comparison, the changed and deleted files, the project rules that govern the review, and who will read the packet. Ask discovery to select the changed code, the code around it and its tests, and to explain how they relate; not to review it.
- `outputName`: `<run-name>-discovery`.
- `patches`: one per repository, with the exact comparison:

  ```json
  { "id": "review", "root": "app", "comparison": { "kind": "commits", "base": "<base commit>", "target": "<target commit>" } }
  ```

  The other comparisons are `{ "kind": "worktree", "base": "HEAD", "includeUntracked": true }` and `{ "kind": "staged", "base": "HEAD" }`. Omit `paths` to cover the whole comparison, or give root-relative paths to narrow it.
- `required`: files that must appear in full, such as an approved plan or the project instructions, as `{ "root": "...", "path": "..." }` with the path relative to the root. With a `commits` or `staged` comparison, every file the packet includes from that root must match the comparison's target (the target commit, or the index for `staged`); a required file with other changes, such as uncommitted edits, blocks the packet with `sourceComparisonMismatch`. Pass such a file's text in `documents` instead.
- `documents`: text from outside the roots, such as a ticket, as `{ "id": "...", "role": "evidence", "origin": "...", "text": "..." }`, where `role` is `plan`, `report` or `evidence` and `text` is the full text.

Leave `budgetUnits`, `discovery`, `enhancementMode` and `clarification` unset unless the user asks for them. A review packet includes its patches by default.

## 5. Wait for the build

`context_builder` returns a job snapshot with a `jobId`. Wait on that job as Host mechanics describes, and wait again while the snapshot shows `localSettled: false`. A wait that ends early, times out or is interrupted does not stop the job, so never start a second build because waiting is slow. If the user sends a message during a wait, respond to it before waiting again.

If a wait returns a `question`, give the user its message and choices and stop until they answer. Send only their answer, through `context_job`:

```json
{ "op": "answer", "jobId": "<job ID>", "questionId": "<question.id>", "response": { "action": "accept", "content": { "<schema property>": "<the user's answer>" } } }
```

Use a list of strings for an array-valued question, and `{ "action": "decline" }` only when the user skips it. `{ "op": "status", "jobId": "..." }` reads the snapshot without waiting, and `{ "op": "cancel", "jobId": "..." }` stops the job when the user asks.

A finished job's `state` is `ready`, `blocked`, `failed` or `cancelled`. Report anything other than `ready` and stop; do not replace discovery with context gathered another way. If the build call itself fails before returning a job, repeat it unchanged: the same workspace, request and `outputName` return the same job.

## 6. Check the receipt and prepare the assignment

A ready snapshot's `bundle` describes the packet without its contents: `directory`, `context` (the path of `context.md`), `accounting`, `materials`, `omitted`, and the clarified `prompt`. Do not read `context.md` yourself; it is written for the reviewer and can run to hundreds of kilobytes. Check that every changed file and each requested patch is present, and decide for each `omitted` entry whether the review can do without it.

`context_prepare` gives the saved packet its final assignment and publishes a new bundle without a model call:

```json
{
  "workspace": { "roots": [{ "name": "app", "absolutePath": "/absolute/project" }], "outputRoot": "/absolute/project/prompt-exports" },
  "bundle": "<run-name>-discovery",
  "prompt": "<the complete review assignment>",
  "outputName": "<run-name>-review"
}
```

Send the workspace that built the bundle and the bundle's directory name from the receipt. The prompt replaces discovery's, so make it complete: the user's request, the roots, the comparison, the changed and deleted files, the project rules, whatever discovery found that the reviewer needs, and the deliverable, a full review returned as the reviewer's final answer. To add material, send `required`, `patches` or `documents` in the forms the build takes; to shrink the packet, `remove` optional materials or `demote` files to code maps, naming them as the receipt does. Preparation checks every delivered material against the current files. On `sourceChanged` or any other failure, report it and stop rather than sending an unchecked packet.

Preparation's check covers the files under the roots. mipmux delivers each document's `text` as given and treats its `origin` as a label, so before you dispatch, compare every document whose `origin` names a file with that file. List the packet's documents from the `manifest.json` beside its `context.md`, for example with `jq -r '.materials[] | select(.kind == "document") | [.input.id, .input.origin, .identity.sha256] | @tsv' manifest.json`, and compare each hash with the file's SHA-256 from `shasum -a 256` or `sha256sum`. A mismatch means the packet holds other text, cut short or older than the file. Preparing a bundle again keeps its documents, so a wrong one needs a bundle without it: prepare the discovery bundle again with the complete text under a new `outputName`, or start a new build when the build itself received the document.

## 7. Dispatch the reviewer

Dispatch `mipmux-example-reviewer` with the prepared packet, as Host mechanics describes, using the model the user named for the reviewer, if any. Send only the packet and the short instruction to perform the assignment in its final `user_instructions` section; do not also send receipts or a second version of the assignment.

## 8. Save and check the review

Save the reviewer's complete answer, unchanged, to `<outputRoot>/<run-name>/review.md`, and read it in full. Check that it covers the whole comparison and says what it could not read. Verify the important findings against the diff and source with targeted reads, and separate the defects you confirmed from the ones you could not. Neither accept nor reject a finding merely because of how confidently it is stated. A review that finds nothing is a valid result, not a reason to review again.

## 9. Fill one gap if needed

If the review names a required area it could not cover, collect context for that area once more: a new build with the same comparison, whose task says what the first review covered and what it did not. Prepare it, dispatch the reviewer again, and save its answer as `review-2.md`. Do this at most once; if coverage is still incomplete, report what remains.

## 10. Report

Give the user the report paths, the findings with what you verified, and the coverage limits. Stop there: fixing the findings needs a separate request.

## Reviewing again after fixes

When the user fixes findings and asks for another review, run this workflow again as a new run whose comparison covers the fixes. Pass each earlier `review.md` and a ledger of its findings as `documents` with `role` `report`: for each finding, whether it was fixed, rejected with evidence or deferred, and what changed. The assignment asks the reviewer to check those corrections and any regressions they introduced, and not to reopen a settled finding without new evidence from the source.

Fix-and-review rounds should converge: each one should remove blocking findings or lower the highest severity. Compare the new review with the earlier ones. When two consecutive rounds improve neither, or new findings keep appearing in the same mechanism, tell the user that the fixes are not converging and that the approach may need rethinking, rather than recommending another round.

## When something fails

A launch acknowledgement, a preview or a summary is not a review. If the reviewer's answer is missing, cut short or failed, report the workflow as incomplete and keep its artifacts; do not quietly switch models or start the workflow again.

Keep the bundles and reports for the user, and do not stage them. Dispose of a mipmux job with `{ "op": "dispose", "jobId": "..." }` only when its Git snapshots are no longer needed. Jobs belong to the connection: after a reconnect, earlier job IDs are unknown, but published bundles remain and can still be prepared.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.