Reform is a native SwiftUI macOS editor for improving AI-assisted writing. Paste text or import a document, choose a rewrite style and change limit, then review every proposed edit in a single interactive document.
It includes:
- on-device verb, clarity, concise, rhythm, and plain-language suggestions
- Apple Intelligence suggestions through Apple's on-device Foundation Models framework on supported Macs
- ChatGPT-assisted suggestions through the OpenAI Responses API
- Codex-assisted suggestions through an ephemeral read-only local Codex session
- quality scores for meaning preservation, readability, and grammar
- protected facts, quotations, numbers, URLs, citations, and custom terms
- permanently read-only quotes, citations, URLs, DOIs, footnotes, and reference sections
- exact range-based highlights, so repeated words can be edited independently
- click-to-cycle variants, hover alternatives, and double-click editing
- in-session revision history with preview, restore, delete, and clear controls
- a native About Reform window with primary research references and a clear explanation of how each paper relates to the app
ChatGPT Assist is a writing-quality feature. It is explicitly instructed not to target AI detectors or watermarks.
On macOS 26 or later, select Apple Intelligence in Reform Settings. Reform checks whether the Mac is eligible, Apple Intelligence is enabled, the model is ready, and the current language is supported. Documents are processed in local batches through Apple's Foundation Models framework, work offline, and are never sent to an API. Reform's existing protected-content validation still locks quotations, citations, links, DOIs, footnotes, and reference sections.
The separate Local rules button remains available as a deterministic fallback on every supported macOS version.
./script/build_and_run.shThe project also includes a Codex Run action in .codex/environments/environment.toml.
The repository produces native Swift coverage and SonarQube generic coverage reports. The current gate covers the testable model, transformation, decoding, protection, Codex process, and document-store layers; SwiftUI rendering and external platform or network adapters are excluded from the percentage and remain covered by build and integration checks. A clean local Xcode 26.6 run measures 81.35%, while GitHub's macOS 26 runner measures 75.54%, so the cross-runner gate is 75%. This is below the project's 90% target while the platform adapters acquire injectable boundaries and deterministic tests; the intended follow-up is to add those tests and raise the floor rather than add percentage-only tests.
make test # Run the Swift tests
make coverage # Write coverage.lcov and coverage.xml
make coverage-check # Enforce the current 75% cross-runner baseline
make sonar # Generate coverage and run the authenticated SonarCloud scanmake sonar reads SONAR_TOKEN, falling back to SONAR_TOKEN_PERSONAL, without writing either value to disk. The SonarCloud project is stephenlclarke_reforminator.
API and product documentation is generated from the Documentation.docc catalog on every pull request and push. The static site is retained as a workflow artifact, and the default-branch workflow publishes it to GitHub Pages.
make docs # Generate the static site in _site
make serve-docs # Generate and preview it at http://localhost:8000Open Reform > Settings, paste an OpenAI API key, and choose a model. The key is stored in the device-only macOS Keychain with user-presence protection and is never included in the repository. macOS asks for approval when Reform uses the key. Using ChatGPT Assist sends the active document and rewrite preferences to the OpenAI API; on-device rewriting does not use the network.
Install Codex CLI, run codex login, and select Codex session in Reform
Settings. Reform invokes Codex in ephemeral, read-only mode and uses its existing
ChatGPT sign-in. It does not read, copy, or embed Codex credentials. Codex Assist
uses a separate one-shot session and does not attach to the currently open Codex
task.
Plain text, RTF, HTML, and Word formats are imported using macOS text services where available. Pages documents should be exported from Pages as RTF or plain text before import; Pages files are packages and do not expose their writing as directly readable text.
The Reform > About Reform window contains the primary sources and explains their relationship to the product. Its first reference explains that the Reforminator project name is a playful nod to Dr. Heinz Doofenshmirtz's “-inator” inventions. The quality and review design was informed by Watermark under Fire, SIRA, Watermark Smoothing Attacks, Optimizing Adaptive Attacks, and Vaporizer. Large Language Model Watermark Stealing With Mixed Integer Programming is identified as threat-model background only.
Reform does not implement self-information scoring, detector-guided rewriting, watermark detection or removal, secret token-list inference, or watermark stealing. It uses quality-oriented rewriting with visible edits, user-controlled alternatives, and protected quotations and references.