{"slug": "hone-a-native-macos-app-that-rewrites-your-prompts-using-the-claude-chatgpt-you", "title": "Hone: a native macOS app that rewrites your prompts using the Claude/ChatGPT subscription you already pay for", "summary": "A developer built Hone, an open-source (MIT) native macOS app in SwiftUI that rewrites and edits selected text using an existing Claude or ChatGPT subscription rather than a separate API key. To isolate requests, it runs each vendor's official CLI in headless mode with tools, hooks, MCP servers, project memory and session persistence disabled, inside an empty temp folder, and defends against prompt injection by wrapping selected text and context in escaped delimiters. The app has no third-party dependencies, backend or telemetry, and stores API keys in the macOS Keychain when users opt for key-based providers.", "body_md": "I already pay for an AI subscription. Most \"AI writing\" utilities for the Mac want an API key on top of it, so I'd be paying twice for the same model.\n\nSo I built **Hone**: a native macOS app that turns rough prompts into good ones and runs AI text actions on any text you select, using the subscription you already have. It's open source (MIT), written in SwiftUI, and has zero third-party dependencies.\n\nSelect text in any app, press `⌃⌥Space`, pick an action (Improve Prompt, Rewrite, Proofread, Summarize, Translate and more), then replace the selection in place or copy the result.\n\nRepo: [github.com/dvd90/prompt-forge](https://github.com/dvd90/prompt-forge) (it shipped as Prompt Forge in 1.0, hence the repo name). There's a 34-second demo at the top of the README.\n\nThis post covers the four parts I found most interesting to build.\n\nHone never copies or stores a login token. In subscription mode it runs the vendor's official CLI in headless mode, so requests use your existing login and count against your plan.\n\nThe hard part is isolation. A CLI like Claude Code is an agent: it has tools, hooks, MCP servers and project memory. None of that should leak into a \"proofread this sentence\" request. So the Claude Code call looks like this:\n\n```\nclaude -p --system-prompt \"...\" \\\n  --tools \"\" \\\n  --setting-sources \"\" \\\n  --strict-mcp-config \\\n  --disable-slash-commands \\\n  --no-session-persistence\n```\n\nThat means no tools, no hooks, no MCP servers, no `CLAUDE.md` and no session files. The other two providers get the same treatment:\n\n```\ncodex exec --ephemeral -s read-only --skip-git-repo-check\ngemini -p --approval-mode plan\n```\n\nEvery CLI runs in an empty temp folder, so a model can't touch your files even if it tried.\n\nOne gotcha: GUI apps on macOS don't inherit your shell `PATH`, so the app can't find `claude` the way your terminal does. Hone reads `PATH` once from a login shell and shows in Settings where each CLI was found.\n\nIf you'd rather use a key, there's an Anthropic provider and an OpenAI-compatible one with presets for OpenAI, OpenRouter, Ollama and LM Studio. Keys live in the macOS Keychain.\n\nImprove Prompt doesn't just hand back a rewrite. It scores your draft from 0 to 100, says what was wrong, shows the improved prompt, lists what changed and the assumptions it made, then scores the result.\n\nI wanted that to render live while the model streams, across providers that don't all support structured output. So the meta-prompt asks for a fixed tagged format, and the app parses it as it arrives:\n\n``` php\n<score_before> -> <diagnosis> -> <improved_prompt> -> <changes> -> <assumptions> -> <score_after>\n```\n\nThe meta-prompt itself is based on Anthropic's and OpenAI's published prompting guidance: be explicit about the task and what \"done\" means, give the why behind instructions, separate instructions from data, and set the output format.\n\nThe rule I like most is \"never leave blanks\". When something is missing, the model makes a reasonable assumption, writes it into the prompt and lists it. You correct any of them and click **Re-run with corrections**, instead of filling in `{{PLACEHOLDERS}}` by hand.\n\nA tool that sends whatever you highlight to an LLM is a prompt-injection target by design. You will eventually select an email or a web page that says \"ignore previous instructions\".\n\nAll text actions share one guarded system prompt. The selection is wrapped in delimiters (`<text>` or `<draft_prompt>`) and labelled as content, so that sentence gets proofread, not obeyed.\n\nContext gets the same treatment. Profiles, notes, attached files and the window title you came from are each delimited, and their closing tags are escaped so a file can't break out of its block.\n\nCombined with section 1 (no tools, read-only or plan mode, empty working folder), the worst an injected instruction can do is produce a bad rewrite.\n\nHone has no third-party packages, no backend and no telemetry. The app talks only to the provider you pick.\n\nKeeping it dependency-free forced small seams. A provider is one protocol:\n\n```\nprotocol LLMProvider {\n    func stream(system: String, messages: [ChatMessage], maxTokens: Int)\n        -> AsyncThrowingStream<String, Error>\n}\n```\n\nAnd a new built-in action is one line:\n\n```\nbuiltIn(\"bulletize\", \"Bullet Points\", \"list.dash\",\n        \"Convert this text into a clean bulleted list.\"),\n```\n\nCI builds the app and runs the unit tests on every pull request, and logic code must keep at least 95% line coverage. SwiftUI views and OS glue are excluded by name. Live tests that make real calls through my own CLI logins never run in CI.\n\nYou need macOS 14 or later, on Apple silicon or Intel.\n\n```\ngit clone https://github.com/dvd90/prompt-forge.git\ncd prompt-forge\n./install.sh   # builds, installs to /Applications, launches\n```\n\nIf `claude` is installed and logged in, there is nothing else to configure.\n\nReplace works by capturing your selection with `⌘C` and pasting back with `⌘V`, and that depends on the target app. **Which app breaks it for you?** Browsers, Electron apps, terminals and editors are the likely suspects. Tell me in the comments, with steps if you can, or open an issue.\n\nThe Gemini CLI provider also hasn't been tested end to end, so reports from Google-login users are welcome.\n\nNext in this series: how to call Claude Code headless from a native app, flag by flag. Follow if you want it.", "url": "https://wpnews.pro/news/hone-a-native-macos-app-that-rewrites-your-prompts-using-the-claude-chatgpt-you", "canonical_source": "https://dev.to/dvd90/hone-a-native-macos-app-that-rewrites-your-prompts-using-the-claudechatgpt-subscription-you-2j0o", "published_at": "2026-11-24 09:09:35+00:00", "updated_at": "2026-11-24 09:12:52.255619+00:00", "lang": "en", "topics": ["ai-tools", "large-language-models", "ai-agents", "developer-tools"], "entities": ["Hone", "Claude Code", "ChatGPT", "Anthropic", "OpenAI", "OpenRouter", "Ollama", "LM Studio"], "also_reported_by": [], "takeaway": "Running a vendor CLI in headless mode with --tools \"\", --setting-sources \"\", --strict-mcp-config and --no-session-persistence in an empty temp folder strips agent capabilities so a subscription-backed text action can't touch files or project memory.", "recommendation": {"advice": "When calling an agent CLI for a single text task, disable tools, hooks, MCP config and session persistence and run it in an empty temp folder to contain prompt injection.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/hone-a-native-macos-app-that-rewrites-your-prompts-using-the-claude-chatgpt-you", "markdown": "https://wpnews.pro/news/hone-a-native-macos-app-that-rewrites-your-prompts-using-the-claude-chatgpt-you.md", "text": "https://wpnews.pro/news/hone-a-native-macos-app-that-rewrites-your-prompts-using-the-claude-chatgpt-you.txt", "jsonld": "https://wpnews.pro/news/hone-a-native-macos-app-that-rewrites-your-prompts-using-the-claude-chatgpt-you.jsonld"}}