MacSift: Instructions file for Claude Code

CLAUDE.md

MacSift CLAUDE.md is an instructions file for Claude Code from Lcharvol/MacSift. It costs 4,662 tokens per session, scanned B, original, MIT.

Project instructions for MacSift, a macOS disk-cleaning utility built with SwiftUI and Swift Package Manager. They document the project layout and commands for compiling, testing, building, and launching the app.

In plain words
What is it for?
Use them when changing MacSift, compiling it, running its full or targeted tests, creating the application bundle, or handling macOS version and Liquid Glass compatibility.
Why use it?
They give an agent the project-specific knowledge needed to work consistently without rediscovering the build process and platform constraints.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is Lcharvol/MacSift's own configuration. It tells Claude Code how to work on MacSift itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything MacSift configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/Lcharvol/MacSift/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Lcharvol/MacSift

Made for: Claude Code.

Wrote 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.

agentmods badge for MacSift CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lcharvol/macsift/claude-md/github.svg)](https://agentmods.dev/instructions/lcharvol/macsift/claude-md)
Your own site
<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.

agentmods 80×15 button for MacSift CLAUDE.md

Your own site · 80×15
<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>
Per session 4,662 This file is loaded in full into every session.
When invoked 4,662 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 25d ago against content hash fe3d52bcd82d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
CLAUDE.md · 199 lines

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).

Read the full file on GitHub · 199 lines

Changes

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.

  1. 25d ago Changed · +12 lines · +1,022 tokens per session fe3d52bcd82d
  2. 2mo ago First seen · 187 lines · 3,640 tokens per session scan B 6c4cbbec7605

Subscribe to this mod's changes

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.

Related

MacSift CLAUDE.md compared with instructions from other repositories

MacSift CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
MacSift CLAUDE.mdLcharvol/MacSiftInstructions file27325d agoMITB4,662Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode