When I started shipping frontend and desktop UI changes daily with Claude Code and Cursor, half my time didn't go into logic — it went into describing where a bug lived.

Either I typed a paragraph like "widen the second gray button next to the filter dropdown without touching the header" (and watched the agent grep the wrong file and refactor 300 unrelated lines), or I pasted full-screen PNG screenshots that burned ~1,600 context tokens per turn.

So I built DingCode — a small, local-first native screen-pin tool (885 KB Apple-notarized Swift + AppKit on macOS, native WPF on Windows, plus Linux) paired with a zero-dependency Python standard-library stdio MCP server.

What actually fixed the workflow

1. Screenshots OFF by default (~96 tokens vs ~1,600)

90% of UI polish bugs (clipped button labels, spacing, alignment, copy fixes, tabular numbers) do not need a full-screen image. When you hit ⌥⌘A (Ctrl+Alt+A on Windows) and click the broken element, DingCode sends four compact structured fields:

  • App & window title
  • Exact click pixel coordinates
  • Nearby on-device OCR text (Apple Vision on macOS / Windows OCR)
  • DOM selector (via the browser bridge when pinning a webpage)

You only toggle the camera icon on when visual layout truly requires a crop.

2. Built-in zero-dependency stdio MCP server (dingcode mcp)

You don't need 40 npm packages to ship a reliable local MCP server. DingCode's stdio MCP server is written in pure Python stdlib (zero pip install), exposing handoff payloads, open pins, and mark_fixed directly to Claude Code, Cursor, Codex, and Gemini CLI.

(Hardest bug while building it: accidentally letting one stray print() write to stdout and breaking JSON-RPC framing — keep every log strictly on stderr!)

3. Five anti-refactor guardrails on every handoff

Every pin automatically prepends five strict scope rules so your agent makes a surgical 3-line diff instead of rewriting half the module:

  1. Smallest change that fixes the pin
  2. Follow repo conventions first
  3. Touch only pinned element code
  4. No new dependencies unless explained
  5. Explain diff & verification

Why a separate desktop app instead of IDE sidebar comments or DevTools MCP?

  1. OS-wide across any app: IDE comments live inside one editor's embedded preview. DingCode works over Safari, Chrome, Figma, native Swift/WPF/Electron desktop apps, internal ERPs, and remote desktops.
  2. Agent-neutral: One global hotkey and MCP server works across Claude Code, Cursor, Codex, Gemini CLI, and Antigravity.
  3. Built for non-coding teammates: PMs, QA, and designers don't install an IDE. With DingCode Team, they paste a 1-click DCT1 invite code, pin staging bugs, and the lead dev pulls one triaged batch via MCP and closes it with the fix commit SHA.

Try it right now (no install needed)

 brew install --cask hoverwr-bit/tap/dingcode 

Full disclosure: the core screen-pin tool, browser bridge, MCP server, and notarized macOS build are MIT open-source and free. There is also an optional $19 one-time Pro tier (offline Ed25519 keys, zero telemetry, spotlight/voice/OCR redaction/rollback) and $9/seat self-hosted Team mode.

Would love blunt feedback from anyone shipping UI with Claude Code or Cursor — how are you pointing your agents at UI bugs today?