LLM-powered file organizer that safely moves files into categories
Project description
Agentic File Organizer
A Python-based file organizer that asks for a folder path at startup, uses an LLM to decide a category and descriptive name for each file, and only moves files (never deletes).
It now supports richer file inspection tools:
- Text/code preview for common source and text formats
- PDF extraction
- DOCX/XLSX/PPTX extraction
- OCR for images (via docTR)
- VLM image understanding via Ollama (for image-only files)
Setup
From source
- Create and activate a virtual environment.
- Install dependencies:
pip install -e .
- Install and run Ollama locally.
- Run
organize-files init --pull-models - OCR uses docTR; model weights are downloaded on first OCR run.
- Copy
.env.exampleto.envonly if you want to override defaults while developing from source.
End-user install flow
- Install Python
- Install
pipx - Install Ollama from https://ollama.com/download
- Install the app:
pipx install agentic-file-organizer
- Complete guided setup:
organize-files init --pull-models
Useful .env options:
OLLAMA_MODEL(text LLM)OLLAMA_VLM_MODEL(image model)ENABLE_OCR=true|falseENABLE_VLM=true|falseMAX_PREVIEW_CHARS=1200
Run
python -m agentic_file_organizer.main- or
organize-files
CLI commands
- Guided setup:
organize-files init
- Guided setup + pull models:
organize-files init --pull-models
- Interactive mode:
organize-files
- Non-interactive organize:
organize-files organize /path/to/folder --preferences "group by project" --yes
- Preview only (no changes):
organize-files organize /path/to/folder --dry-run
- Skip verification pass:
organize-files organize /path/to/folder --no-verify --yes
- Environment/model health check:
organize-files doctor
- Pull missing required models:
organize-files setup-models
Recommended release model
- Publish the package to PyPI
- Have users install with
pipx - Keep Ollama and local models separate from the Python package
- Use
organize-files initandorganize-files doctorfor setup validation
Safety
- Operates only on files directly inside the folder you manually enter.
- Moves files into category folders under that same root folder.
- Never deletes files.
- Prevents moving outside the chosen root.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentic_file_organizer-0.1.0.tar.gz.
File metadata
- Download URL: agentic_file_organizer-0.1.0.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9457ef7620d1ea7f071297d12eb5f1cf1a2146ad245a523b06a3af962bb36c74
|
|
| MD5 |
ca2f5a223cb4bd7148b7dbc602dfc67b
|
|
| BLAKE2b-256 |
5ece950ecd9eeecce9064f9c83a929d7abaac1865226f6499830c7627e36047f
|
File details
Details for the file agentic_file_organizer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentic_file_organizer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
220fd5eca0dbbd451365dbf1819c0a53cd94bedfe992096d49bcdc2478f45ba8
|
|
| MD5 |
0fb1277438167b1f9f2b27f564d0c684
|
|
| BLAKE2b-256 |
114637de3926d24b87ca7099ed15e8a74f119c39e4efc66fd9c0b67dc843dd9c
|