mushi-mushi 0.8.11 → 0.8.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Kenji Sakuramoto / Kensaurus 合同会社
3
+ Copyright (c) 2026 kensaurus LLC
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,21 +1,18 @@
1
1
  <div align="center">
2
2
 
3
- # mushi-mushi 🐛
3
+ # Mushi Mushi
4
4
 
5
- > **Your AI wrote it. Mushi tells you why it broke.**
5
+ > **Your AI wrote it. Mushi Mushi tells you why it broke.**
6
6
 
7
- Plain-English diagnosis + a paste-ready fix, right inside Cursor and Claude Code.
8
-
9
- **`mushi-mushi` is the one-command setup wizard.** It adds the Mushi SDK to the app you already have, so the next time a user hits a bug their report arrives explained, not as a stack trace to decode.
10
-
11
- One `npx` command. Works with React, Next.js, Vue, Nuxt, Svelte, SvelteKit, Angular, React Native, Expo, Capacitor, and vanilla JS.
7
+ A user says your app is broken. Mushi Mushi tells you why in plain English and hands the fix to Cursor, Claude Code or Lovable. No Sentry or monitoring needed.
12
8
 
13
9
  ```bash
14
- npx mushi-mushi # the setup wizard
15
- npx mushi-mushi setup --ide cursor # then connect your editor (any other command goes to @mushi-mushi/cli)
10
+ npx mushi-mushi
16
11
  ```
17
12
 
