Skip to content

Ghost Writer

Ghost Writer is a small Markdown editor for Mac and PC with Ollama built in. I wanted a narrow writing window beside whatever I was researching, without copying text between a document and an AI tool. Byword’s editor and Ollama’s model selector were the starting points.

The default window is 400 pixels wide. It uses familiar editing shortcuts, and the model works on the document: select text to replace it, or leave nothing selected to insert at the cursor. Writing and generation stay on the computer, with no API key or subscription.

Writing with a local model

I used to leave bracketed research notes in screenplays. Ghost Writer’s inline prompts let those notes resolve in the draft. A note can expand a paragraph, or I can chain an argument for Michael Jordan with a response arguing for LeBron James.

{{Expand this paragraph with a stronger counterargument.}}
{{Write an argument explaining why Michael Jordan is the best basketball player ever}}
{{Debate the previous argument and explain how LeBron James is better in each category}}
Inline prompt tokens resolving directly in the document

Output streams into the editor, so I can see progress and stop a generation that is going off track. Markdown rendering keeps the draft readable while I work, and the proofread demonstration shows the model editing directly in the document.

Streaming generation output inside Ghost Writer

Building the desktop app

The browser prototype worked, but I kept returning to apps in my Dock. Packaging Ghost Writer with Tauri made it something I would actually open. The early Electron build was roughly 80 MB; the Tauri build in that comparison was under 5 MB. Ollama supplies the installed local models, which I can switch without editing a configuration file.

Size comparison between Electron and Tauri builds

I directed the implementation mainly through Codex CLI, using written plans, manual tests, commits, and fresh-agent audits. Each audit produced a cleanup list, followed by another test. Keeping the scope small was part of that process: an editor and local generation, with no publishing pipeline or conversation sidebar.

Agentic engineering workflow diagram