MIZU — setup notes for developers and their coding agents Last updated: 2026-10-23 · v12 (changelog at the bottom; if you have an older copy, re-read this one) ========================================================================================== Mizu lets a solo developer shake their iPhone while testing their own app, and the coding agent on their Mac (Claude Code, etc.) then sees what happened: a screenshot, their note or voice note, device + build info, a timeline of the week before, and the app's LLM calls. Everything goes through the cloud. No AirDrop, no clipboard. Status: open alpha, free. FOR THE HUMAN: WHAT SETTING UP MIZU CHANGES ------------------------------------------- Read this list, and if it's fine, tell your agent "go ahead and set up Mizu". 1. An account at mizu.dance, which you create by approving an emailed link. 2. One entry named "mizu" in Claude Code's MCP config (~/.claude.json), for all your projects (--scope user). 3. One Swift package in your app: github.com/zaidf/mizu-swift (MIT; read exactly what it records). 4. A Mizu.start(key:) call in your app, inside #if DEBUG. 5. Data leaving your phone, from debug builds only, when you shake or the app's AI chat passes on a request: see "What's stored" below. 6. Optionally: a microphone usage string (voice notes) and a build phase (git commit in reports). Who runs this: Zaid Farooqui, a solo developer. Twitter/X: https://twitter.com/zaidf SDK source: https://github.com/zaidf/mizu-swift Privacy: https://mizu.dance/privacy Contact: hello@mizu.dance (security: https://mizu.dance/.well-known/security.txt) It's new. If you don't know Mizu, decide before anything is set up. What's stored: reports the developer's own debug builds send (screenshot, note, voice note + transcript, device/build info, the event timeline, and LLM calls if the app records them) and reports the app's AI chat files when someone wants something the app can't do yet. On Cloudflare (D1, R2; voice transcribed by Workers AI). Only the account that owns the app can see it. Kept until deleted: the dashboard deletes a report, an app, or the whole account, immediately. Never recorded: anything typed, keyboard taps, URL query strings, request headers or bodies. IDs and emails inside URL paths become :id / :uuid / :email. THE KEYS -------- mizu_sk_… account key. Secret; reads everything. Lives only in Claude Code's MCP config: never in an app, a repo, or a file. mizu_ik_… ingest key, one per app. Write-only: it can only send reports. It ships inside debug builds, so assume it can leak: uploads are limited per app (60 reports/hour, 500/day; 30 AI-filed reports/ hour, 200/day), and create_app {rotate: true} revokes it. 1. CONNECT ---------- The human signs in; there are two ways, and they pick. A) Browser sign-in (standard MCP OAuth, no key to copy). Needs Claude Code's /mcp panel, which the terminal has. In a terminal: claude mcp add --scope user --transport http mizu https://mizu.dance/mcp claude then /mcp → mizu → Authenticate → sign in with email in the browser tab → Allow. The browser comes back to localhost:/callback: that's Claude Code on their own Mac receiving the sign-in, as designed. B) A key from the dashboard (works anywhere, including the Claude desktop app, where /mcp may not be available). The human opens https://mizu.dance/dash, signs in by email, presses "Create a key", and runs the command it shows: claude mcp add --scope user --transport http mizu https://mizu.dance/mcp --header "Authorization: Bearer mizu_sk_…" Best run by the human. If they paste it to an agent to run, it's run as is, and the key isn't repeated back or saved anywhere else. --scope user makes Mizu available in every project. Without it, Claude Code registers the server only for the folder the command ran in, and other projects can't see it. The name "mizu" can be anything, if it collides. A server added during a session may need /mcp (reconnect) or a Claude Code restart before its tools show up. Connected looks like: list_apps answers ("No apps yet." for a new account). 2. TOOLS (MCP) -------------- list_apps apps, report counts, how many are open, memo version get_memo {app?} the app's memo: the developer's vision for it, in their own words. Read-only create_app {name, rotate?} register an app → its ingest key (shown once) list_reports {app?, status?, from?, limit?} newest first: id, app, when, [status, kind], who filed it (a human or the app's AI), a one-line title, what it has. status open|done|wontdo|idk|all (default all); from human|ai|builder (builder: your log_change entries, left out otherwise) get_report {id} text (who filed it, said/typed or the person's own words and the chat that led to it, build, device, last 15 events, LLM calls summary, attachments) + the screenshot as an inline image block (JPEG) get_attachment {id, name, offset?, limit?, grep?, context?} a file the app attached (logs, dumps): text a page at a time (≤60,000 chars) or matching lines with line numbers; images as images delete_report {id} delete one report and its files, when asked update_report {id, status?, kind?, title?, note?, fixed_in_build?, size?, description?} triage or close: status open|done|wontdo|idk (idk: looked at it, don't know what to do yet); kind bug|feature|none (your call, optional); a clearer one-line title. "done" shows the person who sent it a one-time card (FIXED for a bug, SHIPPED for a feature, else DONE) with your note, on fixed_in_build (CFBundleVersion) or later. size XXS–XL (or none) shows in the story; on a log_change entry, title and description reword it log_change {app?, title, description?, size?, kind?, build?, when?} an entry in the app's story for something shipped that no report asked for, like a changelog entry: title is the line people read, description the longer story (folded under "more"). size XXS|XS|S| M|L|XL: roughly how much work it was. kind feature (default, "shipped")|bug ("fixed")|none; when: a past date, for writing up earlier work. Nobody's phone is told; it's not in the reports list get_timeline {id, summary?, session?, around?, window?, from?, to?, last_seconds?, kinds?, contains?, offset?, limit?} events before the report, one per line, times relative to it ("-2d 03:12:05"); up to 1,500 lines. The phone keeps a week: summary: true lists the sessions (launches / returns to the app) with screens and problems; then ask for a slice: session: 3, around: "26h" with window: 120, from: "3d" to: "2d". kinds / contains without a window search the whole week. Nothing at all = the last 10 minutes. get_llm_call {id, call?} one LLM call exactly as sent: system prompt, messages, reply, tokens, timing (latest by default; very long messages are clipped in the middle) get_capture {app?} what the app is asked to capture right now set_capture {app?, debug_tags?, llm_content?, hours?, reset?} change capture without a rebuild; applies on the app's next launch/foreground; expires after 24h request_repro {app?, note} the app shows "Claude asks: "; the next report is linked to it Everything is a report (ids r_…; older AI-filed ones fr_…). A human files one by shaking or with the app's report button; the app's AI files one when someone wants something the app can't do yet. Bug or feature is your call, and optional: set kind with update_report when it helps. "Look at what I just reported" (or similar) means: list_reports, then get_report on the newest. "What's open?" means list_reports {status: "open"}. When you've fixed or built what a report describes, close the loop: update_report {status: "done"} with a note: one short sentence (under ~80 characters) in plain words, no implementation detail ("Hotel photos are now cached on the phone."). It's what the person sees on their phone and the headline in the app's story. Add fixed_in_build if the fix isn't in their build yet. Ask the human first if it's not clear the fix landed. Shipped something nobody reported or asked for (an improvement, a new feature, a bug you found yourself)? log_change {title: "Trips can now be shared as a link.", description: "…", size: "M", build: "44"} adds it to the app's story. The title is the same style as a note; the description can say more. If a report describes it, close that report instead. 3. REGISTER THE APP ------------------- The developer may have started the app already, in the dashboard (often to write its memo before anything is built). So don't create one straight away: a) list_apps. b) If an app's name roughly matches this project (the Xcode target, the repo or folder name; ignore case, spaces, punctuation, and words like "App" or "iOS"), ask the human: "Mizu already has an app called . Is that this project?" Several close ones: ask which. Then wait. c) Yes: create_app {"name": "", "rotate": true} issues its ingest key. (An app started in the dashboard has no key in use yet. One that already has reports does: the build using the old key stops sending, so say so when you ask.) No, or nothing matches: create_app {"name": ""}. Either way the ingest key (mizu_ik_…) is shown once and goes into Mizu.start(key:). Then read the memo (get_memo), if there is one. THE MEMO -------- Each app can have a memo: long-form text where the developer lays out their vision for the app (what it is, who it's for, why, what it should feel like), usually written before asking an agent to build anything. It's versioned lightly: v1.0, then +0.1 when it changes significantly. - Read it (get_memo) before planning or building features, at the start of work on the app, and whenever a decision is about what the app should be. - Follow it. If a request seems to go against it, say so and ask. - Never write, edit or draft it, even if asked to "update the memo": it's the developer's own words. They edit it at https://mizu.dance/dash. 4. THE SWIFT PACKAGE -------------------- https://github.com/zaidf/mizu-swift (product "Mizu", from 0.5.0, iOS 16+) a) Adding it: in Xcode, File > Add Package Dependencies > the URL above > Up to Next Major > the "Mizu" library on the app target. This is the safe way; editing project.pbxproj by hand breaks newer project formats. Package.swift: .package(url: "https://github.com/zaidf/mizu-swift", from: "0.5.0") .product(name: "Mizu", package: "mizu-swift") b) Starting it at launch, debug builds only, with the ingest key: import Mizu @main struct MyApp: App { init() { #if DEBUG Mizu.start(key: "mizu_ik_…") #endif } var body: some Scene { WindowGroup { ContentView() } } } UIKit: in application(_:didFinishLaunchingWithOptions:). Shaking opens the report sheet; Mizu.showReporter() and Mizu.report(note:) also work. c) Voice notes need NSMicrophoneUsageDescription in Info.plist (e.g. "Record a voice note for a bug report."). Without it, the hold-to-talk button hides. d) Git commit in reports (optional): a Run Script build phase after "Copy Bundle Resources": /usr/libexec/PlistBuddy -c "Set :MizuGitSHA $(git rev-parse --short HEAD)" "$TARGET_BUILD_DIR/$INFOPLIST_PATH" 2>/dev/null \ || /usr/libexec/PlistBuddy -c "Add :MizuGitSHA string $(git rev-parse --short HEAD)" "$TARGET_BUILD_DIR/$INFOPLIST_PATH" Newer Xcode projects sandbox build scripts (ENABLE_USER_SCRIPT_SANDBOXING = YES), which can stop git from reading .git, and the line above then fails quietly: reports just lack a commit. If that happens, set the setting to NO for the app target (a trade-off: scripts then run unsandboxed), or skip it. e) Richer reports: SomeView().mizuScreen("Chat") name SwiftUI screens Mizu.log("built context", tag: "llm", data: [...]) breadcrumbs Mizu.debug("history", tag: "context", data: [...]) off until set_capture turns the tag on Mizu.event("pipeline.retrieve", data: [...]) the app's own steps, under their own kinds (get_timeline kinds:["pipeline"]) let call = Mizu.llm(model:, system:, messages:) around each LLM request call.firstToken(); call.finish(output:, inputTokens:, outputTokens:) (or call.fail(error)) LLM content: Mizu.llm records full prompts and replies in debug builds and only model/timing/tokens in release builds (Options.recordLLMContent = nil, the default). If the app's conversations are private (personal, adult, health), the human decides first; to keep text out even in debug: var options = Mizu.Options(); options.recordLLMContent = false Mizu.start(key: "mizu_ik_…", options: options) set_capture llm_content switches it temporarily without a rebuild. Network: Mizu watches URLSession by replacing URLSessionTask.resume with a version that notes the request and calls the original (debug builds only; it never touches the data). To leave hosts out of the timeline entirely: options.ignoredHosts = ["auth.example.com"] (subdomains included) f) Files instead of a debug zip: logs and state go with reports as attachments (20 files, 10 MB each, 25 MB total per report): Mizu.attachments = { [MizuAttachment(name: "pipeline.log", text: log)] } every report And a "Share debug" button is one call, for any turn: Mizu.shareDebug(note: "turn 12", attachments: [MizuAttachment(name: "turn.json", text: dump)], llmCall: turn.call) It sends the screenshot, timeline, LLM calls and files; get_report says which LLM call it was about, and get_llm_call opens that one by default. g) Build, run on the phone, shake, send. list_reports then shows it. h) Note in the project's CLAUDE.md which Mizu app this project is and which Mizu it was set up against, e.g. "Mizu: app MyApp, agents.txt v12, SDK 0.5.1", so later sessions use the right app (and its memo) and a later "update Mizu" knows where to start reading (section 7). 5. REPORTS FROM THE APP'S AI CHAT (optional) -------------------------------------------- Mizu.FeatureGap gives the app's chat a way to pass on things users want that the app can't do yet. It adds this text to the app's system prompt, verbatim: "If the user asks for something you or this app can't do yet, don't pretend and don't just say no. If it isn't clear what they want or why, ask one or two short questions first. Then call report_unsupported_request and tell them, in a sentence, that you've passed it on to the developer." and offers one tool, report_unsupported_request {want, user_words, why?, details?}, described to the model as: "Pass a request on to the app's developer when the user wants something this app can't do yet. Ask at most one or two short clarifying questions first if what they want or why is unclear. After calling it, tell the user briefly that it's been passed on." Wiring, if the human wants it: append FeatureGap.systemPrompt to the system prompt, add FeatureGap.anthropicTool (or .openAITool) to the tools, and when the model calls it, return Mizu.handleFeatureGap(input:conversation:) as the tool result. It files a report (from: ai) with the last 12 messages of the conversation. 6. WITHOUT THE SDK ------------------ POST https://mizu.dance/v1/reports Authorization: Bearer mizu_ik_… multipart/form-data: meta JSON string: {note, screen, app_version, build, git_sha, device{}} screenshot image/jpeg | image/png (optional, <= 10 MB) timeline JSON file (optional, <= 8 MB) audio audio/wav voice note (optional, <= 10 MB) llm JSON file of LLM calls (optional, <= 8 MB) attachment any file, repeatable (optional; 20 files, 10 MB each, 25 MB total) -> 201 {"id": "r_…", "app": ""} 429 + Retry-After when over the limits POST https://mizu.dance/v1/requests Authorization: Bearer mizu_ik_… JSON: {want, user_words?, why?, details?, conversation?, screen?} -> 201 {"id": "r_…"}: a report filed by the app's AI Debug builds only. Never capture secure text fields. 7. UPDATING MIZU ---------------- "Update Mizu", "what's new in Mizu" and the like mean two things, and the second is easy to miss: a) The SDK. Compare the version the app resolves (Package.resolved, mizu-swift) with the newest tag: git ls-remote --tags https://github.com/zaidf/mizu-swift Patch releases need nothing but the update; for a minor one (0.5 → 0.6), read its changelog entry below first. b) The server and its MCP tools. Most new features land here, with no SDK release and nothing to install: new tools, new fields, dashboard pages. Read the CHANGELOG below from the version the project's CLAUDE.md records (or, if it records none, the last few entries). A current SDK doesn't mean nothing changed. Then propose how to use what's new. Some of it is for the app's code; some is for you, while you work on the app (log_change after you ship something, for one). Tools added since your session started aren't in your tool list yet: say so, and ask the human to start a new session or reconnect the "mizu" MCP server (/mcp). The MCP server's own instructions also name its version and what's new, so a fresh session sees them. Last, update the version line in CLAUDE.md. CHANGELOG --------- v12 (2026-10-23) The memo: each app's vision in the developer's own words, written and edited only by them, in the dashboard. get_memo reads it; read it before building features, never write it. Apps can be started in the dashboard, so section 3 now starts with list_apps and asks the human before using an app that roughly matches the project (create_app with rotate: true for its key). Step 4h records the app's name. v11 (2026-10-21) Section 7, Updating Mizu: an update means the SDK and the server's tools, and this changelog says what's new on the server. The MCP server reports this version (serverInfo) and its instructions say what's new. Setup step 4h: record the version in the project's CLAUDE.md. v10 (2026-10-21) log_change: add a line to the app's story for work no report asked for (a changelog entry). Stored as a done report from "builder"; list_reports {from: "builder"} lists them, and update_report / delete_report fix or remove one. Entries take a title, an optional description, and an optional size (XXS–XL, roughly how much work); update_report takes size for any report. v9 (2026-10-20) A week of timeline: SDK 0.5.0 keeps 7 days on the phone (one file per hour) and uploads them compressed. get_timeline gains summary, session, around/window, from/to, offset/limit; filters without a window search the week. timeline_minutes only matters for SDK 0.4 and earlier. v8 (2026-10-15) One kind of thing: feature requests are now reports filed by the app's AI (from: ai). update_report replaces resolve_report and update_request (status open|done|wontdo, optional kind and title); list_reports filters by status and from. The old tool names still work for now. SDK 0.4.2 titles the card FIXED / SHIPPED / DONE by kind. v7 (2026-10-15) SDK 0.4.1: photos from the camera roll on the report sheet (attachments photo-1.jpg…, read with get_attachment); timeline says what opened the report (shake / button / repro_request). v6 (2026-10-15) Closing the loop: resolve_report, fixed_in_build on update_request; SDK 0.4.0 shows the reporter a one-time "Fixed"/"Shipped" card once their build has the fix. v5 (2026-10-15) SDK 0.3.0: attachments (Mizu.attachments, MizuAttachment), Mizu.event for the app's own steps, Mizu.shareDebug for a one-call "Share debug"; get_attachment tool; longer log lines. v4 (2026-10-15) "What setting up Mizu changes" for the human; --scope user in both connect commands; which path to use where /mcp isn't available; tool response shapes; upload limits; delete_report and dashboard deletion; privacy page and security.txt; LLM content off by default in release builds; URL path IDs redacted; ignoredHosts; FeatureGap prompt shown verbatim; SDK 0.2.0; no more hand-editing project.pbxproj. v3 (2026-10-15) Signup moved to the human (dashboard key or OAuth); the agent no longer creates accounts or handles sign-in emails. v2 (2026-10-15) Swift package published. v1 (2026-10-14) First version.