{
  "id": 11951124,
  "title": "I built a macOS screensaver that throws rubber ducks at you, directed by a local model",
  "url": "https://urgent.news/2026/10/04/i-built-a-macos-screensaver-that-throws-rubber-ducks-at-you-directed",
  "topic": "ai",
  "section": "AI",
  "published": "2026-10-04T15:35:28.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/dockndevai/i-built-a-macos-screensaver-that-throws-rubber-ducks-at-you-directed-by-a-local-model-5dmc"
  },
  "original_language": "en",
  "account": "A developer created a macOS screensaver called Mac Attack, which throws harmless effects like rubber ducks at people in the user's room. The screensaver runs as a normal app and as a real screensaver, with all processes happening on the Mac. Apple's Vision framework is used to detect and turn people into cartoon characters. The developer, Laya, is a non-autoregressive typed-decision model that processes body rectangles and provides calibrated probabilities for various actions. By using sampling instead of the top answer, the game feels more dynamic and unpredictable.\n\nThree key measurements were taken: 1) sampling beats argmax, 2) policy belongs in code, not in the prompt, and 3) measure the model you're actually running. Sampling from the calibrated distribution made the game feel more alive, while rewriting the questions to make rare options less likely helped prevent the game from becoming stagnant. Additionally, splitting the model's input into smaller questions increased the diversity of responses.\n\nThe challenge of creating a real screensaver was overcome by using a launchd agent to own the camera and serve anonymous person boxes on 127.0.0.1. The screensaver then polls the agent at 10 Hz, runs the game engine, and renders the effects. This architecture ensures the camera is only used when necessary and the screensaver remains fully functional even when the main application isn't running.\n\nMac Attack is currently an unsigned build, so Gatekeeper will prompt users to open it. The entire source code, architecture notes, and a detailed account of what worked and didn't during development can be found on GitHub.",
  "summary": "Mac Attack watches the room with the Mac camera, turns each person into a cartoon character, and fires harmless toy effects at them: bubbles, rubber ducks, tomatoes, confetti. It runs as a normal app and as a real macOS screensaver. Everything stays on the Mac. Apple's Vision framework produces body rectangles only (no face recognition), frames are processed and released, and nothing is uploaded.…",
  "key_points": [
    "Developer Laya created Mac Attack, a macOS screensaver",
    "Mac Attack throws rubber ducks and other harmless effects",
    "Vision framework detects people to turn them into cartoon characters"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}