close
Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Folder Intelligence (Project Phoenix)

The Universal File System Cortex for AI Agents & Power Users

Audit → OCR → Rename → Categorize → Document — in one powerful CLI.

License: MIT Python 3.8+ Code Style: Black Maintenance

"Your digital life is chaos. Folder Intelligence brings order."


⚡ Quick Start: The Universal Tool (universal_cli.py)

We have consolidated our 5-stage pipeline into a Single Universal Tool that works on any directory.

1. Install

git clone https://github.com/SGajjar24/folder-intelligence.git
cd folder-intelligence
pip install -r requirements.txt
# Ensure Tesseract OCR is installed on your system!

2. Run (Safe Mode)

By default, it runs in Dry Run mode. It scans, OCRs, and proposes changes without touching files.

python universal_cli.py "C:\Users\You\Downloads"

3. Execute

Satisfied with the plan? Apply the changes:

python universal_cli.py "C:\Users\You\Downloads" --execute

📊 How It Works (The Logic Flow)

Unlike simple organizers, we don't just look at filenames. We look inside files.

graph TD
    A[Start: Scan File] --> B{Is it Media?}
    B -- Yes (mp3/mp4) --> C[Category: Evidence_Media]
    B -- No --> D{Is it Text PDF?}
    D -- Yes --> E[Extract Text]
    D -- No (Image/Scan) --> F[Run Tesseract OCR]
    F --> E
    E --> G{Find Date?}
    G -- Found in Text --> H[Use Content Date]
    G -- Not Found --> I[Use System Date]
    H --> J[Match Keywords]
    I --> J
    J --> K[Determine Category]
    K --> L[Move & Rename File]
Loading

🏆 Why Folder Intelligence?

Feature Folder Intelligence Others
Universal ✅ Works on any folder ❌ Specific folders only
OCR Powered ✅ Reads Scanned PDFs/Images ❌ Filename only
Safety First ✅ Dry Run by Default ⚠️ Instant usage
Configurable ✅ External JSON Rules ❌ Hardcoded
Enterprise Standard ✅ SOP & ISO 8601 ❌ Random naming

⚙️ Configuration (default_config.json)

Customize the logic to fit your needs (e.g., Music, Work, Legal). The tool loads default_config.json by default, but you can pass any config file with --config.

{
    "categories": {
        "01_Bills": ["invoice", "receipt", "paid"],
        "02_Contracts": ["agreement", "signed", "nda"],
        "99_Unsorted": []
    },
    "blocked_dirs": ["C:\\Windows", "C:\\Program Files"]
}
python universal_cli.py "C:\My\Music" --config "music_config.json"

📜 Enterprise SOP (Standard Operating Procedures)

This project ships with formal governance documentation:

Rule Description
Zero-Clutter Policy No folder shall contain >10 loose files
ISO 8601 Naming YYYY-MM-DD is the only acceptable date format
Hash-Based Truth Never delete based on name alone — verify SHA-256
Self-Documentation Every directory must contain a README.md

See SOP.md for full enterprise use cases.


✍️ Author

Swetang Gajjar

LinkedIn Email


📄 License

This project is licensed under the MIT License — see LICENSE for details.

⭐ If this tool saved you time, give it a star!
Built with precision. Ships with governance.

About

The Complete File System Optimization Pipeline: Audit, Declutter, Rename, Dedupe, Document. Enterprise-grade file organization without AI models.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages