You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Proposal] CLI interface for AI agent / headless use #17
Interesting proposal. A read-only CLI scan would be low-risk and useful for CI/automation.
The scan engine (ScanEngine) is already decoupled from the UI — it's an actor that returns CategoryResult structs. Adding a CLI target with swift-argument-parser that calls the same scan engine is feasible.
Scope for a first PR (read-only only):
puremac scan — all categories, human-readable summary
puremac scan --category <cat> --json — single category, JSON output
puremac disk-info — free/used/purgeable
No destructive operations in v1. If you want to submit a PR for this, go ahead — keep it as a separate target in the Xcode project so it doesn't affect the main app build.
Thanks @dhruvkelawala for thinking through the scope and keeping it read-only first - that's exactly the right approach. The fact that you laid out the API surface and asked before coding shows great project etiquette. Looking forward to seeing a PR if you go for it!
Activity
momenbasel commentedon Apr 14, 2026
Interesting proposal. A read-only CLI scan would be low-risk and useful for CI/automation.
The scan engine (
ScanEngine) is already decoupled from the UI — it's anactorthat returnsCategoryResultstructs. Adding a CLI target withswift-argument-parserthat calls the same scan engine is feasible.Scope for a first PR (read-only only):
puremac scan— all categories, human-readable summarypuremac scan --category <cat> --json— single category, JSON outputpuremac disk-info— free/used/purgeableNo destructive operations in v1. If you want to submit a PR for this, go ahead — keep it as a separate target in the Xcode project so it doesn't affect the main app build.
momenbasel commentedon Apr 14, 2026
Thanks @dhruvkelawala for thinking through the scope and keeping it read-only first - that's exactly the right approach. The fact that you laid out the API surface and asked before coding shows great project etiquette. Looking forward to seeing a PR if you go for it!
feat: CLI interface + universal binary (Intel + Apple Silicon)
feat: CLI interface + universal binary (Intel + Apple Silicon)
feat: CLI interface + universal binary (Intel + Apple Silicon)