Demos
Demo prompts
81 prompts, word for word. Each one was run through SiliconDevKit to make a real Mac app. Read the prompt, then open the app page to download it.
Starter demos
The five prompts free accounts can build.
Prompt
Build a macOS app called Agent Swarm. It detects which AI command-line tools are installed on this Mac: claude, gemini and hermes. Check common install folders (/opt/homebrew/bin, /usr/local/bin, ~/.local/bin, ~/.npm-global/bin, ~/.hermes/bin) and also ask a login shell (zsh -lc 'command -v <tool>'), because apps opened from Finder do not inherit the shell PATH. Show each tool with a green or grey status dot. The user types one task; the app sends it to every detected tool at the same time, non-interactively with these commands: claude -p "<task>", gemini -p "<task>", hermes chat -q "<task>". Run them with Process using the login shell so each tool's own login is used, and stream each tool's output into its own side-by-side column. Show a clear 'not installed' message for missing tools, a Stop button, and a Copy button per column. Do not ask for API keys.
Prompt
Build a menu bar app called ClipShelf that remembers the last 50 things I copied. Show them in a popover list, newest first, with a search field. Clicking an item copies it back to the clipboard. Poll NSPasteboard for changes, skip duplicates, keep it text-only, and add a Clear all button and a Quit button. No Dock icon.
Prompt
Build a menu bar app called AppPulse that shows total CPU use in the menu bar. Its popover shows a live list of running apps with their CPU percent and memory, grouped by app instead of by process, sorted by CPU, refreshed every 2 seconds. Use NSWorkspace for app names and icons and the ps command for the numbers. Add a Quit button. No Dock icon.
Prompt
Build a Markdown notes app called Scribe. A sidebar lists notes saved as .md files in ~/Documents/Scribe (create the folder on first launch). The main area has a text editor with a live rendered Markdown preview side by side, autosave, and buttons to create, rename and delete notes. Add an Always on top toggle in the toolbar.
Prompt
Build an app called Dither Dunes: a window that renders a slowly animating black-and-white dithered landscape of rolling dunes with a sun, using SwiftUI Canvas and ordered Bayer dithering at a chunky pixel scale, at 30 fps. Add toolbar buttons for pause and full screen, and a palette picker with mono, amber and green.
Vision
Prompt
Build a menu bar app called Cutout that removes image backgrounds on-device. Clicking the menu bar icon opens a popover with a large drop zone that accepts image files dragged from Finder or the browser, plus a Choose File button and paste from the clipboard. Use the Vision framework: VNGenerateForegroundInstanceMaskRequest on macOS 14 and later (isolate all subjects or tap an object to keep only that one), and VNGeneratePersonSegmentationRequest as the fallback on macOS 13. Show the result as a cutout on a checkerboard background, with a before and after toggle, an edge feather slider and a background color picker (transparent, white, black, custom). Add buttons to copy the cutout PNG to the clipboard and to save it as a transparent PNG. Everything runs locally, nothing is uploaded.
Prompt
Build a macOS app called Vanish, a magic eraser for photos. Open an image by drag and drop or the Open button. Show it on a canvas with a second transparent layer where the user paints a mask with a round brush: a brush size slider, a feather slider, undo and redo (Cmd+Z and Shift+Cmd+Z), zoom with a pinch and a Clear mask button. An Erase button removes the masked pixels and fills them from the surrounding image using an inpainting algorithm written in Swift with Accelerate (a fast diffusion fill for small areas, plus patch-based texture copying from nearby pixels for larger ones), run on a background queue with a progress indicator. Show a before and after comparison, support several erase passes in a row, and add Save as PNG and Copy to clipboard buttons. Everything runs locally.
Prompt
Build a macOS app called Trace that converts raster images (logos, hand-drawn sketches, icons, pixel art) into SVG vector files. Drop an image onto the window. Write the tracer in Swift: reduce the colors with k-means (a color count slider from 2 to 32, plus a Black and white mode), trace each color layer into closed contours with marching squares, simplify them with the Ramer-Douglas-Peucker algorithm and fit smooth Bezier curves, and write layered paths into an SVG with a configurable decimal precision (this replaces an SVG optimizer). Controls: color count, detail (speckle filter), smoothness and a corner threshold. Show a split-view comparison slider with the original on one side and the traced SVG on the other (render the SVG with WKWebView), the file size of both, and buttons to save the .svg and copy the SVG code. Everything runs locally.
Prompt
Build a macOS app called Upsize that enlarges low-resolution images. Drop an image on the window and pick 2x or 4x. Use Core Image: CILanczosScaleTransform followed by edge-aware sharpening (CIUnsharpMask and CISharpenLuminance) and a light noise reduction pass (CINoiseReduction), with a mode picker for Photo (smooth, natural), and Pixel art and graphics (nearest-neighbor scale, then clean up edges). Process large images in 256 by 256 tiles with a 16 pixel overlap so memory stays low, with a progress bar and a Cancel button. Show an interactive Before and After split slider that you can drag, with the output size in pixels and megabytes, and save the result as PNG or JPEG. Be honest in the UI that this is a classic scaler with sharpening, not an AI model. Everything runs locally.
Prompt
Build a macOS app called Docket that turns invoices, receipts and forms into structured data, all on this Mac. Drag and drop PDFs and images (PNG, JPEG, HEIC, TIFF) or whole folders onto the window to build a batch queue with a status and a progress bar per file. Read each file locally: PDFKit text for digital PDFs, and the Vision framework (VNRecognizeTextRequest, accurate level) for scans and images, rendering PDF pages to images when needed. Extract the fields with rules written in Swift that use NSDataDetector, NaturalLanguage and regular expressions: vendor name, invoice or receipt number, date, due date, currency, subtotal, tax, total, and line items (description, quantity, unit price, amount) found by grouping the recognized text boxes into table rows. Show a split review screen: the document on the left with the detected fields outlined, and on the right an editable form and line-item table with a confidence badge per field (low-confidence ones in orange), plus Next and Previous buttons so a person can approve a whole batch quickly. Let the user add custom fields, each with a name and a regular expression or a keyword to look for, saved as JSON. Export the approved documents as CSV (one row per document, or one row per line item), JSON, and Excel (.xlsx, written as SpreadsheetML inside a zip created with /usr/bin/zip), and add a Copy as TSV button for pasting into a spreadsheet. Show batch totals and flag likely duplicates (same vendor, number and total). Say in the UI that extraction is rule-based and runs offline, and that nothing is uploaded.
Prompt
Build a macOS app called Screen Guide that shows you where to click. The user types a goal such as "export this as PDF" and presses Return. The app captures the frontmost window with ScreenCaptureKit (ask for Screen Recording permission, with a first-run explainer and a button that opens System Settings), reads the text on it with the Vision framework, and also reads the interface elements of the frontmost app with the Accessibility API (AXUIElement: buttons, menu items, text fields, their titles and frames, needs the Accessibility permission, explain it first). It then asks a local language model which element to use next: Ollama at http://localhost:11434/api/chat (model picked from /api/tags, and when a vision model such as llama3.2-vision or llava is chosen, send the screenshot as a base64 image too), or LM Studio's OpenAI-compatible server at http://localhost:1234/v1. The reply names an element from the list and gives a one-line explanation. Draw a pulsing ring around that element on a transparent click-through full-screen overlay window, and show the explanation in a small card next to it. Add Next step, which captures again and continues towards the goal, a history of steps for the current goal, and a Stop button. A global hotkey (Control+Option+G, registered with Carbon RegisterEventHotKey) opens the goal box from any app. If no model server is running, still list the detected elements and let the user pick one to highlight, and say what to install to get suggestions. Screenshots are processed in memory only and are never saved or sent anywhere except to the model server the user chose on this Mac. No Dock icon.
View app: Screenshot + AutoBlurScreenshot + AutoBlur
Hide emails, keys and names in a screenshot before you share it.
Prompt
Build a menu bar app called SaferScreenshot that automatically detects and redacts sensitive information from screenshots entirely on-device. Clicking the menu bar icon opens a popover with a drop zone that accepts screenshot files dragged from Finder or the browser, a Choose File button, and support for pasting directly from the clipboard or capturing a selected screen area via a shortcut. Use on-device Apple frameworks: run Vision's VNRecognizeTextRequest (OCR) paired with NSDataDetector and regex pattern matching to identify sensitive text (emails, phone numbers, street addresses, credit cards, API keys, passwords, and tokens). Combine this with Apple's NaturalLanguage framework (NLTagger) to extract personal names. Detect bounding boxes around sensitive tokens and overlay adjustable redactions (solid black bars, pixelation, or heavy gaussian blur). Show the result in an interactive preview window where users can click detected boxes to toggle them on or off, drag custom redaction rectangles over unflagged areas, and toggle a before-and-after view. Add buttons to copy the sanitized image directly to the clipboard or export it as a clean PNG/JPEG. Everything processes locally with zero network calls and no cloud uploads.
View app: Screenshot + EasyBlurScreenshot + EasyBlur
Find every object in a screenshot and blur any of them with one click. Sensitive text is still hidden automatically.
Prompt
Build a menu bar app called SaferScreenshot that automatically detects and redacts sensitive information from screenshots entirely on-device. Clicking the menu bar icon opens a popover with a drop zone that accepts screenshot files dragged from Finder or the browser, a Choose File button, and support for pasting directly from the clipboard or capturing a selected screen area via a shortcut. Use on-device Apple frameworks: run Vision's VNRecognizeTextRequest (OCR) paired with NSDataDetector and regex pattern matching to identify sensitive text (emails, phone numbers, street addresses, credit cards, API keys, passwords, and tokens). Combine this with Apple's NaturalLanguage framework (NLTagger) to extract personal names. Detect bounding boxes around sensitive tokens and overlay adjustable redactions (solid black bars, pixelation, or heavy gaussian blur). Show the result in an interactive preview window where users can click detected boxes to toggle them on or off, drag custom redaction rectangles over unflagged areas, and toggle a before-and-after view. Add buttons to copy the sanitized image directly to the clipboard or export it as a clean PNG/JPEG. Everything processes locally with zero network calls and no cloud uploads.
Prompt
build an "ai screenshot -> site builder" mac app. see the chat log below: could "AI Screenshot → Website" be done with a real time view of the build as it builds? Yes. That would actually make the idea much better. You could have a split-screen UI: Left: uploaded screenshot Right: live browser preview As the AI works: Analyzing screenshot... ↓ Creating layout... ↓ Writing HTML/CSS... ↓ Rendering header... ↓ Matching typography... ↓ Adjusting spacing... ↓ Matching colors... The preview updates continuously as the AI edits the code, so the user watches the website being reconstructed in real time. Technically, this is very feasible with a local HTML/CSS/JS sandbox + live preview, while Apple's on-device AI handles the reasoning/code generation.
View app: AirPainterAirPainter
Paint in the air: pinch your fingers in front of the webcam and your strokes glow on the screen.
Prompt
Build a native Mac app called AirPainter. You paint in the air in front of the webcam: pinch your thumb and finger to draw, open your hand to stop, and your strokes glow on the screen over your own picture. Save the result as an image or a short video. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Do not rely on memory. Read Apple's documentation for: (1) AVCaptureSession with AVCaptureVideoDataOutput and the camera permission (NSCameraUsageDescription); (2) Vision hand pose: VNDetectHumanHandPoseRequest (maximumHandCount, joint names thumbTip, indexTip, wrist, middleTip, chirality, confidence, normalised coordinates with origin bottom left, buffer orientation and mirroring); (3) drawing many smooth strokes fast: Core Graphics paths in a CALayer, or SpriteKit, or Metal; Catmull-Rom or quadratic smoothing between points; a glow made with a blurred copy or CIBloom; (4) AVAssetWriter with AVAssetWriterInputPixelBufferAdaptor for recording the composed frames; NSSavePanel; (5) smoothing noisy points (a One Euro filter). Where a page disagrees with this prompt, follow the page and say what changed. HOW IT WORKS - The window shows the mirrored live camera picture (dimmed with a slider, or fully replaced by a black or white canvas) with the painting on top. - Pinch (thumb tip to index tip distance below a threshold relative to hand size, with hysteresis so it does not flicker) = pen down; the pen position is the midpoint of the two tips, smoothed. Open hand = pen up. Show a ring cursor at the pen position, filled when the pen is down. - Stroke width follows the hand's distance from the camera (the hand's size in the picture, wrist to middle finger knuckle, smoothed): closer = thicker. A switch can turn this off and use a width slider instead. - Colors: a palette strip; a quick gesture changes color: open the left hand with all fingers spread and hold for half a second to cycle to the next color (and a normal click on the palette also works). Neon glow on or off. - Undo stroke (Command-Z), Clear (confirmation), and a "Fade out" option where strokes fade away after N seconds. - Save Image (PNG with the painting only on a transparent background, or with the camera picture) and Record Video (the composed window picture to an .mp4 in the Movies folder, with a red dot and timer). - Mouse fallback: drawing with the mouse works too, so the app is usable and testable without the camera. - Tracking lost: lift the pen, never draw a straight jump line across the canvas. PRIVACY - Say on the first-run screen that the picture is analysed live and never saved or sent unless the user saves it, and that there is no network code. A clear message with a System Settings button when the camera is denied. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Only Apple frameworks, no packages, no Xcode project or asset catalog. Modular: CameraSource, HandTracker, StrokeModel (points, widths, colors, smoothing), CanvasRenderer, Recorder and the views. Vision on its own queue, publish to the main thread, drop frames instead of queuing them. Friendly errors with a Show Details box. - The code is compiled later on the user's Mac, not here: check every initializer, argument label and optional, with no force-unwraps. Do not fake anything. - In your reply, say in a few sentences what you built, what the lookups changed, and what you could not test: the camera, pinch reliability, the colour gesture, the recording and drawing speed were not run.
View app: Cutout CamCutout Cam
Remove or replace the background of your webcam, live or in a video you already have. All on your Mac.
Prompt
Build a native Mac app called Cutout Cam. It records the webcam and removes or replaces the background, live while you record or afterwards on any video file. Pick a blur, a color, a picture or a transparent background, and export a finished video. Works on macOS 13 and later. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Do not rely on memory. Read Apple's documentation for: (1) AVCaptureSession with AVCaptureVideoDataOutput, AVCaptureAudioDataOutput, camera and microphone permissions (NSCameraUsageDescription, NSMicrophoneUsageDescription), camera and microphone pickers; (2) Vision person segmentation: VNGeneratePersonSegmentationRequest and its quality levels (fast, balanced, accurate), the output mask pixel buffer and its size, and what macOS version each needs (check macOS 13 support); also whether VNGenerateForegroundInstanceMaskRequest is available on macOS 14 and later as a higher quality option for post-processing; (3) Core Image compositing: CIFilter blendWithMask (CIBlendWithMask), scaling the mask to the frame size, edge softening with CIGaussianBlur or CIMorphology, temporal smoothing of the mask between frames to stop flicker, CIGaussianBlur for a blurred background, rendering into CVPixelBuffer with a Metal CIContext; (4) AVAssetWriter with AVAssetWriterInputPixelBufferAdaptor for H.264 (.mp4) and for HEVC with alpha (.mov) when the background is transparent, plus audio input; (5) AVAssetReader and AVAssetReaderTrackOutput for reading frames of an existing video; (6) AVAssetWriterInput timing for syncing audio and video. Where a page disagrees with this prompt, follow the page and say what changed. TWO MODES (a tab each) 1. Record: a live preview with the background effect applied. Background choices: None, Blur (strength slider), Solid color (color picker), Picture (choose an image; fill/fit), and Transparent (shown on a checkerboard). A Quality choice (Fast for live use, Balanced, Accurate) with the measured frames per second shown, and a hint to choose Fast if the preview is slow. Record and Stop: the file is saved in the Movies folder as Cutout Cam <date>. With a transparent background the file is HEVC with alpha (.mov); otherwise H.264 .mp4. Microphone on/off with a level meter. Also save the original unprocessed take as a second file when "Keep the original" is on, so the user can re-process it later with a better setting. 2. Process a video: drag a video file in (or Open...). Pick the background effect as above and the quality (use the most accurate request that exists on this macOS; state which), process frame by frame on a background queue with a progress bar, a time estimate and Cancel, keep the original audio, and export. A "Preview" scrubber shows the effect on the frame at the playhead before the whole video is processed. - Mask quality controls: Edge softness, Edge shrink/grow, and "Reduce flicker" (temporal smoothing). A "Show the mask" toggle for debugging the cutout. - Mirror switch for the live preview only (recordings are not mirrored unless chosen). - Show in Finder after saving. Save presets of the settings. HONESTY - Say in the app that the result depends on lighting and a plain, steady camera; hair and fast hands can have rough edges. No cloud: all processing is on this Mac, no network code. First-run screen explains the permissions; denied permissions show a clear message with a System Settings button. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Only Apple frameworks, no packages, no Xcode project or asset catalog. Modular: CameraSource, Segmenter (the Vision request and mask smoothing), Compositor (Core Image), LiveRecorder, VideoProcessor (reader to writer), and the views. All frame work off the main thread, drop live frames instead of queuing, and release pixel buffers promptly (keep memory flat on a long clip). Friendly errors with a Show Details box; handle a full disk, a video that cannot be read, and the camera in use by another app. - The code is compiled later on the user's Mac, not here: check every initializer, argument label and optional, with no force-unwraps. Do not fake anything: no sample footage. - In your reply, say in a few sentences what you built, what the lookups changed (macOS availability of each request), and what you could not test: live speed, mask quality, HEVC with alpha playback and audio sync on long clips were not run.
Media
Prompt
Build a macOS app called Squish, a batch image converter. Drop in many images or folders (PNG, JPEG, HEIC, TIFF, WebP and anything else ImageIO can read) and convert them in parallel using all CPU cores (a TaskGroup). Use ImageIO CGImageDestination and ask CGImageDestinationCopyTypeIdentifiers which output formats this Mac can write, then offer only those among HEIC, JPEG, PNG, AVIF, JPEG XL and WebP. A quality slider, a max width option and a Strip metadata toggle. The list shows each file with its thumbnail, status and exact savings such as 4.2 MB to 290 KB (-93%), and a total at the bottom. Selecting a file opens a side-by-side comparison of original and converted with a magnifier loupe that follows the pointer. Choose the output folder or save next to the originals. Everything runs locally.
Prompt
Build a macOS app called Rewrap, a video and audio converter built on AVFoundation. Drop in files (.mov, .mp4, .m4v, .m4a, .mp3, .wav, .aiff, .flac and anything else AVAsset can open) to build a batch queue with a progress bar per file. For each file pick a target: MP4 (H.264 and AAC), MOV, M4A, or MP3-quality AAC audio only (Audio only extracts the sound; a Remove audio toggle strips it). Use a fast path when the tracks are already compatible: AVAssetExportPresetPassthrough rewraps the container in about a second with no quality loss. Otherwise transcode with AVAssetExportSession presets or AVAssetReader and AVAssetWriter, offering Original, 1080p and 720p sizes. Say clearly in the UI which files are rewrapped and which are re-encoded, and show a clear error for formats macOS cannot open (such as MKV, AVI and WebM). Pick the output folder, and reveal finished files in Finder.
View app: CinemaCinema
A dark streaming-style app for Archive.org's public films, with torrent metasearch and a built-in video player.
Prompt
Build a polished, production-ready native macOS streaming cinema app using Swift + SwiftUI. It combines searchable public-domain films, torrent metasearch, streaming torrent playback, and a built-in video player. The experience should feel like a premium, minimal streaming service—not a torrent utility. Deliver a working end-to-end implementation, not a mockup. Do not host video content or operate a proprietary torrent index. The app searches external catalogs and sources. CORE EXPERIENCE Users can: Search movies, documentaries, films, and other video content. Search Archive.org's public catalog. Search multiple configurable torrent metadata sources from inside the app. Browse results with posters, titles, years, genres, descriptions, quality, and source info where available. Stream supported Archive.org videos directly. Open a torrent or magnet link and begin playback before the full file finishes downloading. Pause, resume, seek, and manage playback. Track buffering and download progress. Manage temporary storage and completed downloads. BUILT-IN TORRENT METASEARCH Torrent metasearch is a core feature, not an optional add-on. Provide a search bar that searches multiple configurable torrent metadata providers in parallel. Requirements: Search by title and keywords. Aggregate results into one unified list. Deduplicate matching torrents using info hashes when available. Display title, size, seeders, leechers, source, and available metadata. Sort by seeders, size, title, and source. Filter by video format, resolution, size, and source when supported. Show individual provider status and failures. Support magnet links and torrent files. Let users configure, enable, disable, and remove metadata providers. Use provider adapters so individual sources can be updated independently. Handle unavailable providers gracefully without failing the entire search. Inspect provider APIs, terms, availability, and legal restrictions before implementing integrations. Prefer documented APIs and maintained sources. Do not hardcode a single fragile scraping implementation or invent search results. Search only metadata. Do not automatically download or play results without user action. Include Archive.org results alongside torrent search results, clearly identifying each source. ARCHIVE.ORG Integrate the Internet Archive's public metadata and search APIs. Search titles and descriptions, display available metadata, and inspect item files to identify playable video formats. Prefer direct HTTP streaming when a compatible media URL exists. Do not download the entire file before playback unless necessary. Handle missing files, restricted items, and unsupported formats gracefully. Clearly identify source links and public-domain or licensing information when provided by the catalog. Do not assume every Archive.org item is public domain. TORRENT STREAMING ENGINE Use a mature torrent engine such as libtorrent-rasterbar, with a maintained and compatible macOS integration. Inspect current releases, licensing, architecture support, and distribution requirements before choosing the implementation. Do not implement the BitTorrent protocol from scratch. Support: Magnet links Torrent files DHT and peer discovery Metadata acquisition Download progress Peer and connection status Cancellation and cleanup Sequential Streaming Implement real sequential download prioritization: Resolve magnet metadata. Identify video files in multi-file torrents. Let the user choose a video when several are available. Prioritize the pieces required for playback in order. Maintain a local disk-backed cache. Start playback when sufficient initial data is available. Continue downloading while playing. Reprioritize pieces when the user seeks. Pause playback gracefully when buffering runs out. Resume automatically when enough data arrives. Use piece priorities and deadlines where supported by the chosen engine. Do not rely on a simplistic percentage-based buffer. Serve cached torrent data through a local HTTP server bound only to loopback, using a random port and appropriate access restrictions, or use a reliable direct integration with the player. Never expose the local streaming server to the public network. BUILT-IN VIDEO PLAYER Use libmpv or another mature player with broad format support and reliable macOS hardware acceleration. The player must support: Play and pause Seeking Volume and mute Fullscreen Subtitles Audio-track selection Playback speed Keyboard shortcuts Aspect-ratio handling Buffering indicators Playback errors and recovery Automatically discover subtitle files in the same torrent and allow manual subtitle selection. The player must handle HTTP streams from Archive.org and local HTTP streams from the torrent cache. Keep playback responsive and all blocking work off the main thread. MAIN WINDOW AND DISCOVERY Create a premium dark native macOS interface. Sidebar: Home Discover Search Torrent Search Library Downloads Settings Home: Featured public-domain films Popular Archive.org discoveries Recently viewed Continue watching Search suggestions Recently added local content Use real catalog data. Never fabricate movie posters, ratings, availability, or recommendations. Search results should use attractive poster cards when artwork is available, with a compact list view option. Torrent results should use a dense table optimized for comparing sources, seeders, sizes, and quality. Include a persistent mini-player when playback is active. STORAGE AND DOWNLOAD MANAGEMENT Use a configurable application-managed cache directory. Support: Cache size limit Free-space monitoring Automatic cleanup of old temporary data Clearing cached content Preserving explicitly saved downloads Cancelling and removing torrent tasks Resuming supported downloads after restart Never delete user-selected permanent downloads during automatic cache cleanup. Provide clear controls for whether a torrent remains active after playback ends. Seeding behavior must be transparent and configurable. LEGAL AND SAFETY DESIGN The app is a general-purpose search and playback tool, not a content-hosting service. Clearly identify sources and their licensing information when available. Do not claim that arbitrary search results are legal to download. Let users manage metadata providers and understand where results originate. Avoid hidden background uploads or seeding. ARCHITECTURE Use modular Swift components: AppState SearchAggregator TorrentSearchProvider ProviderRegistry ArchiveOrgProvider TorrentEngine TorrentSession StreamBuffer LocalStreamServer VideoPlayerManager PlaybackCoordinator SubtitleManager LibraryStore DownloadManager CacheManager SettingsStore Use clear interfaces between the UI, metadata providers, torrent engine, and player. Keep third-party dependencies isolated behind small adapters. Handle cancellation, concurrency, and cleanup correctly. TESTING Do not stop after creating the UI. Test the full workflows: Archive.org search and playback Multiple-provider torrent metasearch Provider failure and partial results Magnet metadata acquisition Torrent download Sequential playback before download completion Seeking and piece reprioritization Buffer underrun and recovery Multi-file torrent selection Subtitle loading Pause, resume, and cancellation Restart recovery Cache cleanup Disk-space exhaustion Clean-Mac installation Use known test torrents and media that you are authorized to access. Include automated tests for search aggregation, stream buffering, and provider adapters. FINAL REQUIREMENT Deliver a real native macOS app with a working built-in torrent metasearch, Archive.org discovery, torrent streaming engine, and integrated video player. Prioritize reliable playback and search over adding lots of secondary features.
View app: Torrent CinemaTorrent Cinema
Cinema with sturdier torrent search (backup mirrors when a source is down) and one-click streaming in the built-in player.
Prompt
FOLLOW-UP: Two changes to the existing streaming cinema app. Keep the current architecture, provider adapters, torrent engine, player, and UI. Modify and extend them; do not rewrite. ## 1) FIX: "A server with the specified hostname could not be found" (YTS provider) That error is a DNS failure: the provider's hardcoded domain no longer resolves. Fix the root cause, not just the string: * Remove hardcoded base URLs from all provider adapters. Each provider gets a user-editable Base URL in Settings → Providers, stored in SettingsStore and validated as http(s) with a host. Keep each adapter's existing API paths and query parameters; only the host changes. * Support an ordered list of mirror URLs per provider. On DNS failure, connection refused, TLS error, timeout, or a non-JSON response, automatically try the next mirror and remember the last working one. * Add a "Test Connection" button per provider showing reachability, response time, and whether the response parses as the expected API format. * Detect HTML or challenge pages (Cloudflare and similar) returned in place of JSON, and report "Provider returned a web page instead of API data" rather than a decode error. * Make sure ATS/network settings allow the configured scheme. Prefer HTTPS. * Per-provider error banners in Torrent Search must be human-readable ("YTS unreachable at <host>. Check the address in Settings → Providers") with a Settings shortcut, while the other providers' results still display. * After the fix, confirm the provider loads with the URL I enter in Settings, and that a dead mirror fails over cleanly. ## 2) ADD: One-click Play from Torrent Search Add a Play button as the first (leftmost) column of every Torrent Search result row (SF Symbol play.fill, accent-colored, with hover state and a tooltip "Stream now"). Clicking it streams the torrent in the built-in player with no further steps. Double-clicking a row and pressing Return on a selected row do the same. Flow (implement in PlaybackCoordinator, reusing TorrentEngine, StreamBuffer, LocalStreamServer): 1. Start or reuse a TorrentSession for the magnet/torrent. If the same info hash is already active, attach to it rather than adding it again. 2. Open the player window immediately with a loading overlay showing real stages: Connecting to peers → Fetching metadata → Selecting file → Buffering X% (show peers, download speed) and a Cancel button. 3. Auto-select the video file: filter by video extensions (mkv, mp4, m4v, avi, mov, webm, ts). Exclude files whose names or paths contain sample, trailer, or extras, or that are under 10% of the largest file. Pick the largest remaining file. If several large video files remain (episodes or parts), show a quick picker sorted naturally by name. 4. Set all other files to priority 0, except subtitle files (.srt, .vtt, .ass, .ssa, .sub), which download fully and load into the player automatically. 5. Sequential streaming: set piece deadlines for the opening window, and also prioritize the final pieces of the file so MP4 moov atoms and MKV cues/index are available. Start playback once the opening window and tail pieces are present, not after an arbitrary percentage. 6. Hand the player the loopback-only local HTTP stream URL with range support. 7. On seek, reprioritize pieces around the new position. On underrun, pause with a buffering spinner and resume automatically. Quality variants: if a provider result offers multiple qualities for one title (e.g. 720p/1080p/2160p), Play uses a "Preferred streaming quality" setting (default 1080p, falling back to the nearest available). Attach a small dropdown arrow to the Play button to choose another quality. Row states: the Play button becomes a spinner while starting, a "now playing" indicator while active, and a retry icon on failure. Errors (friendly message + log): * 0 seeders: warn before starting, with a "Try anyway" option. * No metadata after 60s: show a timeout message with Retry and Cancel. * No playable video file found. * Unsupported codec: try mpv's fallbacks first. * Disk space too low for the cache. * Stream stalls with no peers. Cancel or close player: stop the session and clean the cache per the existing "keep after playback" and seeding settings. Upload/seeding activity must be visible in the player overlay and Downloads screen, and controllable (upload rate limit, stop-seeding-on-close). Also wire the existing mini-player and Continue Watching so a torrent stream started from Torrent Search resumes at the last position when played again. ## ARCHITECTURE Add or modify: ProviderEndpointConfig (base URL + mirror list per provider), ProviderHealthChecker, adapter updates for configurable hosts, a TorrentResultRow Play column, PlaybackCoordinator.playFromSearchResult(_:quality:), VideoFileSelector (sample/extras filtering + natural sort), and tail-piece prioritization in StreamBuffer. ## TESTS * Unit tests: mirror failover, HTML-instead-of-JSON detection, URL validation, VideoFileSelector (samples, extras, multi-episode), quality fallback. * End-to-end with known legally distributable test torrents (e.g. public-domain films or Blender open movies): Play from a result → metadata → playback before completion → seek → underrun recovery → cancel → replay resumes position. * Multi-file torrent picker, subtitle auto-load, provider down while others succeed. Compile, run the tests, and verify both fixes work in the built .app before finishing.
View app: OpenEmu LauncherOpenEmu Launcher
Install, update and set up OpenEmu-Silicon in a few clicks, with a first-game guide and backups.
Prompt
Build a Mac app called OpenEmu Launcher: a friendly installer, updater and setup helper for OpenEmu-Silicon, the native Apple silicon fork of the OpenEmu retro game emulator. It does not copy or rebuild OpenEmu. It downloads the project's own signed releases, keeps them up to date, and gets a new user from nothing to playing their first game. RESEARCH FIRST (use WebSearch and WebFetch before you write code) OpenEmu-Silicon changes often, so do not rely on memory. Read: (1) the project's README, its license and its releases page (search the web for the OpenEmu-Silicon project and find its GitHub releases, and the GitHub REST API address for the latest release of that project) for the real asset names, sizes, whether a checksum is published, and the minimum macOS version; (2) the project's wiki or docs on adding games, BIOS files, controllers, core updates and where it keeps its library and settings (usually under Application Support and the user's Library); (3) the page that lists which game systems and cores it supports and which of them need a BIOS. Where a page disagrees with this prompt, follow the page and say what changed. WHAT THE APP DOES - Install: if OpenEmu-Silicon is not in /Applications or ~/Applications, show a card with its name, the latest version, size and release notes (from the GitHub API, header User-Agent: RetroLauncher). One button "Install OpenEmu-Silicon" downloads the release asset with progress, speed and Cancel into a temporary file, checks the size and any published checksum, unpacks it (/usr/bin/ditto or /usr/bin/unzip through Process with arguments, never a shell string; or mounts a dmg with /usr/bin/hdiutil), and copies the app to ~/Applications (or /Applications if the user chooses and it is writable). Remove the quarantine flag only if the documentation says a release needs it, and say so on screen. Never bypass Gatekeeper silently. - Check the Mac: macOS version against the project's requirement, and Apple silicon. Say plainly if the Mac is too old. - Open and update: a Launch button, the installed version, and "Check for updates" that compares against the latest release and offers Update (quit OpenEmu if it runs after asking, replace the app, keep the user's data folders untouched, and keep the previous version in a "Previous versions" folder for one rollback). - First game guide: a short checklist with real status where the app can read it: (1) installed, (2) a games folder chosen (the app only stores the path and opens it in Finder; it does not copy games), (3) a BIOS-needed table for the systems from the research (system name, file names, a "Where to put it" button that opens the folder, and a green check when a file with that exact name exists; never download, name sources for, or bundle BIOS or game files), (4) a controller check using the GameController framework that shows connected controllers and their type. - Systems list: the supported systems from the project's docs with a one-line note and whether a BIOS is needed. Mark only what the docs say. - Backup and restore: copy OpenEmu's library database, save states and settings folders (from the research) to a folder the user picks as a timestamped zip, and restore from one after confirmation, with OpenEmu closed. Show the size before copying. - Tidy: show the size of the app, its data and caches, with Reveal in Finder, and an Uninstall button that removes only the app (move it to the Trash through NSWorkspace) and asks separately whether to also remove its data, naming the folders. - About: credits and licenses, with the line "OpenEmu-Silicon is a separate project; Retro Launcher is not affiliated with it. You must own the games you play." QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Only Apple frameworks, no packages, no Xcode project or asset catalog. Modular: GitHubReleases, Installer, VersionChecker, GuideChecklist, BackupManager and the views. - Network and file work off the main thread. Friendly, plain-language errors with a Show Details box; handle no network, a missing asset, a full disk and a running OpenEmu. - The code is compiled later on the user's Mac, not here: check every initializer, argument label and optional, with no force-unwraps. Do not fake anything. In your reply, say what you built, what the lookups changed (asset names, folders, requirements), and what you could not test, especially the install and update steps and the data folder paths.
View app: Instant Screen RecorderInstant Screen Recorder
A menu bar screen recorder: drag a rectangle, press Record, press Stop. Size presets and a live pixel size.
Prompt
Build a native Mac menu bar app called Instant Screen Recorder: a simple screen recorder that lives only in the menu bar. Click the icon, choose "Start Recording", drag a rectangle on the screen, press Record, and later press Stop. No Dock icon, no main window, nothing else to learn. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Do not rely on memory. Read Apple's documentation for: (1) ScreenCaptureKit (SCShareableContent, SCContentFilter, SCStreamConfiguration with sourceRect, width, height, pixelFormat, minimumFrameInterval, showsCursor, SCStream, SCStreamOutput) and, on macOS 15 and later, SCRecordingOutput; (2) AVAssetWriter, AVAssetWriterInput and AVAssetWriterInputPixelBufferAdaptor for writing H.264 video to an .mp4 or .mov from sample buffers; (3) screen recording permission (CGPreflightScreenCaptureAccess, CGRequestScreenCaptureAccess) and how an app can send the user to System Settings, Privacy and Security, Screen Recording; (4) NSStatusItem with an NSMenu, an LSUIElement app (no Dock icon), borderless NSPanel windows at a high window level on every screen (.screenSaver or .statusBar level, canJoinAllSpaces, fullScreenAuxiliary), NSCursor.crosshair, and mouse events (mouseDown, mouseDragged, mouseUp, keyDown for Esc). Where a page disagrees with this prompt, follow the page and say what changed. THE MENU (click the menu bar icon) - A small standard menu: "Start Recording" (Command-Shift-R as the key equivalent), a "Recent Recordings" submenu (the last 5 files, click to reveal in Finder), "Open Recordings Folder", "Settings" (a tiny submenu, see below) and "Quit". While a recording is running the menu shows "Stop Recording" instead and the icon changes to a red dot with the elapsed time in the title (00:12, updated every second). The icon is an SF Symbol (record.circle), not a picture file. - Settings submenu: Frame rate (30 or 60, default 30), Show cursor (on by default), Record system sound (off by default; if on, capture audio with ScreenCaptureKit on macOS 13 or later), Save location (default ~/Movies/Region Recorder, choose another with an open panel), Countdown before recording (None, 3 seconds; default 3). Keep them in UserDefaults. SELECTING THE AREA (the important part) 1. "Start Recording" dims every screen with a see-through dark layer (one borderless panel per screen) and turns the cursor into crosshairs. The user drags a rectangle with the mouse. The first mouse press sets one corner, dragging sets the opposite one, and the area inside the rectangle stays bright and clear. 2. While dragging, show the rectangle's size in pixels in a LARGE, high-contrast label (for example 1920 × 1080) in bold white 36-point rounded system font on a solid black rounded box with a thin yellow border, placed just below the rectangle (move it inside the rectangle if it would fall off the screen). The numbers update live with every mouse move, and are rounded to whole pixels and to even numbers (video encoders need even sizes). Also draw the rectangle's border as a 2-point yellow line with a dashed inner white line so it shows on both dark and light backgrounds, and small handles at the corners and edge middles. 3. After the user lets go, the rectangle stays editable: drag inside to move it, drag a handle to resize it, press Esc to cancel everything and return to the normal screen. A small floating control bar appears next to the rectangle (a rounded dark panel, always on top, not part of the recording) with: the five size presets (below), a big red "Record" button, and a "Cancel" button. Return also starts recording and Esc cancels. 4. SIZE PRESETS (a row of five buttons in the control bar, each showing its pixel size, and the one that matches the current rectangle highlighted): 1920×1080 (full HD), 1280×720 (HD), 1080×1920 (vertical video), 1080×1080 (square) and 3840×2160 (4K). Clicking one resizes the rectangle to exactly that many pixels, keeping its centre point (or its top left corner if it would not fit), and shrinks it to fit the screen while keeping the ratio if the screen is too small, saying "Fits to screen" briefly if that happened. Also a small "swap" button that swaps width and height. Remember the last size the user used and offer it as the first suggestion for the next recording. 5. Be careful about points and pixels: the screen works in points (a Retina Mac has 2 pixels per point). The label and the presets mean real pixels of the final video. Convert between them with the screen's backingScaleFactor, set SCStreamConfiguration width and height to the pixel size, and say in the Settings submenu or a tooltip that a 1920×1080 recording is 960×540 points on a Retina screen. If the area spans two screens, limit it to the screen where the drag started. RECORDING - "Record" removes the dimming and the control bar, starts the optional 3-2-1 countdown (large numbers in the middle of the rectangle, not recorded), then starts recording only the rectangle with SCStream and SCContentFilter for that display, excluding this app's own windows. Keep a thin red outline around the area while recording only if it can be left out of the video (an excluded window). A tiny floating "Stop" pill at the top of the screen is not recorded either; the menu bar item and the keyboard shortcut Command-Shift-R also stop. - Write the video with AVAssetWriter as H.264 in an .mp4 (and AAC audio if system sound is on), using the pixel size chosen, the chosen frame rate and a sensible bitrate for that size. Handle timing correctly: use the sample buffer presentation times, start the writer session at the first frame and finish the file properly in finishWriting. On macOS 15 and later you may use SCRecordingOutput if the research shows it is simpler, but still support macOS 13. - "Stop" must really stop: stop the stream, finish the file, release everything, and only then show "Saved" in a small notification (UserNotifications) with a Reveal in Finder action. Never leave a half-written file. If the app quits or the Mac sleeps while recording, finish the file first. Also stop automatically if the disk is nearly full and say so. - Files are named "Screen Recording 2026-10-10 at 14.32.05.mp4" (the real date and time) in the chosen folder. PERMISSIONS AND ERRORS (plain language) - If screen recording permission is missing, the first "Start Recording" explains why in one short alert, asks macOS for it, and offers an "Open System Settings" button. Say that the app may need to be reopened after the permission is granted. - Show clear messages for: the folder cannot be written, the recording failed to start, the stream stopped unexpectedly, and no display found. Include the real error text behind a "Show Details" button. QUALITY - macOS 13, Swift 5 language mode, only Apple frameworks, no packages, no Xcode project or asset catalog. An AppKit app delegate with SwiftUI only where it is easier (the control bar may be SwiftUI hosted in an NSHostingView). LSUIElement set to true. Modular files: AppDelegate (status item and menu), SelectionOverlay (panels, drawing, crosshair, size label, handles), ControlBar, SizePresets, Recorder (ScreenCaptureKit and AVAssetWriter), Preferences, and Notifications. - Nothing slow on the main thread. Keep memory flat during long recordings (no growing arrays of frames). - The code is compiled later on the user's Mac, not here: check every initializer, argument label and optional, with no force-unwraps. Do not fake anything. - In your reply, say in a few sentences what you built, what the lookups changed, and what you could not test: the overlay on several screens, the points to pixels conversion on a Retina screen, the recording file and its timing, system sound, and the permission flow were not run.
View app: Demo Video MakerDemo Video Maker
Record your screen once, cut the idle gaps automatically, and add a narration made on your Mac.
Prompt
Extend this app (Text to Speech with Kokoro) and name the new app Screen Demo Maker. Keep everything that works today: the Kokoro model download with progress, Cancel and Delete model, the voice list, the speed slider, sentence by sentence synthesis, and the .m4a export. Do not rewrite or replace that code; reuse it as the app's voice engine. Rename the app to Demo Video Maker (window title, menu, About). The old reader stays as a fourth tab called "Reader". The new app turns "I record how to use an app" into a finished narrated demo video with as little work as possible. Tabs: Record, Trim, Narrate, Export, Reader. You record the screen once, the app cuts the dead time by itself, writes a first script from what you did, reads it aloud with Kokoro, lines the voice up with the video, and saves an MP4. Everything runs on this Mac. No account, no cloud. RESEARCH FIRST (use WebSearch and WebFetch before you write new code) Do not rely on memory. Read Apple's documentation for: (1) ScreenCaptureKit (SCStream, SCContentFilter, SCStreamConfiguration, SCShareableContent, capturing a display or one window, frame rate, cursor, and the Screen Recording permission with CGPreflightScreenCaptureAccess and CGRequestScreenCaptureAccess); (2) AVAssetWriter with H.264 at 30 or 60 fps; (3) NSEvent.addGlobalMonitorForEvents for mouse down, key down and scroll, and which permission it needs (Accessibility or Input Monitoring) and how to check it; (4) AVFoundation editing: AVMutableComposition, insertTimeRange, scaleTimeRange, AVMutableAudioMix, and export with AVAssetExportSession or AVAssetReader plus AVAssetWriter. Also re-read how this app already calls Kokoro, so new code uses the same calls. Where a page disagrees with this prompt, follow the page and say what changed. RECORD - A big Record button, a display or window picker, a switch for the microphone (off by default), and a 3 second countdown. Record with ScreenCaptureKit to a movie file in Application Support/Demo Video Maker/Projects/<date>/. A menu bar item with a red dot shows Stop, and Command-Shift-2 stops the recording from anywhere. - While recording, ALSO write an activity log next to the video (JSON lines): each mouse click, scroll burst and typing burst, with the time on the recording clock and the screen position. Never record which keys were pressed, only that typing happened and where (the text caret or focused element through the Accessibility API, else the mouse position). Say this in plain words on the permission screen. If the log permission is missing, the video is still fine and Trim compares frames instead. TRIM (the main saver of time) - Build a timeline of active and idle spans from the log: a span is active from half a second before an event to 1.5 seconds after it; the rest is idle. With no log, find idle spans by comparing downscaled frames (almost no change for more than 1 second) on a background queue. - Show a bar with a thumbnail strip: active spans green, idle spans grey. Idle spans are cut by default, and each has a switch to keep it and a choice "speed up 8x instead". Sliders: how much idle time to allow (0 to 2 seconds) and how loose to be. A Play button previews the cut result with AVMutableComposition (no re-encode). The user can drag span edges, split and delete spans. - Show the numbers: "12 min 40 s recorded, 3 min 05 s after trim". NARRATE - One row per scene (an active span, or a group of close spans): thumbnail, time, an editable sentence, and the length of its voice clip. "Draft the script" writes a first plain sentence per scene from the log only (such as "Click the top right of the screen", "Type in the search box"). Tell the user on screen: "Edit these, they are only a first draft." The user can also paste a whole script. - Optional "Improve the wording" button, shown only if the user has set an OpenRouter key or a local Ollama model in Settings; it sends ONLY the script text, never the video, the screen or the log. - Voices: the existing Kokoro voice list and speed slider, plus "Hear this line" per row and "Make all voice clips", which renders one audio file per row on a background queue with a progress bar and caches them so unchanged rows are not made again. - Sync: place each clip at the start of its scene. If a clip is longer than its scene, extend the scene by freezing its last frame (or slow the video down to at most 0.7x with scaleTimeRange, a user choice); if shorter, leave the scene. Never let clips overlap. Show a two-lane timeline (video, voice) with the clips as blocks that can be dragged a little earlier or later. The original sound is lowered to 20 percent or off. EXPORT - Presets: 1080p MP4 (H.264, AAC), 4K, and Small file. The frame rate stays as recorded. Pick where to save, show progress and the final size, then "Show in Finder". Also write the script as an .srt subtitle file, and a switch to burn subtitles into the video. - "Save project" and reopening: change a sentence, make only the changed clips again, export again. TRUST AND SETTINGS - A first-run screen that says what is recorded, what is never recorded, and what leaves the Mac (nothing, unless the user presses Improve the wording, and then only the script text). Buttons open the right System Settings panes for Screen Recording and the log permission, with green checks. A missing permission shows a clear message, never a blank timeline. - Settings: default folder, default voice, idle allowance, countdown, OpenRouter key (kept in the Keychain) or Ollama address, and "Delete all projects" with a confirmation. QUALITY - Keep this app's current minimum macOS and its FluidAudio package; add no other packages, no Xcode project and no asset catalog. SwiftUI with ObservableObject and @Published, plus an AppKit delegate for the menu bar item and global monitors. New modules: ScreenRecorder, ActivityLogger, TimelineBuilder, ScriptDrafter, Composer (composition and export) and the views; the existing Kokoro code becomes VoiceEngine. File, network and encoding work off the main thread. Friendly errors with a Show Details box; handle no permission, a full disk, a failed render, and an app quit during recording (keep the file that exists). - The code is compiled later on the user's Mac, not here: check every initializer, argument label and optional, with no force-unwraps. Do not fake anything: no sample data, an empty project says it is empty. - In your reply, say in a few sentences what you added, what the lookups changed, and what you could not test: recording on a real Mac, the global monitors, sync of long clips, 4K export and subtitles were not run.
View app: FollowFrameFollowFrame
A minimal screen recorder that captures a fixed-size viewport smoothly following your cursor.
Prompt
Build a polished native macOS SwiftUI app called FollowFrame: an ultra-simple screen recorder that captures a fixed-size viewport following the mouse cursor. Use ScreenCaptureKit + Metal/Core Graphics + AVAssetWriter. Let users choose 720p, 1080p, or custom dimensions, then record only that viewport while smoothly following the cursor with configurable smoothing and a dead-zone. Keep the cursor visible and optionally add a subtle click indicator. Include a minimal floating recording toolbar, countdown, pause/resume, stop, elapsed time, and output folder selection. Automatically constrain the viewport to screen edges so it never captures outside the display. Export H.264 MP4 at 30/60 FPS. Make the UI exceptionally clean and minimal, with sensible defaults and almost no configuration. Support multi-monitor setups, Retina scaling, keyboard shortcuts, and Screen Recording permission onboarding. No cloud services or unnecessary dependencies.
Prompt
Build a native macOS SwiftUI app called Rawlite, a fast, non-destructive RAW photo editor. Open a folder of photos with the Open Folder button or by dragging a folder or files onto the window. Decode RAW files (CR2, CR3, NEF, ARW, DNG, RAF, ORF and RW2) with CIRAWFilter, and also open JPEG, HEIC and PNG. The window has three areas: a filmstrip along the bottom with thumbnails (generated in the background and cached on disk) and 0 to 5 star ratings (keys 0 to 5), pick and reject flags (P and X), and a filter for rating and flag; a large preview in the middle with pinch zoom, a 100% view on double click, pan, and a before and after toggle (backslash key); and an adjustments sidebar on the right. Render the preview with Core Image on a Metal-backed MTKView so slider changes feel instant, and run the full-resolution render on a background queue for export. Adjustments, in collapsible sections: Basic (exposure, contrast, highlights, shadows, whites, blacks, temperature and tint with a white balance eyedropper, vibrance, saturation), Tone curve (an editable curve with draggable points, plus RGB channels), HSL (hue, saturation and luminance for 8 color ranges, built from CIColorCube), Detail (sharpening with amount and radius, luminance and color noise reduction using CINoiseReduction), Lens (vignette and a manual distortion slider), Crop and rotate (drag handles, aspect ratio presets, straighten angle, flip) and RAW decode options (noise reduction, moire reduction, and the camera's embedded profile). Show a live histogram above the sidebar, drawn with CIAreaHistogram and Accelerate, with clipping warnings for highlights and shadows (J key). Keep every edit non-destructive: store the settings for each photo in a small sidecar JSON file next to the image (photo.rawlight.json) and never touch the original. Add undo and redo (Cmd+Z and Shift+Cmd+Z), a reset button for each section, copy settings and paste settings between photos, sync settings to the selected photos, and a handful of built-in presets (Neutral, Punchy, Matte, Black and white, Warm film) that can be saved as new ones. Export one photo or a whole selection to JPEG, TIFF or PNG with a quality slider, a long-edge resize option, an sRGB or Display P3 color space choice, and a filename template, using ImageIO. Include a small EXIF panel (camera, lens, ISO, aperture, shutter speed, focal length, date) read with ImageIO. Everything runs locally and nothing is uploaded. Be honest in the UI that the RAW decoding is macOS's built-in decoder, so the results can differ from the camera maker's own software.
Audio
View app: Text to Speech (TTS)Text to Speech (TTS)
Read articles and PDFs aloud, or save them as audio.
Prompt
Build a macOS app called Text to Speech (TTS), a local reader that speaks text with the natural-sounding Kokoro voice model. Add the Swift package https://github.com/FluidInference/FluidAudio as a dependency and use its Kokoro text-to-speech support (Core ML, no Python, no eSpeak). On first launch, download the Kokoro model files into Application Support with a progress bar, a Cancel button and a Delete model button, then work fully offline. The left side is a text area where you paste text or Markdown, or open a .txt, .md or .pdf file (use PDFKit for PDFs, and strip Markdown markup before speaking). Split the text into sentences with NLTokenizer, synthesize it sentence by sentence so playback starts quickly, and play it with AVAudioEngine, highlighting the current sentence as it plays and scrolling to keep it visible. Click any sentence to start from there. Controls: play and pause, skip sentence, a speed slider, and a voice picker listing the Kokoro voices grouped by language and gender, with a Preview button for each voice. Add an Export audio button that renders the whole text to an .m4a file with a progress bar. Show a clear message if the download or the model fails to load.
Prompt
Build a macOS app called Stem Studio that splits a song into four approximate stems: Vocals, Drums, Bass and Other. Drop in an audio file (anything AVAudioFile can read). Do the separation locally in Swift with Accelerate (vDSP) and a short-time Fourier transform: take the vocals from the center of the stereo image, split harmonic and percussive content with median filtering across the spectrogram (percussive goes to Drums), and send everything below 150 Hz to Bass, then use soft spectral masks so the four stems add back up to the original. Show a progress bar while it processes. Then show four channel strips, each with a volume fader, Solo and Mute buttons, and a small waveform, played together through AVAudioEngine with one AVAudioMixerNode input per stem so they stay in sync, with a transport bar (play, pause, seek). Add a Karaoke button that mutes vocals, and Export buttons that write each stem, or the current mix, as a .wav file. Say in the UI that this is signal processing, not an AI model, so results are approximate.
Prompt
Build a macOS app called Hush, a one-slider voice cleaner. Drop in a voice memo, screencast or recording (any audio or video file with sound, read with AVAsset and AVAudioFile). Estimate the background noise from the quietest part of the recording, then clean it in Swift with Accelerate (vDSP FFT): a spectral gate that adapts per frequency band with smoothing over time (to avoid a metallic sound), a high-pass filter and notch filters for 50 and 60 Hz hum and their harmonics, and a light de-reverb that lowers the late reverberant tail. A single Strength slider (0 to 100) is the only required control, and a Compare button toggles between the original and the cleaned audio during playback with AVAudioEngine. Draw the original and cleaned waveforms in a SwiftUI Canvas, one above the other, and show a playhead. Export the cleaned audio as .m4a or .wav. Everything runs locally.
View app: Music Streamer +Music Streamer +
A YouTube audio player with a local recommendation engine, non-stop radio, a menu-bar player and song downloads.
Prompt
Modify the EXISTING **Toob Downer** macOS app into a native YouTube audio-only music player. IMPORTANT: This is a modification of an existing, working project. **Do NOT rebuild the project from scratch.** The existing Toob Downer dependency installation and yt-dlp pipeline already works correctly on clean Macs. PRESERVE AND REUSE that implementation. ## DO NOT BREAK Keep the existing working implementation for: * Automatic yt-dlp installation * FFmpeg + ffprobe installation * yt-dlp-ejs installation * Deno installation * Apple Silicon / Intel detection * Dependency storage * Dependency validation * Dependency repair/update * Process execution * yt-dlp communication * Existing error handling * Existing download functionality where reusable Do not replace working dependency code with a new implementation. First inspect the entire existing codebase and understand how Toob Downer currently installs, validates, locates, and executes its dependencies. Reuse those existing managers/services wherever possible. ## NEW PRODUCT Transform Toob Downer from a general video downloader into a **YouTube audio-only music player for macOS**. The app should have BOTH: 1. A polished full-size music application window. 2. A compact menu-bar player/popover. The full window should feel like a premium modern music service, inspired by the attached reference screenshot: dark background, horizontal content sections, artwork cards, carousels, sidebar, persistent player, and strong visual hierarchy. Do not copy branding or exact UI. ## MAIN WINDOW Create a full-size native SwiftUI window with: ### Sidebar * Home * Search * Explore * Library * Downloads * Settings Library: * Liked Songs * Recently Played * Playlists * Downloads ### Top Bar * App logo/name * Search field * Output/device control if practical * Settings/menu ### Home The Home screen must NOT be a static collection of fake sections. Build an **algorithm-on-the-fly** recommendation system that generates the homepage from the user's actual activity. Possible dynamic sections: * Quick Picks * Continue Listening * Made For You * Because You Played... * Your Mixes * Radio * New From Your Favorites * Albums For You * Your Playlists * Recently Played * Forgotten Favorites * Explore by Genre * Downloads Only show sections when there is enough relevant content. The exact sections and their order should evolve based on the user's behavior. ## ALGORITHM-ON-THE-FLY Implement a lightweight LOCAL recommendation engine. Track locally: * Play history * Completion rate * Skips * Likes * Search history * Frequently played artists * Frequently played genres * Frequently played tracks * Recent tracks * Current queue * Playlist contents Use these signals to score recommendation candidates. Balance familiarity and discovery. Avoid repeatedly showing the same tracks. Recommendations should update automatically as the user listens. No cloud recommendation backend is required. No user account should be required. ## SEARCH Implement YouTube music search using the existing yt-dlp infrastructure wherever practical. Results should show: * Artwork * Title * Artist/channel * Duration Actions: * Play * Play Next * Add to Queue * Add to Playlist * Download Prioritize reliability over fancy search functionality. ## AUDIO PLAYBACK The core flow should be: YouTube URL/search result → yt-dlp resolves audio stream → native macOS audio playback Do NOT download the entire song just to play it. Use appropriate native Apple audio frameworks. Support: * Play/pause * Previous/next * Seeking * Volume * Queue * Shuffle * Repeat * Track artwork * Metadata * Buffering/loading states * Playback error recovery Playback must continue when the main window or menu-bar popover closes. ## YOUTUBE CONTENT Support: * Individual videos * YouTube playlists * YouTube Mixes * YouTube Radio mixes * Auto-generated mixes where yt-dlp exposes them Treat YouTube videos as audio sources. Resolve playlist/mix contents into a playable queue. ## NON-STOP PLAYBACK Add a **Non-Stop Playback** mode. When enabled, the app should continuously generate the next tracks instead of stopping when the queue ends. Use: * Current track * Current artist * Current playlist * Listening history * Genre affinity * Recommendation engine * YouTube Mix/Radio results Avoid immediate repeats. If one candidate fails, automatically try another. The experience should feel like a personalized infinite radio station. ## PLAYER Add a persistent bottom player bar to the main window: * Artwork * Title * Artist * Previous * Play/pause * Next * Progress * Seek * Volume * Shuffle * Repeat * Queue * Download Clicking the track opens a larger Now Playing view. ## MENU BAR PLAYER Keep the app running in the macOS menu bar. The menu-bar popover should contain: * Artwork * Track title * Artist * Play/pause * Previous * Next * Progress * Volume * Queue Closing the popover must NOT stop playback. Support macOS media keys and global keyboard shortcuts where practical. ## PLAYLISTS Support local playlists: * Create * Rename * Delete * Add/remove tracks * Reorder * Play * Shuffle * Download Also support playing/importing YouTube playlists. ## DOWNLOADS KEEP AND REUSE TOOB DOWNER'S EXISTING WORKING DOWNLOAD PIPELINE. Add: **Download Song** * Download the current track as audio. **Download Playlist** * Download all tracks in the playlist. Use the existing yt-dlp + FFmpeg infrastructure. Support: * MP3 * M4A * Opus Show download progress in Downloads. Downloaded audio should include metadata/artwork when available. Downloads must not interrupt playback. ## HISTORY / LIBRARY Persist locally: * Recently played * Liked songs * Search history * Playlists * Downloads * Listening statistics Allow any track to be replayed or added to the queue. ## VISUAL DESIGN Use the attached reference screenshot as inspiration. Full window: * Nearly black/dark background * Left sidebar * Large horizontal sections * Artwork cards * Rounded corners * Horizontal scrolling carousels * Subtle borders * Compact typography * Generous spacing * Premium music-service appearance Do NOT make it look like a generic dashboard or CRUD app. Use native SwiftUI/macOS components wherever appropriate. ## ARCHITECTURE Before modifying code, identify existing Toob Downer components that can be reused. Prefer extending existing architecture rather than replacing it. Add/modify components such as: * PlayerManager * AudioPlayer * QueueManager * PlaylistManager * RecommendationEngine * SearchManager * HistoryStore * LibraryStore * DownloadManager * MetadataManager * ArtworkManager * MenuBarController Reuse existing: * DependencyManager * YTDLPManager * FFmpegManager * Deno/EJS handling * ProcessRunner * Download infrastructure Rename/refactor only when necessary. ## CRITICAL REQUIREMENT The resulting application must actually work. Do not create mock recommendation data, fake playback, placeholder search results, or fake download behavior. Test the existing dependency system BEFORE changing it. Then test: 1. Clean dependency installation 2. YouTube song extraction 3. Audio streaming/playback 4. Queue 5. Search 6. Playlist playback 7. Mix playback 8. Radio playback 9. Non-stop playback 10. Keyboard/media controls 11. Individual audio download 12. Playlist download 13. History 14. Local playlists 15. Restart/recovery Most importantly: **Preserve the proven Toob Downer dependency/download infrastructure. Modify the product around it rather than replacing the foundation.**
View app: Spot DownerSpot Downer
Paste a Spotify link and save the songs to your Mac as audio files, with a queue and a library.
Prompt
FOLLOW-UP: Convert the existing Toob Downer app into a Spotify audio downloader. Keep the existing project, architecture, dependency system, ProcessRunner, queue, history, notifications, diagnostics, settings, and DMG packaging. Modify and extend them; don't rewrite from scratch. Remove video-specific UI (video quality presets, video format picker). ## ENGINE * Wrap spotdl. It reads Spotify metadata, finds matching audio on YouTube Music/YouTube, and downloads it with yt-dlp. Do NOT reimplement matching or extraction. * FFmpeg handles conversion, tagging, and cover-art embedding. * No DRM circumvention and no decrypting Spotify streams. If a track is unavailable or has no match, report it and skip it. ## BUNDLED PYTHON (NO SYSTEM PYTHON) The app must work on a clean Mac with no Python, Homebrew, or Terminal. * On first launch (and on upgrade from the old version), download a relocatable standalone CPython (python-build-standalone, install_only) for arm64 or x86_64 into ~/Library/Application Support/Toob Downer/Tools/python/ * Create an isolated venv at Tools/venv/ and pip install pinned versions of spotdl and "yt-dlp[default]" (includes yt-dlp-ejs). * Keep the existing FFmpeg/ffprobe and Deno installs. yt-dlp needs a JS runtime for YouTube. * Run venv/bin/spotdl via Process only, never a shell. Use a controlled environment: PATH = Tools/bin + venv/bin + /usr/bin:/bin; PYTHONNOUSERSITE=1; unset PYTHONPATH and PYTHONHOME. Never read the user's shell config. Pass --ffmpeg with the explicit path. * Never overwrite a working install with a failed one: build in staging, validate (spotdl --version, import yt_dlp, ffmpeg, deno), then atomically swap. Keep the previous version for rollback. * Settings: "Update Engine" (staged pip upgrade) and "Repair" (rebuild the venv). * Setup screen components: Python runtime, Python environment, spotdl, yt-dlp, FFmpeg, Deno. Keep the progress/retry/status UI. ## URLS & PREVIEW Accept open.spotify.com links and spotify: URIs for tracks, albums, playlists, and artists. Anything else shows "Not a Spotify link." Before downloading, get metadata only via `spotdl save <url> --save-file <tmp>.spotdl`. Show cover art, title, artist, album/playlist, track count, and duration. Collections show a track list with include/exclude checkboxes. ## MAIN WINDOW UI/UX (SPOTIFY-INSPIRED) Native SwiftUI with a Spotify-desktop feel: * Dark-first: near-black background (#121212-style), elevated dark-gray cards, white text, muted gray secondary text. Provide an equivalent light palette for light mode. * One vivid green accent for primary actions, progress, and active states. Use a distinct shade, not Spotify's exact brand green. * Left sidebar (NavigationSplitView): Download, Queue, Library, Settings, Diagnostics, with SF Symbols. * Top: pill-shaped URL field with a paste button and a round accent Download button. * Preview: large cover art with a gradient header tinted from the artwork's dominant color, bold title, and an "Artist • Album • Year • N songs, X min" line. Below it, a playlist-style track list (#, title/artist, album, duration) with row hover highlight. * Library: grid of rounded cover cards with hover lift, plus a list toggle. * Persistent bottom "now downloading" bar: art, title, artist, thin accent progress bar, speed/ETA, pause/cancel. * Subtle animations, rounded corners, generous spacing, bold SF Pro hierarchy. * Never use Spotify's logo, name, wordmark, or icons in the UI or app icon. ## OUTPUT OPTIONS Presets: Best/Original (default, no re-encode), M4A, MP3, Opus. Label them honestly: source quality is YouTube's, and re-encoding doesn't improve it. Options: * Embed cover art and tags (title, artist, album, track number, year, genre) * Lyrics (genius/musixmatch/azlyrics/synced), embedded or .lrc * .m3u generation * Skip existing (--overwrite skip) * Output template with spotdl variables ({artist}, {title}, {album}, {track-number}, {playlist}, {year}) and a live filename preview * Folder layout: flat / Artist/Album / Playlist ## SPOTIFY SETTINGS * Optional own Client ID/Secret (the default shared credentials get rate-limited), stored in the Keychain, with a short in-app guide to the Spotify Developer Dashboard. * Audio provider order (youtube-music, youtube) and match strictness. * Optional --user-auth for Liked Songs and private playlists via spotdl's OAuth in the system browser. Never handle the user's password. * --yt-dlp-args passthrough, including cookies-from-browser if enabled. Plus an advanced field for extra spotdl args. ## QUEUE & PROGRESS Keep pause, resume, cancel, retry, reorder, remove, and restart recovery. * Collections are a parent job with per-track child rows. Overall progress = done/total. Per-track status: queued/searching/downloading/converting/tagging/done/skipped/failed. * SpotDLProgressParser parses real stdout/stderr. Use --log-level and simple output, not rich TTY output, and per-song Downloaded/Skipping/LookupError lines. Never fake progress; use indeterminate progress per track if needed. * Pause = terminate cleanly. Resume = re-run with skip-existing. * Report no-match tracks individually, with "Retry with custom search query." ## ARCHITECTURE Add or modify: PythonRuntimeManager, VenvManager, SpotDLManager, SpotifyURLParser, MetadataPreviewService, CredentialStore (Keychain), SpotDLProgressParser. DependencyManager orchestrates installs. Keep the other managers. Retire the video parts of FormatManager and PlaylistManager. ## HISTORY & DIAGNOSTICS History: cover, title, artist, album/playlist, date, status, file path, Spotify URL, track count. Actions: Open in Finder, Retry failed, Re-download. Diagnostics: Python version/path, venv health, spotdl/yt-dlp versions, yt-dlp-ejs, FFmpeg, Deno, credential status (never show secrets). Buttons: "Test Spotify" (metadata-only fetch of a public track) and "Copy Report" (redacted). ## ERRORS (friendly message + full log) Handle 429 rate limits (suggest own credentials), invalid credentials, no match, region-locked or removed tracks, private playlists without auth, pip/venv failures, runtime corruption, network failures, disk space, and permissions. ## SECURITY Process arguments as arrays only, sanitized filenames, no secrets in logs, Keychain for credentials. ## DONE MEANS Compile and test end to end on a clean account: first-launch install, upgrade from the old version, a track, an album, a playlist, an artist, M4A/MP3 with art and tags, lyrics, skip-existing re-run, cancel, pause/resume, relaunch mid-queue, update with rollback, and Repair. Deliver an updated .app and DMG configuration.
View app: Speech to Text (STT)Speech to Text (STT)
Drop in audio or video, or record, and get a private written transcript made on your Mac.
Prompt
Build a native Mac app called Scribe: drop in an audio or video file (or record from the microphone) and get a clean written transcript, made on this Mac. No account, no cloud, nothing leaves the computer. Use the WhisperKit Swift package (from Argmax, MIT license) for the speech to text. It is the only third-party package; everything else is Apple frameworks. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Do not rely on memory. Read the WhisperKit documentation and README (the package now lives in Argmax's open-source Swift repository; find the current package name, product name and latest release tag): (1) how to add it to Package.swift with an exact version and which product to import; (2) how to load a model by name and where it downloads the model files (and the size of the tiny, base, small and large-v3 turbo models); (3) how to transcribe an audio file and how to get segments with start and end times and optional word timestamps; (4) how to report download and transcription progress; (5) the minimum macOS version of the package, and set the app's platform to at least that. Also read Apple's documentation for AVAudioEngine microphone capture and AVAudioFile/AVAssetExportSession (to pull the audio track out of a video file and convert to 16 kHz mono). Where a page disagrees with this prompt, follow the page and say what changed. WHAT THE APP DOES - One window. A big drop zone ("Drop an audio or video file here, or click to choose"), plus a Record button with a level meter. Accept mp3, m4a, wav, aac, mp4, mov and m4v. For video, extract the audio first. - A model picker with plain labels: "Fast (tiny)", "Balanced (base)", "Accurate (small)", "Best (large-v3 turbo)", each with its download size. The first use of a model downloads it with a progress bar, speed and Cancel; models are stored in Application Support/Scribe/Models, kept for next time, and a "Delete model" button removes one. Default to Balanced. - A language picker with "Detect automatically" as the default, and a switch "Translate to English". - Transcribing runs off the main thread with a real progress bar and the elapsed time. The transcript appears in an editable text view as it arrives, with a timestamp at the start of each paragraph. Clicking a timestamp plays the audio from there (AVAudioPlayer) and the current segment is highlighted while playing. - Export and copy: Copy text, Save as .txt, .srt, .vtt and .md (with timestamps as headings). Subtitle files use the segment times from the model, never invented ones. - A history list of earlier transcripts in Application Support/Scribe/History (the text and times, not the audio), with delete and "Open in Finder". TRUST AND ERRORS - A short first-run card: what is stored (models, transcripts), that audio is never uploaded, and the microphone permission with a button that opens the right System Settings pane (NSMicrophoneUsageDescription in Info.plist). - Friendly errors with a Show Details box: no network for the model download, a full disk, a file with no audio track, an unsupported file, a cancelled transcription (keep the partial text) and a corrupt model (delete it and offer to download again). Never show a fake transcript. QUALITY - macOS 14 or later on Apple silicon (raise it if the package needs more), Swift 5 language mode, SwiftUI with ObservableObject and @Published. No Xcode project, no asset catalog. Modular: ModelStore, Transcriber, AudioPrep, Recorder, TranscriptStore and the views. Heavy work in Swift concurrency off the main thread. - The code is compiled later on the user's Mac, not here: check every initializer, argument label and optional, with no force-unwraps. Do not fake anything. - In your reply, say in a few sentences what you built, what the lookups changed (the package version, the model names, the API calls), and what you could not test: model downloads, transcription accuracy and speed, microphone recording, video audio extraction and the subtitle files were not run.
View app: Supertonic TTSSupertonic TTS
Turn typed text into natural speech on your Mac with the open-source Supertonic model. No cloud.
Prompt
Build a simple, good-looking Mac text-to-speech app called Supertonic TTS, based on the Swift example in this open-source project: https://github.com/supertone-oss-archive/supertonic The app turns typed or pasted text into natural speech completely on the Mac, with no cloud. It uses the project's Supertonic 3 speech model through ONNX Runtime. Keep the project's own working speech code. Do not write a speech engine or a tokenizer yourself. HOW TO PORT IT (read this first) - The repo is in Imported/. Read its README and then the swift/ folder: swift/Sources/Helper.swift is the engine (text cleanup and language tags, the unicode tokenizer, sentence chunking, the four ONNX stages, voice styles, WAV writing) and swift/Sources/ExampleONNX.swift shows how it is called. Ignore the other language folders, ios/, web/ and the test script. - Copy Helper.swift into Sources/App/ and change only what the build needs. Replace ExampleONNX.swift (the command-line tool) with the app. It imports OnnxRuntimeBindings (the ONNX Runtime package is available to this build). Because that package needs it, target macOS 14, Swift 5 language mode, and use ObservableObject and @Published. - Run the speech work off the main thread (a Task or an actor) and never block the UI. Create the ONNX session once and reuse it. Fall back to the CPU; do not require a GPU. - Keep the project's license: show "Based on Supertonic (MIT license). Model: Supertonic 3 (OpenRAIL-M license)" in an About section, with a link to the model's license page. - The code is compiled later on the user's Mac, not here, so write carefully and re-check every initializer, argument label and optional. THE MODEL (downloaded by the app, never bundled) The weights are about 400 MB. The app downloads them the first time it opens, into Application Support/<app name>/Models, using the same folder layout the example expects (onnx/ and voice_styles/). Use exactly these URLs, a pinned revision of the Hugging Face repo supertone-oss-archive/supertonic-3: https://huggingface.co/supertone-oss-archive/supertonic-3/resolve/aafc6e32416a594460b32413efc49d7fe4ce6d46/<path> Files (path and size in bytes): onnx/duration_predictor.onnx 3700147; onnx/text_encoder.onnx 36416150; onnx/vector_estimator.onnx 256534781; onnx/vocoder.onnx 101424195; onnx/tts.json 8253; onnx/unicode_indexer.json 277676; voice_styles/F1.json to F5.json and voice_styles/M1.json to M5.json (about 292,000 each; take the real size from the server's Content-Length). Show a clear first-launch screen: what is being downloaded and why, total size, overall progress, the current file, speed, and Cancel, Retry and Resume buttons. Check each file's size before trusting it. Download to a temporary place and move a file into Models only when it is complete, so a failed download never replaces a working install. Keep working offline once everything is there. Add a Settings button to re-check or re-download the model. If find_model returns a different official URL for the same file, prefer these. THE APP A single clean window, dark friendly, with light mode too. - A large text area to type or paste into, with a character count. Drag a .txt file onto the window to load it. - Voice picker: the ten preset voices, F1 to F5 and M1 to M5, with Female 1, Male 3 style names. Language picker with the 31 languages in the README (Arabic, Bulgarian, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Latvian, Lithuanian, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, Turkish, Ukrainian, Vietnamese) plus "Auto" (the project's language-agnostic setting, "na"). Default to English. - Speed slider (the example's default is 1.05) and a quality control for the number of denoising steps (the example default is 8, with a lower faster option). - Expression buttons that insert the tags the project documents: <laugh>, <breath> and <sigh>. Do not invent other tags. - A big Speak button. Long text is split into sentences with the project's own chunking, spoken as each chunk is ready, with a progress bar and a Stop button. Show how long synthesis took. - Save the audio as a WAV file (44.1 kHz, using the project's WAV writer) with a standard save panel, and a Copy audio button. - A history list of recent texts to speak again, saved as JSON in Application Support, with Delete and Clear. - A menu bar item with "Speak clipboard" and "Stop", and the keyboard shortcut Cmd+Return to speak. Make sure shortcuts do not break normal typing. - Friendly errors: model not downloaded, no network during download, disk full, unsupported text (empty after cleanup), and a failed synthesis with the real reason in a details box. QUALITY - Keep the code modular: a model downloader, a speech service wrapping the project's TextToSpeech class, an audio player (AVAudioEngine or AVAudioPlayer), and the views. No other dependencies. Do not use an Xcode project or asset catalog. - Do not fake audio, progress or results. If something from the project cannot be made to work, say exactly what was left out. - In your reply, say in a few sentences what you kept from the project, what you wrote new, and anything that may not work.
Prompt
Build a native macOS SwiftUI app called AdMute that detects and automatically mutes advertisements from ANY system audio source. Use Core Audio/Audio Server Plug-in for system-wide output capture and real-time audio routing with minimal latency. Run all ML locally on Apple Silicon using Core ML: lightweight audio classification continuously detects likely ads/jingles, then selectively transcribes suspicious segments with an on-device speech model. Combine audio classification, transcript keywords, speaker/music changes, repetition, and segment timing into an ad-confidence score. When confidence exceeds a threshold, smoothly duck/mute system audio and restore it when the ad ends. Include a menu-bar app, enable/disable toggle, sensitivity slider, mute-duration history, detected-ad timeline, per-app statistics, test mode, onboarding explaining required macOS audio permissions, and zero cloud/network processing. Optimize aggressively for low CPU, memory, and latency. Make the architecture modular so detection models can be replaced later.
Productivity
Prompt
Build a menu bar app called Clip Actions. A global hotkey (Option+Space, registered with the Carbon RegisterEventHotKey API so it needs no special permission) opens a Spotlight-style floating panel in the middle of the screen. It reads the clipboard text, works out what it is, and shows action pills for it: JSON (Format as JSON, Minify, Find syntax error with the line and column), CSV or tab-separated data (Make a Markdown table, Make JSON), a long text or chat thread (a 1-sentence TL;DR and an Action items list, both extractive, built with NaturalLanguage sentence tokenizing, NLEmbedding sentence ranking and pattern matching for to-dos, names and dates), code (Find unbalanced brackets and quotes), and for any text: change case, trim whitespace, count words, URL decode, and Base64 encode and decode. Arrow keys and Return pick an action, the result shows in the panel, and Return again copies it back to the clipboard and closes the panel. Escape closes it. No Dock icon. Say in the settings that the actions are built-in rules, not a language model.
Prompt
Build a menu bar app called Talkdown, an on-device voice dictation tool. Hold the global hotkey Control+Option+Space (registered with the Carbon RegisterEventHotKey API, which reports both the press and the release) to record from the microphone, and release it to stop. Transcribe with the Speech framework using SFSpeechRecognizer with requiresOnDeviceRecognition set to true and addsPunctuation enabled, so nothing leaves the Mac, and show a small floating HUD with a level meter while recording. Then clean up the text: spoken commands such as new line, new paragraph, bullet point, open quote, close quote, and camel case followed by words (camel case user name becomes userName), snake case and all caps. Always put the result on the clipboard, and if the user has granted Accessibility permission, paste it into the app that was in front by sending Cmd+V with CGEvent; otherwise show a notification saying it is on the clipboard. Add a menu with the last 10 transcripts, a language picker and a button that opens the Microphone and Speech Recognition settings. No Dock icon.
Prompt
Build a macOS app called Cluster Notes, a spatial whiteboard that groups ideas by meaning. Type a thought in the field at the bottom and press Return to add a sticky card to an infinite canvas (pan by dragging the background, zoom with a pinch or scroll). Compute a sentence embedding for every card on-device with NLEmbedding.sentenceEmbedding(for: .english) from the NaturalLanguage framework (fall back to word vector averaging if it is unavailable). Run a force-directed layout every frame on a background thread using SIMD: cards repel each other, and cards with a high cosine similarity attract each other, so related ideas drift into clusters. Draw the cards and faint link lines for the strongest similarities in a SwiftUI Canvas at 60 fps, color each cluster, and label a cluster with its most frequent keyword. Cards can also be dragged and pinned, edited by double-click, and deleted. Save everything as JSON in Application Support. It should stay smooth with several hundred cards.
Prompt
Build a menu bar app called CodeSnip that copies text out of anything on screen. A global hotkey (Control+Option+S, registered with the Carbon RegisterEventHotKey API) or a menu bar button starts a region selection by running /usr/sbin/screencapture -i -c, which lets the user drag a rectangle and puts the image on the clipboard. Read the image from the pasteboard and recognize it with the Vision framework (VNRecognizeTextRequest, accurate level, with language correction turned off for code). Use the bounding boxes to keep the original indentation (estimate the character width, and convert the left offset of each line into spaces), keep straight quotes and symbols, and detect tables so they can be copied as TSV. Offer modes Code, Table (TSV) and Plain text, with the best guess selected automatically, and show the result in a small floating panel with monospaced text and a Copy button, plus a thumbnail of the capture. Also accept a dropped or pasted image, so it works without screen permission. Explain in the first launch screen that macOS will ask for Screen Recording permission. No Dock icon.
Prompt
Build a menu bar app called Rephrase that transforms the text you are writing in any app. Select text anywhere and press the global hotkey Control+Option+Space (registered with the Carbon RegisterEventHotKey API). A floating palette opens near the mouse cursor. The app copies the selection by sending Cmd+C with CGEvent (this needs the Accessibility permission: show a first-run explainer with a button that opens System Settings, and fall back to the current clipboard text if permission is missing). The palette lists actions you pick with the arrow keys and Return or the number keys: Fix grammar, Shorten, Expand, Change tone (Professional, Friendly, Casual), Translate (with a language picker), Summarize, Bullet points. The user can add, edit, reorder and delete custom actions, each with a name and an instruction, saved as JSON in Application Support. Each action runs on a language model the user chooses in Settings: Ollama (http://localhost:11434/api/chat, with the installed models listed from /api/tags), LM Studio (OpenAI-compatible, http://localhost:1234/v1/chat/completions) or any other OpenAI-compatible URL with an optional API key kept in the Keychain. Stream the reply into the palette, with Replace (paste the result over the selection with Cmd+V sent through CGEvent, then restore the previous clipboard), Copy and Retry buttons, and Escape to close. Add text snippets: abbreviations such as ;sig or ;addr that expand when typed in any app, using a CGEvent tap (this needs the Input Monitoring permission, so explain it first), managed in a Snippets tab with search and JSON import and export. Show a clear message when no model server is running. No Dock icon. Nothing leaves the Mac except requests to the model server the user chose.
Prompt
Build a menu bar app called Pulsebar that turns the top of the screen into a small productivity hub. The menu bar item shows the running focus timer (or a dot when idle) and opens a popover with five tabs. Focus: a Pomodoro timer with focus, short break and long break lengths you can change, a session counter, a notification and a sound when a phase ends, and a task name field. Quick actions: reads the clipboard text and offers Summarize (extractive, built with NaturalLanguage sentence ranking), Fix spacing and case, Make bullet points, Count words, and Rewrite with a model, which sends the text to the Ollama server at http://localhost:11434 (model chosen from /api/tags) and says clearly when none is running. Meetings: lists today's events from EventKit (ask for calendar access), finds Zoom, Meet and Teams links in each event, shows a Join button for the next one, and a button that toggles the Mac's microphone input mute with CoreAudio. System: live CPU, memory, disk, battery and network speed using host_statistics, ProcessInfo and IOKit, drawn as small Swift Charts sparklines. Shortcuts: a grid of buttons the user can edit, each opening an app, a URL or running a Shortcuts shortcut by name through /usr/bin/shortcuts. Also draw a notch widget: a borderless floating NSPanel centered at the top of the screen that shows the timer as a pill and expands on hover to the current task and next meeting, with a Settings switch to hide it. No Dock icon, and a Launch at login toggle using SMAppService.
Prompt
Build a macOS app called Agent Deck, a control room for AI coding agents. The sidebar lists projects: add a project by choosing a folder, and also discover projects automatically from the folders under ~/.claude/projects. Show a Sessions tab that reads Claude Code's JSONL session files for the selected project and lists each session with its start time, duration, the first prompt, the number of turns, input, output and cache tokens, and an estimated cost from an editable price table kept in Application Support. Show a Live tab that uses the ps command every 2 seconds to list running claude, codex, gemini and cursor-agent processes with their folder, CPU use and uptime, with a Stop button that sends SIGTERM after a confirmation. Show a Review tab for the project's Git repository, using /usr/bin/git: a file list of changed files and a side-by-side diff viewer with colored added and removed lines and hunk headers, with Approve, which stages the file, and Reject, which restores it with git checkout after a confirmation. A Commit button writes a commit whose message the user edits and that ends with an Agent-assisted trailer line. Show a Usage tab with Swift Charts: tokens and estimated cost per day for the last 30 days and per project. Show a Context tab that finds and edits CLAUDE.md, AGENTS.md, GEMINI.md and .cursor/rules files in the project and in the home folder, with a Save button, a word count and a warning when a file is over 2,000 words. Everything is read from local files and runs offline. Show clear empty states when no sessions are found.
Prompt
Build a macOS app called Puff, a friendly disk space cleaner that anyone can use. The home screen shows an animated storage wheel with three colors: green for Safe junk, yellow for Smart review and blue for Personal files, which are never touched and never scanned for deletion. Use warm colors and spring animations. Scan the drive on background threads with async/await, FileManager enumerators and URLResourceKey sizes (allocated size, content access date), and show a live progress ring. Group what it finds into plain-English cards with a size and no raw paths, for example Old iPhone and iPad simulator files, Dormant AI models, Chrome ghost clones. Safe junk (one click): Chrome and Brave code-sign clones under /private/var/folders, app caches in ~/Library/Caches, crash reports older than 7 days in ~/Library/Logs/DiagnosticReports, and local Time Machine snapshots (tmutil listlocalsnapshots). Smart review (a toggle on each card): Hugging Face, Ollama, LM Studio and PyTorch model caches, Xcode iOS DeviceSupport, CoreSimulator devices, DerivedData and Archives, the Homebrew cache, npm, pnpm, bun and pip caches, Cargo target folders, node_modules, .next and .venv folders in projects not touched for 14 days, UTM and Docker disk images, Final Cut, Premiere and After Effects render and media caches, leftover folders in ~/Library/Application Support for apps that are no longer installed, and Downloads older than 60 days. Rank cards with CleanPriority = (SizeMB x DormancyDays x SafeConfidence) / RiskRating and show the best first. Tapping a card shows what is inside and why it is safe or not. A big Clean button moves the chosen items to the Trash (nothing is deleted permanently), asks for confirmation with the total size, shows a playful celebration with the space freed, and keeps a history list with an Undo that restores items from the Trash. Add a Preview only switch that does everything except delete. Handle folders that macOS blocks with a friendly note and a button that opens Full Disk Access settings. Nothing leaves the Mac.
View app: Color PickerColor Picker
A tiny menu bar eyedropper: click, pick any color on screen, get the hex.
Prompt
make a tiny mac app with an icon in the menu bar that when clicked changes cursor to color picker - then when user clicks, popup appears below menu bar icon with clicked color is shown (standard color picker mini app) in html color notation (hex?)
View app: Instant ShotInstant Shot
A menu bar screenshot tool: drag a rectangle and it opens in Preview.
Prompt
build an ultra simple minimal "instant screenshot" app that has a menu bar icon that when clicked changes cursor to "screenshot" mode, so user can click and drag a rectangle and on release the screenshot opens in "Preview" as a saved file
Prompt
Build a private AI chat app for my Mac that runs a local language model, so it works offline with no API key. It should have a chat window with streaming replies and a list of my past conversations.
Prompt
Build a menu bar app called **Summarizer** that instantly generates concise summaries of selected text, documents, webpages, emails, or active screen content entirely on-device. Clicking the menu bar icon opens a clean utility popover with tabs to paste clipboard text, drag and drop documents (PDF, TXT, DOCX), input a URL to fetch reader-mode text, or capture the active window/screen for instant OCR processing. Include a global hotkey that captures whatever text or window is currently selected and opens the summary popover instantly. Power the core processing locally without cloud dependencies: use Vision's `VNRecognizeTextRequest` for extracting text from screen captures or scanned documents, and run a local on-device small language model (via Apple's Foundation Models framework, Core ML, or a bundled quantized LLM runtime like llama.cpp / MLC-LLM) to perform the summarization. Support output modes: 3-bullet takeaway, executive paragraph, TL;DR, or key action items, along with an adjustable length slider (Brief, Balanced, Detailed). Show the generated summary in a scrollable output panel with quick-action buttons to copy markdown, append to a daily note, or replace the clipboard. Everything runs strictly on-device with zero internet access, no tracking, and no external API calls.
View app: Computer UseComputer Use
Tell your Mac what to do in plain English, with a model that runs on your Mac.
Prompt
Yes. This is a strong Mac app concept: **local LLM + accessibility APIs + AppleScript + screenshots**, with no cloud dependency. Build a native macOS SwiftUI app called Computer Use, a completely local-only computer-use assistant. The user types natural-language commands such as: * “Open Brave and go to cnn.com” * “Open Safari and search Google for MacBook Air” * “Open Finder and create a folder called Projects” * “Take a screenshot and save it to Downloads” * “Open my Downloads folder and find the latest PDF” * “Switch to VS Code and open my project” * “Close Spotify” ### Core architecture Use an on-device LLM for command understanding and planning. No cloud APIs, accounts, telemetry, or remote AI services. Use native macOS capabilities to execute actions: * macOS Accessibility APIs for interacting with applications and UI elements * AppleScript / System Events where appropriate * NSWorkspace for launching and switching applications * URL schemes / browser automation where appropriate * CGWindow APIs and screenshots for visual understanding * Keyboard/mouse events only when necessary The LLM should convert natural-language requests into a small set of structured actions, execute them sequentially, observe the result, and continue until the task is complete. Example: User: “Open Brave and go to cnn.com” Plan: 1. Launch Brave 2. Focus Brave 3. Open a new tab 4. Navigate to [https://cnn.com](https://cnn.com) 5. Verify the page/window changed successfully ### UI Create an extremely polished, minimal native SwiftUI interface inspired by Raycast/Spotlight. Main window: * Large command input * Conversation/history below * Streaming status showing what the assistant is doing * Compact action log such as: `Launching Brave` `Opening new tab` `Navigating to cnn.com` `Done` Include a global keyboard shortcut to summon the command palette. ### Safety Before potentially destructive or consequential actions, require confirmation. Examples: * Delete files * Send messages/emails * Purchase something * Close unsaved work * Modify system settings Read-only and reversible actions should execute immediately. ### Local AI Support a locally downloaded model running entirely on the Mac. Design the inference layer so different local models can be swapped later. The app should function completely offline except when the user's requested computer action itself requires internet access. ### Goal Make this feel like a lightweight, private, native Mac version of “computer use”: the user describes what they want, and the local AI operates their Mac to accomplish it. Use modern clean UI/UX
View app: Screen DrawScreen Draw
Press a hotkey and draw arrows, shapes, highlights and text on top of your screen. It all fades away.
Prompt
Build a native Mac app called Screen Draw. Press a global hotkey and draw on top of everything on the screen: pen strokes, arrows, ellipses, rectangles, highlighter and typed text. Everything fades away after a moment, or clears on demand. It is for presenters, teachers and anyone recording a tutorial or on a call. APP SHAPE - A menu bar app with no Dock icon (set NSApp.setActivationPolicy(.accessory) at launch). The menu bar menu has: Start or Stop Drawing (showing the hotkey), Clear All, Fade after (Never, 2, 4, 8, 15 seconds), Launch at Login (SMAppService.mainApp, macOS 13), Quit. On first launch show a small window or popover that says the hotkey and how to draw. - Global hotkey, default Control+Option+D, registered with Carbon RegisterEventHotKey so no special permission is needed. Let the user change it in a small Settings window. Pressing it again, or pressing Esc while drawing, ends drawing. - No Accessibility, Screen Recording or Input Monitoring permission may be required. Do not capture the screen. THE OVERLAY - One borderless, transparent, non-opaque NSW that screen, with no shadow. Use a window
View app: ShelfShelf
Shake while dragging a file and a shelf appears at the screen edge. Drop files on it, then drag them out anywhere.
Prompt
Build a native Mac app called Shelf. While you are dragging files, shake the mouse and a small shelf slides in at the screen edge. Drop the files on it, go to another app or folder, then drag them out of the shelf into it. The shelf holds references to the files, never copies. It saves a lot of window juggling when you move files between apps and folders. APP SHAPE - A menu bar app with no Dock icon (NSApp.setActivationPolicy(.accessory) at launch). The menu bar menu has: Show Shelf, Clear Shelf, Settings, Launch at Login (SMAppService.mainApp, macOS 13), Quit. On first launch show a small window that explains "Drag a file and shake the mouse" with a looping simple animation drawn in code. - No Accessibility, Input Monitoring or Screen Recording permission may be required. Do not capture the screen. - Global hotkey Control+Option+S to show or hide the shelf, registered with Carbon RegisterEventHotKey, changeable in Settings. DETECTING A DRAG THAT STARTED IN ANOTHER APP (the hard part, so do it this way) - Use NSEvent.addGlobalMonitorForEvents for .leftMouseDragged and .leftMouseUp (global monitors for mouse events need no permission), plus a local monitor for the same events. - A file drag is in progress when the left button is down (NSEvent.pressedMouseButtons) and the drag pasteboard (NSPasteboard(name: .drag)) has a new changeCount holding file URLs (read with readObjects(forClasses: [NSURL.self], options: [.urlReadingFileURLsOnly: true])). Remember the changeCount at the last mouse-up so an old drag is never treated as new. Ignore a drag that starts from Shelf's own panel. - Shake: while a file drag is in progress, keep the last 0.8 seconds of pointer positions. It is a shake when the pointer reverses horizontal direction at least 4 times, each leg moving at least 40 points. Make the sensitivity a Settings option (Gentle, Normal, Easy). After a shake, the shelf opens even if the pointer is far from the edge. - Setting "Open the shelf when": Shake (default) or Any file drag begins. Keep all this in one small DragWatcher class, and never do slow work in the event callbacks. THE SHELF - A non-activating NSPanel (styleMask [.nonactivatingPanel, .borderless], never key or main, so the app you are dragging from stays active), always on top (level .statusBar), collectionBehavior [.canJoinAllSpaces, .fullScreenAuxiliary, .stationary, .ignoresCycle], rounded translucent dark material (NSVisualEffectView, hudWindow), a soft shadow, about 240 points wide and up to 70% of the screen tall. It slides in from the chosen edge (Right by default, or Left, or Bottom; chosen in Settings) with a short spring animation, on the screen where the pointer is. - Content in SwiftUI inside an NSHostingView: a header with the item count and a Clear button, a large drop zone ("Drop files here") that highlights while a drag is over it, and a scrolling list of held items. Each item shows the file icon (NSWorkspace icon), name (middle-truncated) and size or "Folder". Items whose file has been moved or deleted look dimmed and say "Missing". - Drop: accept files and folders (.fileURL) from any app, including Finder, a browser's downloads and the Desktop. Store each as a security-scope-free bookmark plus its path, so the item still resolves after the file is renamed or moved. Ignore a duplicate of an item already on the shelf. Accept up to 100 items. - Drag out: dragging a row drags the real file (an NSDraggingSession with the file URL as pasteboard writer), so it can be dropped into Finder, Mail, Messages, a browser upload box, a chat app or any other app. Support selecting several rows (click, Shift-click, Command-click) and dragging them together, and a "Drag all" button that drags every item at once. Use AppKit's NSDraggingSource through NSViewRepresentable if SwiftUI's onDrag is not enough for multiple items. - Setting "After dragging an item out": Remove it from the shelf (default) or Keep it. Only remove it when the drop was actually accepted (the dragging session's end operation is not empty). - Right-click on an item: Reveal in Finder, Open, Quick Look, Copy Path, Pin (a pinned item stays through Clear and auto-clear), Remove. Space bar does Quick Look on the selected item (QLPreviewPanel). Delete removes the selected items. - Hiding: when a drag ends without a drop, a shelf that holds nothing slides away after 1.5 seconds. A shelf that holds items shrinks to a slim tab on the edge. Hovering over the tab, clicking it, the hotkey or another shake brings it back. Esc hides the shelf. SETTINGS AND STORAGE - Settings window: the edge, when to open, shake sensitivity, what happens after dragging out, Auto-clear after (Never, 1 hour, 1 day, 1 week; pinned items stay), Keep items when quitting (default on), the hotkey, Launch at Login. - Save the shelf as JSON in Application Support/Shelf and restore it at launch. QUALITY - Smooth and light: the app must use almost no CPU while idle, and never block the main thread. Handle several displays, and keep the panel on screen when the screen layout changes. - Keep the code modular: DragWatcher, ShelfPanelController, ShelfStore, views, drag source, settings. Use only Apple frameworks and no Xcode project or asset catalog. Target macOS 13. - Do not fake anything. In your reply, say in a few sentences what the app does and anything that may not work, such as drags from apps that do not put file URLs on the drag pasteboard.
View app: Drop RouterDrop Router
Drop any file on it and it opens in the app you chose for that file type. Rules for every extension.
Prompt
Build a simple, beautiful Mac app called Drop Router. You drop any file on it, and it opens the file in the right app, decided by rules you set (for example md files open in Sublime Text, csv in Numbers, mkv in IINA). It can also change your Mac's default app for a file type, so a double-click in Finder opens the same app. It is a free, lightweight file-type router. THE MAIN WINDOW - A compact window with two parts: a big drop zone on top and the rules list below. - The drop zone is a large dashed rounded rectangle that says "Drop files here" and highlights when a drag is over it. Dropping one or many files and folders opens each file with the app its rule names, then shows a small confirmation ("Opened 3 files in Sublime Text") that fades away. Group several dropped files by app so each app is launched once with all of its files (NSWorkspace.shared.open(_:withApplicationAt:configuration:completionHandler:)). - Files with no rule: show a small sheet with the file name, the list of apps that can open it (NSWorkspace.shared.urlsForApplications(toOpen:), each with its icon and name), a "Choose another app" button (an open panel on /Applications) and a check box "Always use this app for .ext" (on by default). Choosing makes a rule and opens the file. - Folders: a setting says what to do with a dropped folder (Open in Finder, which is the default, Reveal in Finder, or Ignore). - Hold Shift while dropping to open the files in their normal default app instead, and hold Option to just reveal them in Finder. Show these hints in a quiet line at the bottom of the window. THE RULES - A table of rules: an on/off switch, the extensions (comma separated, with or without the dot, case-insensitive, for example "md, markdown, mdown"), the app (its icon and name), and a delete button. Add Rule opens a row to fill in: type the extensions, then choose the app from a menu of the apps that can open that kind of file (found with the system) or pick any app with the open panel. - Rules are matched by extension first. Also let a rule match a type group (Text, Images, Audio, Video, Archives, Code) chosen from a menu, using UTType conformance (UniformTypeIdentifiers), checked after the extension rules. The first matching enabled rule wins; extension rules beat group rules. Rules can be reordered by dragging. - First launch: if Sublime Text is installed (bundle identifiers com.sublimetext.4 or com.sublimetext.3, or found by name in /Applications), create the rule "md, markdown, mdown, txt" for it, switched on. Do not make up other rules, and do not assume any app is installed. Rules whose app is missing show a warning triangle and "App not found" with a Choose button. - Save the rules as JSON in Application Support/Drop Router, remember each app by its bundle identifier and re-resolve it with NSWorkspace.shared.urlForApplication(withBundleIdentifier:). Import and Export buttons read and write that JSON so rules can be shared. MAKING IT THE DEFAULT (optional per rule) - Each rule row has a "Make default" button. It sets the default app for every extension of the rule using NSWorkspace.shared.setDefaultApplication(at:toOpen:) with the UTType made from the extension (UTType(filenameExtension:)), and tells the user plainly what happened for each extension: done, macOS asked for confirmation, or not possible (some types cannot be changed). Treat macOS showing its own confirmation as normal. Never edit LaunchServices files directly, and never write Apple's private defaults. - Show next to each extension the current default app (NSWorkspace.shared.urlForApplication(toOpen:)) so the user can see what is set now. A "Restore" button sets the previous default back for the types this app changed (remember the previous default app when changing it). MORE WAYS TO USE IT - A menu bar icon is also a drop target: dragging files onto it opens them with the rules, the same as the window. The menu has Show Window, Open File... (an open panel, routed through the rules), Recent (the last 10 files routed, which open again when clicked) and Quit. Add a setting to hide the Dock icon. - A Settings window: folder behaviour, Launch at Login (SMAppService.mainApp, macOS 13), show in the menu bar, keep the Dock icon. - Dropping files must work from Finder, the Desktop, a browser's downloads and other apps, including file promises from apps that create the file on demand (accept both file URLs and NSFilePromiseReceiver). QUALITY - No special macOS permission may be needed. Do not read the contents of the dropped files. Use arguments and URLs only, never a shell or a command line. - A bad rule, a missing app, a file that vanished or an app that fails to open a file show a short friendly message, never a crash. Keep the UI smooth and never block the main thread. - Keep the code modular: a rule model and store, a router (match a file to an app), an opener, a default-app manager, the views and the menu bar controller. Use only Apple frameworks and no Xcode project or asset catalog. Target macOS 13. - Do not fake anything. In your reply, say in a few sentences what the app does and what may not work, especially changing system default apps, which macOS may ask the user to confirm.
View app: Charge GuardCharge Guard
A menu bar battery watcher with health, cycle count and alerts at the charge level you choose.
Prompt
Build a Mac menu bar app called Charge Guard. It watches your laptop battery, shows its health and cycle count, and alerts you at the charge level you choose (for example 80% when charging), when you have been plugged in too long, and when the battery gets low. It can only alert you: a Mac app cannot stop the charger itself, and the app says so. THE APP - A menu bar app with no Dock icon (NSApp.setActivationPolicy(.accessory)). The menu bar item shows the battery percentage (a setting turns it into just an icon), the icon changes with the state (charging, on battery, full, plugged in but not charging), and a click opens a popover (about 340 points wide) with the details. On a Mac with no battery, say "No battery found" and stay quiet. - Read the battery with IOKit, with no special permission: - Live state from IOPSCopyPowerSourcesInfo and IOPSCopyPowerSourcesList (percentage, charging, plugged in, time to full or empty, power source name), updated through IOPSNotificationCreateRunLoopSource so there is no polling. - Details from the AppleSmartBattery registry entry (IOServiceGetMatchingService with IOServiceMatching("AppleSmartBattery"), then IORegistryEntryCreateCFProperties): CycleCount, the design capacity (DesignCapacity) and the current full-charge capacity (AppleRawMaxCapacity, or NominalChargeCapacity, or MaxCapacity: use the first that is present and sensible), Temperature (divide by 100 for degrees Celsius), Voltage, Amperage (the power in watts is volts times amps), and the adapter's watts from AdapterDetails when present. Compute Battery Health = full-charge capacity divided by design capacity (as a percent), and show it with a label (Good above 90, Fair 80 to 90, Worn below 80). Read every key defensively: a missing key hides that line. Never crash on a different Mac model. - The popover shows: a big percentage ring, the state in words ("Charging, 1 h 12 min to full"), the cycle count with the rated limit of 1000 as a bar, health, temperature, power in or out in watts, adapter watts, how long the Mac has been plugged in, and a chart (Swift Charts, macOS 13) of the percentage over the last 24 hours (and a 7 day view), made from samples saved once a minute and on every change in a small JSON file in Application Support (keep 30 days, then drop the oldest). - Alerts, delivered as notifications (UNUserNotificationCenter; ask for permission the first time the user turns an alert on, and explain why): 1. Charge limit: when charging reaches the chosen percent (default 80), say "Battery is at 80%. Unplug to keep it healthy." Repeat every 5 minutes up to 3 times, or never repeat (a setting), and reset when it is unplugged. 2. Low battery: when on battery and under the chosen percent (default 20), say "Battery is at 20%. Plug in soon." 3. Plugged in too long: when the Mac has been plugged in and above the charge limit for more than the chosen number of hours (default 8), say it, so a laptop that sits on a desk can be unplugged. 4. Health: once, when health falls below 80%. Each alert has a sound option, can be switched on and off, and respects quiet hours (a time range, default off). A "Snooze 1 hour" action button in the notification. Never send an alert that is already satisfied when the app starts. - Settings window: the thresholds above, the notification sound, quiet hours, show the percentage in the menu bar, show the time remaining, Launch at Login (SMAppService.mainApp), and a Reset History button. A short note in Settings: "macOS may also hold charging at 80% itself (Optimized Battery Charging, System Settings, Battery). Charge Guard can only remind you; it cannot control charging." QUALITY - Use almost no CPU or memory: no timers faster than once a minute besides the IOKit notifications. Handle sleep and wake (take a sample on wake and do not fire stale alerts), a changing power source and a missing battery. - Keep the code modular: a BatteryReader (IOKit), a HistoryStore, an AlertEngine with a small state machine, the notification layer, the popover views and the settings. Only Apple frameworks, no Xcode project or asset catalog. Target macOS 13. - Do not fake anything: no invented numbers. In your reply, say in a few sentences what works and what you could not test, such as the registry keys on different Mac models.
View app: Linux SandboxLinux Sandbox
Run scripts and commands in disposable Linux machines on your Mac, through OrbStack. No Terminal needed.
Prompt
Build a native Mac app called Linux Sandbox: a one-window control panel that uses OrbStack's command line (orb and docker) to give the user a disposable Linux machine for running scripts and commands safely. No Linux desktop, no Terminal. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Read https://docs.orbstack.dev (the pages on the command line, "orb" machines, headless use and installing) and https://formulae.brew.sh/cask/orbstack. Check the exact subcommands and flags you use: start, stop, status, list (and any JSON output option), create, delete, run or -m, push and pull, and how Mac folders appear inside a machine. Where a page disagrees with this prompt, follow the page and say what changed. SETUP (honest and one click) - Find orb and docker in /opt/homebrew/bin, /usr/local/bin and /Applications/OrbStack.app/Contents/MacOS/xbin. Run them with Process and an argument array, never a shell string, with a PATH that includes those folders. Give every quick call a 10 second timeout. - OrbStack needs macOS 14 or later: if the Mac is older, say so plainly. - If orb is missing: an "Install OrbStack" button that runs brew install --cask orbstack, streaming the output into a log with a progress bar and Cancel. No Homebrew: the button becomes "Get OrbStack" and opens https://orbstack.dev. Never install Homebrew. After installing, run orb start and wait up to 90 seconds until orb status says it is running. Mention that OrbStack may ask to be opened once to finish its setup, and that it is free for personal use. - A status dot (not installed, stopped, starting, running) and Start and Stop buttons. THE SANDBOX - "New sandbox": pick Ubuntu (the default), Debian or Alpine, give it a name, create it with orb create, and show progress. Keep the list of machines (from orb list) with state, distro and Start, Stop, Delete (with confirmation). Say that machines are real Linux on this Mac and are removed only when the user deletes them. - Run box: a monospaced text area for a command or a whole script, a machine picker and a Run button. Run it inside the machine with orb -m <name>, stream stdout and stderr live into an output pane (colors for stderr, a different color for the exit status), with Stop (terminate the process), Copy output and a Clear button. Run scripts by sending them through stdin to bash -s, not by building quoted shell strings. Show how long it took. - History: the last 50 runs (command, machine, exit code, time) saved as JSON in Application Support, click to load one back, Delete and Clear. - "Disposable mode" switch: before a run, make a fresh machine, run in it, and delete it afterwards, so nothing persists. Confirm the first time. - Share a folder: a button to choose a Mac folder and run a command with that folder as the working directory inside the machine (check how OrbStack exposes Mac paths), with a warning that a script can change files in a shared folder. - Packages shortcut: a field to install packages in the machine (apt, apk by distro) with the output streamed. - Containers tab: docker ps -a as a list with Start, Stop, Remove and Logs, and a "Run a container" form for an image name, ports and a name (docker run -d). Say when the docker command is missing. QUALITY - macOS 14, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Only Apple frameworks, no packages, no Xcode project or asset catalog. Modular: OrbCLI (finds and runs the tools, parses output), MachineStore, RunController (streaming, stop), HistoryStore, and the views. - Read process output with pipe readability handlers and never block the main thread. Handle a process that never ends with Stop and a long default timeout of 10 minutes for runs, which the user can turn off. - The code is compiled later on the user's Mac, not here, so check every initializer, argument label and optional. No force-unwraps. - Do not fake anything: no sample machines, no pretend output. If something cannot work, show that state in the app. - In your reply, say in a few sentences what you built, what the lookups changed, and what you could not test (the orb commands and the folder sharing were not run).
View app: Android Emu MgrAndroid Emu Mgr
Set up Google's Android Emulator on an Apple silicon Mac and run virtual Android phones from one window.
Prompt
Build a native Mac app called Android Emu Mgr: a one-window control panel that sets up Google's Android Emulator on an Apple silicon Mac and runs virtual Android phones, with no Android Studio and no Terminal. The app does not run Android itself. It drives Google's own command line tools, and the emulator opens in its own window. RESEARCH FIRST (use WebSearch and WebFetch before you write code) These tools change often, so do not rely on memory. Before writing code, read: (1) https://developer.android.com/tools/sdkmanager, https://developer.android.com/tools/avdmanager, https://developer.android.com/studio/run/emulator-commandline and https://developer.android.com/tools/adb for the exact commands and flags; (2) https://formulae.brew.sh/cask/android-commandlinetools and the Homebrew page for a Java runtime (a cask or formula for OpenJDK that the tools can use), and where each installs; (3) the current list of system images for Apple silicon: run the real command `sdkmanager --list` in your head from the docs and pick arm64-v8a images only (Android 14 or 15, "google_apis" and "google_apis_playstore" variants). Where a page disagrees with this prompt, follow the page and say what changed. SETUP (honest, one click, nothing installed without asking) - This app needs an Apple silicon Mac. If the Mac is Intel, say so plainly and stop. - Find the tools: sdkmanager and avdmanager (under the Android SDK folder or cmdline-tools/latest/bin), emulator and adb (platform-tools). Use the SDK folder at Application Support/Android Emulator Manager/sdk unless an ANDROID_HOME already has them. Run every tool with Process and an argument array, never a shell string, with a PATH and JAVA_HOME that you set, a 10 second timeout for quick calls and no timeout for downloads. - A checklist card with three rows, each with a status and one button: Homebrew (if missing, a "Get Homebrew" button that opens brew.sh; never install it yourself), Java (brew install the OpenJDK that the docs say sdkmanager needs), and the Android command line tools (brew install --cask android-commandlinetools, or download the official zip into the app's SDK folder and unpack it with /usr/bin/unzip into cmdline-tools/latest). Each install streams its output into a log with a progress bar and a Cancel button. Accept the SDK licenses only after showing the license text and a clear "I accept" button, then run sdkmanager --licenses answering for the user. - "Install the emulator": run sdkmanager to install emulator and platform-tools, with the download size shown if the docs allow it, and the output streamed. PHONES - "New phone": choose a Pixel model name from avdmanager list device, an Android version (the system images installed or available), and Google Play or not (say that Google Play images are the only ones that include the Play Store). If the system image is not installed, offer to install it (about 1.5 GB) before creating. Create it with avdmanager create avd, with the name the user chooses, and show the real error text if it fails. - A list of phones (avdmanager list avd) with Start, Stop, Wipe data and Delete (with confirmation). Start runs emulator -avd <name> as a child process the app watches; show Starting, Booting (until adb shell getprop sys.boot_completed returns 1) and Running. Offer options: cold boot, no snapshot, a window scale, and a GPU mode of auto. Stop sends the emulator's kill command through adb emu kill and falls back to terminating the process after 10 seconds. - Install apps: a drop zone and a button for .apk files that runs adb install -r on the running phone, shows the output, and lists the installed packages (adb shell pm list packages -3) with an Uninstall button each. A "Take screenshot" button using adb exec-out screencap -p with a save panel. - Logs: a window with the emulator's own output and a Show Details box for any error. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Only Apple frameworks, no packages, no Xcode project or asset catalog. Modular: AndroidTools (finds and runs the tools, parses their output), SetupController, PhoneStore, EmulatorProcess (start, watch, stop), ApkInstaller and the views. - Read process output with pipe readability handlers and never block the main thread. Parse avdmanager and sdkmanager text output carefully, and show the raw text when parsing fails. - The code is compiled later on the user's Mac, not here, so check every initializer, argument label and optional. No force-unwraps. - Do not fake anything: no sample phones, no pretend progress. If something cannot work, show that state in the app. The emulator window and its sound are Google's, and the app must say that. - In your reply, say in a few sentences what you built, what the lookups changed, and what you could not test (none of the tools were run, so the install steps, the boot detection and adb installs are untested).
View app: Free ChatFree Chat
A minimal chat on OpenRouter's free models. Sign in with OpenRouter, and it picks the fastest free model and falls back if one is busy.
Prompt
Build a native Mac app called Free Chat: an instant, minimal, clean chatbot that runs on OpenRouter's free models and always answers. The user signs in with their OpenRouter account once (OAuth), and from then on the app finds the best free model by itself, falls back automatically when one fails, and just chats. No settings to learn. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Do not rely on memory. Read: (1) https://openrouter.ai/docs/guides/overview/auth/oauth (the PKCE flow: the authorization URL with callback_url, code_challenge and code_challenge_method=S256, and the POST to https://openrouter.ai/api/v1/auth/keys with the code and code_verifier) and find out exactly which callback URLs OpenRouter accepts (https, http://localhost with a port, or a custom app scheme); (2) https://openrouter.ai/docs/api-reference (chat completions with stream: true, the server-sent event format, the error codes 401, 402, 429 and 5xx, and the optional headers HTTP-Referer and X-Title); (3) the models list (GET https://openrouter.ai/api/v1/models, how to tell a free model: ids ending in :free or zero prompt and completion pricing, and the context length and supported input types such as image); (4) the Free Models Router (model id openrouter/free) and the page on free model limits (requests per minute and per day, and how adding credits raises the daily limit); (5) any endpoint or field that publishes a model's uptime or latency (for example /api/v1/models/{author}/{slug}/endpoints). Where a page disagrees with this prompt, follow the page and say what changed. SIGN IN FIRST (the first screen) - If there is no key in the Keychain, show one clean screen: the app name, one line ("Free AI chat through your OpenRouter account"), a big "Sign in with OpenRouter" button, and under it a small "Use my own API key" link that reveals a secure field (validate the key with a small authenticated call, then save it). - OAuth with PKCE: CryptoKit SHA-256 for the code_challenge and a random 64-character code_verifier. Use whichever callback OpenRouter really accepts. Preferred: ASWebAuthenticationSession with a custom scheme if the docs allow it; otherwise start a tiny local HTTP listener on 127.0.0.1 (Network framework NWListener, a free port, closed right after one request) and open the sign-in page in the default browser, then show a friendly "You can close the browser tab" page. Exchange the code for a key, then store only the key in the Keychain (Security framework, kSecClassGenericPassword, this app's service name). Never write the key to UserDefaults, a file, a log or the screen. - Handle a cancelled sign-in, a closed browser, a timeout (after 3 minutes), no network, and a rejected exchange with plain-language messages and a Try again button. - Sign out (menu): delete the key from the Keychain and return to the sign-in screen. Also a menu item "Manage keys on OpenRouter" that opens https://openrouter.ai/keys. FINDING THE BEST FREE MODEL (automatic, invisible) - After sign-in, and again on every launch (cached for 15 minutes in Application Support), call the models list and keep the free models. Rank them with the published uptime and latency if the research found them, then send a tiny test request (max_tokens 1, a 6 second timeout) to only the top 3 to 5 candidates, in parallel, and sort by the measured time to the first token. Do not probe every free model: free requests count against a daily limit (about 50 per day for accounts without credits), so keep probes few and cached, and never probe again after a successful chat unless a failure happens. Say nothing about this unless the user opens the model menu. - The result is an ordered ladder: [fastest probed model, next, next, ..., openrouter/free as the last resort]. If probing fails entirely (offline or rate limited), the ladder is just openrouter/free so chat still works. - Fallback while chatting: if a request fails with 429, 5xx, a timeout over 8 seconds before the first token, an empty reply or a model that no longer exists, silently retry the same message on the next model in the ladder (up to 4 tries) and mark the failed one as "cooling down" for 10 minutes. The user sees only a small label under the answer ("answered by <model name>", and "switched from <model> because it was busy" when it fell back). Respect a Retry-After header. If all fail, say so plainly with a Try again button and the real reason (for example "Daily free limit reached; it resets at midnight UTC, or add credits at openrouter.ai"). - Handle 401 (the key was revoked: show the sign-in screen with a message) and 402 (out of credit on a paid model: skip to a free one) differently from the others. - A model menu (small, in the toolbar) shows "Auto (fastest free)" by default, the current model, and a list of the free models with a refresh button. Choosing one pins it for that chat, and it still falls back if it fails. THE CHAT (opens straight after sign-in, minimal and fast) - One window: a slim sidebar of saved chats (title from the first message, delete, rename), a large conversation area, and a multi-line input at the bottom (Return sends, Shift-Return makes a new line, a Stop button while streaming). - Streaming replies with server-sent events (URLSession bytes(for:) or a delegate), text appearing token by token with no lag, auto-scroll that stops when the user scrolls up, and a "thinking" indicator until the first token. Never block the main thread. - Render Markdown (AttributedString(markdown:) for text, and a monospaced block with a Copy button for fenced code), selectable text, and a Copy button on each reply and Regenerate on the last one. - Images: drag and drop or paste an image into the input to attach it (only if the chosen model accepts images; otherwise say "this model can't see images" and offer to switch to one that can, using the ladder filtered to vision-capable models). Send images as base64 data URLs; limit size and downscale large ones. - A system prompt field (global, default empty) in a small settings sheet, plus the keyboard shortcut for new chat (Command-N). - Save every chat as JSON in Application Support (the last 200 chats), loaded lazily. Send the whole conversation each time, and trim the oldest messages to fit the model's context length. - Menu bar icon: an NSStatusItem with a global hotkey (Control-Option-Space, registered with the Carbon RegisterEventHotKey API, and say in the settings if it conflicts) that shows the window and focuses the input. Also an item to start a new chat and to quit. - Looks: native and calm. System fonts, a clean light and dark mode, rounded message bubbles (the user's tinted, the assistant's plain), generous spacing, subtle animation, a small status dot in the toolbar (green: ready, yellow: switching model, red: failing). No clutter and no onboarding tour. First message to first token should feel instant. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Only Apple frameworks, no packages, no Xcode project or asset catalog. Modular files: OpenRouterAuth (PKCE, callback, exchange), KeychainStore, OpenRouterClient (models, chat streaming, errors), ModelRanker (stats, probes, cache, ladder, cool-downs), ChatStore, ChatViewModel (fallback logic), MarkdownView, and the views. Add the network client entitlement and a URL scheme only if the research says it is needed. - The code is compiled later on the user's Mac, not here: check every initializer, argument label and optional, with no force-unwraps. Do not fake anything: no sample models, no pretend replies. Show every real error in plain language with a Show Details box. - In your reply, say in a few sentences what you built, what the lookups changed (the callback rules, the model fields, the limits), and what you could not test: the OAuth sign-in, the streaming format, the ranking and the fallback behaviour were not run.
View app: File ActionsFile Actions
Drop in any file and see what you can do with it. For the hard things, say it in plain words and check the command first.
Prompt
Build a native Mac app called File Actions. Drop in any file and it shows the actions that make sense for that kind of file. For the hard ones (trim a video, convert audio, resize pictures) you type what you want in plain words, an AI turns it into a real command, shows the command and a short plain summary, and you press "Run". Nothing runs until you press Run, and your original file is never changed. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Do not rely on memory. Read: (1) FFmpeg's documentation for ffmpeg and ffprobe: trimming with -ss, -to and -t (before and after -i, and what each does to accuracy), -c copy versus re-encoding, the concat demuxer, scale, fps, atempo, loudnorm, -an, -vn, -n (never overwrite), and ffprobe -show_format -show_streams -of json; (2) where to get a trusted static ffmpeg and ffprobe build for macOS on Apple silicon (an official or well-known builds page, with a published checksum), its license, and its size; (3) the OpenRouter documentation for OAuth with PKCE (sign in, get a key), the chat completions API with response_format json, and how to find free models (the models list with pricing zero), as a way to try several free models in order; (4) Ollama's local HTTP API (/api/chat with format json, /api/tags) for people who run models on their own Mac; (5) Apple's documentation for UTType and file type conformance, AVKit AVPlayerView, AVFoundation duration and tracks, the sips and afconvert command line tools, and PDFKit; (6) whether Apple's on-device Foundation Models framework exists on this Mac's macOS version (use it only behind #available, as a third AI choice). Also find out whether a Swift-Package-built app can add Finder integration (Open With, Services menu, a Finder extension) and say what you found: if not possible, say so on the first screen and use the drop zone instead. Where a page disagrees with this prompt, follow the page and say what changed. THE WINDOW - A big drop zone ("Drop a file here, or choose one"), plus Open... (NSOpenPanel) and, if the research shows it can work, a "Use the file selected in Finder" button (AppleScript or the Scripting Bridge; say plainly if macOS blocks it and how to allow it). Several files at once are allowed for actions that make sense for many (Rename, Convert, Compress). - After a drop: a card with the file's icon, name, size, kind and, from ffprobe or AVFoundation, the duration, resolution, codecs and bit rate. Video and audio get a small player (AVPlayerView) so the user can find the times they want, with "Use this time" buttons that put the current time into the text box. - Below it, the actions for that kind of file, as buttons: ALL files: Rename (with AI help), Compress to .zip, Show info, Copy path, Show in Finder. VIDEO: Trim or cut parts, Convert (mp4, mov, webm, gif), Extract audio, Make smaller, Change speed, Remove sound, Resize, Make a GIF. AUDIO: Trim or cut parts, Convert (mp3, m4a, wav, flac), Make quieter or louder or even out the volume, Change speed. IMAGES: Convert (jpg, png, heic, webp), Resize, Make smaller, Remove location data, Rotate. PDF: Extract pages, Merge, Make smaller, Pages to images. FOLDERS: Compress to .zip. ARCHIVES: Extract. Show only what fits the file. A "Something else..." button takes any request in plain words for that file type. - Easy actions (Rename, Zip, Show info, Copy path, Convert an image with sips, Convert audio with afconvert) run with no AI and show the exact command too. THE AI STEP (the important part) - When the user types a request ("keep from 2:10 to 5:30, then make it 720p mp4", "cut out the first minute", "make the file name lower case and add today's date"), build a prompt that contains ONLY: the request, the file's name, extension, size and the ffprobe or AVFoundation facts. Never send the file's contents. Show a "What will be sent" box before the first request and keep it one click away after. - The AI must answer in JSON only: a list of steps, each with the program name (only ffmpeg, ffprobe, sips, afconvert or zip names from an allow list), an arguments array, the output file name, and a summary in plain words, plus a warnings list (for example "this re-encodes, so it takes longer" or "cutting without re-encoding can be a second off"). Where it fits, offer two versions: Fast (no re-encode, may be slightly off) and Exact (re-encode). - Show the result as: a short summary in everyday words ("Keeps 2:10 to 5:30 and saves it as a 720p .mp4"), the full command in a monospaced box with a Copy button, the warnings, the output name, and the buttons "Run", "Change my request" and "Cancel". Several steps (convert, then cut) show as a numbered list that runs one after the other with temporary files in between. - Check the answer before showing it, in code, not by trusting the AI: the program must be in the allow list and resolve to the downloaded or system tool; the arguments are passed as an array to Process (never a shell string); all paths must be the chosen file or the output folder; never allow overwriting (use ffmpeg -n and a new name like "name (cut).mp4"); reject anything else and say why in plain words, then ask the AI once to try again. - Run with Process, stream progress into a progress bar (parse ffmpeg's time against the duration) with Cancel, then show the result with "Show in Finder", "Play" and "Run another action on this". Show friendly errors with a Show Details box that has the tool's real error text. SET-UP - Tools: on first need, download ffmpeg and ffprobe into Application Support/File Actions/bin with progress, a checksum and Cancel (the source you found). Images, zip and simple audio use the Mac's own tools, so those work with no download. - AI choices in Settings: "OpenRouter" (a Sign in button with OAuth PKCE, the key kept in the Keychain, tries free models in order and shows which one answered), "Ollama" (finds it on this Mac and lists the models), and "Apple on-device" (only if available). If none is set up, the first screen offers the easy no-AI actions and a clear "Set up AI" button. - A history of the last 20 requests with their commands (name, request, command, result) in Application Support, with Re-run and Delete. Nothing leaves the Mac except the AI request text described above. QUALITY - macOS 13 or later, Apple silicon, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Only Apple frameworks, no packages, no Xcode project or asset catalog. Modular: FileKinds (types and which actions fit), ProbeService, AIClient (OpenRouter, Ollama, Apple), CommandPlanner (parse and validate the JSON), ToolRunner, ToolInstaller, ActionsView and the views. Network, file and process work off the main thread. - The code is compiled later on the user's Mac, not here: check every initializer, argument label and optional, with no force-unwraps. Do not fake anything: no sample files, no pretend AI answers; if the AI is not set up, say so. - In your reply, say in a few sentences what you built, what the lookups changed (the ffmpeg source, the OAuth steps, the Finder integration), and what you could not test: the tool download, the AI answers, the Finder selection button, real trims and conversions and the progress bar were not run.
View app: Hotkey LauncherHotkey Launcher
Your own global shortcuts: press a key combination to open an app, a folder, a file or a website, or to run a Shortcut.
Prompt
Build a native Mac menu bar app called Hotkey Launcher: set your own global keyboard shortcuts that open an app, a folder, a file, a website, or run a Shortcuts automation, from anywhere. Use the KeyboardShortcuts Swift package (by Sindre Sorhus, MIT license) for the shortcut recorder and the global hotkeys. It is the only third-party package; everything else is Apple frameworks. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Do not rely on memory. Read the KeyboardShortcuts README: (1) how to add it to Package.swift with an exact version and the product name; (2) KeyboardShortcuts.Name, KeyboardShortcuts.Recorder (the SwiftUI view), onKeyUp and onKeyDown handlers, getShortcut, setShortcut, reset, and how it warns about shortcuts the system already uses; (3) how shortcut names are created at run time for a user-made list (not only constants); (4) the minimum macOS version of the package. Also read Apple's documentation for NSWorkspace (open(_:), openApplication(at:configuration:), activateFileViewerSelecting), SMAppService (launch at login), MenuBarExtra and NSOpenPanel, and how to run a Shortcuts automation (the shortcuts:// URL scheme "run-shortcut?name="; check the exact format). Where a page disagrees with this prompt, follow the page and say what changed. WHAT THE APP DOES - A menu bar app (LSUIElement true, SF Symbol icon, no picture files). The menu lists the user's shortcuts with their key combination, a "Pause all shortcuts" switch, "Open Settings" and "Quit". - The Settings window is a simple list. "Add" opens a small form: a name, an action type (Open an app, Open a folder or file, Open a website, Run a Shortcut), the target (an NSOpenPanel for apps, folders and files; a text field for a website, checked to start with http:// or https://; a field for the Shortcut's name), and the KeyboardShortcuts.Recorder. Each row can be edited, switched off or deleted. Show a clear warning if two entries use the same keys or the keys are already taken by the system, using what the package reports. - An action that opens an app brings it to the front if it is already running. A website opens in the default browser. A missing target (an app that was moved or deleted) shows a red "Not found" note on the row and a notification when the key is pressed, never a silent failure. - Import and export of the list as a small JSON file. Stored in UserDefaults or a JSON file in Application Support, with the shortcuts themselves kept by the package. - Settings: "Launch at login" (SMAppService), "Show a small notification when a shortcut runs", and "Reset all shortcuts" with a confirmation. TRUST - The app records no keystrokes except the combinations the user sets, and sends nothing anywhere: no network code at all. Say so in an About box. A first-run card explains the shortcuts and the one thing that can go wrong (a combination another app also uses). QUALITY - macOS 13 or later (raise it if the package needs more), Swift 5 language mode, SwiftUI with an AppKit app delegate for the menu bar item. No Xcode project, no asset catalog. Modular: ShortcutStore, ActionRunner, SettingsView, EditorForm and the menu. Friendly errors with a Show Details box. - The code is compiled later on the user's Mac, not here: check every initializer, argument label and optional, with no force-unwraps. Do not fake anything: an empty list says it is empty and shows an Add button. - In your reply, say in a few sentences what you built, what the lookups changed (the package version, the recorder API, the Shortcuts URL), and what you could not test: the global hotkeys on a real Mac, conflicts with the system, launch at login and the Shortcuts action were not run.
View app: SweepSweep
Finds what you can safely free on your Mac, and only ever moves files to the Trash.
Prompt
Build a native macOS SwiftUI app called Sweep, a next-generation Mac cleaner and storage manager that is smarter and safer than the leading mac cleaner app. Target macOS 13 and later, use only Apple frameworks, and run every bit of analysis and AI on the device, with nothing uploaded and no network calls. Design: a calm, modern, spacious interface that looks like a first-party Apple app. Use a translucent sidebar, large rounded cards, SF Pro with generous spacing, SF Symbols with subtle gradients, smooth spring animations and matched-geometry transitions between screens, full light and dark mode, and a menu bar extra showing free space. The home screen is one big animated storage ring (a donut chart colored by category: Apps, Photos, Media, Documents, Developer, System, Caches) with the free space in the middle, a single prominent Smart Scan button, and a one-line summary like "You can safely free 14.2 GB". After a scan, show an animated results screen with one card per finding, each with its size, a short plain-language explanation, and a review button. Cleaning plays a satisfying progress animation and ends with a summary of what was freed. Scanning (run in the background with concurrency and a live progress view, using FileManager enumerators and the resource values for allocated size): user and system caches (~/Library/Caches), logs, old iOS device backups and software updates, Xcode DerivedData, simulators and archives, Homebrew, npm, pip and Gradle caches, Trash and mail attachment downloads, language packs in apps, large files (a size threshold slider) and old files not opened in a long time (use the last-opened date), duplicate files (group by size, then a partial hash, then a full SHA-256 using CryptoKit), and similar or near-duplicate photos (Vision VNGenerateImageFeaturePrintRequest with distance clustering, and pick the sharpest as the one to keep using a Laplacian variance score). On-device AI: (1) Rate each finding as Safe, Review or Keep, with a plain-English reason ("Rebuilt automatically the next time you build the project"), using a rule table for known locations plus the NaturalLanguage framework to tell apart document names (invoices, tax, contracts) that should always be flagged Keep. (2) Smart Photo Cleanup: use VNClassifyImageRequest to find screenshots, receipts, memes, blurry shots and near-duplicates, grouped into suggested clean-ups. (3) Ask Sweep, a text field that takes plain questions like "what is using the most space?" or "what can I delete from my Downloads folder?", with answers drawn from the scan results; use the Foundation Models framework when it is available (macOS 26) and fall back to a built-in keyword and intent matcher on earlier systems. (4) Predict: using the history of past scans stored on disk, show how fast each category grows and warn when the disk will be nearly full ("about 3 weeks at this rate"). Also include: an Applications screen to uninstall an app together with its leftovers (Preferences, Application Support, Caches, Containers, Launch Agents), found by bundle identifier, with sizes; a Startup items screen listing login items and launch agents using ServiceManagement, with an enable and disable toggle; and a Disk Map, an interactive zoomable treemap of a folder, drawn with SwiftUI Canvas, where a click drills into a folder and a right click reveals it in Finder. Safety rules: never delete anything permanently. Move files to the Trash with FileManager.trashItem, show a full list of everything that will be moved, with checkboxes and a Quick Look preview, before any cleaning, and keep a Sweep history screen with a Restore button for each cleaning. Never touch the system volume, anything under /System, /usr or /bin, or the user's Photos library, Mail database or iCloud Drive placeholders. Explain Full Disk Access in a friendly onboarding screen and handle the case where it is not granted, scanning only what is allowed. Be honest in the UI that the Safe, Review and Keep ratings are suggestions, and that the app does not run in the background or hide anything.
View app: Live Linux DesktopLive Linux Desktop
A full Linux desktop in a window on your Mac. Open a browser, check the logs, then stop it when you are done.
Prompt
Build a native Mac app called Live Linux Desktop. One big button starts a real Linux desktop (XFCE, i3, KDE and more) inside a Docker container on Colima (no Docker Desktop, no Virtualization framework, no ISO) and shows it live in the app's own window. If Colima and Docker are missing, the same button installs them. Nothing is sent to a cloud service, except the image download. RESEARCH FIRST (WebSearch and WebFetch before any code) Webtop changes often, so read, not remember: (1) docs.linuxserver.io/images/docker-webtop and fleet.linuxserver.io: the current image name, the flavor tags (alpine-i3, alpine-xfce or latest, debian-xfce, ubuntu-xfce, ubuntu-mate, ubuntu-kde, fedora-xfce and any others), which of them have arm64 (Apple silicon) builds, whether a specific dated or versioned tag can be pinned, the ports (3000 http, 3001 https), the environment variables (PUID, PGID, TZ, TITLE, CUSTOM_USER, PASSWORD and any new ones), the /config volume, and the shm_size advice; (2) how its web desktop streams (Selkies, websockets) and whether it needs HTTPS or a secure context for the keyboard, clipboard or sound; (3) Colima: `colima start --help` (cpu, memory, disk), whether the Mac home folder is mounted into the VM and writable, `brew services start colima`; (4) Apple docs for WKWebView, WKNavigationDelegate server trust challenges, WKUIDelegate (file pickers, new windows) and App Transport Security for http to an IP address; (5) `docker pull` output when it is not a terminal, so layer progress can be parsed. Where a page disagrees with this prompt, follow the page and say what changed. DOCKER AND COLIMA (honest, never a shell string) - Run tools with Process and an argument array, with a PATH that includes /opt/homebrew/bin and /usr/local/bin, a 10 second timeout for quick calls, all off the main thread. Find docker in /opt/homebrew/bin, /usr/local/bin and /Applications/Docker.app/Contents/Resources/bin. - If docker or colima is missing, the main button first asks "Install Colima and Docker?" and then runs brew install colima docker, streaming the output into a log with a progress bar and Cancel. If Homebrew is missing, the button opens https://brew.sh. Never install Homebrew. - If Colima is not running, run colima start --cpu 2 --memory 4 --disk 20 (or what the research recommends for a desktop; changeable in Settings). Check with `docker info`. - Start the desktop with a version-pinned compose file in Application Support/Live Linux Desktop/ if a tag can be pinned, otherwise the flavor tag (say so in About): container name "livelinux", restart: unless-stopped, shm_size 1gb, ports bound to 127.0.0.1 only (3000 and 3001), TZ from TimeZone.current.identifier, PUID and PGID 1000, a named volume for /config (one per flavor, so flavors do not mix). If `docker compose` is missing, fall back to `docker run` with the same settings. - Before starting, try to bind TCP 3000 and 3001 on 127.0.0.1; if taken, show what holds it (lsof -nP -iTCP:3000) and offer other ports. ONE-CLICK FLOW (one window, one big button) - Top card: a logo drawn in code (a small desktop window on a blue gradient), the title, a flavor picker, and one big button: "Launch Linux" the first time (under it: "Downloads about 1 GB once, then starts in a few seconds. Nothing to type."), "Open desktop" afterwards, "Stop" while running. - Flavor picker: Tiny (alpine-i3, about 770 MB), Standard (XFCE), and the others from the research that have an arm64 build. Show each one's approximate download size and say it is approximate. Selecting a flavor never deletes another flavor's data. - Named stages with a real check mark each: Colima ready, Image downloaded, Desktop starting, Ready. Download progress comes from the pull output (count layers: "Pulling fs layer", "Download complete", "Pull complete" and the totals shown), with an indeterminate bar if the format is not parseable. Cancel at any time. Docker errors (no network, disk full, port in use) are shown in plain words with a Show details box. - Health: poll http://127.0.0.1:3000/ every 2 seconds (an IP address, so App Transport Security does not block it); the first start can take a minute. Do not show the desktop until the page answers. - Once ready, show the desktop in a WKWebView that fills the window, with a slim bar on top: Fullscreen, Reload, Open in browser, Logs, Stop, and a "Keys" help. If the research shows the page needs https, load https://127.0.0.1:3001 and accept the self-signed certificate only for host 127.0.0.1 in the WKNavigationDelegate challenge, nowhere else. Handle target=_blank links and file pickers (WKUIDelegate) sensibly. DESKTOP DETAILS (do not promise what the research does not confirm) - Keys help: Mac shortcuts such as Command-C may not reach Linux; say what works, from the research. Say that sound, clipboard sharing and window resizing depend on the web desktop and the browser engine, and test none of them in the reply. - A shared folder: an optional "Share a Mac folder" button (open panel) that mounts it into the container, for example at /config/MacShare, but only if the research shows Colima can mount that path writable; otherwise hide it and say why. - Settings: flavor, CPU and memory for Colima, ports, "Require a password" (CUSTOM_USER and PASSWORD, stored in the Keychain, shown with Copy), "Start Colima at login" (brew services start colima; only if the research confirms it), launch at login (SMAppService.mainApp), "Stop Colima when I quit" (off by default, with a note that Colima uses memory while it runs), Update (pull the newest image for the flavor and recreate the container; the volume is kept), Reveal the app folder, and "Remove this flavor" (confirmation naming what is deleted: the container and its volume). - Menu bar icon: grey stopped, orange starting, green running; menu: status, Open desktop, Stop, Quit. Do not stop the container on quit. - Logs window: docker logs --tail 300 livelinux with Refresh, Follow, Copy, Save. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published, one NSViewRepresentable for the WKWebView. Apple frameworks only, no packages, no Xcode project or asset catalog. Modules: DockerCLI, ColimaManager, DesktopController (compose file, start/stop, health), PullProgress, WebDesktopView, SettingsStore and the views. - The code is compiled later on the user's Mac: check every initializer, label and optional, no force-unwraps. Do not fake anything: no pretend progress, no pretend desktop. - In your reply, say what you built, what the research changed, and what you could not test.
View app: PageLensPageLens
Type what you want to do in your browser, and PageLens clicks, scrolls, reads and finds it for you.
Prompt
Build a polished native macOS Swift app called **PageLens**: an on-device AI assistant that can read and control the currently active browser using the macOS Accessibility API. ## Core concept The user presses a global hotkey and types commands like: * "Click Sign Up" * "Click the first Buy button" * "Click the button next to Pricing" * "Read this page" * "Summarize this page" * "Find the refund policy" * "What does this page say about pricing?" * "Scroll down" * "Scroll to the reviews" * "Go back" * "Go forward" * "Open the first link mentioning GitHub" * "Fill in my email" * "Select all the text in this field" * "Copy the article text" * "Find every occurrence of 'Apple'" * "What buttons are available here?" The app should translate natural-language commands into actions against the browser's Accessibility tree. ## Essential features ### 1. Click Anything Command: **"Click _____"** The AI searches the current Accessibility tree for the best matching element and clicks it. Examples: * "Click Login" * "Click Buy Now" * "Click the third result" * "Click the link about pricing" Show the matched element before executing when ambiguity exists. ### 2. Read Page Extract meaningful visible content from the Accessibility tree and present a clean text representation. Ignore irrelevant browser chrome, duplicate elements, hidden elements, and decorative UI where possible. ### 3. Ask About Page Allow questions such as: * "What is this website?" * "How much does this cost?" * "Who wrote this?" * "What are the requirements?" * "Summarize the reviews." Answers must be grounded exclusively in the locally extracted page content. ### 4. Find Natural-language search: * "Find the refund policy" * "Where does it mention pricing?" * "Find the contact information" Highlight/focus the matching Accessibility element when possible. ### 5. Scroll Support: * "Scroll down" * "Scroll up" * "Scroll to the reviews" * "Scroll to pricing" * "Scroll to the bottom" Use Accessibility actions where available and fall back to keyboard/scroll events when appropriate. ### 6. Type / Fill Support commands such as: * "Enter [john@example.com](mailto:john@example.com)" * "Type my name into the name field" * "Fill the search box with Mac apps" * "Replace this text with..." Identify the appropriate input field through the Accessibility tree. Never invent personal information. ### 7. Keyboard Actions Support safe commands: * Copy * Paste * Select all * Enter * Escape * Tab * Delete * Arrow keys ### 8. Links Commands: * "Open the first link" * "Open the GitHub link" * "Open this article" * "Open every link mentioning X" ### 9. Browser Navigation Support: * Back * Forward * Reload * New tab * Close tab * Switch tab Use browser Accessibility APIs where possible and standard keyboard shortcuts as fallback. ### 10. Page Element Inspector Include a developer/debug mode showing: * Accessibility role * Element title * Value * Description * Position * Size * Enabled/disabled state * Actions supported * Parent/child hierarchy Allow clicking an element in the browser and seeing its Accessibility representation when technically possible. ## AI architecture Use **only on-device AI**. No OpenAI API. No Anthropic API. No Gemini. No server. No external inference. Use Apple's available on-device Foundation Models APIs where appropriate. Keep deterministic operations deterministic. Do NOT ask the LLM to perform tasks that can be handled directly by Accessibility APIs. For example: **User:** "Click Buy Now" → extract Accessibility tree → AI resolves "Buy Now" to an element → deterministic Swift code calls the element's AXPress action. The AI should primarily perform: 1. Intent understanding 2. Element matching 3. Ambiguity resolution 4. Page-content reasoning Swift should perform: 1. Accessibility traversal 2. Element lookup 3. Clicking 4. Typing 5. Scrolling 6. Keyboard events 7. Browser interaction ## Safety For potentially destructive or consequential actions, require confirmation: * Purchasing * Submitting forms * Sending messages * Deleting content * Closing unsaved work * Changing account/security settings Example: > **Click "Place Order"?** > This may submit a purchase. > > [Cancel] [Click] Safe actions such as reading, scrolling, finding, and navigating can execute immediately. ## Privacy * Accessibility permission required. * Explain exactly why it is needed. * No telemetry. * No analytics. * No cloud processing. * No page content uploaded anywhere. * No screenshots required. * Keep extracted content in memory only. * Never persist browser content unless explicitly requested. ## UI Use native SwiftUI with a compact Raycast-like command palette. Main interface: **What do you want to do?** `Click the pricing button` Below it, show contextual suggestions: `Read page` · `Summarize` · `Find...` · `Click...` · `Scroll...` After execution, show a concise result: ✓ Clicked **Start Free Trial** Include a small expandable "Why?" / debug panel showing which Accessibility element was selected. ## Browser support Initially support: * Safari * Chrome * Firefox * Arc * Brave * Edge Design the Accessibility layer so browser-specific quirks can be handled by adapters without changing the AI/action architecture. ## Technical requirements * Swift * SwiftUI * ApplicationServices / AXUIElement * Native macOS app * Apple Silicon optimized * Accessibility permission onboarding * Global keyboard shortcut * No browser extension * No server * No API keys * On-device AI only * Clean modular architecture * Robust handling of stale/inaccessible AXUIElements * Never crash when Accessibility information is incomplete The final product should feel like **"Raycast for controlling whatever is currently open in your browser"**, but powered entirely by the Mac's local Accessibility APIs and on-device AI. Instead of hand-written rules, use a small free open model for intent understanding and element matching: Apple's on-device Foundation Models when available, otherwise a one-time optional download of Qwen2.5 1.5B Instruct (Q4_K_M GGUF) from Hugging Face, run locally with a built-in GGUF runtime written in Swift. Keep a plain text-matching fallback for when no model is installed.
Network
Prompt
Build a macOS app called Lite Blocker, a small conceptual copy of the main features of uBlock Origin Lite. It reads standard filter lists (EasyList and uBlock syntax) and converts them to WebKit content rule lists (the JSON format used by Safari content blockers): network rules such as ||example.com^ and /ads/*, the $third-party, $image, $script and $domain= options, exception rules starting with @@, and cosmetic rules such as ##.banner that hide elements (css-display-none). Bundle a small starter list inside the app, and let the user add a list by URL or by pasting text, switch each list on or off, and refresh them. Include a built-in browser tab (WKWebView with the compiled WKContentRuleList) so blocking really works there, with a counter of blocked requests for the current page and a per-site Pause switch. Add a Rules tab showing how many rules each list produced and the rules that were skipped as unsupported, a URL tester where you type a URL and see which rule would block it, a Custom rules editor, and an Export button that saves the content blocker JSON file. Say in the UI that Safari itself is not changed.
Prompt
Build a macOS app called Line Speed, an internet speed test. A big Start button runs three phases with a live gauge: latency and jitter (20 small requests, showing the median and the spread), download speed and upload speed in Mbps. Measure against Cloudflare's public speed test endpoints (https://speed.cloudflare.com/__down?bytes=N for download and POST to https://speed.cloudflare.com/__up for upload) using URLSession with several parallel connections, increasing the file size until the speed stabilises, and report the stable average. Show a live line graph of the speed during each phase, the result in large type, and a History list (saved as JSON in Application Support) with a small chart of past results and a Copy result button. Handle being offline with a clear message, and add a Cancel button.
Prompt
A macOS video player app called PlayTube. The user pastes a YouTube URL (watch, youtu.be or shorts) into a field and presses Play. The video plays inside the app. Extract the 11-character video ID, and show a clear error if it is invalid. Playback must come only from Invidious instances, never from YouTube. Fetch https://api.invidious.io/instances.json (cache it on disk for 6 hours, with a built-in list of a few instances as a fallback), keep https instances where api is true, rank them by uptime and try the top 5 in turn. For each instance: GET {instance}/api/v1/videos/{id} with a 6 second timeout and play the best muxed stream from formatStreams in AVPlayer (retry once with ?local=true); if that fails, load {instance}/embed/{id} in a WKWebView; then move on to the next instance. If all fail, list what each instance returned (name, HTTP status or error) and show Retry and Open in browser buttons. Open in browser must always open the best-ranked Invidious instance's page, https://{instance}/watch?v={id}, never youtube.com, and no part of the app (including status and error text) may open or link to youtube.com. Show the active instance in a status line, a spinner while trying, the title and channel when known, and remember the last pasted URL. Use only built-in frameworks.
View app: Toob-DownerToob-Downer
Paste a video link and save the video to your Mac, with a queue to keep track.
Prompt
Build a polished, production-ready native macOS app in Swift + SwiftUI that is a GUI frontend for yt-dlp. Do NOT reimplement video-site extraction. yt-dlp must be the actual download engine. Name the app Toob Downer. IMPORTANT: The app must work on a clean Mac without requiring Python, Homebrew, Node, Electron, Terminal commands, or manually installed dependencies. ## AUTOMATIC DEPENDENCIES On first launch, Toob Downer MUST automatically download and install everything required: * yt-dlp * FFmpeg + ffprobe * yt-dlp-ejs * Deno JavaScript runtime Store app-managed tools in: ~/Library/Application Support/<AppName>/Tools/ Detect Apple Silicon vs Intel and download the correct binaries. Show a beautiful first-launch setup screen with: * Dependency download progress * Current component * Overall percentage * Installed/failed status * Retry button After installation, validate every executable and perform a basic yt-dlp smoke test. Dependencies must be versioned, validated, updated safely, and repairable from Settings. Never overwrite a working installation with a failed download. ## MAIN UI Create a minimal, premium native Mac interface. Top: * URL input * Paste button * Download button After entering a URL, run yt-dlp format discovery and show: * Thumbnail * Title * Duration * Uploader * Available qualities * Available formats Provide simple presets: * Best Quality * 4K * 1080p * 720p * Audio Only Also provide an Advanced Formats option for choosing exact video/audio formats. ## DOWNLOAD QUEUE Support multiple downloads with: * Queue * Start/pause * Resume * Cancel * Retry * Reorder * Remove * Progress percentage * Download speed * ETA * Current file size * Final file size Parse yt-dlp stdout/stderr reliably rather than faking progress. Downloads must continue correctly when the UI is reopened. ## FEATURES Support: * Individual videos * Playlists * Audio extraction * MP3/M4A/Opus/etc. * Subtitles * Automatic subtitle selection * Thumbnail embedding * Metadata embedding * Custom filename templates * Custom download folder * Playlist numbering * Date/title/uploader variables Use FFmpeg for merging and post-processing. ## ADVANCED OPTIONS Expose useful yt-dlp options without making the main UI complicated: * Cookies/browser cookies * Custom User-Agent * Proxy * Rate limit * Retries * Fragment concurrency * Network timeout * Output template * Subtitle language * Embed thumbnail * Embed metadata Allow users to enter additional yt-dlp arguments in an advanced field. ## HISTORY Create a native history screen showing: * Title * Thumbnail * Date * Status * File location * Source URL Allow opening the downloaded file/folder and retrying failed downloads. Persist history locally. ## SYSTEM INTEGRATION Add: * Native macOS notifications * Drag-and-drop URLs * Clipboard monitoring as an optional setting * Share Extension if practical * macOS Services/Quick Action if practical Do not require a browser extension. ## DIAGNOSTICS Create a Diagnostics screen showing: * yt-dlp version * FFmpeg version * Deno version * yt-dlp-ejs status * Tool paths * macOS version * Architecture * Dependency health Include "Repair Dependencies" and "Run Diagnostics". Each download should have accessible logs for troubleshooting. ## ARCHITECTURE Use clean modular Swift code: AppState DependencyManager YTDLPManager FFmpegManager DenoManager EJSManager DownloadManager DownloadTask FormatManager ProcessRunner ProgressParser PlaylistManager HistoryStore SettingsStore LogManager NotificationManager Use Process for executing bundled tools. Never shell out through Terminal or rely on shell configuration. Use structured async/await where appropriate. Avoid blocking the main thread. ## ERROR HANDLING Handle gracefully: * Invalid URLs * Unsupported sites * Private/unavailable videos * Network failures * Rate limiting * Missing formats * FFmpeg failures * Dependency corruption * Interrupted downloads * Disk-space problems * Permission errors Show useful human-readable errors while preserving detailed technical logs. ## SECURITY Treat URLs, filenames, metadata, and subprocess arguments safely. Do not construct unsafe shell commands. Pass Process arguments directly. Do not implement DRM circumvention, paywall bypassing, CAPTCHA bypassing, credential theft, or other access-control bypasses. ## APP QUALITY The result must feel like a real Mac utility, not a web app. Use native SwiftUI controls, menus, sheets, alerts, keyboard shortcuts, toolbar commands, progress indicators, and proper macOS window behavior. Support light/dark mode and Dynamic Type. Remember the user's settings. ## CRITICAL REQUIREMENT Do not stop at creating the UI. Actually implement the complete working pipeline: URL → yt-dlp format discovery → format selection → yt-dlp download → FFmpeg processing → completed file. The app must automatically obtain and configure all required dependencies on a clean Mac. Before finishing, compile the app and test the complete flow end-to-end, including first-launch dependency installation, format discovery, video download, audio extraction, FFmpeg processing, subtitles, playlist downloads, cancellation, resume, restart recovery, and dependency repair. Deliver a normal native `.app`, with a DMG packaging configuration suitable for distribution.
View app: Soulseek LiteSoulseek Lite
A compact Soulseek search-and-download client, built from the open-source seeleseek project.
Prompt
Build a simple, fast, polished Soulseek search-and-download app for Mac, based on this open-source Swift project: https://github.com/bretth18/seeleseek The goal is the smallest good Soulseek client: open, search, select, download. Keep seeleseek's working Soulseek engine. Do not write a Soulseek client from scratch and do not replace its protocol code. HOW TO PORT IT (read this first) - The repo is in Imported/. Read its README, then Packages/SeeleseekCore/Sources/SeeleseekCore/. That local package is the engine (protocol messages, server and peer connections, search, downloads) and needs no third-party libraries. - Copy the engine's Swift files into Sources/App/ one by one, keeping the code as it is. Change it only where the build needs it. Merging a package into one target can cause name clashes or access-control problems: fix those with the smallest edit. - Keep from SeeleseekCore: Network/ (connections, protocol, handlers, NetworkClient and its extensions, services such as the listener and NAT), the Models it needs, and the download side of Storage/. Skip the upload and sharing side (UploadManager, ShareManager and what only they use) unless the engine will not compile without it: use small stubs for those instead. - From the app target (seeleseek/), read only AppState, ConnectionState, SearchState, LoginView and SearchView to see how the engine is driven. Write your own small views. Do not read or port Chat, Browse, Metadata, Console, MenuBar, Debug, DesignSystem visualizations, client importers or the settings sections. - The app target stores data with GRDB (the Database/ folder). GRDB is not available. Replace storage with JSON files in Application Support and UserDefaults, and the Keychain for the password. - Target macOS 13, Swift 5 language mode. @Observable and the Observation framework need macOS 14, so use ObservableObject and @Published. Avoid APIs newer than macOS 13 (for example Mutex from Synchronization): use NSLock or actors. The code will be compiled later on the user's Mac, not here, so write carefully and re-check every initializer, argument label and optional. - If something in the engine cannot be made to work, say exactly what was left out in your reply. Do not invent search results or fake download progress. - Keep the repository's MIT license: put "Based on seeleseek by bretth18 (MIT license)" in the app's About text or Settings. THE PRODUCT Three actions only: search Soulseek, browse the matching files, download them. No chat rooms, rooms lists, social features, media library, wishlists, uploads UI, dashboards or diagnostics. MAIN WINDOW Compact native SwiftUI, dark charcoal with one restrained accent colour, light and dark mode supported. Compact type, subtle separators, no big cards or gradients. Search results fill most of the window. Top bar: app name and a simple icon, a prominent search field, a Search button, a connection status indicator and a Settings button. Return searches. Cmd+F focuses the search field. Escape cancels a running search or clears focus. Results: a dense native Table with filename, username, format, size, bitrate and duration when the protocol provides them, and a Download button. Sort by filename, size, bitrate and username. Show results as they arrive. A new search cancels the old one, and late results from an old search never appear in the new one. Double-click or press Return on a selection to download. Multi-select and Cmd+A work. Only show metadata the protocol actually gives. Filters, unobtrusive: audio only, file format, minimum bitrate, minimum and maximum size, and a "search within results" box. Downloads view: filename, username, progress, speed and status, with cancel, retry, remove from list and reveal in Finder. Show total speed and the number of active downloads. Downloads keep running when you switch views. Reuse the engine's download manager and persist the list so unfinished downloads show up after a restart. Never show a download as complete until the engine confirms it. SETTINGS AND CONNECTION Reuse the engine's login and connection code. A minimal first-run sign-in for the Soulseek username and password (the user's own account, saved in the Keychain). Settings: username and password, download folder, maximum simultaneous downloads, search timeout, audio filter defaults. Show clear connection states and actionable errors, and reconnect after short network failures without opening a second connection or damaging a transfer in progress. RELIABILITY Handle disconnects, search timeouts, peers that cannot be reached, missing files, cancelled and partial downloads, duplicate results, invalid file names, permission errors and a full disk. Keep network work off the main thread and update UI state on the main actor. CODE Reuse the engine's models and services rather than rewriting them. Keep the structure modular. Do not add dependencies, a backend, Docker, slskd or a web view. In your reply, summarize what you kept, what you replaced and what you left out, in a few sentences.
View app: Docker WrapperDocker Wrapper
Run Uptime Kuma in Docker from your menu bar, with a one-click install of the Colima Docker runtime. No Docker Desktop.
Prompt
Build a native Mac menu bar app called Local Uptime Monitor: a friendly control panel for Uptime Kuma (the open-source uptime monitor) that runs in Docker on this Mac. One click starts it, a native window shows what is up or down, and the full Uptime Kuma dashboard opens in the browser for anything advanced. Nothing is sent to a cloud service. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Docker and Uptime Kuma change often, so do not rely on memory. Before writing code, look up and read: (1) https://github.com/louislam/uptime-kuma and its wiki page on installing with Docker, for the current official image name, the recommended tag (pin a specific major or version tag, never "latest"), the data folder inside the container (/app/data), the port (3001) and any needed environment variables; (2) the Uptime Kuma documentation or wiki for its status page and "push monitor" URLs, and for any endpoint the app can read without a login (for example /api/entry-page and the public status page JSON at /api/status-page/<slug> and /api/status-page/heartbeat/<slug>); (3) Docker's pages for the "docker" command line on Mac (docker version, docker compose, docker ps --format, docker inspect, docker logs) and where Docker Desktop installs its command line tool. Where a page disagrees with this prompt, follow the page and say what you changed in your reply. WHAT THE APP IS A control plane, not a copy of the Uptime Kuma interface. The app starts and stops the container, shows whether it is healthy, and shows the state of the user's monitors in a small native window and a menu bar icon. The user adds and edits monitors in the Uptime Kuma web dashboard, which the app opens with one click. THE DOCKER PART (be careful and honest here) - Find the docker command line tool first: /usr/local/bin/docker, /opt/homebrew/bin/docker, /Applications/Docker.app/Contents/Resources/bin/docker. Run it with Process and an argument array, never a shell string. Give Process an environment with a PATH that includes those folders, because a Mac app does not inherit the shell's PATH. - If Docker is not found, show a clear card: "Docker is not installed", with a button that opens https://www.docker.com/products/docker-desktop/ in the browser, a "Check again" button, and one sentence saying that Docker Desktop is free for personal use. Never download or install Docker for the user. - If Docker is installed but not running, `docker info` fails. Say "Docker is not running" and offer "Start Docker Desktop" (open -a Docker through NSWorkspace) and then wait and re-check every 2 seconds for up to 90 seconds, with a progress indicator and a Cancel button. - Write a version-pinned docker-compose.yml into Application Support/Local Uptime Monitor/ on first run (the image tag from your research, restart: unless-stopped, ports "127.0.0.1:3001:3001" so it is only reachable from this Mac, volume ./data:/app/data). Use `docker compose -f <file> up -d` to start, `docker compose -f <file> stop` to stop, and `docker compose -f <file> down` only for Remove. If the compose subcommand is missing, say so and fall back to plain `docker run` with the same settings and a fixed container name "local-uptime-monitor". - First start pulls the image (a few hundred MB). Show "Downloading the Uptime Kuma image" with the pull output streamed into a log area, an indeterminate progress bar, and Cancel. Show real errors from docker (no network, disk full, port in use) in plain words, with a "Show details" box holding the raw output. - Port conflicts: before starting, check whether 3001 is free (try to bind it with a socket). If it is not free and not our container, offer to use another port (3002 to 3010), saved in the settings and written into the compose file. - Health: poll http://127.0.0.1:<port>/ every 3 seconds (an IP address, so App Transport Security does not block it) and use `docker inspect` for the container state. Status dot: stopped, starting (the container runs but the page does not answer yet), running, error. Wait for the page to answer before enabling "Open dashboard". Stop polling quickly when the app quits and leave the container as the user had it (do not stop it on quit unless a Settings switch says so; default off). - Persistent data: everything lives in Application Support/Local Uptime Monitor/data. Never delete it except from an explicit "Remove everything" button with a confirmation that names the folder. THE NATIVE PARTS - Menu bar icon (MenuBarExtra, macOS 13) that changes with the state: grey (Docker or Kuma not running), green (everything up), red (something down), plus a menu with: status line, "Open dashboard", Start/Stop, "Open window", Quit. - One main window with: the setup card shown while Docker or the container are not ready; once running, the dashboard summary and the buttons Open dashboard, Start/Stop, Restart, Logs, Backup, Settings. - Monitor summary: the first time the dashboard opens, Uptime Kuma asks the user to create an admin account in the browser. Be honest about it: the app cannot see the monitors until a public status page exists. Show a short "Show my monitors here" guide: (1) open the dashboard and create the admin account, (2) add monitors, (3) create a status page with the slug you choose and add the monitors to it, (4) enter the slug in the app's Settings. When a slug is set, read /api/status-page/<slug> and /api/status-page/heartbeat/<slug> (check the real shape from the documentation or from a live response; do not guess field names) and show each monitor with its name, current up or down state, and its last response time. Refresh every 30 seconds. If the endpoint answers 404 or the shape is not what you expected, say "Could not read the status page" and show the status code. Do not ask for or store the admin password anywhere. - Notifications: when a monitor goes from up to down, or back, send a macOS notification (UserNotifications, ask permission at first launch of the monitor list, never block on it) with the monitor name. Do not notify for a state that was already true when the app started. - Logs: a window that shows `docker logs --tail 300 local-uptime-monitor` (or the compose service name) with Refresh, a Follow switch, Copy and Save. - Backup and restore: "Back up now" stops nothing: it copies the data folder (or runs `docker cp`) into a timestamped folder or zip of the user's choice using a save panel; "Restore" asks for confirmation, stops the container, replaces the data folder and starts again. Keep one automatic backup of the previous data folder before a restore. - Updates: a "Check for updates" button that looks at the Uptime Kuma releases page (https://api.github.com/repos/louislam/uptime-kuma/releases/latest, header User-Agent: LocalUptimeMonitor), shows the newest version and the pinned one, and an "Update" button that backs up first, changes the pinned tag in the compose file, runs `docker compose pull` and `up -d` again, never touching the data folder. Say plainly that a major version change may need Uptime Kuma's own migration, and link to its release notes. - Settings: port, status page slug, launch at login (SMAppService.mainApp), "Stop the container when I quit" (off by default), Reveal data folder in Finder, and a "Docker command line tool" path override with an open panel. - A first-launch guide of three short cards: what this does, that it needs Docker Desktop, and that everything stays on this Mac. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Only Apple frameworks, no packages, no Xcode project or asset catalog. Keep it modular: DockerCLI (finds and runs docker, parses output), KumaController (ObservableObject, owns the compose file, start/stop, health), StatusPageClient, BackupManager, and the views. Run Process work off the main thread and never block the UI. Read process output with a pipe handler, and handle processes that never end by giving each call a timeout (10 seconds
View app: Pi-hole WizardPi-hole Wizard
Set up Pi-hole on your Mac in one click, then a short wizard points your Mac's DNS at it. No Docker Desktop.
Prompt
Build a native Mac menu bar app called Pi-Hole Wizard: a 1-click Pi-hole setup that runs in Docker on Colima (no Docker Desktop), then an ultra-simple step-by-step wizard that ends with Pi-hole running and this Mac using it for DNS (Pi-hole first, 1.1.1.1 as backup). Every step that can be tested has a "Test" button. Nothing is sent to a cloud service. RESEARCH FIRST (WebSearch and WebFetch before any code) Pi-hole 6 changed a lot, so read, not remember: (1) docs.pi-hole.net and the pihole/pihole page on Docker Hub: image name, a specific dated tag to pin (never "latest"), arm64 support, the FTLCONF_* variables (FTLCONF_webserver_api_password, FTLCONF_dns_listeningMode, upstreams), volumes and ports; (2) the Pi-hole v6 API docs (also at /api/docs on a running Pi-hole): POST /api/auth and the session header, GET /api/queries, stats, POST /api/dns/blocking, Teleporter backup; (3) Colima: `colima start --help`, whether UDP port forwarding to the Mac works (DNS needs UDP), whether an app may bind port 53 on 127.0.0.1 without root, `brew services start colima`; (4) man pages for networksetup (-listallnetworkservices, -getdnsservers, -setdnsservers), scutil --dns, dscacheutil -flushcache, killall -HUP mDNSResponder, and running one command with administrator rights from an app (osascript "do shell script ... with administrator privileges"); (5) where Chrome, Edge, Brave (Local State, dns_over_https) and Firefox (prefs.js, network.trr.mode) keep their secure-DNS setting. Where a page disagrees with this prompt, follow the page and say what changed. DOCKER AND COLIMA (honest, never a shell string) - Run tools with Process and an argument array, PATH including /opt/homebrew/bin and /usr/local/bin, a 10 second timeout for quick calls, all off the main thread. Find docker in /opt/homebrew/bin, /usr/local/bin, /Applications/Docker.app/Contents/Resources/bin. - If docker or colima is missing, an "Install Colima and Docker" button runs brew install colima docker, then colima start --cpu 2 --memory 2 --disk 10, streaming output into a log with a progress bar and Cancel. No Homebrew: the button opens https://brew.sh. Never install Homebrew. - Pi-hole runs from a version-pinned compose file in Application Support/Pi-hole Wizard/ (restart: unless-stopped; ports bound to 127.0.0.1 only: 53/tcp, 53/udp, and 8080 to the container's 80; named volumes for /etc/pihole and /etc/dnsmasq.d; upstream DNS 1.1.1.1). If `docker compose` is missing, fall back to `docker run` with container name "pihole". Pull output is streamed with Cancel; docker errors (no network, disk full, port in use) appear in plain words with a Show details box. - Before starting, try to bind UDP and TCP on 127.0.0.1:53 and TCP 8080. If taken, show what holds it (lsof -nP -iUDP:53) and offer another port for 8080 (8081 to 8090). - The admin password goes in the Keychain, never in a file or a command line `ps` can show (use an env-file with permissions 0600). THE WIZARD (one window: steps on the left with check marks, content on the right, Back and Next; each step re-runnable) 1. Welcome: what Pi-hole does (blocks ads and trackers by DNS), what the wizard will do, and that the Mac's network settings change only in step 5, with "Restore my old settings" always available. 2. Check this Mac: Apple silicon, macOS version, Homebrew, docker, colima, ports. Test: run the checks again. 3. Install Colima and Docker: the button above. Test: `docker info` succeeds. Switch "Start Colima at login" (default on). 4. Start Pi-hole: ask only for an admin password (suggest a generated one, with Copy). Time zone from TimeZone.current.identifier. Test, three checks shown separately: container running and healthy; http://127.0.0.1:8080/admin answers; `dig @127.0.0.1 example.com` (/usr/bin/dig) returns an answer. If dig fails but the container is healthy, say UDP 53 is probably not reaching the Mac and show the fix from the research. 5. Test blocking: look up a domain the default list blocks and a normal one; show blocked (0.0.0.0 or NXDOMAIN, check which) versus allowed, plus queries and blocked today from the API. Note that the first start downloads block lists, which takes a minute. 6. Point this Mac at Pi-hole: list network services, preselect the one on the default route (others optional), show each one's current DNS ("Automatic" if empty). After a confirmation saying exactly what changes, run one administrator command that sets DNS to 127.0.0.1 then 1.1.1.1 and flushes the cache. First save the old values to dns-backup.json. Test: resolve a domain through the system resolver and check that the query shows in Pi-hole's log; read scutil --dns and warn if another resolver (VPN, router IPv6 DNS, profile) comes first. Say honestly that macOS may sometimes use 1.1.1.1, so a few ads can get through; offer a "Pi-hole only" switch with its warning. 7. Check your browser: detect Safari, Chrome, Edge, Brave, Firefox; read, read-only, whether each has its own secure DNS (DNS over HTTPS) on, which bypasses Pi-hole; Safari gets an iCloud Private Relay hint. Show two lines of click steps and an Open settings button per browser. Never edit browser settings. "Browser test": open a random name like pw-1a2b3c.example.com in the default browser (an error page is expected, say so) and look for it in Pi-hole's query log within 20 seconds. 8. Done: checklist of the last results, "Primary DNS: Pi-hole, backup: 1.1.1.1", Open dashboard, the password with Copy, how to undo. Claim success only if the tests in steps 4 and 6 passed this session. AFTER THE WIZARD - Main window: status, today's queries and blocked percent (API, every 30 seconds), Open dashboard, Pause blocking 5 minutes / Resume, Start/Stop/Restart, Logs (docker logs --tail 300 with Refresh, Follow, Copy, Save), Backup and Restore (Teleporter zip, confirmation first), Check for updates (back up first, change the pinned tag, pull, up -d, never delete volumes), Run tests again. - "Restore my old settings" puts the saved DNS back (administrator prompt). A launch banner offers it, plus "Start Pi-hole now", when DNS points at 127.0.0.1 but Pi-hole does not answer (for example Colima is stopped after a restart). Test this path. - Menu bar icon: green = answering and used by this Mac, orange = answering but not used, red = used but not answering, grey = stopped. Menu: status, Open dashboard, Pause blocking, Start/Stop, Open window, Quit. Do not stop Pi-hole or Colima on quit. - Settings: launch at login (SMAppService.mainApp), ports, Remove Pi-hole (confirmation naming the container and its two volumes; restores saved DNS first). About: this protects this Mac only, not other devices. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Apple frameworks only, no packages, no Xcode project or asset catalog. Modules: DockerCLI, ColimaManager, PiholeController, PiholeAPI, DNSConfigurator, BrowserInspector, PortChecker, one small view per wizard step. Plain http on 127.0.0.1 only. - The code is compiled later on the user's Mac: check every initializer, label and optional, no force-unwraps. Do not fake anything: no pretend progress, counts or success. - In your reply, say what you built, what the lookups changed, and what you could not test (Docker, Colima UDP forwarding, the DNS change and restore, browser checks, the API).
Special
View app: SwiftEditor + Remove BackgroundSwiftEditor + Remove Background
An existing open-source video editor, extended by Claude.
Prompt
Use the existing repo https://github.com/mhadifilms/swifteditor and add a “Remove Background” effect for video using Apple Vision/Core ML, with automatic subject tracking and adjustable edge softness, blur, and replacement background. Clone the repo, keep its existing features working, wire the new effect into the app's effects list and inspector, and build the SwiftEditor app so it runs as a finished .app.
View app: Local AI Image GenLocal AI Image Gen
Generate images from text with Stable Diffusion, on your Mac.
Prompt
Build a macOS app called Sketch Diffusion that generates images locally with Stable Diffusion 1.5, using a quantized (6-bit palettized) Core ML version. Add Apple's open-source Swift package https://github.com/apple/ml-stable-diffusion as a dependency and use its StableDiffusionPipeline with MLModelConfiguration computeUnits set to .cpuAndGPU (not the Neural Engine, whose first compile of this model can take over ten minutes) and reduceMemory on. On first launch, download the model files from Hugging Face (the apple/coreml-stable-diffusion-v1-5 palettized split_einsum compiled variant) into Application Support with a progress bar, a Cancel button and a Delete model button, then reuse them offline. The main window has a prompt field, a negative prompt field, a seed field with a Random button, steps (default 20), guidance scale, a Generate button with a live step progress bar and a preview that updates while it runs, and a grid of results for this session. Save images as PNG with the prompt and seed in the file name, copy to clipboard, and show a clear message if the download or the model fails to load. Everything runs on the device after the first download.
Prompt
Build a macOS first-person shooter called Bunker 13: a fast Wolfenstein/Doom-style raycaster in Swift, 60 fps. Write assets.json as exactly [{"repo":"https://github.com/petroulacl/fps-asset-kit","ref":"a19b7458a593598211c95ec46ef4eb4b6d1f94d7","to":"kit","paths":["textures/Bricks097/Bricks097_2K-JPG_Color.jpg","textures/Bricks104/Bricks104_2K-JPG_Color.jpg","textures/Concrete048/Concrete048_2K-JPG_Color.jpg","textures/Metal049A/Metal049A_2K-JPG_Color.jpg","sfx/firearm_sfx/Prepared SFX Library/1911/A_34P.wav","sfx/firearm_sfx/Prepared SFX Library/Nova/O_17P.wav","sfx/footsteps_flac/Fantozzi-StoneL1.flac","sfx/footsteps_flac/Fantozzi-StoneR1.flac"]}] and load them from Bundle.main.resourceURL/Assets/kit/<path>; if any file is missing, fall back to generated textures and a synthesized noise-burst shot so the game still runs. Rendering: one NSView with a layer. Each frame, raycast (DDA) into a preallocated 640x400 UInt32 buffer, split into vertical strips with DispatchQueue.concurrentPerform, and set it as the layer contents CGImage with nearest-neighbour scaling. Drive it with CVDisplayLink and a clamped delta time. No SwiftUI redraw or memory allocation per frame; draw the HUD into the buffer. Walls: the four textures, each downsampled once at launch to 128x128 (CGImageSource thumbnail), darker on one side and fogged by distance; Metal049A is the doors and the exit. Floor and ceiling: smooth gradients with distance fog. Enemies and pickups: billboard sprites drawn once at launch with CoreGraphics into 64x64 bitmaps (a Guard and a tougher Heavy with a walk cycle, hurt flash and death animation; health, ammo and armor pickups), depth-tested against a per-column z-buffer and sorted far to near. Gameplay: three hand-made 24x24 tile levels with rooms, corridors, sliding doors opened with E or Space near them, and an exit; clear a level by reaching the exit. Enemies stay idle until they see or hear you, then chase using BFS on the grid, shoot when in line of sight (accuracy drops with distance). Weapons: pistol (infinite ammo) and shotgun (spread, limited shells), switched with 1 and 2 or the scroll wheel; draw the weapon at the bottom of the screen with bob, recoil and a muzzle flash. Play the pistol wav starting at 1.4 s and the shotgun wav starting at 0.45 s, each cut after about one second. Alternate the two footstep sounds while walking. Add head bob, a screen shake and a red flash when hit, a hit marker, a crosshair, wall collision that slides along walls with a radius, and pickups that are collected on touch. Controls: click to capture the mouse (CGAssociateMouseCursorAndMouseDelta, hide the cursor), mouse look, WASD to move, Shift to run, left click or Control to fire, Esc to release the mouse and pause. Show a title screen, a pause menu with a mouse sensitivity slider, a game over screen with Restart, and a level complete screen with kills and time. HUD: health, armor, ammo, level, a Tab minimap, and an F key FPS counter. Open the window at 1280x800, with a full screen button.
- SComing soon
SwiftUICraft
A Minecraft-style block world drawn entirely with SwiftUI, ported to the Mac from the open-source SwiftUICraft.
Prompt
Build a Mac version of this open-source SwiftUI Minecraft-style game: https://github.com/aheze/SwiftUICraft The goal is a working, good-looking Mac game that plays like the original: a 3D block world drawn with SwiftUI perspective, with the three levels, 20+ block types, liquid physics, lasers, an item bar and saved progress. Keep the game's own code (models, levels, rules, views). Port it; do not write a different game. HOW TO PORT IT (read this first) - The repo is in Imported/. Read its README, then SwiftUICraft/Models/ (Block, Level, Item, Coordinate, World, Texture), SwiftUICraft/App/ViewModel.swift, Utilities.swift and SwiftUICraft/Views/. They are small. Copy them into Sources/App/ and change only what the Mac build needs. - It is an iOS app. Replace UIKit pieces with Mac ones: UIColor(hex:) becomes NSColor or Color built from the hex; UIImpactFeedbackGenerator and haptics are removed; portrait/landscape handling goes. The window is resizable, so lay the game out for any window size (minimum about 900x640). - Prism is a third-party package (aheze/Prism) that is NOT available and cannot be downloaded. The game imports it and uses PrismView, PrismCanvas and PrismColorView (parameters such as tilt, size, extrusion, levitation and color), plus the block faces drawn inside them. Write a small replacement in Sources/App/Prism/ with the same type names and parameters, built only on SwiftUI: perspective transforms with projectionEffect (ProjectionTransform) or rotation3DEffect, and the same way of stacking a top face and two side faces. Read BlockView.swift and GameView.swift to see exactly which parameters and views the game calls, and match them. Keep the original look: blocks that sit on a tilted board and rise with their levitation, and the tilt that changes when you drag. This is the riskiest part, so keep it simple and re-check every initializer, argument label and modifier. Do not use SceneKit, SpriteKit, Metal or other frameworks. - Textures: the game loads Image("name") from the Xcode asset catalog, and asset catalogs are not allowed here. The pictures live in the repo at SwiftUICraft/Assets.xcassets/<name>.imageset/<name>.png. Download them at build time with assets.json in the project root, exactly: [{"repo": "https://github.com/aheze/SwiftUICraft", "ref": "01d6fcea2e1ee0ce42e6545046b58ab814b5ea61", "paths": ["SwiftUICraft/Assets.xcassets"], "to": "Textures"}] The app then finds them at Contents/Resources/Assets/Textures/SwiftUICraft/Assets.xcassets/<name>.imageset/<name>.png. Write one helper that loads a texture by name from there (NSImage from Bundle.main.resourceURL), use it wherever the game says Image("name"), and keep nearest-neighbour scaling (.interpolation(.none)) so the pixels stay sharp. If a file is missing, draw a flat colour for that block, so the game still runs. - The code is compiled later on the user's Mac, not here, so write carefully: target macOS 13, Swift 5 language mode, only APIs that exist on macOS 13 (use ObservableObject and @Published, not @Observable). Double-check every initializer, argument label and optional. - Keep the MIT license: put "Based on SwiftUICraft by aheze (MIT license)" in the menu screen or an About section. MAC CONTROLS - Click a block face to place the selected item there. Hold the mouse on a block (the original's long press, with its per-block hold time) to break it. - Drag across the board to tilt and turn the view, as the original does with a finger. Scroll or pinch zooms, and the arrow keys or WASD move the board. Keep the original's on-screen buttons (zoom, move, reset, pause) too. - Keyboard: 1 to 9 pick the item in that slot, Escape pauses and returns to the menu, Cmd+R resets the level. Make sure these do not break normal text input anywhere. GAME - Main menu with the three levels, a Play button and a Continue button when there is saved progress. - The item bar to pick what to place, 20+ block kinds, water and lava that flow and mix as in the original, lasers, and each level's background colours. - Save progress automatically (the world, selected item and tilt) as JSON in Application Support, and restore it on launch. A reset button clears the current level only. - Keep gameplay rules, block data, level layouts and flow logic as the original has them. Do not invent new features, and do not fake behaviour. QUALITY - Make sure the game ALWAYS has ultra-smooth 60fps frame rate at all times - especially while tilting a full level: avoid recomputing the whole world on every drag event, and keep the original's drawingGroup. - Keep the code modular and add no other dependencies. Do not use an Xcode project or asset catalog. - In your reply, say in a few sentences what you kept, what you replaced (Prism, textures, controls) and anything that may not work exactly like the original.
View app: Local LLM ManagerLocal LLM Manager
Download Ollama and a model in a few clicks, then chat with it on your Mac. No cloud.
Prompt
Build a native Mac app called Local LLM Manager: a self-contained controller for Ollama. One click downloads Ollama itself (if the Mac does not have it), one click downloads a model from a built-in list, and one more click opens a chat with it, all running on the Mac with no cloud. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Ollama changes often, so do not rely on memory. Before writing code, look up and read: (1) https://api.github.com/repos/ollama/ollama/releases/latest for the real macOS asset name and its size; (2) the Ollama API reference https://github.com/ollama/ollama/blob/main/docs/api.md for the exact fields of /api/pull, /api/chat, /api/tags, /api/show, /api/ps, /api/delete and keep_alive; (3) https://ollama.com/library/qwen3 (and one other model page) to check each model name and tag in the list below, and how thinking output is returned. Where a page disagrees with this prompt, follow the page and say what you changed in your reply. THE ENGINE (Ollama) - Find an existing Ollama first: /Applications/Ollama.app/Contents/Resources/ollama, /opt/homebrew/bin/ollama, /usr/local/bin/ollama. If none is found, offer "Install Ollama (about 200 MB)". Install by asking the GitHub API https://api.github.com/repos/ollama/ollama/releases/latest (URLSession, header User-Agent: LocalLLMManager) for the asset named ollama-darwin.tgz, downloading it with a progress bar, a speed and Cancel, and unpacking it into Application Support/Local LLM Manager/engine/ (use /usr/bin/tar through Process with arguments, never a shell string; make it executable). Check the size and that the file runs (ollama --version) before calling it installed. If the asset is not found or the network is down, say so plainly and offer "Choose Ollama manually" (an open panel). - Run the engine as the app's own child process: ollama serve with the environment OLLAMA_HOST=127.0.0.1:11435 (a port of our own, so a running Ollama app on 11434 is not disturbed) and OLLAMA_MODELS=Application Support/Local LLM Manager/models. Talk to it over http://127.0.0.1:11435 (an IP address, so App Transport Security does not block it). Wait until GET /api/version answers before enabling anything. Stop the child process when the app quits. - A "Local server" switch in the toolbar: on = the engine runs and answers on 127.0.0.1:11435, off = stopped (and loaded models freed). Show a status dot (stopped, starting, running) and the address with a Copy button, so other tools can use it. "Share on my network" (off by default) binds 0.0.0.0 and warns that anyone on the network could use it. THE MODEL LIBRARY (built in, exactly these ten) Show a table or card list with the name, download size, what it is best for, and how it fits this Mac. Read the Mac's memory with ProcessInfo.processInfo.physicalMemory and show a badge for each model: "Good fit", "Tight" or "Too big for this Mac" (a model is a good fit when its size is under 35% of memory, tight under 60%, otherwise too big; say that rule in a help tooltip). Mark the single best pick for this Mac's memory with a star. 1 qwen3:0.6b, 523 MB, very fast chat, drafts, simple extraction (limited reasoning) 2 qwen3:1.7b, 1.4 GB, fast general assistant, light coding help 3 llama3.2:3b, 2.0 GB, general chat, tool calling 4 phi3.5, 2.4 GB, reasoning and code in a small package 5 qwen3:4b, 2.5 GB, best small all-rounder, 256K context (best pick for 8 GB) 6 qwen2.5-coder:7b, 4.5 GB, local coding, refactoring, explanations (best coding pick for 16 GB) 7 qwen2.5:7b, 4.5 GB, strong general chat and multilingual work (best all-round pick for 16 GB) 8 llama3.1:8b, 5.0 GB, broad ecosystem, general assistant, tools 9 gemma2:9b, 5.5 GB, multilingual chat and general reasoning (leave headroom on 16 GB) 10 mistral-nemo, 7.5 GB, long context, 128K (16 GB only, expect slower replies) - Each model has one main button that does the next step: Download, Downloading (progress), Chat. Download uses POST /api/pull with {"model": name, "stream": true} and reads the newline-delimited JSON ({status, total, completed}): show the percent, the bytes done of total, speed, time left, the current status and Cancel. A cancelled or failed pull can be resumed, since Ollama continues partial files. Several downloads queue one at a time. Check free disk space first (URL resourceValues .volumeAvailableCapacityForImportantUsage) and refuse politely when there is not room for the size plus 2 GB. - Installed models come from GET /api/tags (also shows models downloaded earlier). Each installed model has Delete (DELETE /api/delete, after a confirmation), "Show details" (POST /api/show: parameters, context length, quantization, license), and "Loaded in memory" status from GET /api/ps with an Unload button (POST /api/generate with keep_alive 0). - A search box to add any other model by name with a note that its size is not known in advance. Never invent sizes for it. THE CHAT - A native chat window: a sidebar of conversations (new, rename, delete, search), the messages in the middle, the message box at the bottom, a model picker at the top showing only installed models. Stream replies from POST /api/chat with {"model", "messages", "stream": true, "options": {...}} and show the text as it arrives, with a Stop button that cancels the request. Render basic Markdown (bold, lists, and code blocks with a Copy button). Show tokens per second from the final chunk (eval_count and eval_duration), and Regenerate, Copy and Edit-last-message actions. - Models such as qwen3 can send their reasoning separately (a "thinking" field in the message, or a <think> block in the text). Show it in a collapsed "Thinking" section above the answer, and add a "Think" switch per conversation (the request field "think": false turns it off for models that support it; hide the switch when a model does not). - Per-model settings (Settings sheet, saved per model): system prompt, temperature, top_p, context length (num_ctx, with a note that bigger uses more memory), and "keep loaded" time (keep_alive). A Reset button restores defaults. - Save conversations as JSON files in Application Support/Local LLM Manager/chats, and restore them at launch. Export a conversation as Markdown with a save panel. THE WINDOW One window, minimum 960 by 620: a sidebar with "Models", "Chat" and "Server", and the content on the right. First launch is a short guide: step 1 get the engine, step 2 pick a model (the star pick is highlighted), step 3 chat; do the steps for the user with one button each, and let them skip. A menu bar item (optional in Settings) shows the server status with Start, Stop and Open Window. Settings: where models are stored (with "Show in Finder" and the total size used), the port, launch at login (SMAppService.mainApp), and an About section. QUALITY - Target macOS 13, Swift 5 language mode, only Apple frameworks, no Xcode project, no asset catalog, no third-party packages. Double-check every initializer, argument label and optional; the code is compiled later on the user's Mac. - Never block the main thread: use async URLSession (URLSession.bytes for the streams) and actors or Tasks; update the UI on the main actor. Keep the code modular: an EngineManager (find, install, start and stop the process), an OllamaClient (the HTTP calls), a ModelCatalog (the ten models and the fit rule), a DownloadQueue, a ChatStore (conversations on disk), and the SwiftUI views. - Friendly one-line messages and no crash for: no network, GitHub rate limit, a full disk, the engine failing to start (show the last lines of its output in a details box), a port already in use (offer another), a model that fails to load because there is not enough memory, and a model name that does not exist. - Do not fake anything. In your reply, say in a few sentences what works and what you could not check, in particular: whether the engine downloaded and started, whether a pull completed, and which models you could not try.
View app: Retro ConsoleRetro Console
A retro game player for your own game files: library, controllers and save states, with free emulator cores you download inside the app.
Prompt
Build a Mac app called Retro Console, a polished retro game player for the user's own game files, based on this open-source Swift and Metal project: https://github.com/Lonkins/CODENAME The goal is a working Mac app with a game library, controller support and save states. Keep the project's own emulator integration code and cores. Do not write an emulator yourself. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Read the repo's README and license, and check which systems it plays (SNES, Genesis, Game Boy, GBA, others), how each core is built, and which of them are C or C++ code, Swift code or prebuilt binaries. Read each core's own license. Where the repo or this prompt disagree with what you find, follow what you find and say what changed. HOW TO PORT IT (read this first) - The repo is in Imported/. Read its README, its package or project files, and the folders for the app, the core bridge, the Metal renderer, input and audio. Ignore tests, screenshots and docs. - It must build with Swift Package Manager, with no Xcode project and no asset catalog (the code is compiled later on the user's Mac). Turn what the repo has into a Package.swift with Swift targets for the app and the bridge, and C or C++ targets for each core whose sources are in the repo. Keep the project's own structure and file names where you can. If a core cannot be built as a package target (it needs a build system, generated files or a download you cannot make), leave it out of the build, and tell the user in the app which systems are not available and in your reply why. - Target macOS 13, Swift 5 language mode if the code does not need Swift 6, and only APIs that exist on macOS 13. Run the emulation on its own thread, never on the main thread. - Keep every license: show an About window with the project's license, each core's name and license, and the line "You must own the games you play". List all the credits the repo asks for. THE APP (use the repo's pieces; write what is missing) - A library window: drag and drop game files or whole folders onto it, or pick a folder to watch. Group games by system, with a grid and a list view, search, and recent and favorites. Identify the system by file extension and, where the core needs it, by the header. Keep the library as JSON in Application Support. Never copy, upload or download games. Games stay where the user has them. - No game files, no BIOS, no firmware, no box art from the internet are bundled or downloaded. If a core needs a BIOS file, say which file it needs, let the user choose it, and keep working for the cores that do not. - Play window: the Metal view from the repo with an integer scaling choice, a smooth or sharp filter, and an optional CRT or scanline effect written in Metal (a small shader that is easy to turn off), full screen, Pause, Reset, a speed control and a volume slider. Sound through AVAudioEngine from the core's audio buffer. - Controllers: GameController framework (GCController), with automatic setup for common pads, a mapping screen per system, and keyboard keys as the fallback. Show which controller is connected. - Save states: 4 slots per game with a screenshot thumbnail, quick save and quick load keys, in-game battery saves written next to the game's data in Application Support, never beside the user's game file. Rewind only if the repo's cores support it. - Settings: library folders, controller mapping, video filter, a Reveal in Finder for the data folder, and "Clear library" with a confirmation. - Friendly errors: file not recognized, core missing, BIOS needed, and a crash in a core (show a message and return to the library, with the details in a box). QUALITY - Modular: Library, SystemCatalog, CoreBridge, Renderer, AudioOutput, InputMapper, SaveStates and the views. Do not fake anything: no sample games and no pretend systems. If something from the repo cannot be made to work, say exactly what was left out. - In your reply, say in a few sentences what you kept from the project, what you wrote new, which systems work, and what may not work, especially the cores that could not be built, the audio timing and controllers, because the code was written without being able to play a game.
View app: Space Horror FPSSpace Horror FPS
A first-person arena shooter with waves of enemies, built in code with SceneKit.
Prompt
Build a Mac first-person shooter called Hollow Point, a small but good-looking 3D game in one window. It uses Apple's SceneKit (import SceneKit) for the 3D world, SpriteKit for the HUD, and runs at 60 frames per second on Apple silicon. Everything is made in code: no model files, no texture files, no sound files, no asset catalog and no packages. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Do not rely on memory for these APIs. Read Apple's documentation for: (1) SCNView, SCNScene, SCNRenderer and the SCNSceneRendererDelegate update loop (renderer(_:updateAtTime:)); (2) SCNPhysicsWorld and SCNPhysicsBody (categoryBitMask, contactTestBitMask, kinematic and dynamic bodies, SCNPhysicsContactDelegate) and SCNPhysicsWorld.rayTestWithSegment; (3) SCNMaterial with physicallyBased lighting, SCNCamera (wantsHDR, bloomIntensity, motionBlurIntensity, ambient occlusion), SCNParticleSystem, fog (scene.fogStartDistance); (4) mouse look on macOS: CGAssociateMouseAndMouseCursorPosition, NSCursor.hide, mouseMoved with deltaX and deltaY, and how to keep a mouse captured in a window; (5) GCController or key events for WASD; (6) AVAudioEngine with AVAudioPCMBuffer for sounds made from numbers. Where a page disagrees with this prompt, follow the page and say what changed. THE GAME - One arena level built from boxes and cylinders: a large room with pillars, crates, a raised platform and two side corridors, with a dark sky gradient and fog. Walls are static physics bodies so the player and enemies cannot pass through them. - Player: first person camera at eye height on an invisible capsule. WASD to move, mouse to look (clamp the pitch), Shift to sprint, Space to jump, Esc to release the mouse and pause, click to capture it again. Smooth acceleration and a small head bob. Do not let the player fall through the floor or slip through a wall; use a physics body with the player's capsule, damping and a speed limit. - Weapon: a gun model made of boxes shown at the bottom right of the view, a hitscan shot with an SCNPhysicsWorld ray test from the screen centre, muzzle flash light, a short recoil animation, a spread that grows while firing, 12 rounds, reload on R (about 1.5 seconds), a crosshair that reacts to a hit. A bullet that hits a wall leaves a small spark particle; one that hits an enemy shows a hit marker. - Enemies: three kinds built from primitives with simple walk animation (swing the limbs with SCNAction): a runner (fast, weak), a soldier (medium, shoots back with a visible tracer and some inaccuracy) and a brute (slow, tough, melee). They chase the player by steering toward them and around obstacles (simple wall avoidance by ray tests, not a navmesh). They spawn at the edges in waves, each wave bigger than the last, with a short break between waves. - Health and damage: the player has 100 health with a red screen flash, a slow regeneration after 5 seconds without damage, and a game over screen with the wave reached and the best wave (UserDefaults) and "Press Return to play again". Pickups (health and ammo) drop from some enemies. - Looks: use .physicallyBased materials with roughness and metalness values for the concrete, metal and crates (colours and procedural noise images you draw with Core Graphics into an NSImage, not files), one directional light with soft shadows, a few point lights and emissive strips on the walls, HDR with bloom and a slight vignette, ambient occlusion where available, and fog. Death makes an enemy collapse and fade with a small particle burst. It should look clean and modern, not like a grey box. - Sound: synthesize every effect with AVAudioEngine (gunshot as filtered noise with a fast decay, reload clicks, hit, enemy hurt and death, pickup, low ambient drone). Master volume and a mute key (M). No files. - HUD: a SpriteKit overlay scene (SCNView.overlaySKScene) with health bar, ammo, wave number, score, a small FPS counter that can be toggled with F, a pause menu and a title screen with a Start button. PERFORMANCE AND HONESTY - Target 60 frames per second at 1280 by 800 or the window size. Reuse nodes (a pool for bullets, sparks and enemies), share geometries and materials, flatten static level geometry with flattenedClone where it helps, keep the number of lights low, and set SCNView preferredFramesPerSecond to 60 and antialiasingMode to .multisampling4X. Use a fixed time step for game logic that is separate from drawing. Show the real measured FPS, never a fake number. - Do not fake anything. If a feature cannot work (for example ambient occlusion on some systems), skip it quietly and keep the game playable. QUALITY - macOS 13, Swift 5 language mode, SwiftUI shell hosting an SCNView through NSViewRepresentable (a custom SCNView subclass that handles keyDown, keyUp, mouseMoved, mouseDown and acceptsFirstResponder). Only Apple frameworks, no Xcode project or asset catalog. - Modular files: GameController (state, waves, score), LevelBuilder, PlayerController, WeaponSystem, EnemyFactory and EnemyAI, MaterialFactory (procedural textures), SoundSynth, HUDScene, and the SwiftUI shell. - The code is compiled later on the user's Mac, not here: check every initializer, argument label and optional, with no force-unwraps. Mouse capture, the feel of the controls, collisions and the frame rate cannot be tested here, so keep tuning values (speeds, gravity, sensitivity) together in one Config struct with a sensitivity slider in the pause menu. - In your reply, say in a few sentences what you built, what the lookups changed, and what you could not test (mouse capture, controls feel, physics tuning and frame rate).
View app: Quake SRP PlayerQuake SRP Player
Play the open-source quake-srp web port of Quake in its own Mac window, with id's free shareware episode.
Prompt
Build a Mac app called Quake SRP Player: a native window that plays "quake-srp", an open-source Rust port of id's Quake that runs in a browser as WebAssembly. The app does not port, change or rebuild the game. It downloads the project's own published web build once, serves it to itself from a tiny local web server, and shows it in a WKWebView, so it plays like a normal Mac game, offline after the first launch. The project is https://github.com/terrapapagalli1516/quake-srp (GPL-2.0). Its public demo is https://quake-srp.pages.dev. Swift only: do not try to compile Rust. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Do not rely on memory. Read: (1) the repository README (the sections "Build and run it" and "A public demo") and the files in its web/ and quake-wasm/ folders, especially web/publish.sh, to learn exactly which files make up the published page (the page, the JavaScript, the .wasm program, the service worker, id1/pak0.pak, id1/slicnse.txt, the _headers file); (2) the live demo at https://quake-srp.pages.dev: fetch its index.html and find every file it loads and their sizes, and read its _headers file, so the app can fetch the same files; (3) ci/fetch_shareware.sh for the expected hashes of PAK0.PAK, if any; (4) Apple's documentation for WKWebView and WKWebViewConfiguration (WKPreferences.isElementFullscreenEnabled, mediaTypesRequiringUserActionForPlayback, WKUserScript, WKScriptMessageHandler, WKWebsiteDataStore persistence), and whether WKWebView gives a page crossOriginIsolated and SharedArrayBuffer when the server sends Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp, and whether it supports the Pointer Lock API and the Keyboard Lock API; (5) the Network framework NWListener for a small HTTP/1.1 server on 127.0.0.1. Where a page disagrees with this prompt, follow the page and say what changed. FIRST LAUNCH (one button) - A clean start card: the app name, one line ("Play Quake in its own window. Uses the open-source quake-srp web build and id's free shareware episode."), and a big "Download and Play" button with the size shown (from the research). Download every file of the published build into Application Support/Quake SRP Player/site/, each with progress, speed and a Cancel button, to a temporary file first, check the size (and the hash where one is published), then move it into place. Never ship, bundle or modify the game files. Skip files already downloaded and verified. If the site is unreachable, say so plainly with a Try again button. - Show the licenses before the first download: quake-srp is GPL-2.0 (link to the repository, where its source is), and the shareware data comes with id's own licence file (slicnse.txt), which the app saves beside the data and shows in the About window. State that this is the shareware episode only, that the app is not affiliated with id Software or the quake-srp author, and that the registered game's data is not included. - An "Update" menu item re-downloads the published files if their size or ETag changed, keeping the old copy until the new one is complete. THE LOCAL SERVER (needed because the game uses shared memory) - Serve the downloaded folder from an NWListener on 127.0.0.1 (never on the network), HTTP/1.1, GET and HEAD, correct Content-Type (the .wasm file as application/wasm, JavaScript as text/javascript), Range requests if the research shows the page uses them, and on every response the two headers Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp plus Cross-Origin-Resource-Policy: same-origin, as the project's _headers file does. Refuse paths with "..". Keep the sent headers identical to the project's _headers where it lists any others. - Use a FIXED port so the page's origin never changes (a changing origin would lose the game's saved games and settings stored in the browser). Try one port first (for example 47653), remember the chosen port in UserDefaults and reuse it, and only pick another one if it is taken, and say so. - The page loads from http://127.0.0.1:<port>/ in the WKWebView, with a persistent data store so quicksaves and settings survive restarts. Add "Reset saved games and settings" (confirmation) that clears the website data. THE WINDOW - One resizable window with a WKWebView filling it, a hidden title bar if easy, and a small toolbar: Fullscreen, Reload, Self-test and About. Alt+Enter and the page's own fullscreen button should work (enable element fullscreen and handle the fullscreen request); Esc must reach the game's menu, and Command-Q and Command-W stay macOS shortcuts. Allow audio without a click (the web audio engine still needs a first click, which is fine). Pass the Mac's game controllers through (the page uses the Gamepad API). - Mouse look: the game uses pointer lock. If the self-test (below) shows WKWebView does not give the page pointer lock, add a user script that is injected at document start and provides it: it defines element.requestPointerLock and document.exitPointerLock, sets document.pointerLockElement, fires pointerlockchange, hides the cursor and keeps it in the window (CGAssociateMouseAndMouseCursorPosition(false) while locked, NSCursor.hide, restored on Esc and when the window loses focus), and sends the native mouse movement deltas (NSEvent.deltaX and deltaY through a local event monitor) to the page as real MouseEvent objects with movementX and movementY on the locked element, and mouse buttons as normal events. Clicking the game to capture the mouse then works like in a browser. Only inject the shim when the browser's own pointer lock is missing, and say in About which one is in use. SELF-TEST (build this first; it decides what the app has to do) - A "Self-test" menu item runs a small page from the server (or the app's own JavaScript through evaluateJavaScript) and shows, in plain words with green and red marks: crossOriginIsolated, SharedArrayBuffer, Web Workers, WebAssembly threads (try WebAssembly.validate on a tiny threaded module or just instantiate with a shared memory), WebAssembly SIMD if the build needs it, pointer lock available, Keyboard Lock available, fullscreen available, Gamepad API, and the page's own startup message. If the threads build cannot run, the project README says the single-threaded build (target wasm32-wasip1) runs in the same page and needs less memory: see whether the demo publishes it and offer it as a fallback, saying so on screen. Never claim something works that the self-test did not show. - If the game does not start, show the page's own message and the self-test result instead of a blank window, with a Copy report button. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with an NSViewRepresentable around WKWebView, ObservableObject and @Published. Only Apple frameworks, no packages, no Xcode project or asset catalog. Modular: SiteDownloader, LocalServer, WebHost (the WKWebView and the pointer lock shim), SelfTest and the views. Network and file work off the main thread. Friendly errors with a Show Details box; handle no network, a full disk, a port in use and a corrupt download (delete it and fetch again). - The code is compiled later on the user's Mac, not here: check every initializer, argument label and optional, with no force-unwraps. Do not fake anything. - In your reply, say in a few sentences what you built, what the research changed (the file list, the headers, the hashes), and what you could not test: whether this WKWebView gets shared memory, whether pointer lock works with or without your shim, keyboard capture, sound and frame rate.
View app: N64 EmulatorN64 Emulator
One button downloads the Ares Nintendo 64 emulator and the free homebrew game BotBoy!64, then plays it.
Prompt
Build an extremely simple Mac app called N64 Emulator. One window, one big button. The first time the user clicks "Play", the app downloads the Ares Nintendo 64 emulator and the free homebrew game BotBoy!64, and then launches the game in Ares. After that, "Play" starts the game at once, with no setup and no menus to learn. Swift only, no packages, no Homebrew, no Terminal. RESEARCH FIRST (use WebSearch and WebFetch before you write code) Do not rely on memory. Read and check: (1) Ares releases: search the web for the Ares emulator project (ares-emu.net) and find its GitHub releases page and the GitHub REST API address for its latest release (use the header User-Agent: BotBoyPlayer). At the time of writing the latest is v148 and the Mac download is the asset "ares-macos-universal.zip" (about 80 MB, a universal app); read the asset list and pick the asset whose name starts with "ares-macos" and ends with ".zip" but does not contain "dSYMs". Ares is open source (ISC license; read its LICENSE and show it in About). (2) Ares documentation: how to start it with a game from the command line or by opening a file (the README, the website https://ares-emu.net and the project's docs), whether it needs a system name argument for Nintendo 64, how to pick fullscreen, and the default keyboard and controller mapping, so the app can show a controls help card. The N64 needs no BIOS file. (3) The game: BotBoy!64 by Psyop Studios (N64brew Game Jam 2025), page https://psyopsstudio.itch.io/botboy64, its public source code (search for BotBoy64 by Psyop Studios; MIT license) and the controls in its README (Torso, Arms and Fullbody modes, A to jump, C-Up and C-Down for the camera). Where a page disagrees with this prompt, follow the page and say what changed. HOW TO GET THE GAME (checked: this works today with no password and no login) The ROM is one file, BotBoy64.z64 (about 16 MB), published for free on the official itch.io page. The source code has no ROM, so it cannot be bundled at build time and the app must download it at first launch, the way a browser would, from the official page only: 1. GET https://psyopsstudio.itch.io/botboy64 with a URLSession that keeps cookies. Read the hidden form value csrf_token (name="csrf_token" value="...") and the upload id of the file named BotBoy64.z64 (the attribute data-upload_id="..." on its download button; it was 16352781). Read the file's name on the page too, and do not guess. 2. POST https://psyopsstudio.itch.io/botboy64/file/<upload id>?source=game_download with the form field csrf_token, using the same cookies. It answers JSON like {"external":false,"url":"https://..."}; the url is a signed link that expires after about 60 seconds, so start the download at once. 3. GET that url (follow redirects) into a temporary file with progress, speed and a Cancel button, then check that the size is plausible (10 to 40 MB), that the first four bytes are 80 37 12 40 (a big-endian .z64), and move it to Application Support/BotBoy64 Player/BotBoy64.z64. Do not edit the file. If the page changes and a step fails, say so plainly and offer two buttons: "Open the download page" (opens the itch.io page in the browser) and "I already have the file" (an open panel for BotBoy64.z64, with the same size and header checks). Never bundle, rehost or share the ROM, and never bypass any password or payment. Say in About that BotBoy!64 belongs to its authors, that the app only downloads it from their official page, and link to the page. THE WINDOW (keep it tiny and friendly) - A dark card, about 480 by 560 points: a simple robot icon drawn in code (a rounded square head with two eyes and a bolt, SwiftUI shapes), the title "BotBoy!64", one line ("A free 3D platformer for the Nintendo 64, made for the 2025 N64brew Game Jam. Plays in the Ares emulator."), and one big green button. - The button reads "Set up and Play" the first time (with a line under it: "Downloads the Ares emulator (about 80 MB) and the game (about 16 MB). Once only."), "Play" afterwards, and "Playing..." while Ares runs. A progress bar shows the real stage: "Getting Ares", "Getting the game", "Starting". No fake progress. - Under the button a small controls card (the game's controls from its README, and Ares' default keyboard keys from the documentation, and a line saying a USB or Bluetooth game controller works too), a "Fullscreen" switch (default off) and a "Reset" link (confirmation; deletes the downloaded emulator and game so the next click downloads again). GETTING ARES - Download the Ares zip from the asset's browser_download_url into a temporary file, with progress and Cancel, check the size against the asset's size, unpack it with /usr/bin/ditto -x -k (Process, argument array, never a shell string) into Application Support/BotBoy64 Player/Ares/, and find ares.app inside it. A file downloaded by the app itself carries no quarantine flag, so do not remove or bypass anything; if a launch is blocked by macOS, show the real error and the steps in System Settings, Privacy and Security, Open Anyway. - If Ares is already in /Applications or ~/Applications, offer to use that one instead of downloading. - Remember the Ares version; a small "Check for a newer Ares" link compares with the latest release and offers to update (keep the old copy until the new one works). LAUNCHING - Start Ares with the game using the method the research found (the app's executable in Contents/MacOS with the ROM path as an argument and the system choice if needed, or NSWorkspace.open with a configuration that passes the file). Pass the path as an argument array. Keep the Process so the button can show "Playing..." and return to "Play" when Ares quits, and show the first lines of Ares' error output if it exits at once. - Do not edit Ares' settings files unless the research shows a simple documented way to set fullscreen or a sensible default; if it does, apply only that, and tell the user. - A "Show in Finder" link reveals the folder. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Only Apple frameworks, no packages, no Xcode project or asset catalog. Modular: AresInstaller, GameDownloader (the itch.io steps), Launcher and the views. Network, file and process work off the main thread. Friendly errors with a Show Details box; handle no network, a full disk, a cancelled download and a corrupt file (delete it and offer to try again). - The code is compiled later on the user's Mac, not here: check every initializer, argument label and optional, with no force-unwraps. Do not fake anything. - In your reply, say in a few sentences what you built, what the lookups changed (the Ares asset name, the launch method, the itch.io steps), and what you could not test: the downloads, the launch of Ares with the game, the controls and the fullscreen switch were not run. Also make sure there's a button to open ANY n64 (.z64 / .v64) rom file.
View app: 3D FPS3D FPS
One Play button downloads an open-source Godot target shooter and the engine, then plays it in its own window.
Prompt
Build a native Mac app called Target Shooter: a ready-to-play Mac version of an open-source target shooter (https://github.com/teeeece/godot_open_target_shooter). One window, one big Play button. The app downloads the game's source and the right Godot engine by itself, prepares everything, and starts the game in its own window. No Godot knowledge needed, nothing to type. Nothing is sent anywhere except the downloads. RESEARCH FIRST (WebSearch and WebFetch before any code) Read, do not remember: (1) https://github.com/teeeece/godot_open_target_shooter: the README (what the game is, controls, requirements), the licence, the default branch, the releases page, and whether a macOS build or an export_presets.cfg already exists; (2) the repo's project.godot: config_version (4 means Godot 3, 5 means Godot 4), the config/features line (for example "4.2" or "C#"), the main scene, and any addons or git submodules the game needs; (3) the official Godot downloads for macOS: archive names and URLs on godotengine.org and in the godotengine/godot-builds releases, the universal (arm64 and x86_64) app, the separate .NET build, the SHA512-SUMS file, and the command line flags --path, --headless, --import, --quit, --fullscreen, --windowed, --resolution; (4) that the official Godot app can run a project folder with --path without export templates, and what a first import does. Where a page disagrees with this prompt, follow the page and say what changed. HOW IT WORKS (one click) - Big Play button. The first time: "Downloads the game and the Godot engine once, about <size once known>. Nothing to type." - 1 Game: download the repo as a zip (https://github.com/teeeece/godot_open_target_shooter/archive/refs/heads/<branch>.zip, or a release asset if the research shows a better one) into a temp file with progress, speed and Cancel, then unzip with /usr/bin/ditto (Process, argument array) into Application Support/Target Shooter/Game/. Find the folder that holds project.godot (it may be in a subfolder). Fetch any submodule or addon the research says is needed. - 2 Engine: choose the Godot version and build from project.godot (and the .NET build only for C#). Download it once into Application Support/Target Shooter/Engine/, verify the checksum with CryptoKit, and strip the quarantine flag with xattr -dr com.apple.quarantine after saying why. - 3 Import: run the engine once with --headless --import --path <project> --quit, stream the log, and show "First-time setup, this can take a minute or more". - 4 Play: run the engine with --path <project> in a normal window. Show the state (Not downloaded, Downloading, Setting up, Ready, Playing, Needs something with the plain reason), a Stop button, and "Show log". If the game exits within 10 seconds or fails, show the last 30 log lines in plain words with a Copy button. Never say it works unless it started and stayed open. - Check from project.godot whether it is 2D or 3D, and the Godot version. For a mouse-look game, explain how to release the mouse (usually Escape). List the controls from the README. - Skip steps that are already done. Later launches go straight to Play. THE WINDOW - Top: a title and a picture drawn in code (a gradient and an SF Symbol; no copied screenshots), one line about the game taken from the README, the licence found in the repo, and a short controls list taken from the README (say "see README" if it has none). - Settings: Windowed or Fullscreen and a resolution choice (only flags the research confirms), Update the game (download again, keep save files), Reinstall, Remove everything (shows the disk size it frees), Reveal in Finder, "Show saves" (Godot's user:// folder under ~/Library/Application Support/Godot, when it exists). - About: the game's author and licence, the Godot licence (MIT), a link to https://github.com/teeeece/godot_open_target_shooter, and a note that the game belongs to its author. Quitting the app while the game runs asks first. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Apple frameworks only (Foundation, AppKit, CryptoKit), no packages, no Xcode project or asset catalog. Modules: RepoDownloader, ProjectInspector, EngineManager, GameRunner, LogStore and the views. - Run every Process off the main thread, with an argument array, never a shell string. Check every initializer, label and optional; no force-unwraps. - Do not fake anything: no pretend progress, no pretend success. In your reply, say what you built, what the lookups changed (Godot version, repo layout, requirements) and what you could not test: the downloads, the import step, the game actually starting, performance, and keyboard, mouse and gamepad input.
View app: F1 RacerF1 Racer
One Play button downloads an open-source Godot racing game and the engine, then plays it in its own window.
Prompt
Build a native Mac app called F1 Racer 3D: a ready-to-play Mac version of a 3D F1 racing game (https://github.com/kuba--/f1). One window, one big Play button. The app downloads the game's source and the right Godot engine by itself, prepares everything, and starts the game in its own window. No Godot knowledge needed, nothing to type. Nothing is sent anywhere except the downloads. RESEARCH FIRST (WebSearch and WebFetch before any code) Read, do not remember: (1) https://github.com/kuba--/f1: the README (what the game is, controls, requirements), the licence, the default branch, the releases page, and whether a macOS build or an export_presets.cfg already exists; (2) the repo's project.godot: config_version (4 means Godot 3, 5 means Godot 4), the config/features line (for example "4.2" or "C#"), the main scene, and any addons or git submodules the game needs; (3) the official Godot downloads for macOS: archive names and URLs on godotengine.org and in the godotengine/godot-builds releases, the universal (arm64 and x86_64) app, the separate .NET build, the SHA512-SUMS file, and the command line flags --path, --headless, --import, --quit, --fullscreen, --windowed, --resolution; (4) that the official Godot app can run a project folder with --path without export templates, and what a first import does. Where a page disagrees with this prompt, follow the page and say what changed. HOW IT WORKS (one click) - Big Play button. The first time: "Downloads the game and the Godot engine once, about <size once known>. Nothing to type." - 1 Game: download the repo as a zip (https://github.com/kuba--/f1/archive/refs/heads/<branch>.zip, or a release asset if the research shows a better one) into a temp file with progress, speed and Cancel, then unzip with /usr/bin/ditto (Process, argument array) into Application Support/F1 Racer 3D/Game/. Find the folder that holds project.godot (it may be in a subfolder). Fetch any submodule or addon the research says is needed. - 2 Engine: choose the Godot version and build from project.godot (and the .NET build only for C#). Download it once into Application Support/F1 Racer 3D/Engine/, verify the checksum with CryptoKit, and strip the quarantine flag with xattr -dr com.apple.quarantine after saying why. - 3 Import: run the engine once with --headless --import --path <project> --quit, stream the log, and show "First-time setup, this can take a minute or more". - 4 Play: run the engine with --path <project> in a normal window. Show the state (Not downloaded, Downloading, Setting up, Ready, Playing, Needs something with the plain reason), a Stop button, and "Show log". If the game exits within 10 seconds or fails, show the last 30 log lines in plain words with a Copy button. Never say it works unless it started and stayed open. - 3D game: show a note that it may be slow on older Macs, and offer Windowed/Fullscreen. Check the keyboard and gamepad controls in the README and list them on the app's start screen. - Skip steps that are already done. Later launches go straight to Play. THE WINDOW - Top: a title and a picture drawn in code (a gradient and an SF Symbol; no copied screenshots), one line about the game taken from the README, the licence found in the repo, and a short controls list taken from the README (say "see README" if it has none). - Settings: Windowed or Fullscreen and a resolution choice (only flags the research confirms), Update the game (download again, keep save files), Reinstall, Remove everything (shows the disk size it frees), Reveal in Finder, "Show saves" (Godot's user:// folder under ~/Library/Application Support/Godot, when it exists). - About: the game's author and licence, the Godot licence (MIT), a link to https://github.com/kuba--/f1, and a note that the game belongs to its author. Quitting the app while the game runs asks first. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Apple frameworks only (Foundation, AppKit, CryptoKit), no packages, no Xcode project or asset catalog. Modules: RepoDownloader, ProjectInspector, EngineManager, GameRunner, LogStore and the views. - Run every Process off the main thread, with an argument array, never a shell string. Check every initializer, label and optional; no force-unwraps. - Do not fake anything: no pretend progress, no pretend success. In your reply, say what you built, what the lookups changed (Godot version, repo layout, requirements) and what you could not test: the downloads, the import step, the game actually starting, performance, and keyboard, mouse and gamepad input.
View app: Open RTSOpen RTS
One Play button downloads an open-source Godot real-time strategy game and the engine, then plays it in its own window.
Prompt
Build a native Mac app called Open RTS: a ready-to-play Mac version of a real-time strategy game made in Godot 4 (https://github.com/lampe-games/godot-open-rts). One window, one big Play button. The app downloads the game's source and the right Godot engine by itself, prepares everything, and starts the game in its own window. No Godot knowledge needed, nothing to type. Nothing is sent anywhere except the downloads. RESEARCH FIRST (WebSearch and WebFetch before any code) Read, do not remember: (1) https://github.com/lampe-games/godot-open-rts: the README (what the game is, controls, requirements), the licence, the default branch, the releases page, and whether a macOS build or an export_presets.cfg already exists; (2) the repo's project.godot: config_version (4 means Godot 3, 5 means Godot 4), the config/features line (for example "4.2" or "C#"), the main scene, and any addons or git submodules the game needs; (3) the official Godot downloads for macOS: archive names and URLs on godotengine.org and in the godotengine/godot-builds releases, the universal (arm64 and x86_64) app, the separate .NET build, the SHA512-SUMS file, and the command line flags --path, --headless, --import, --quit, --fullscreen, --windowed, --resolution; (4) that the official Godot app can run a project folder with --path without export templates, and what a first import does. Where a page disagrees with this prompt, follow the page and say what changed. HOW IT WORKS (one click) - Big Play button. The first time: "Downloads the game and the Godot engine once, about <size once known>. Nothing to type." - 1 Game: download the repo as a zip (https://github.com/lampe-games/godot-open-rts/archive/refs/heads/<branch>.zip, or a release asset if the research shows a better one) into a temp file with progress, speed and Cancel, then unzip with /usr/bin/ditto (Process, argument array) into Application Support/Open RTS/Game/. Find the folder that holds project.godot (it may be in a subfolder). Fetch any submodule or addon the research says is needed. - 2 Engine: choose the Godot version and build from project.godot (and the .NET build only for C#). Download it once into Application Support/Open RTS/Engine/, verify the checksum with CryptoKit, and strip the quarantine flag with xattr -dr com.apple.quarantine after saying why. - 3 Import: run the engine once with --headless --import --path <project> --quit, stream the log, and show "First-time setup, this can take a minute or more". - 4 Play: run the engine with --path <project> in a normal window. Show the state (Not downloaded, Downloading, Setting up, Ready, Playing, Needs something with the plain reason), a Stop button, and "Show log". If the game exits within 10 seconds or fails, show the last 30 log lines in plain words with a Copy button. Never say it works unless it started and stayed open. - Godot 4 project, possibly with addons or submodules: check for them, and fetch what is needed. List mouse and keyboard controls from the README. It may need a fast Mac: show a note. - Skip steps that are already done. Later launches go straight to Play. THE WINDOW - Top: a title and a picture drawn in code (a gradient and an SF Symbol; no copied screenshots), one line about the game taken from the README, the licence found in the repo, and a short controls list taken from the README (say "see README" if it has none). - Settings: Windowed or Fullscreen and a resolution choice (only flags the research confirms), Update the game (download again, keep save files), Reinstall, Remove everything (shows the disk size it frees), Reveal in Finder, "Show saves" (Godot's user:// folder under ~/Library/Application Support/Godot, when it exists). - About: the game's author and licence, the Godot licence (MIT), a link to https://github.com/lampe-games/godot-open-rts, and a note that the game belongs to its author. Quitting the app while the game runs asks first. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Apple frameworks only (Foundation, AppKit, CryptoKit), no packages, no Xcode project or asset catalog. Modules: RepoDownloader, ProjectInspector, EngineManager, GameRunner, LogStore and the views. - Run every Process off the main thread, with an argument array, never a shell string. Check every initializer, label and optional; no force-unwraps. - Do not fake anything: no pretend progress, no pretend success. In your reply, say what you built, what the lookups changed (Godot version, repo layout, requirements) and what you could not test: the downloads, the import step, the game actually starting, performance, and keyboard, mouse and gamepad input.
View app: 2D Platformer2D Platformer
One Play button downloads an open-source Godot 2D platformer and the engine, then plays it in its own window.
Prompt
Build a native Mac app called GoPe Platformer: a ready-to-play Mac version of a 2D platformer example (https://github.com/MrZak-dev/GoPe). One window, one big Play button. The app downloads the game's source and the right Godot engine by itself, prepares everything, and starts the game in its own window. No Godot knowledge needed, nothing to type. Nothing is sent anywhere except the downloads. RESEARCH FIRST (WebSearch and WebFetch before any code) Read, do not remember: (1) https://github.com/MrZak-dev/GoPe: the README (what the game is, controls, requirements), the licence, the default branch, the releases page, and whether a macOS build or an export_presets.cfg already exists; (2) the repo's project.godot: config_version (4 means Godot 3, 5 means Godot 4), the config/features line (for example "4.2" or "C#"), the main scene, and any addons or git submodules the game needs; (3) the official Godot downloads for macOS: archive names and URLs on godotengine.org and in the godotengine/godot-builds releases, the universal (arm64 and x86_64) app, the separate .NET build, the SHA512-SUMS file, and the command line flags --path, --headless, --import, --quit, --fullscreen, --windowed, --resolution; (4) that the official Godot app can run a project folder with --path without export templates, and what a first import does. Where a page disagrees with this prompt, follow the page and say what changed. HOW IT WORKS (one click) - Big Play button. The first time: "Downloads the game and the Godot engine once, about <size once known>. Nothing to type." - 1 Game: download the repo as a zip (https://github.com/MrZak-dev/GoPe/archive/refs/heads/<branch>.zip, or a release asset if the research shows a better one) into a temp file with progress, speed and Cancel, then unzip with /usr/bin/ditto (Process, argument array) into Application Support/GoPe Platformer/Game/. Find the folder that holds project.godot (it may be in a subfolder). Fetch any submodule or addon the research says is needed. - 2 Engine: choose the Godot version and build from project.godot (and the .NET build only for C#). Download it once into Application Support/GoPe Platformer/Engine/, verify the checksum with CryptoKit, and strip the quarantine flag with xattr -dr com.apple.quarantine after saying why. - 3 Import: run the engine once with --headless --import --path <project> --quit, stream the log, and show "First-time setup, this can take a minute or more". - 4 Play: run the engine with --path <project> in a normal window. Show the state (Not downloaded, Downloading, Setting up, Ready, Playing, Needs something with the plain reason), a Stop button, and "Show log". If the game exits within 10 seconds or fails, show the last 30 log lines in plain words with a Copy button. Never say it works unless it started and stayed open. - Small 2D game: it should start within seconds after the first setup. List the controls from the README. - Skip steps that are already done. Later launches go straight to Play. THE WINDOW - Top: a title and a picture drawn in code (a gradient and an SF Symbol; no copied screenshots), one line about the game taken from the README, the licence found in the repo, and a short controls list taken from the README (say "see README" if it has none). - Settings: Windowed or Fullscreen and a resolution choice (only flags the research confirms), Update the game (download again, keep save files), Reinstall, Remove everything (shows the disk size it frees), Reveal in Finder, "Show saves" (Godot's user:// folder under ~/Library/Application Support/Godot, when it exists). - About: the game's author and licence, the Godot licence (MIT), a link to https://github.com/MrZak-dev/GoPe, and a note that the game belongs to its author. Quitting the app while the game runs asks first. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Apple frameworks only (Foundation, AppKit, CryptoKit), no packages, no Xcode project or asset catalog. Modules: RepoDownloader, ProjectInspector, EngineManager, GameRunner, LogStore and the views. - Run every Process off the main thread, with an argument array, never a shell string. Check every initializer, label and optional; no force-unwraps. - Do not fake anything: no pretend progress, no pretend success. In your reply, say what you built, what the lookups changed (Godot version, repo layout, requirements) and what you could not test: the downloads, the import step, the game actually starting, performance, and keyboard, mouse and gamepad input.
View app: Flappy CanaryFlappy Canary
Flap a canary through the pipes. A Mac port of the open-source Flappy Canary SpriteKit game.
Prompt
Build a Mac version of this small open-source SpriteKit game, a "Flappy Bird" style game with a canary: https://github.com/pH-7/Flappy-Canary The goal is a polished, playable Mac game that plays like the original: a canary that flaps through gaps between pipes, a score, game over and restart. Keep the game's own code and logic. Port it; do not write a different game. HOW TO PORT IT (read this first) - The repo is in Imported/. It is tiny: read HappyBird/GameScene.swift (the whole game), GameViewController.swift and AppDelegate.swift. Ignore the tests, the storyboards, Actions.sks and GameScene.sks (SpriteKit editor files you cannot use), and the two coding-session photos. - It is an iOS app (UIKit, UIViewController, touches). Replace those parts with Mac ones: host the SKScene in SwiftUI with SpriteView (macOS 11 or later) inside a window, replace touchesBegan with mouseDown and keyDown (click, Space or Up arrow flaps; P pauses; R restarts), and replace any UIKit types (UIColor, UIFont, UIScreen) with NSColor, NSFont and the scene size. Make the scene scale to any window size (scaleMode .aspectFit with a fixed logical size such as 400 by 600) and keep the window resizable, with a minimum of 400 by 600. - Images: the sprites live in the repo (HappyBird/background.png, canary1.png, canary2.png, pipe1.png, pipe2.png), but Imported/ is not shipped and asset catalogs are not allowed. Download them at build time with assets.json in the project root, exactly: [{"repo": "https://github.com/pH-7/Flappy-Canary", "ref": "e8b39b86278ab8ada10e5ef4be8e5c57d6ed5342", "paths": ["HappyBird/background.png", "HappyBird/canary1.png", "HappyBird/canary2.png", "HappyBird/pipe1.png", "HappyBird/pipe2.png"], "to": "Canary"}] The app then finds them at Contents/Resources/Assets/Canary/HappyBird/<name>.png. Write one helper that loads an SKTexture from there (NSImage from Bundle.main.resourceURL), use it wherever the game says SKTexture(imageNamed:), and set filteringMode to .nearest only if the art is pixelated. If a file is missing, draw a simple colored shape instead so the game still runs. - The code is compiled later on the user's Mac, not here, so write carefully: target macOS 13, Swift 5 language mode, only APIs that exist on macOS 13. Double-check every initializer, argument label and optional. - Keep the MIT license: put "Based on Flappy Canary by pH-7 (MIT license)" on the title screen footer or in an About window. GAME - Title screen with the canary and "Click or press Space to start", the best score kept in UserDefaults, a score counter while playing, a game over panel with the score, the best score and "Click to play again". - Keep the original's physics and tuning (gravity, flap impulse, pipe spacing, speed, collision) and its wing animation with the two canary frames. If the original has no sound, add none, or a short synthesized blip with AVAudioEngine only if it is simple. - Smooth 60 frames per second. Do not invent new features. QUALITY - Keep the code modular: a GameScene, a small GameModel for score and state, the SwiftUI shell, and an asset loader. Only Apple frameworks, no Xcode project or asset catalog. - In your reply, say in a few sentences what you kept, what you replaced and anything that may not play exactly like the original.
View app: WayfinderWayfinder
Search places, get driving and walking directions with traffic ETAs, and follow the route turn by turn.
Prompt
Build a Mac navigation app called Wayfinder, in the spirit of Waze and Google Maps: search for places, get driving and walking directions with ETAs and alternate routes, see traffic, and follow a route turn by turn in a 3D drive view. Use this small open-source iOS SceneKit map renderer as the starting point for the 3D drive view: https://github.com/nenuadrian/3D-GPS-location-map-rendering-game-base-swift-ios-scenekit The goal is a polished, working Mac maps app. Be honest about what is real: your position comes from the Mac's location services, places, routes, ETAs and traffic come from Apple MapKit, and the 3D road map comes from OpenStreetMap. There is no crowd-sourced Waze data, so do not pretend there is. HOW TO PORT IT (read this first) - The repo is in Imported/. It is tiny: read README.md, then HW/World3D.swift, MapTile.swift, MapScene.swift, CameraNode.swift, PlayerNode.swift, Utils.swift, LocationMaster.swift and Constants.swift. Ignore HW.xcodeproj, the storyboards, the asset catalogs, Cartfile, the PDF, AppDelegate.swift, API.swift, APIHelper.swift, Logging.swift, SwiftyJSON.swift and VectorMath.swift (do not copy those two libraries; use URLSession and JSONSerialization). - What the repo does and what to keep: it renders the real world as a grid of square map tiles in SceneKit (zoom 16 tiles, each drawn as an SCNPlane textured with the roads for that tile), keeps the player as a sphere, and has a camera that orbits the player (pan to rotate around it and tilt, with the tilt limited so it never goes underground or too high). Keep that design: the tile grid around the player (Constants.TILE_RANGE), the tile math in Utils (tile index to lat/lon, lat/lon to Web Mercator meters), the primordial-tile origin so numbers stay small, the orbiting camera with limited tilt, and the fog. It is an iOS app (UIKit); port it to macOS: SCNView hosted in SwiftUI with NSViewRepresentable, NSColor and NSImage or CGContext instead of UIColor and UIGraphicsBeginImageContext, mouse drag and scroll wheel and trackpad pinch/rotate instead of UIPanGestureRecognizer. - What is broken in the repo, fix it: (1) its map data source is a discontinued Mapzen endpoint and the tiles come out blank. Replace it with OpenStreetMap roads from the Overpass API (https://overpass-api.de/api/interpreter, with one fallback mirror, https://overpass.kumi.systems/api/interpreter). Request a block of tiles at a time as one bounding-box query for highways with `out geom`, parse the JSON, and draw each road into its tile's texture as the repo's drawShapes does, colored and sized by class (motorway, trunk, primary, secondary, tertiary, residential, service; skip footways and paths unless the user is walking). Send a User-Agent that names the app, run one request at a time, retry with a short backoff on 429 and 504, cache results on disk (about a week), and when a block cannot be loaded draw a plain tile and show a small "Map data unavailable" note, never a crash. Show "© OpenStreetMap contributors" in a corner of the 3D view. (2) Utils.latLonToMeters uses abs(), which breaks west of Greenwich and south of the equator: use signed Web Mercator meters. (3) The README's known issue: after the player crosses a number of tiles, re-center on a new primordial tile and place the tiles again relative to it, so coordinates never lose precision. Also handle tile columns wrapping around the 180th meridian simply (clamp or wrap), and never force-unwrap. - Keep the repo's license: put "3D map view based on 3D-GPS-location-map-rendering-game-base-swift-ios-scenekit by nenuadrian (MIT license)" in an About window, together with the OpenStreetMap and Apple Maps credits. - The code is compiled later on the user's Mac, not here, so write carefully: target macOS 13, Swift 5 language mode, only APIs that exist on macOS 13 (the SwiftUI Map view's new API needs macOS 14, so host MKMapView with NSViewRepresentable instead). Double-check every initializer, argument label and optional. THE APP - One window with a Google Maps style layout: a left panel with the search box and the directions card, and the map filling the rest. Minimum window size 900 by 600. A switch at the top of the map between "Map" (MKMapView, with a Standard/Satellite/Hybrid choice and a Traffic toggle using showsTraffic) and "3D Drive" (the SceneKit view ported from the repo). - Search: type in the search box and show suggestions as you type (MKLocalSearchCompleter), press Return to search (MKLocalSearch) and show the results as pins and a list. Clicking a result opens a place card with the name, address, phone and website if there are any, and buttons Directions, Save and Set as my location. Saved places (Home, Work, Favorites) and recent searches are kept in UserDefaults and shown when the search box is focused and empty. Nothing is sent anywhere but Apple's map services. - Your location, the standard way: use CoreLocation (CLLocationManager) for the user's real position. Create the manager once, set desiredAccuracy to kCLLocationAccuracyBest and a distanceFilter of about 5 meters, call requestWhenInUseAuthorization() at launch, react to locationManagerDidChangeAuthorization (check manager.authorizationStatus) and call startUpdatingLocation() once it is authorized, and use manager.location straight away if one is already there. The generated Info.plist already contains the location usage text, so macOS shows its normal permission prompt; do not try to edit Info.plist. Show the blue dot with MKMapView.showsUserLocation, add a "Locate me" button that centers on it, and in the 3D view put the car where the user is. Handle every state with a friendly one-line message and no crash: not determined yet ("Waiting for permission"), denied or restricted ("Location is off for Wayfinder", with a button that opens System Settings at x-apple.systempreferences:com.apple.preference.security?Privacy_LocationServices), location services disabled for the whole Mac, and kCLErrorLocationUnknown (keep waiting; it is not a failure). Use the newest fix only when it is recent (under about a minute old) and its horizontalAccuracy is not negative. - If there is no location (denied, or a Mac with no way to locate itself), the app must still work fully: a "Set my location" action (from a place card, from the search box, or by Control-click or right-click on the map: "I'm here"), remembered in UserDefaults, with the note "Using the location you set". A "Use my real location" switch goes back to the live position. Searches are biased toward the map's visible region or the user's location. - Directions: from my location (or any place) to a place, with a Drive and a Walk choice (MKDirections). Ask for alternate routes and show up to three at once, the selected one in blue and the others gray; clicking a gray route or its row selects it. Each route row shows the travel time, the distance, "Fastest" on the quickest, and the arrival time. For driving, refresh the ETA with MKDirections.calculateETA so it reflects current traffic where Apple provides it, and show "Traffic ETA" or "Typical time" truthfully. The selected route has a turn-by-turn list (its steps with the instruction and distance); clicking a step zooms the map to it. Drag the start and destination pins or edit the two fields to change the route. Add a "Swap" button. - Navigation: a Start button begins turn by turn along the selected route. With a live location, progress comes from the real position: snap it to the route polyline, advance the current step as the user passes it, and when the position is more than about 50 meters off the route for a few seconds, say "Rerouting" and request a new route from where the user is, keeping the same destination. Without a live location, or when the Mac is not moving (a laptop at a desk), offer "Preview drive": a simulated drive along the route, clearly labeled "Simulated drive", with a speed control (1x, 2x, 4x, 8x), Pause and Stop. The same banner, bar and voice work in
View app: Metroidvania PlatformerMetroidvania Platformer
One Play button that downloads a classic Godot platformer and the engine, sets it up, and starts the game in its own window.
Prompt
Build a native Mac app called Metroidvania Platformer: a ready-to-play Mac version of a 2D Metroidvania-inspired platformer from the GDquest Godot course (2019) (https://github.com/gdquest-demos/godot-platformer-2d). One window, one big Play button. The app downloads the game's source and the right Godot engine by itself, prepares everything, and starts the game in its own window. No Godot knowledge needed, nothing to type. Nothing is sent anywhere except the downloads. RESEARCH FIRST (WebSearch and WebFetch before any code) Read, do not remember: (1) https://github.com/gdquest-demos/godot-platformer-2d: the README (what the game is, controls, requirements), the licence, the default branch, the releases page, and whether a macOS build or an export_presets.cfg already exists; (2) the repo's project.godot: config_version (4 means Godot 3, 5 means Godot 4), the config/features line (for example "4.2" or "C#"), the main scene, and any addons or git submodules the game needs; (3) the official Godot downloads for macOS: archive names and URLs on godotengine.org and in the godotengine/godot-builds releases, the universal (arm64 and x86_64) app, the separate .NET build, the SHA512-SUMS file, and the command line flags --path, --headless, --import, --quit, --fullscreen, --windowed, --resolution; (4) that the official Godot app can run a project folder with --path without export templates, and what a first import does. Where a page disagrees with this prompt, follow the page and say what changed. HOW IT WORKS (one click) - Big Play button. The first time: "Downloads the game and the Godot engine once, about <size once known>. Nothing to type." - 1 Game: download the repo as a zip (https://github.com/gdquest-demos/godot-platformer-2d/archive/refs/heads/<branch>.zip, or a release asset if the research shows a better one) into a temp file with progress, speed and Cancel, then unzip with /usr/bin/ditto (Process, argument array) into Application Support/Metroidvania Platformer/Game/. Find the folder that holds project.godot (it may be in a subfolder). Fetch any submodule or addon the research says is needed. - 2 Engine: choose the Godot version and build from project.godot (and the .NET build only for C#). Download it once into Application Support/Metroidvania Platformer/Engine/, verify the checksum with CryptoKit, and strip the quarantine flag with xattr -dr com.apple.quarantine after saying why. - 3 Import: run the engine once with --headless --import --path <project> --quit, stream the log, and show "First-time setup, this can take a minute or more". - 4 Play: run the engine with --path <project> in a normal window. Show the state (Not downloaded, Downloading, Setting up, Ready, Playing, Needs something with the plain reason), a Stop button, and "Show log". If the game exits within 10 seconds or fails, show the last 30 log lines in plain words with a Copy button. Never say it works unless it started and stayed open. - This is an older project: confirm from project.godot whether it needs Godot 3.x, and use that engine, not Godot 4. List the controls from the README. - Skip steps that are already done. Later launches go straight to Play. THE WINDOW - Top: a title and a picture drawn in code (a gradient and an SF Symbol; no copied screenshots), one line about the game taken from the README, the licence found in the repo, and a short controls list taken from the README (say "see README" if it has none). - Settings: Windowed or Fullscreen and a resolution choice (only flags the research confirms), Update the game (download again, keep save files), Reinstall, Remove everything (shows the disk size it frees), Reveal in Finder, "Show saves" (Godot's user:// folder under ~/Library/Application Support/Godot, when it exists). - About: the game's author and licence, the Godot licence (MIT), a link to https://github.com/gdquest-demos/godot-platformer-2d, and a note that the game belongs to its author. Quitting the app while the game runs asks first. QUALITY - macOS 13, Swift 5 language mode, SwiftUI with ObservableObject and @Published. Apple frameworks only (Foundation, AppKit, CryptoKit), no packages, no Xcode project or asset catalog. Modules: RepoDownloader, ProjectInspector, EngineManager, GameRunner, LogStore and the views. - Run every Process off the main thread, with an argument array, never a shell string. Check every initializer, label and optional; no force-unwraps. - Do not fake anything: no pretend progress, no pretend success. In your reply, say what you built, what the lookups changed (Godot version, repo layout, requirements) and what you could not test: the downloads, the import step, the game actually starting, performance, and keyboard, mouse and gamepad input.
Have your own idea?
Describe any Mac app and SiliconDevKit builds it, with its own icon.
Build your own