Two scripts for macOS 26 (Tahoe) or 27 (Golden Gate):
golden-gate-debloater.shturns off Apple Intelligence, Siri, suggestion, and telemetry background services, and sets a few privacy defaults. It records every change it makes.golden-gate-restore.shundoes what the debloater recorded, or resets everything it knows about to macOS defaults.
Both are written for the bash 3.2 that ships with macOS.