chadtmiller.com/3n3htqbv63wba
Clean up after coding agents on macOS: remove finished git worktrees and sweep stale build output (cargo targets, node_modules, DerivedData, /tmp) with two launchd jobs
0
0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin</string>
</dict>
<key>Label</key>
<string>local.sweep-targets</string>
<key>LowPriorityIO</key>
<true/>
<key>Nice</key>
<integer>10</integer>
<key>ProcessType</key>
<string>Background</string>
<key>ProgramArguments</key>
<array>
<string>__HOME__/.local/bin/sweep-targets</string>
<string>--delete</string>
</array>
<key>StandardErrorPath</key>
<string>__HOME__/Library/Logs/sweep-targets.log</string>
<key>StandardOutPath</key>
<string>__HOME__/Library/Logs/sweep-targets.log</string>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>4</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
</dict>
</plist>