GitHub Repository: pratham15541/disktracker
Repository Name: disktracker
DiskTracker is a high-performance, real-time Windows file system monitoring daemon combined with an AI-powered command-line interface. Instead of repeatedly scanning the entire disk like traditional disk analyzers, DiskTracker continuously monitors NTFS volumes using the Windows USN (Update Sequence Number) Journal, enabling instant detection of file creations, deletions, modifications, and renames with minimal CPU and disk overhead.
The system follows a log-structured architecture where every filesystem mutation is appended to a SQLite database operating in WAL (Write-Ahead Logging) mode. A background processing engine indexes and maintains the filesystem state without blocking user operations, making the application efficient even on large storage volumes.
DiskTracker also integrates a LangGraph-powered AI agent that allows users to interact with their storage using natural language. Users can search for files, analyze storage usage, inspect mutation history, compare snapshots, diagnose system health, and perform maintenance tasks through conversational commands. Potentially destructive operations are protected with Human-In-The-Loop (HITL) approval, ensuring the AI cannot execute file-changing actions without explicit user confirmation.
Key Features
• Real-time filesystem monitoring using the NTFS USN Journal
• High-performance append-only event logging with SQLite WAL mode
• Background daemon for continuous indexing and monitoring
• Natural language AI assistant powered by LangGraph and LLMs
• Search files instantly without rescanning the disk
• Track file creation, deletion, modification, and rename history
• Identify large files and storage growth trends
• Create and compare filesystem snapshots
• Built-in diagnostics and health checks
• Safe AI automation with Human-In-The-Loop confirmation
• Automatic update mechanism and Windows Service integration
Supported Commands
• disktracker init
• disktracker status
• disktracker doctor
• disktracker search
• disktracker history
• disktracker top
• disktracker snapshot create
• disktracker snapshot diff
• disktracker ai config
• disktracker ask
• disktracker update
• disktracker uninstall
Technology Stack
• C++20
• Windows API
• NTFS USN Journal
• SQLite (WAL Mode)
• LangGraph
• Large Language Models (OpenAI / OpenRouter Compatible)
• PowerShell
• Windows Services
If you found this project interesting, consider starring the repository and sharing your feedback.
GitHub Repository: pratham15541/disktracker
Repository Name: disktracker