← All projects

macOS & automation

SafeRun

A native file-automation app that validates and simulates a plan before making changes, with recovery for supported actions.

AUDIENCEmacOS users who want to automate file organization with a review step before changes.
MEDIUM / TOOLSSwift / macOS / OpenAI API
CURRENT STATEVersion 1.0
01 / THE IDEA

Project overview

SafeRun is a native macOS app that turns a plain-language file request into a structured plan. It validates paths and collisions, simulates the result before touching files, and requires explicit confirmation to execute. A transaction journal, recovery copies, rollback, and Keychain storage support its preview-first workflow.

02 / PEOPLE

Who it's for

macOS users who want to automate file organization with a review step before changes.

03 / CONTEXT

Project context

A natural-language file request can cause damage if the resulting operations are executed without review.

04 / EXPERIENCE

Inside the project

  • Translate a plain-language request into a structured file plan.
  • Validate paths and collisions, then preview the simulated result.
  • Confirm execution with a transaction journal, recovery copies, and supported rollback.
05 / APPROACH

The work

SafeRun converts requests into structured plans, validates paths and collisions locally, simulates changes, and uses a transaction journal and recovery copies after confirmation.

06 / WALKTHROUGH

How it works

Select a folder and describe a file task. The app requests a structured plan, validates every operation locally, and simulates the resulting filesystem before asking for confirmation. Supported actions include moving, renaming, deleting, creating folders or files, and replacing content. The review and history surfaces keep the proposed changes and execution record visible.

07 / IMPLEMENTATION

Under the hood

OpenAI Responses produces the plan, while local code enforces the boundary of the selected folder. Only relative names, types, sizes, and timestamps are sent for planning; file contents and absolute paths are excluded. Security-scoped access, Keychain API-key storage, collision and stale-file checks, and refusal of symlink or path escapes constrain execution. A transaction journal and recovery copies support rollback and interrupted-run recovery.

08 / SCOPE

What to know

The app targets macOS 14 and later, with signed and notarized releases documented. Recovery applies to supported actions and retained recovery data. Packages, aliases, external or network volumes, and paths outside the selected scope are deliberately restricted. AI proposes a plan; execution still requires an explicit local review.

Read the repository and source ↗

Source reviewed 16 October 2026

09 / NOW

Current state

Version 1.0 is a native macOS app. Its README links to signed, notarized releases and documents the supported operations and limitations.