Borrowing it
Nothing to install: this file belongs to Lcharvol/MacSift. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Lcharvol/MacSift/main/CLAUDE.mdgit clone --depth 1 https://github.com/Lcharvol/MacSiftWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/lcharvol/macsift/claude-md)<a href="https://agentmods.dev/instructions/lcharvol/macsift/claude-md"><img src="https://agentmods.dev/badge/instructions/lcharvol/macsift/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/lcharvol/macsift/claude-md"><img src="https://agentmods.dev/badge/instructions/lcharvol/macsift/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.04662 | $0.04662 |
| Opus 5.5 | $0.01865 | $0.01865 |
| Sonnet 5.5 | $0.00932 | $0.00932 |
| Haiku 4.5 | $0.00466 | $0.00466 |
Grade B, and why
MacSift CLAUDE.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- Time Machine snapshot deletion via `tmutil deletelocalsnapshots` may require admin privileges. The cleaning report adds a hint pointing the user to run `sudo tmutil deletelocalsnapshots <date>` in Terminal when this ha How it starts
The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MacSift — Working Notes for Claude
Transparent macOS disk cleaning utility. SwiftUI, MVVM, built with SwiftPM (no Xcode project file). Deployment target is macOS 15 (Sequoia); Liquid Glass APIs from macOS 26 (Tahoe) are gated behind runtime availability checks via the compatGlassEffect / compatGlassButtonStyle helpers in Utilities/GlassCompat.swift.
Build / run / test
# Compile only (fast, for type-checking)
swift build
# Run the full test suite
swift test
# Run a single suite
swift test --filter CleaningEngineIntegrationTests
# Build the .app bundle and launch (this is how the user runs it)
./build-app.sh
open MacSift.app
build-app.sh produces a proper .app bundle (with Info.plist + AppIcon.icns) from the SPM build output, ad-hoc signs it for stable TCC identity, and prints next steps. The bundle path is MacSift.app/ at the repo root and is gitignored.
The user is on macOS 26.2 / Xcode 26.3. Deployment target is macOS 15.0 (Sequoia). On Sequoia the app falls back to .regularMaterial / .bordered instead of Liquid Glass.
Project layout
MacSift/
├── App/ # MacSiftApp entry point + AppState (@Published mode, dryRun, threshold)
├── Models/ # FileCategory, ScannedFile, ScanResult, FileGroup — pure value types, Sendable
├── Services/ # DiskScanner, CategoryClassifier, FileGrouper, CleaningEngine,
│ TimeMachineService, ExclusionManager
├── ViewModels/ # ScanViewModel, CleaningViewModel — @MainActor, @Published, orchestrate services
├── Views/ # SwiftUI views — WelcomeView, ScanProgressView, FileListSection,
│ FileGroupRow, InspectorView, MainView, …
└── Utilities/ # FileSize+Formatting, FileDescriptions, BundleNames, Permissions
Keep the structure flat. Don't introduce package boundaries or sub-frameworks.
File grouping architecture
ScannedFile is one underlying OS file. FileGroup is a display-layer
aggregation — multiple ScannedFiles that share a common owner (e.g., all files
under ~/Library/Caches/com.apple.Safari/ collapse into one "Safari" row).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 25d ago Changed · +12 lines · +1,022 tokens per session fe3d52bcd82d
- 2mo ago First seen · 187 lines · 3,640 tokens per session scan B 6c4cbbec7605
MacSift CLAUDE.md is an instructions file published in the GitHub repository Lcharvol/MacSift (273 stars, last pushed 25d ago), licensed MIT. It adds 4,662 tokens to every session, about $0.0186 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
MacSift CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| MacSift CLAUDE.mdLcharvol/MacSift | Instructions file | 273 | 25d ago | MIT | B | 4,662 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 275k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |