Intelligent Storage Analytics powered by AI
A sophisticated terminal-based disk analysis tool that visualizes file system structure, provides real-time statistics, and leverages AI-powered analysis for deep insights into your storage.
- Interactive File Tree - Smart lazy-loading of directory structures with real-time size metrics
- Real-time Statistics - Comprehensive file type analysis and storage distribution
- AI-powered Analysis - Intelligent file content evaluation with pattern recognition
- Deep Analysis - Detailed insights using Copilot integration (up to 5MB files supported)
- Pattern Detection - Security risk identification and intelligent file categorization
- Responsive UI - Smooth navigation with resizable panels and intuitive controls
Welcome screen with beautiful octopus art, project information, and drive selection interface.

The comprehensive disk analysis interface showing directory tree, file statistics, and analysis panels.

Real-time statistics showing file type distribution, storage consumption, and detailed breakdowns.

Enhanced analysis powered by GitHub Copilot integration with AI commentary and pattern detection.

Intelligent AI-powered analysis of selected files with detailed insights and categorization.

Comprehensive file path listing with size information and file organization details.

Before you begin, ensure your system meets these requirements:
Required:
- Python 3.10 or higher
- pip (Python package manager)
- Git (for cloning the repository)
Check your versions:
python --version
pip --version
git --versionIf any of these are missing, visit:
Open your terminal/command prompt and run:
git clone https://github.com/yourusername/disk-octopus.git
cd disk-octopusOr manually download the ZIP file from GitHub and extract it.
Windows (Command Prompt or PowerShell):
pip install -r requirements.txtmacOS/Linux (Terminal):
pip install -r requirements.txtβ³ This will install: textual, rich, and other required packages
Test that everything is installed correctly:
python -c "import textual; import rich; print('β All dependencies installed!')"You should see: β All dependencies installed!
Windows:
python main.pymacOS/Linux:
python main.pyThe application will launch with a drive selection screen. Select a drive to analyze!
- Open PowerShell as Administrator (recommended for best compatibility)
- Navigate to the project folder:
cd C:\path\to\disk-octopus - Create a virtual environment (optional but recommended):
python -m venv venv venv\Scripts\Activate.ps1 - Install dependencies:
pip install -r requirements.txt - Run the application:
python main.py
- Open Terminal
- Navigate to the project folder:
cd /path/to/disk-octopus - Create a virtual environment (optional but recommended):
python3 -m venv venv source venv/bin/activate - Install dependencies:
pip install -r requirements.txt
- Run the application:
python main.py
- Open Terminal
- Navigate to the project folder:
cd /path/to/disk-octopus - Create a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate - Install dependencies:
pip install -r requirements.txt
- Run the application:
python main.py
For enhanced AI-powered analysis, install GitHub Copilot CLI:
Prerequisites:
- GitHub CLI (
gh) installed - GitHub account with Copilot access
Installation:
gh extension install github/gh-copilotVerify installation:
gh copilot --versionNote: The application works perfectly without Copilot. If Copilot is not available, Disk Octopus automatically uses intelligent pattern-based analysis.
The requirements.txt file includes:
| Package | Purpose |
|---|---|
textual |
Terminal UI framework |
rich |
Beautiful terminal formatting |
typing-extensions |
Type hints support |
All are automatically installed with pip install -r requirements.txt
python main.pyYou'll see the splash screen with:
- Beautiful braille octopus art π
- Project title and tagline
- Navigation instructions
- Available drives to scan
| Key | Action |
|---|---|
| q | Quit application |
| h | Show help menu |
| s | Display statistics |
| a | Analyze selected item (file type) |
| d | Deep analysis of file contents |
| β/β | Navigate drive selection / tree items |
| Enter | Select and scan drive |
- Single-click - Select items
- Double-click - Expand/collapse folders
- Drag borders - Resize panels
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Directory Tree β File Statistics β Copilot Analysis β
β (Left Panel) β (Top Right) β (Scrollable) β
βββββββββββββββββββββββββΌβββββββββββββββββββΌβββββββββββββββββββ€
β β File Paths β Deep Analysis β
β (Expandable) β (Bottom Right) β Results β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Recognizes 40+ file types across multiple categories:
- Code: Python, JavaScript, Java, C++, Go, Rust, TypeScript, etc.
- Documents: PDF, DOCX, XLSX, PPTX, TXT, MD, etc.
- Media: MP4, MP3, JPG, PNG, GIF, SVG, etc.
- Config: YAML, TOML, JSON, INI, XML, etc.
- Specialized: PGN (chess), SQL, archives, binaries, and more
When using the 'd' key:
- Analyzes file content with pattern recognition
- Classifies file purpose and usage context
- Identifies creator/origin information
- Extracts key insights and metadata
- Provides practical assessment
Supports files up to 5MB in size.
Real-time display of:
- File type distribution
- Storage consumption by category
- File count statistics
- Percentage breakdowns
Edit config.py to customize:
- Display settings
- Analysis parameters
- Color schemes
- File type mappings
disk-octopus/
βββ main.py # Application entry point
βββ textual_ui.py # Main UI implementation
βββ copilot_analyzer.py # AI analysis engine
βββ disk_scanner.py # File system scanning
βββ file_type_analyzer.py # File type classification
βββ config.py # Configuration settings
βββ requirements.txt # Python dependencies
βββ textual_ui.css # UI styling
# Current version includes integrated validation
# Run deep analysis tests on sample files
python main.py- Lazy-loading: Directory trees only expand when requested
- Intelligent Caching: File analysis results are cached for repeated queries
- Optimized Rendering: Efficient terminal UI updates minimize CPU usage
- Streaming Analysis: Large file analysis uses streaming to avoid memory issues
- Linux - Full support
- macOS - Full support
- Windows - Full support (PowerShell recommended)
Disk Octopus integrates with GitHub Copilot CLI for enhanced analysis:
- Provides intelligent commentary on file contents
- Identifies patterns and security concerns
- Generates actionable insights
- Fallback to pattern-based analysis if Copilot unavailable
Note: Copilot CLI optional; application works without it.
- Binary files show pattern-based analysis (no content read)
- Very large directories (10,000+ files) may take time to scan initially
- Terminal resize during scanning may cause display artifacts (restart scan)
- Copilot analysis limited to 5MB per file
Windows:
- Python not installed or not added to PATH
- Solution: Reinstall Python from https://www.python.org/downloads/
- Make sure to check "Add Python to PATH" during installation
- After installation, restart your terminal
macOS/Linux:
- Try using
python3instead ofpythonpython3 main.py
- Ensure pip is up to date:
python -m pip install --upgrade pip
- Try installing dependencies again:
pip install -r requirements.txt
- If that fails, try with
--userflag:pip install --user -r requirements.txt
Windows: Run PowerShell as Administrator
macOS/Linux: Use sudo (not recommended, try virtual environment first)
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python main.py- Verify Python 3.10+ installed:
python --version - Verify all dependencies:
python -c "import textual; import rich; print('OK')" - Reinstall all dependencies:
pip install -r requirements.txt --force-reinstall
- Try running in a terminal with minimum 80x24 character space
- On Windows, use Windows Terminal (better than Command Prompt)
- On macOS, use Terminal or iTerm2
- On Linux, use GNOME Terminal, Konsole, or xterm
- Verify GitHub Copilot CLI installed:
gh copilot --version - Check file permissions and read access to the file
- Ensure file is under 5MB in size
- Copilot analysis works without installation (fallback to pattern-based)
- On Windows, ensure you're running in PowerShell (not Command Prompt)
- Check that drives are accessible and mounted
- Try selecting a drive letter manually (C:, D:, etc.)
If you encounter issues:
- Check the Help Menu - Press 'h' in the application
- Check Requirements.txt - Verify your Python version
- See Troubleshooting Above - Most issues are covered
- Open an Issue on GitHub - Include:
- Your OS and Python version
- Error message (if any)
- Steps to reproduce
v1.0.0 - Initial Release
Developed by N-92
MIT License - See LICENSE file for details
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Submit a pull request with clear description
- Export analysis reports (JSON, CSV)
- Comparison between drives
- Custom file type definitions
- Analysis history tracking
- Scheduled background scanning
- Multi-drive simultaneous analysis
For issues, feature requests, or questions:
- Open an issue on GitHub
- Check existing issues for solutions
- Review the help menu (press 'h' in app)
π Happy analyzing!