How omlahore/removemacai works
RemoveMacAI is a macOS command-line tool for switching off Apple Intelligence features, removing downloaded models, and preventing their redownload; removing its configuration profile reverts the changes. The main workflow starts in the CLI dispatcher, proceeds through feature/model selection and profile approval, then requests model removal and verifies the result. Status and feature-list commands share the catalog and system-state layer. The graph uses the provided excerpts and README; unsampled implementation details are represented only where documented, and self-test is shown as an auxiliary CLI command.
Main entry points: Commands.swift Command workflows · main.swift CLI dispatcher · Profile.swift Configuration profile · System.swift Model inventory and removal
Components 13
CLI workflow
- CLI dispatcher
Sources/removemacai/main.swift - Command workflows
Sources/removemacai/Commands.swift - Terminal I/O
Sources/removemacai/Term.swift - Self-test
Sources/removemacai/SelfTest.swift
Feature policy
- Feature and model catalog
Sources/removemacai/Catalog.swift - Configuration profile
Sources/removemacai/Profile.swift - Feature state
Sources/removemacai/System.swift
Model management
- Model inventory and removal
Sources/removemacai/System.swift - UAF bridge
Sources/UAF/UAF.m
macOS integration
- Apple asset service
- System Settings approval
- macOS profile enforcement
Other components
- User
Connections 20
- User → CLI dispatcher: runs commands
Sources/removemacai/main.swift - CLI dispatcher → Command workflows: dispatches
Sources/removemacai/main.swift - CLI dispatcher → Self-test: runs self-test
Sources/removemacai/main.swift - CLI dispatcher → Terminal I/O: reports errors
Sources/removemacai/main.swift - Command workflows → Feature and model catalog: selects features
Sources/removemacai/Commands.swift - Command workflows → Configuration profile: builds and checks
Sources/removemacai/Commands.swift - Command workflows → Feature state: reads feature state
Sources/removemacai/Commands.swift - Command workflows → Model inventory and removal: checks and removes
Sources/removemacai/Commands.swift - Command workflows → Terminal I/O: prompts and reports
Sources/removemacai/Commands.swift - Command workflows → User: requests confirmation
README.md - Command workflows → System Settings approval: opens for approval
Sources/removemacai/Commands.swift - Configuration profile → Feature and model catalog: applies feature rules
Sources/removemacai/Profile.swift - Feature state → Configuration profile: checks installed profile
Sources/removemacai/System.swift - Feature state → Model inventory and removal: reads model state
Sources/removemacai/System.swift - Model inventory and removal → Feature and model catalog: validates model sets
Sources/removemacai/System.swift - Model inventory and removal → UAF bridge: queries and resets
Sources/removemacai/System.swift - UAF bridge → Apple asset service: uses asset interface
- System Settings approval → macOS profile enforcement: installs or removes
README.md - Configuration profile → macOS profile enforcement: configures restrictions
README.md - macOS profile enforcement → Apple asset service: blocks redownloads
README.md