# Kazuo AI Analytic

> Live performance analytics: FPS, per-process CPU/RAM, webview count (debug-only)

| | |
|---|---|
| Version | 1.0.0 |
| Category | Dev Tools |
| Depends on | ai-chat |

# Kazuo AI Analytic

Live performance analytics: FPS, per-process CPU/RAM, webview count (debug-only)

**Type:** `backend` — see `.claude/skills/kazuo-create-plugin/references/plugin-examples.md`

## Files

- `manifest.json` — metadata, `debugOnly: true` (only listed/loaded while app Debug Mode is on), `defaultWidgetConfig`
- `widget.html` / `js/widget.js` / `css/widget.css` — analytics panel: live FPS meter (renderer rAF) + per-process CPU/RAM table + process/webview counts, polled every 1.5s (pauses when hidden)
- `locales/en.json5` / `locales/vi.json5` — UI strings (unused by the panel; kept for future i18n)
- `main/index.ts` (+ compiled `main/index.js`) — runs in the Electron main process; exposes `plugin:kazuo-ai-analytic:metrics` returning `app.getAppMetrics()` + webview count

## Notes

- This plugin has no settings — it is a read-only diagnostic panel.
- `debugOnly` gating is enforced app-side: hidden from Plugin Manager, overlay, web store, and HTTP bridge, and its backend is not activated while Debug Mode is off.

## Test

Open Kazuo AI → Plugin Manager — this plugin appears automatically (the host scans `plugins-library/` on its own, no registration needed) → Install → Enable.

After editing `main/index.ts`, recompile before testing: `npx tsc -p tsconfig.plugins.json` (run from the project root).
