v1.1.0 · Windows 11 Native · WinUI 3 · .NET 9

Autonomous Command Center for
Claude Code CLI & Claude Desktop

Reclaim gigabytes of uncompressed transcript storage and declutter hundreds of orphaned sessions safely. Engineered with an inviolable 24-hour active session grace window, process collision guards, and live secret scanning.

$ winget install AnaCataVC.ClaudeDesktopTools
Workstation ROI Calculator

Estimate Your Annual Storage & Session Savings

Claude Code CLI saves full prompt and response JSON trees. See how much disk space and UI clutter accumulates over time.

Weekly Claude Code CLI Prompts: 120 prompts/wk
Active Repositories / Projects: 8 repositories

*Calculations based on average uncompressed JSONL transcript weight of ~1.2 MB per multi-turn exchange and average Claude Desktop session clutter rates.

Annual Disk Space Reclaimed:
7.5 GB
Orphaned Sessions Organized:
384
Estimated Context Discovery Time Saved:
18.2 hrs
Enterprise Reliability

The 6 Inviolable Safety Guardrails

Engineered specifically to prevent data loss, process race conditions, and corrupted workstation state.

24-Hour Active Grace Window

Never Deleted

Any transcript touched within the past 24 hours is unconditionally shielded. Your in-progress and recently resumed CLI sessions are 100% safe, even if retention is configured to 0 days.

ActiveSessionGrace = TimeSpan.FromHours(24)

Process Collision Lock

claude.exe Probe

Detects if Claude Desktop is running in memory. Refuses session archiving to prevent in-memory changes from being silently overwritten when Claude exits and flushes to disk.

Process.GetProcessesByName("claude").Length > 0

Surgical Header Mutation

Zero Rewrites

Inspects only the first 1,000 characters. Flips "isArchived": false to true via a sibling .tmp file, preserving LastWriteTime and avoiding full multi-megabyte JSON deserialization.

File.Move(tmpPath, target, overwrite: true)

Secret Scanning & BFS

Shielded IO

Bounded breadth-first search scans CLAUDE.md, skills, and agents. Real-time regex inspection shields SSH private keys, AWS tokens, GitHub PATs, and Slack webhooks before upload.

Regex: AKIA[0-9A-Z]{16} | ghp_[0-9a-zA-Z]{36}

Modal Concurrency Lock

Crash Prevention

All destructive user dialogs are guarded by SemaphoreSlim(1, 1). Prevents WinUI 3 concurrent dialog collision crashes (COM exception 0x80004005) during rapid UI interaction.

await _dialogLock.WaitAsync(0);

Dynamic Safe Path Resolution

Zero Hardcoding

Paths resolved dynamically using Environment.SpecialFolder.UserProfile and ApplicationData. Zero hardcoded paths, guaranteed portability across Windows 11 systems.

SpecialFolder.UserProfile & ApplicationData
Developer Quick Start

Build & Run from Source in 60 Seconds

Pure .NET 9 with 34 passing xUnit unit tests. No complicated local runtime dependencies.

PowerShell 7.4 (x64)
# 1. Clone repository from GitHub
git clone https://github.com/AnaCataVC/claude-desktop-tools.git
# 2. Navigate and build solution with .NET 9 SDK
dotnet build ClaudeDesktopTools.sln -p:Platform=x64
# 3. Run automated test suite (34 tests passing)
dotnet test ClaudeDesktopTools.sln
# 4. Launch the application
dotnet run --project ClaudeDesktopTools\ClaudeDesktopTools.csproj
Frequently Asked Questions

Technical Clarifications & Details

Direct answers to common questions about Claude storage behavior and safety guarantees.

No. The tool enforces an inviolable 24-hour grace window (`ActiveSessionGrace = TimeSpan.FromHours(24)`). Any transcript created or modified within the last 24 hours is unconditionally skipped during pruning, even if you set retention to 0 days. Active CLI conversations are never interrupted.
Claude Desktop maintains its session state in memory. When the application closes, it flushes its cached state to disk, which would overwrite any changes made while running. To prevent this silent overwrite, Claude Desktop Tools probes for `claude.exe` and safely aborts session mutation until Claude is closed.
No. Session archiving mutates the session header flag (`"isArchived": true`) so that old sessions disappear from your Claude Desktop active sidebar. The session files remain intact in `%APPDATA%\Claude\claude-code-sessions`. Only CLI transcripts in `.claude\projects` are physically deleted when cleaning storage.
The scanner inspects the first 64KB of context files (`CLAUDE.md`, skills, hooks) using compiled regexes for SSH private keys, AWS Access Keys (`AKIA...`), GitHub Personal Access Tokens (`ghp_...`), and Slack webhook URLs. Any file matching these signatures is shielded and excluded from cloud synchronization.
Command copied to clipboard!