All builds

macOS app / 2026 / In progress

Omitto.

A Mac app that hides the sensitive parts of developer text on the Mac itself, and never shows a result made from older text

The hard part
Scanning text in the background, but never offering a cleaned copy of text that was edited while the scan ran.
Works today
The Mac app finds secrets, shows each one for review and copies a safe version. I have not yet measured how fast it is.
Role
Software engineering
Built with
Swift · SwiftUI · Foundation · Swift Package Manager · XCTest

01What I built

The problem.

A log is the record a program writes as it runs. Before a log or a piece of a settings file is shared, the sensitive parts have to come out. But the layout that makes it useful has to stay. The tool must also never offer a redacted copy of text that has since been edited. Scanning in the background makes that harder, because a slow scan can finish after the text has changed.

What I built.

Omitto is a macOS app built around RedactionCore, a separate package of code that does the text work. The app does everything else. It starts each scan in the background and decides whether to accept the result. It shows the findings, the sensitive bits the scan found, for review. There I can choose Keep, which leaves that piece of text as it was without hiding it. I can also add phrases of my own to hide. It copies the result only when asked. An optional timer clears the clipboard afterwards, but only if Omitto’s copy is still the item on it.

Omitto with the original text on the left and the safe copy on the right. Four secrets are marked and replaced.
Omitto’s review screen, from the project’s own design notes in July 2026. The secrets in it are made up for testing.

The app

Swift, SwiftUI, Foundation

Screen state
Holds the text that goes in and the result that comes out, plus the findings and the review choices. It all lives on the main actor, the part of Swift that runs the screens.
Background scan
Takes a copy of the text and the policy under a new generation number, a count that goes up with each scan. Then it runs RedactionCore as a detached task, a separate job in the background.The storyMaking sure a background scan still matches the text on screen
Result check
Shows a result only if the generation number and the text still match, and the scan was not cancelled.The storyMaking sure a background scan still matches the text on screen
Edit reset
Any edit clears the old output, findings and report. It also clears the Keep choices, so the text must be scanned again.
Clipboard service
Copies only when asked. Its timed clear runs only if the pasteboard change count, which goes up with every copy, has not moved.

The package

Swift, Foundation, Swift Package Manager, XCTest

RedactionCore
Main call
One call takes text and a policy, does the whole job, then returns the redacted text, the findings and a report.
Detectors
Gathers the stretches of text that every detector suggests, and removes repeats.
Overlap resolver
Drops disabled groups first. Then it picks winners by priority, by how sure each match is, and by length.The storyStopping a disabled detector from beating an enabled one
Placeholders
Gives repeated values one shared placeholder within a call. Different values of the same kind get different numbers.
Text replacement
Edits the text from the end backwards, so earlier positions stay correct. It counts positions in UTF-16 units, a standard way of numbering the characters in text.
Findings
Each finding says where the match is, what kind it is, and how sure the scan is. It also gives a reason and a preview with the value hidden. It never holds the original value.

02The journey

What broke, and what changed.

Broke, then fixedA decisionA milestone

  1. 01 of 08DecidedOmitto

    Moving the scan to the background without losing track

    The questionScanning ran on the main actor, the part of Swift that also runs the screens. Moving it to the background raised a new problem. A scan could finish after the text changed, or after a newer scan began.

    What I choseEach scan now takes a copy of the text and the policy, with a Omitto · The appBackground scanTakes a copy of the text and the policy under a new generation number, a count that goes up with each scan. Then it runs RedactionCore as a detached task, a separate job in the background.See it in the map above, a count that goes up with each scan. It then runs as a detached task, a separate job in the background. Its result is shown only if the number and the Omitto · The appResult checkShows a result only if the generation number and the text still match, and the scan was not cancelled.See it in the map above still match. The task must also not have been cancelled.

03Today

Where it stands.

The Omitto · RedactionCore · The packageDetectorsGathers the stretches of text that every detector suggests, and removes repeats.See it in the map above is the part of RedactionCore that looks for secrets. Cancelling a scan cannot stop it halfway, so the app throws away the late result instead. I have not yet measured how quickly the app responds. I have not tested scans that overlap either. Working on the Mac itself does not mean every secret is found. It does not mean the app’s memory is wiped either.