📱

SnapDebug

on-device bug triage · local inference

Paste error / stack trace / code

🔴 Red Light · phone-only
Sample bugs:

Office Kit · Green Light hand-off

🟢 Green Light · laptop session

Flagged issues become a reviewable patch branch. Scan + flag on the phone, review + push from the laptop.

Nothing flagged yet — run a scan and tap ⚑ Flag for Office Kit.

Demo engine → real on-device model

heuristic stand-in

This demo ships a deterministic rule engine so the product flow is testable in any browser. The 30-hour build replaces it with a quantized LLM running on-device — no network calls at any point.

Target stack

  • Android: MediaPipe LLM Inference API + Gemma 2B / Gemma 3 1B int4 on the Snapdragon NPU / GPU delegate
  • iPhone: Core ML + MLX (Apple Neural Engine), e.g. Llama-3.2-1B-Instruct 4-bit
  • Cross-device: ONNX Runtime Mobile with a quantized SmallSLM

Budget on a 30-hour build

  • ~6h · model wired up, warm load, NPU delegate verified (highest-value item)
  • ~6h · constrained decode → JSON triage {root_cause, one_line_fix, patch}
  • ~8h · SnapScan UI + samples + offline hardening
  • ~6h · Office Kit hand-off (this demo's shape)
  • ~4h · rehearse the 3-minute demo

One prompt to make it real

SYSTEM: You are an offline bug-triage assistant running entirely on this phone.
Return ONLY minified JSON: {"root_cause": "...", "one_line_fix": "...", "patch": "unified diff or empty"}
Never suggest cloud services or network calls.

USER: <paste error / stack / snippet>