Ugly first. Code later.
Design and test complete user flows before your coding agent touches production code.
A local, deliberately low-fidelity wireframe and user-flow editor built for working with Claude Code, Codex, and other coding agents.
Requires Node.js 18+. Agent integration uses your active Claude Code or Codex CLI subscription session — no separate API key or pay-per-call API setup required.
npm install -g mockslop
cd your-project
mockslop setup codex # or: claude / bothThen ask your agent:
# Start from one idea. MockSlop will take you step by step.
> $mockslop Design a to-do list app.
# Turn a long prose specification into journeys and wireframes.
> $mockslop Design from /docs/SPECS.md.
# After the app has been implemented, change the wireframe and send only
# the resulting diff back to the implementation agent.
> $mockslop Run live-diff in a subagent.Setup:
- creates the workspace and installs the MockSlop skill;
- connects the Agent Panel;
- requires Codex CLI
>= 0.149.0for Agent Panel delivery, or a stable release newer than August 24, 2026.
Code is the most expensive place to decide what the UI should be.
- Structural corrections spread across components, routing, state, and sometimes data — leaving changes that can be difficult to unwind.
- Every retry makes the agent read production code again, burning tokens and polluting its context.
- Prose is not a verifiable contract; the same description can produce different results.
- Discovering the wrong layout or journey after implementation means discovering it at the most expensive possible moment.
MockSlop moves those decisions into a small, disposable workspace before production code is touched, then hands the approved result to your agent.
MockSlop is an x-ray of your product: it captures layout, order, size, spacing, states, and behaviour — not colours, typography, icons, or polish. What you approve becomes the implementation contract your agent builds against.
The core loop
describe → wireframe → wire interactions → test journeys → approve → handoff → implement
Optional: Turn a critical path into a test
walk in Play Mode → record steps + stable IDs → generate Playwright starter → adapt to real app
Optional: Keep sketching after implementation
implement approved handoff → refine wireframe → generate scoped live diff → send only changes
Web 1.0 is fast to edit.
Web 1.0 is easy to diff.
Web 1.0 is already understood by every coding agent.
Ready to step back in time? ;)
- One source of truth. The editor and your agent edit the same bare HTML files — no canvas export or intermediate JSON.
- Flow cannot drift from layout. Interactions live on the elements that trigger them;
MockSlop derives the graph from attributes such as
data-on-click="goto:checkout". - The ID is the contract. Stable IDs become
data-testidvalues and connect the approved wireframe, scoped handoff, live diff, and Playwright starter. - A selection-aware conversation. Select an element or region, describe a change, or paste a screenshot. MockSlop attaches the current screen, state, and selected IDs to your message; the agent's reply appears back in the editor.
- Send exactly the right scope. Hand off the whole product, one journey, selected screens, or only what changed since the version your implementation agent read.
- Token-efficient by design. Manual canvas edits use no tokens; agent edits stay small local diffs instead of repeated trips through the production codebase.
- No heavyweight MCP bridge. Claude Code and Codex edit the local HTML directly through your active session. MockSlop requires no separate MCP server and does not serialize the entire canvas into every request.
Everything stays local: one Node process, plain files, zero runtime dependencies, no account, no cloud, and no build step.
- Screens and dialogs represent the surfaces of the product, including modal dialogs, drawers, and layered interactions.
- States represent variants such as empty, loading, invalid, failed, and success without copying the entire screen.
- Independent axes combine concurrent conditions such as
sync=failed,sidebar=collapsed, andpermission=viewerwithout creating a screen for every possible combination. - Journeys group complete slices of the product so you can review an onboarding path, checkout, or recovery flow instead of inspecting disconnected screens.
Three modes cover the editing loop:
- Edit — select, drag, resize, duplicate, and edit text directly on the canvas, or ask the selection-aware Agent Panel to make the change.
- Play — click through interactions, dialogs, states, and data-dependent branches as a user would. Record only the critical paths worth preserving.
- Flow — inspect the interaction graph derived from the same HTML that draws the screens.
Also built into the loop:
- Responsive previews — inspect every screen at Phone, Tablet, Desktop, or Fit width.
- Structural validation — catch dead controls and unreachable targets before handoff.
- Anchored feedback — pin annotations to stable IDs so comments survive layout changes.
- Handoff generation — turn the approved workspace into an implementation-ready package.
- Playwright starters — record a critical path by hand and carry it into the real app.
MockSlop owns what shows up on the x-ray: position, order, size, spacing, responsive layout, interactions, states, and journeys. The styling layer owns the finish: colours, typography, icons, motion, shadows, corner radii, and pixel polish.
Here: “Make it a three-column layout.”
Later: “Make the button more rounded.”
MockSlop does not replace high-fidelity design. It makes structure and behaviour cheap to change, explicit to approve, and difficult for a coding agent to misunderstand before they reach production code.
MockSlop is in early-stage development. Expect rough edges and possible breaking changes.
- Official Agent Panel integration currently targets Claude Code and Codex CLI. Codex Agent
Panel delivery requires Codex CLI
>= 0.149.0, or a stable release newer thanAugust 24, 2026. - Generated Playwright files are starters. Real routing, data fixtures, asynchronous behaviour, and final assertions may still need application-specific work.
For the full workflow, run mockslop --help, read USAGE.md, or ask your installed
MockSlop skill to walk you through it.




