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.
Metadata
Release files for agentic-file-organizer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agentic_file_organizer-0.1.0.tar.gz | 15.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentic_file_organizer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.2 kB
Release files / agentic_file_organizer-0.1.0.tar.gz
| Download URL | agentic_file_organizer-0.1.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9457ef7620d1ea7f071297d12eb5f1cf1a2146ad245a523b06a3af962bb36c74
|
|
BLAKE2b-256 checksum How to use checksums |
5ece950ecd9eeecce9064f9c83a929d7abaac1865226f6499830c7627e36047f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / agentic_file_organizer-0.1.0-py3-none-any.whl
| Download URL | agentic_file_organizer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
220fd5eca0dbbd451365dbf1819c0a53cd94bedfe992096d49bcdc2478f45ba8
|
|
BLAKE2b-256 checksum How to use checksums |
114637de3926d24b87ca7099ed15e8a74f119c39e4efc66fd9c0b67dc843dd9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|