18
- [Launcher docs](https://kensaur.us/mushi-mushi/docs/sdks/launcher)
13
+ **[See a sample diagnosis →](https://kensaur.us/mushi-mushi/docs/demo/diagnosis)** No signup, nothing to install.
14
+
15
+ <sub>`mushi-mushi` is the setup command. It adds the Mushi Mushi SDK to the app you already have: React, Next.js, Vue, Nuxt, Svelte, SvelteKit, Angular, React Native, Expo, Capacitor, Node or plain JavaScript. [Launcher docs](https://kensaur.us/mushi-mushi/docs/sdks/launcher)</sub>
19
16
 
20
17
  [![npm](https://img.shields.io/npm/v/mushi-mushi?color=cb3837&label=mushi-mushi)](https://www.npmjs.com/package/mushi-mushi)
21
18
  [![npm downloads](https://img.shields.io/npm/dm/mushi-mushi?color=cb3837&label=downloads)](https://www.npmjs.com/package/mushi-mushi)
@@ -24,23 +21,23 @@ npx mushi-mushi setup --ide cursor # then connect your editor (any other comma
24
21
  [![Socket](https://socket.dev/api/badge/npm/package/mushi-mushi)](https://socket.dev/npm/package/mushi-mushi)
25
22
  [![Node](https://img.shields.io/node/v/mushi-mushi?color=339933&logo=node.js)](https://nodejs.org)
26
23
 
27
- <a href="https://kensaur.us/mushi-mushi/docs/connect" title="Try the read-only demo — no signup">
28
- <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/screenshots/report-detail-dark.png" alt="A real user-felt bug inside the Mushi admin — Plan / Do / Check / Act PDCA receipt across the top, the original user description, LLM classification (Confusing UX · Medium · 78% confidence · component = Dashboard/HeroCTA), environment + performance metrics, and a one-click Dispatch-fix CTA." width="860" />
24
+ <a href="https://kensaur.us/mushi-mushi/docs/demo/diagnosis" title="See a sample diagnosis: no signup">
25
+ <img src="https://raw.githubusercontent.com/kensaurus/mushi-mushi/master/docs/screenshots/report-detail-dark.png" alt="The Mushi Mushi console's report list: each user report with a plain-English summary, how serious it is and how sure Mushi Mushi is." width="860" />
29
26
  </a>
30
27
 
31
- <sub>↑ a real user report, fully classified and ready to dispatch as a GitHub PR · <a href="https://kensaur.us/mushi-mushi/docs/connect">try the read-only demo, no signup</a></sub>
28
+ <sub>↑ reports in the Mushi Mushi console, each with a plain-English summary. Click for one full sample diagnosis you can read without signing up.</sub>
32
29
 
33
30
  </div>
34
31
 
35
32
  ---
36
33
 
37
- ## What does it actually do? (60 seconds, no jargon)
34
+ ## What it does
38
35
 
39
- Your users open your app, something feels broken — a button that doesn't react, a page that takes forever, a layout that folds in half on their phone — and they leave. Your error tracker stays silent because nothing technically _crashed_.
36
+ Something in your app feels broken to a user: a button that doesn't react, a page that takes forever, a layout that folds on their phone. Often nothing crashed, so an error tracker stays quiet, and most people just leave.
40
37
 
41
- Mushi adds a small **"shake your phone (or click the bug)"** button. The user taps it, scribbles a note, and Mushi captures everything around the moment: a screenshot, the page they were on, what they were trying to do, and the last few seconds of network and console activity. An AI then reads that report, tags it with severity and category in plain English, groups it with similar reports so you see one row per actual bug, and (optionally) hands it off to another AI that opens a draft pull request with a proposed fix. **A human always reviews and merges** — the loop never bypasses you.
38
+ Mushi Mushi adds a small report button to your app (or shake-to-report on a phone). The user taps it and writes a note. Mushi Mushi saves a screenshot, the page, what they tapped, and the last console and network events. An AI explains the likely cause in plain English and groups repeat reports, so you see one row per real bug. Your editor gets a ready fix prompt. If you want, an agent opens a draft pull request, and you decide whether it merges.
42
39
 
43
- Founders, PMs, designers: see the [plain-language overview in the GitHub README](https://github.com/kensaurus/mushi-mushi#what-this-is).
40
+ Who it's for and where each group starts: [who it's for](https://kensaur.us/mushi-mushi/docs/who-its-for).
44
41
 
45
42
  ---
46
43
 
@@ -50,7 +47,7 @@ Founders, PMs, designers: see the [plain-language overview in the GitHub README]
50
47
  npx mushi-mushi
51
48
  ```
52
49
 
53
- The wizard detects your framework, installs the right SDK, writes env vars to `.env.local` (with the right prefix for your framework, such as `NEXT_PUBLIC_`, `NUXT_PUBLIC_`, `VITE_`, `EXPO_PUBLIC_`, `REACT_APP_` or `PUBLIC_`, or bare `MUSHI_*` names for servers and bare React Native), and prints the snippet to paste into your app. **Non-destructive**: never overwrites existing env vars, never edits your source.
50
+ The wizard signs you in through your browser, detects your framework, installs the right SDK, writes env vars to `.env.local` (with the right prefix for your framework, such as `NEXT_PUBLIC_`, `NUXT_PUBLIC_`, `VITE_`, `EXPO_PUBLIC_`, `REACT_APP_` or `PUBLIC_`, or bare `MUSHI_*` names for servers and bare React Native), prints the snippet to paste into your app, and offers to send a test report. It never overwrites an existing env var and never edits your source.
54
51
 
55
52
  ```tsx
56
53
  // After the wizard runs (React + Vite example, src/main.tsx):
@@ -66,91 +63,77 @@ createRoot(document.getElementById('root')!).render(
66
63
  )
67
64
  ```
68
65
 
69
- That's it. Your users now have a shake-to-report button (or a floating widget). Reports land in [your admin console](https://kensaur.us/mushi-mushi/), classified by an LLM within seconds.
66
+ Building in Lovable or Bolt, with no terminal? Paste one script tag through your prompt instead: [Mushi Mushi in Lovable or Bolt](https://kensaur.us/mushi-mushi/docs/quickstart/lovable-bolt).
67
+
68
+ Your users now have a report button. Reports land in [the console](https://kensaur.us/mushi-mushi/admin), each with a plain-English diagnosis. The free plan covers one app and 100 diagnoses a month, with no card and no AI key of your own ([pricing](https://kensaur.us/mushi-mushi/docs/pricing)).
69
+
70
+ Then connect your editor so it can read diagnoses, and ask it: *"Get the latest Mushi Mushi report and fix it."*
71
+
72
+ ```bash
73
+ npx mushi-mushi setup --ide cursor # or: claude, continue, zed
74
+ ```
75
+
76
+ For Cursor and Claude Code this writes the hosted server entry: the editor opens a browser sign-in on first use and no key is stored on disk. There is also a one-click button on the [connect page](https://kensaur.us/mushi-mushi/docs/connect).
70
77
 
71
78
  ---
72
79
 
73
80
  ## What you get
74
81
 
75
- - **Bug report widget** — Shadow-DOM, zero CSS conflicts. Ships with screenshot, console ring, network ring, route + intent capture, and an offline queue.
76
- - **AI-classified reports** — 2-stage pipeline (Haiku fast-filter → Sonnet deep + vision + RAG) tags each report with category, severity, confidence, and the component path. Stage 2 streams partial results to the admin UI as tokens arrive.
77
- - **Dedup by meaning, not by string** — pgvector knowledge graph collapses duplicate reports across users, routes, and deploys so your queue isn't a noise storm.
78
- - **Bidirectional inventory (v2)** — opt in to `capture: { discoverInventory: true }` and the SDK quietly observes routes, `data-testid`s, and outbound API paths in production. Claude drafts an `inventory.yaml` of user stories + pages + actions for you to accept — most teams will never hand-author one.
79
- - **Pre-release checks (v2)** — the ESLint rules `mushi-mushi/no-dead-handler` and `mushi-mushi/no-mock-leak` catch empty handlers and leftover mock data; the [Mushi Mushi CI Gate Action](https://github.com/kensaurus/mushi-mushi/tree/master/packages/mcp-ci) runs the server-side gates (API contract, status claims, orphan endpoints, unknown calls) on a PR and fails the step when one fails.
80
- - **Spec-traced fixes (v2.10)** — every dispatched fix carries the inventory `Action` it's meant to repair, the `expected_outcome` contract is rendered into the LLM prompt, a deterministic `validateAgainstSpec` gate fires before the PR opens, and a targeted synthetic probe runs the moment the PR lands.
81
- - **One-click "Dispatch fix"** — agentic orchestrator opens a GitHub PR with a screenshot diff and a Playwright replay. Sandbox-pluggable (`e2b`, `modal`, `cloudflare`, or your own).
82
- - **Standards-first integrator** — W3C `traceparent` end-to-end, Standard Webhooks signing on every outbound delivery, RFC-draft `Idempotency-Key` middleware, OAuth 2.0 Dynamic Client Registration, OTLP/HTTP+JSON BYOK exporter. You bring your own observability stack — Mushi never marks up tokens.
83
- - **Agent-native via MCP + A2A** — MCP Streamable HTTP at `/functions/v1/mcp`, A2A v1.0.0 tasks at `/v1/a2a/tasks` (pull SSE _and_ push notifications), Agent Card discovery, OpenAPI 3.1 spec. Cursor, Claude Code, Copilot, OpenAI Agents SDK, LangGraph, CrewAI all see the same surface.
82
+ - **A report button.** It renders in a Shadow DOM, so its CSS and yours never mix. Each report carries a screenshot the user can mark up or remove, the page, recent clicks, and the last console and network events. Reports wait offline and send when the connection is back.
83
+ - **A diagnosis for each report.** A fast filter drops spam first. Then a second AI pass names the likely cause, how serious it is, how sure it is, and the part of the app involved, in plain English.
84
+ - **One row per real bug.** Reports that mean the same thing are merged, even when users word them differently.
85
+ - **The fix in your editor.** Over MCP, Cursor or Claude Code reads the diagnosis and a fix prompt with the smallest set of files. Your editor's own model writes the fix, so this part needs no extra AI key.
86
+ - **Optional agent fixes.** An agent can open a draft pull request for you to review. On hosted Mushi Mushi the built-in fixer needs no key of your own; Cursor's agents need your Cursor key; or run fixes on your computer with the Mushi Mushi worker. With your own Anthropic key, a second AI reviews each one before it can merge.
84
87
 
85
88
  ---
86
89
 
87
90
  ## Who it's for
88
91
 
89
- | You are… | …and this helps because |
90
- | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
91
- | **A solo dev / small team** shipping a consumer app | You already have Sentry for crashes — but users drop off over _friction_, not exceptions. Mushi captures "this button doesn't do anything". |
92
- | **A PM or designer** living in the admin | Triage, severity, component ownership, and PR status — all in one dark-mode console. No reading stack traces. |
93
- | **An AI-native team** already using Cursor / Claude | MCP tools expose the whole loop to your agent. `get_recent_reports`, `triage_issue`, `dispatch_fix` — the same primitives your teammates use. |
94
- | **An enterprise** needing SOC 2 + residency | Region-pinned data (US / EU / JP / SELF), SAML SSO, audit-log ingest, DSAR workflow, HMAC-signed plugin webhooks. |
92
+ - **You build apps with AI, mostly on your own.** You use Lovable, Bolt, Cursor or Claude Code, and you didn't write most of the code by hand. A user's "it's broken" becomes a plain-English cause and a fix prompt.
93
+ - **You're a developer and you own your code.** You read the diffs and may run Sentry already. Reports and Sentry errors share one list, and agent pull requests get a second review before they merge.
94
+ - **You run a team.** Reports come from the app, Sentry, store reviews and Slack. They share one list, each with a diagnosis, and can go on to Linear, Jira or GitHub Issues.
95
+
96
+ Each group's pains and where to start: [who it's for](https://kensaur.us/mushi-mushi/docs/who-its-for).
95
97
 
96
98
  ---
97
99
 
98
- ## Mushi vs your existing stack
100
+ ## What else it does
99
101
 
100
- Mushi is a **companion** to Sentry/Datadog, not a replacement. It sees the bugs your crash tracker can't.
102
+ Most bugs never get reported, so Mushi Mushi can also look for them and check the fixes. Each of these is off until you switch it on, and several need your own key:
101
103
 
102
- | Scenario | Sentry / Datadog | **Mushi Mushi** |
103
- | --------------------------------------- | :--------------: | :-------------: |
104
- | Unhandled JS exception | ✅ | ✅ |
105
- | Button that _looks_ clickable but isn't | — | ✅ |
106
- | 12-second page load, no error thrown | — | ✅ |
107
- | User can't find the settings panel | — | ✅ |
108
- | Layout broken on iPad Safari only | — | ✅ |
109
- | Form submits but data doesn't save | ~ | ✅ |
110
- | Feature silently regressed last deploy | ~ | ✅ |
111
- | LLM-classified + deduped queue | — | ✅ |
112
- | One-click AI fix → draft GitHub PR | — | ✅ |
104
+ - A first-time user test: an AI that has never seen your app tries one goal and files where it got stuck (needs the Mushi Mushi worker on your computer).
105
+ - A second AI reviews every agent fix before it merges (needs your own Anthropic key).
106
+ - A watch on your live site every hour, and an audit of every page once a week (need your own Firecrawl key).
107
+ - A daily check of your lockfiles for known security holes (needs your GitHub repo connected).
108
+ - Your GitHub Actions bill explained, and whether a red check was your code or the CI machine (needs your GitHub repo; reading the bill needs a token that can see billing).
109
+ - Playbooks such as "make it accessible" that run in rounds of fix pull requests (need your own Cursor key or the worker).
110
+ - Low-star App Store and Google Play reviews turned into bug reports.
111
+ - Bug reports from your phone through Telegram, Slack or an iPhone shortcut.
113
112
 
114
- > Already have Sentry? Mushi writes breadcrumbs into your existing Sentry session so you can jump from a crash to the user's own words in one click.
113
+ What each one solves and needs: [what else it does](https://kensaur.us/mushi-mushi/docs/what-it-does).
114
+
115
+ ---
116
+
117
+ ## Why not just Sentry?
118
+
119
+ > **Sentry is built around what the code threw, with a User Feedback widget and
120
+ > replay alongside. Mushi Mushi starts from what the user reported, ingests Sentry's
121
+ > errors too, explains each one in plain English, and hands your agent a fix
122
+ > prompt to start from. One queue, with or without Sentry.**
123
+
124
+ Mushi Mushi catches the bugs that never throw: a button that looks clickable but isn't, a 12-second page load, a layout broken on one phone. It works without Sentry. If you run Sentry, point its alert webhook at Mushi Mushi and the errors land in the same list; merging a Mushi Mushi fix resolves the Sentry issue. Details: [Sentry vs Mushi Mushi](https://kensaur.us/mushi-mushi/docs/compare/sentry-vs-mushi).
115
125
 
116
126
  ---
117
127
 
118
128
  ## Integrates with
119
129
 
120
- **13 outbound plugins** — Mushi sends signals to whatever your team already lives in:
121
-
122
- <table>
123
- <tr>
124
- <td align="center" width="110"><b>GitHub</b><br/><sub>Auto-draft PRs<br/>+ Checks API</sub></td>
125
- <td align="center" width="110"><b>Sentry</b><br/><sub>Breadcrumb bridge<br/>+ session link</sub></td>
126
- <td align="center" width="110"><b>Slack</b><br/><sub>Block Kit<br/>+ /mushi cmd</sub></td>
127
- <td align="center" width="110"><b>Jira</b><br/><sub>OAuth 3LO<br/>bidir sync</sub></td>
128
- <td align="center" width="110"><b>Linear</b><br/><sub>Issue create<br/>+ status sync</sub></td>
129
- <td align="center" width="110"><b>PagerDuty</b><br/><sub>Severity-scoped<br/>escalation</sub></td>
130
- </tr>
131
- <tr>
132
- <td align="center" width="110"><b>Discord</b><br/><sub>Embed messages<br/>per channel</sub></td>
133
- <td align="center" width="110"><b>MS Teams</b><br/><sub>Adaptive cards<br/>+ on-call</sub></td>
134
- <td align="center" width="110"><b>GitHub Issues</b><br/><sub>Labels<br/>+ assignees</sub></td>
135
- <td align="center" width="110"><b>Bugsnag</b><br/><sub>Mirror + close<br/>on fix merge</sub></td>
136
- <td align="center" width="110"><b>Rollbar</b><br/><sub>Mirror + resolve<br/>on fix merge</sub></td>
137
- <td align="center" width="110"><b>Crashlytics</b><br/><sub>Push reports<br/>+ close</sub></td>
138
- </tr>
139
- <tr>
140
- <td align="center" width="110"><b>Zapier</b><br/><sub>Generic<br/>webhook fan-out</sub></td>
141
- <td align="center" width="110"><b>Cursor Cloud</b><br/><sub>Agentic draft<br/>PR dispatch</sub></td>
142
- <td align="center" width="110"><b>Cursor</b><br/><sub>via MCP<br/>server</sub></td>
143
- <td align="center" width="110"><b>Claude Code</b><br/><sub>via MCP<br/>server</sub></td>
144
- <td align="center" width="110"><b>OpenAI Agents</b><br/><sub>via A2A<br/>tasks</sub></td>
145
- <td align="center" width="110"><b>LangGraph</b><br/><sub>via A2A<br/>+ MCP</sub></td>
146
- </tr>
147
- </table>
148
-
149
- **11 inbound adapters** — Mushi receives alerts from your existing monitoring and turns them into the same triaged report rows as user-felt bugs:
150
-
151
- > Sentry · Datadog · Bugsnag · Rollbar · Firebase Crashlytics · New Relic · Honeycomb · Grafana Loki · AWS CloudWatch · Opsgenie · Firebase Analytics
152
-
153
- All of them ship in [`@mushi-mushi/adapters`](https://www.npmjs.com/package/@mushi-mushi/adapters) — drop them into any Node webhook server (Express / Fastify / Hono / serverless function).
130
+ Nothing needs to be ripped out. Bugs come in from the tools you already run, and fixes and status go back out to them.
131
+
132
+ **13 outbound plugins** send reports and status to: Slack, Discord, Microsoft Teams, Linear, Jira, GitHub Issues, PagerDuty, Sentry, Bugsnag, Rollbar, Crashlytics, Zapier and Cursor Cloud agents.
133
+
134
+ **11 inbound adapters** bring alerts from your monitoring into the same list as user reports: Sentry, Datadog, Bugsnag, Rollbar, Firebase Crashlytics, New Relic, Honeycomb, Grafana Loki, AWS CloudWatch, Opsgenie and Firebase Analytics. They ship in [`@mushi-mushi/adapters`](https://www.npmjs.com/package/@mushi-mushi/adapters) for any Node webhook server.
135
+
136
+ Editors connect over MCP: Cursor, Claude Code, VS Code, Windsurf, Cline, Claude Desktop, Zed and any other MCP client ([`@mushi-mushi/mcp`](https://www.npmjs.com/package/@mushi-mushi/mcp)).
154
137
 
155
138
  ---
156
139
 
@@ -158,57 +141,53 @@ All of them ship in [`@mushi-mushi/adapters`](https://www.npmjs.com/package/@mus
158
141
 
159
142
  | Framework | Install after wizard (automatic) |
160
143
  | ------------------------------- | ------------------------------------------------- |
161
- | React | `@mushi-mushi/react` |
162
- | Next.js | `@mushi-mushi/react` |
163
- | Vue 3 / Nuxt | `@mushi-mushi/vue` + `@mushi-mushi/web` |
164
- | Svelte / SvelteKit | `@mushi-mushi/svelte` + `@mushi-mushi/web` |
165
- | Angular 17+ | `@mushi-mushi/angular` + `@mushi-mushi/web` |
144
+ | React, Next.js, Create React App, Remix | `@mushi-mushi/react` |
145
+ | Vue 3 / Nuxt | `@mushi-mushi/vue` |
146
+ | Svelte / SvelteKit | `@mushi-mushi/svelte` |
147
+ | Angular 17+ | `@mushi-mushi/angular` |
166
148
  | React Native / Expo | `@mushi-mushi/react-native` |
167
149
  | Capacitor / Ionic | `@mushi-mushi/capacitor` |
168
- | Flutter / Dart | Git dependency — preview, not on pub.dev yet ([how](https://github.com/kensaurus/mushi-mushi/tree/master/packages/flutter#install)) |
169
- | iOS native (Swift) | SwiftPM from the repo — preview, not tagged yet ([how](https://github.com/kensaurus/mushi-mushi/tree/master/packages/ios#install)) |
170
- | Android native (Kotlin/Java) | Build from source — preview, not on Maven Central yet ([how](https://github.com/kensaurus/mushi-mushi/tree/master/packages/android#install)) |
171
- | Node (Express / Fastify / Hono) | `@mushi-mushi/node` (server-side error capture) |
172
- | Vanilla JS | `@mushi-mushi/web` |
150
+ | Astro, Solid, plain JavaScript | `@mushi-mushi/web` |
151
+ | Node (Express / Fastify / Hono) | `@mushi-mushi/node` (server-side errors) |
152
+ | Flutter / Dart | Git dependency, a preview, not on pub.dev yet ([how](https://github.com/kensaurus/mushi-mushi/tree/master/packages/flutter#install)) |
153
+ | iOS native (Swift) | SwiftPM from the repo, a preview, not tagged yet ([how](https://github.com/kensaurus/mushi-mushi/tree/master/packages/ios#install)) |
154
+ | Android native (Kotlin/Java) | Build from source, a preview, not on Maven Central yet ([how](https://github.com/kensaurus/mushi-mushi/tree/master/packages/android#install)) |
173
155
 
174
- Prefer to skip the wizard? `npm i @mushi-mushi/react` (or your framework's package) and wire it up by hand.
156
+ The Vue, Svelte and Angular packages bring `@mushi-mushi/web` with them. Prefer to skip the wizard? `npm i @mushi-mushi/react` (or your framework's package) and wire it up by hand.
175
157
 
176
158
  ---
177
159
 
178
160
  ## How the pipeline works
179
161
 
180
162
  ```
181
- User hits widget ──▶ screenshot + console + network + intent
163
+ User taps the report button ──▶ screenshot + page + clicks + console + network
182
164
  │
183
165
  ▼
184
- Fast-filter (Haiku) ──▶ drops spam, keeps signal
166
+ Fast filter ──▶ drops spam and empty reports
185
167
  │
186
168
  ▼
187
- Deep classify (Sonnet + vision + RAG) ──▶ category, severity, component
169
+ Diagnosis ──▶ likely cause, how serious, which part of the app, in plain English
188
170
  │
189
171
  ▼
190
- Dedup (pgvector) ──▶ groups repeat reports by meaning
172
+ Merge repeats ──▶ reports that mean the same thing become one row
191
173
  │
192
174
  ▼
193
- Judge (weekly) ──▶ scores classifier, retrains prompts
175
+ Your editor (MCP) ──▶ reads the diagnosis and the fix prompt
194
176
  │
195
177
  ▼
196
- "Dispatch fix" ──▶ agent opens a GitHub PR with Playwright replay + visual diff
178
+ Optional agent ──▶ opens a draft pull request; a second AI reviews it; you merge
197
179
  ```
198
180
 
199
- See the full loop in the [root README](https://github.com/kensaurus/mushi-mushi#the-diagnosis-loop).
181
+ The full picture: [how it works](https://github.com/kensaurus/mushi-mushi#how-it-works) and [the architecture](https://kensaur.us/mushi-mushi/docs/concepts/architecture).
200
182
 
201
183
  ---
202
184
 
203
- ## 30-second quick start
185
+ ## Other ways to run the wizard
204
186
 
205
187
  ```bash
206
- # 1. Drop the wizard in (or one of the equivalents below)
207
- npx mushi-mushi
208
-
209
- # equivalents:
210
- npm create mushi-mushi
211
- npx @mushi-mushi/cli init
188
+ npx mushi-mushi # this package
189
+ npm create mushi-mushi # the same wizard
190
+ npx @mushi-mushi/cli init # the same wizard, from the full CLI
212
191
  ```
213
192
 
214
193
  <details>
@@ -219,9 +198,10 @@ npx mushi-mushi --framework next # skip framework detection
219
198
  npx mushi-mushi --project-id <project-uuid> --api-key mushi_xxx
220
199
  npx mushi-mushi --skip-install # print the install command, don't run it
221
200
  npx mushi-mushi --skip-test-report # don't offer to send a test report
201
+ npx mushi-mushi --audit # health-check an existing install instead
222
202
  npx mushi-mushi --cwd apps/web # run inside a monorepo sub-package
223
203
  npx mushi-mushi --endpoint https://mushi.your-company.com # self-hosted
224
- npx mushi-mushi -y # accept the detected framework
204
+ npx mushi-mushi -y # take the defaults (needed in CI and AI-agent shells)
225
205
  npx mushi-mushi -v # print version
226
206
  npx mushi-mushi --help
227
207
  ```
@@ -247,23 +227,23 @@ npx mushi-mushi --help
247
227
  - `~/.config/mushi/config.json` (the credentials cache) is written with mode `0o600` on Unix; legacy `~/.mushirc` auto-migrates on first load.
248
228
  - The wizard strips CR/LF/NUL from pasted secrets to prevent `.env` injection.
249
229
  - Prompts validate format: the project ID is a UUID (or `proj_` + 10 or more characters), and the API key starts with `mushi_` or `mush_pk_` followed by 10 or more characters.
250
- - This release ships with [npm provenance](https://docs.npmjs.com/generating-provenance-statements) — verify with `npm audit signatures`.
230
+ - This release ships with [npm provenance](https://docs.npmjs.com/generating-provenance-statements). Verify it with `npm audit signatures`.
251
231
 
252
232
  </details>
253
233
 
254
234
  <details>
255
235
  <summary><b>Supply-chain & verification (Socket, Bundlephobia, Snyk)</b></summary>
256
236
 
257
- Mushi is a CLI launcher — it spawns one `npm install` and appends a small multi-line `MUSHI_*` env block to `.env.local` (or `.env` when `.env.local` does not exist). Here's what each scanner shows and why:
237
+ `mushi-mushi` is a CLI launcher. It spawns one `npm install` and appends a small multi-line `MUSHI_*` env block to `.env.local` (or `.env` when `.env.local` does not exist). Here's what each scanner shows and why:
258
238
 
259
239
  | Scanner | What it shows | What it actually means |
260
240
  | ------------------ | --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
261
- | **npm provenance** | ✅ Signed by `kensaurus/mushi-mushi @ master` | Cryptographic Sigstore attestation — `npm audit signatures` will verify this build came from this exact commit on this exact CI workflow. |
241
+ | **npm provenance** | Signed by `kensaurus/mushi-mushi @ master` | Cryptographic Sigstore attestation — `npm audit signatures` will verify this build came from this exact commit on this exact CI workflow. |
262
242
  | **Socket.dev** | Score + a few low-signal alerts | Alerts are expected and benign: `child_process` (used to invoke `npm install` and to forward other commands to `@mushi-mushi/cli`), `process.env` (read `DEBUG`, `npm_config_*`), URL strings (printed in help text). The launcher is `src/index.ts`, about 120 lines; the wizard it runs is `src/init.ts` in `@mushi-mushi/cli`. |
263
- | **Bundlephobia** | ❌ EntryPointError | **Expected.** This is a CLI (`bin` only — no `main`/`module`/`exports`), so there is no importable bundle to measure. Bundlephobia only works for libraries you `import`. |
243
+ | **Bundlephobia** | EntryPointError | **Expected.** This is a CLI (`bin` only — no `main`/`module`/`exports`), so there is no importable bundle to measure. Bundlephobia only works for libraries you `import`. |
264
244
  | **Snyk Advisor** | Health score (lower right after publish) | Snyk's crawler often lags by 1–2 weeks for new public packages — score corrects itself once it picks up the actual `package.json` (repository links, downloads, repo activity). |
265
245
 
266
- If something looks off to you, [open an issue](https://github.com/kensaurus/mushi-mushi/issues) — the source is 100% public and the CI build is reproducible.
246
+ If something looks off to you, [open an issue](https://github.com/kensaurus/mushi-mushi/issues). The source is 100% public and the CI build is reproducible.
267
247
 
268
248
  </details>
269
249
 
@@ -271,7 +251,7 @@ If something looks off to you, [open an issue](https://github.com/kensaurus/mush
271
251
 
272
252
  ## Power-user CLI
273
253
 
274
- `mushi-mushi` runs the setup wizard and forwards any other command to `@mushi-mushi/cli` (`npx mushi-mushi reports list` works). For day-to-day triage, install the full CLI to get a `mushi` command:
254
+ `mushi-mushi` runs the setup wizard and forwards any other command to `@mushi-mushi/cli` (`npx mushi-mushi reports list` works). For daily use, install the full CLI to get a `mushi` command:
275
255
 
276
256
  ```bash
277
257
  npm i -g @mushi-mushi/cli
@@ -279,10 +259,12 @@ mushi reports list
279
259
  mushi reports show <id>
280
260
  mushi reports triage <id> --status triaged --severity high
281
261
  mushi deploy check # post-deploy smoke check
282
- mushi status # live pipeline health
262
+ mushi doctor # what is wired up, and the next step when it isn't
283
263
  ```
284
264
 
285
- For the **v2 inventory + gates** loop the actionable surface is the GitHub Action — drop one job into your repo and it runs Claude's proposer / the gate suite / the discovery digest on every PR:
265
+ All commands: [`@mushi-mushi/cli`](https://www.npmjs.com/package/@mushi-mushi/cli).
266
+
267
+ **Pre-release checks in CI (early).** A GitHub Action runs Mushi Mushi's checks on a pull request, such as API calls that match no endpoint or a status the app claims but never sets. These checks sit behind the `inventory_v2` plan flag. The dead-handler and mock-leak checks also need an ESLint JSON report (`eslint-report`); see the [action's README](https://github.com/kensaurus/mushi-mushi/tree/master/packages/mcp-ci).
286
268
 
287
269
  ```yaml
288
270
  # .github/workflows/mushi-gates.yml
@@ -293,26 +275,21 @@ For the **v2 inventory + gates** loop the actionable surface is the GitHub Actio
293
275
  command: gates # also: propose · discover-api · discovery-status · auth-bootstrap
294
276
  ```
295
277
 
296
- The same commands are exposed as MCP tools through [`@mushi-mushi/mcp`](https://www.npmjs.com/package/@mushi-mushi/mcp), so Cursor / Claude Code / Copilot can drive the v2 loop without you ever opening a terminal.
297
-
298
- Or skip the CLI entirely and drive it from your AI agent via [`@mushi-mushi/mcp`](https://www.npmjs.com/package/@mushi-mushi/mcp):
299
-
300
- ```json
301
- { "mcpServers": { "mushi": { "command": "npx", "args": ["-y", "@mushi-mushi/mcp"] } } }
302
- ```
278
+ Prefer to work from your editor instead of a terminal? `npx mushi-mushi setup --ide cursor` (or `claude`, `continue`, `zed`) connects [`@mushi-mushi/mcp`](https://www.npmjs.com/package/@mushi-mushi/mcp), and the same reads and actions become tools your editor can call. Its README covers a manual config for any other MCP client.
303
279
 
304
280
  ---
305
281
 
306
282
  ## Links
307
283
 
308
- - 🌐 **[Read-only demo](https://kensaur.us/mushi-mushi/docs/connect)** — read a real diagnosis in your editor, no signup
309
- - 📦 **[GitHub](https://github.com/kensaurus/mushi-mushi)** — source, architecture, self-hosting
310
- - 📚 **[Docs](https://kensaur.us/mushi-mushi/docs/)** — quickstart, concepts, API reference
311
- - 🐛 **[Report a bug](https://github.com/kensaurus/mushi-mushi/issues)** — eat your own dogfood
284
+ - **[Sample diagnosis](https://kensaur.us/mushi-mushi/docs/demo/diagnosis)**: one bug from report to fix prompt, no signup
285
+ - **[Live numbers](https://kensaur.us/mushi-mushi/docs/proof)**: what Mushi Mushi found and fixed on the maker's own apps, with people's reports counted apart from its own checks
286
+ - **[GitHub](https://github.com/kensaurus/mushi-mushi)**: source, architecture, self-hosting
287
+ - **[Docs](https://kensaur.us/mushi-mushi/docs/)**: quickstarts, concepts, API reference
288
+ - **[Report a bug](https://github.com/kensaurus/mushi-mushi/issues)** in Mushi Mushi itself
312
289
 
313
290
  ## License
314
291
 
315
- MIT © [Kenji Sakuramoto](https://github.com/kensaurus). Backend packages (`@mushi-mushi/server`, `agents`, `verify`) are [AGPLv3](https://github.com/kensaurus/mushi-mushi/blob/master/packages/server/LICENSE) — copyleft; modified SaaS publishes changes or takes a [commercial license](https://github.com/kensaurus/mushi-mushi/blob/master/COMMERCIAL-LICENSE.md).
292
+ MIT © [Kenji Sakuramoto](https://github.com/kensaurus). Backend packages (`@mushi-mushi/server`, `agents`, `verify`) are [AGPLv3](https://github.com/kensaurus/mushi-mushi/blob/master/packages/server/LICENSE): if you offer a modified server as a service, publish your changes or get a [commercial license](https://github.com/kensaurus/mushi-mushi/blob/master/COMMERCIAL-LICENSE.md).
316
293
 
317
294
  ## More apps from the same maker
318
295
 
@@ -334,4 +311,4 @@ All apps live under [kensaur.us](https://kensaur.us).
334
311
  <!-- mushi-readme-stats-footer -->
335
312
  ---
336
313
 
337
- <sub>Monorepo scale (July 2026): 77 edge functions · 527 SQL migrations · 13 outbound plugins · 11 inbound adapters · 19 pipeline agents. Canonical counts: <a href="https://github.com/kensaurus/mushi-mushi/blob/master/docs/stats.md">docs/stats.md</a> · <code>pnpm docs-stats</code></sub>
314
+ <sub>Monorepo scale (October 2026): 77 edge functions · 550 SQL migrations · 13 outbound plugins · 11 inbound adapters · 19 pipeline agents. Canonical counts: <a href="https://github.com/kensaurus/mushi-mushi/blob/master/docs/stats.md">docs/stats.md</a> · <code>pnpm docs-stats</code></sub>
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  assertNodeVersion,
10
10
  FLAGS_HELP
11
11
  } from "@mushi-mushi/cli/wizard-args";
12
- var VERSION = true ? "0.8.11" : "0.0.0-dev";
12
+ var VERSION = true ? "0.8.13" : "0.0.0-dev";
13
13
  var BIN = "mushi-mushi";
14
14
  var ISSUES_URL = "https://github.com/kensaurus/mushi-mushi/issues";
15
15
  var HELP = `mushi-mushi \u2014 bug-reporting SDK launcher
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "mushi-mushi",
3
- "version": "0.8.11",
3
+ "version": "0.8.13",
4
4
  "license": "MIT",
5
- "description": "One command adds a bug report widget to any app. The bug mediator for AI-built apps: plain-English diagnosis + a ready fix, in your editor.",
5
+ "description": "One command adds a bug report widget to any app. Bug fixing for AI-built apps: plain-English diagnosis + a ready fix, in your editor.",
6
6
  "bin": {
7
7
  "mushi-mushi": "./dist/index.js"
8
8
  },
9
9
  "dependencies": {
10
- "@mushi-mushi/cli": "^0.35.0"
10
+ "@mushi-mushi/cli": "^0.36.0"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^22.20.0",