File Agent or NAGFS (Not A Generic File Sorter)
An ai file organizer that can create folders and move files around! Also its not a generic file sorter the ai decides where files should go not hardcoded
I made this project to play around with ai agents and instructions.txt which I think are pretty interesting and I just wanted to try it out.
VIDEO DEMO
Click on the button to watch the DEMO its not a broken link PyPI does not support video previews! ∨∨∨∨
also sorry if i'm a bit stutery i do that sometimes :(
https://cdn.hackclub.com/019dd072-94c3-7175-b43d-b1520c7d277b/file_agent_demo.mp4
Install
pip install file-agent-ai
Config
- Go to https://ai.hackclub.com
- Go to the Models tab and pick a model (Qwen3 32B works well)
- Go to the Keys tab and create a new API key
- Copy the key
- Create
~/file-agent/.env(see .env.example):
OPENAI_API_KEY=your-key-here # get from ai.hackclub.com Keys tab
OPENAI_BASE_URL=https://ai.hackclub.com/proxy/v1
MODEL=qwen/qwen3-32b # model from the Models tab
note: remove comments if you copy from above.
Usage
run:
file-agent
Drop files into ~/file-agent/sandbox and watch them get organized. Press Ctrl+C to stop.
Features
- Automatically organizes files by type (images, code, audio, etc)
- Creates folders if needed
- Watches for new files with watchdog
- Activity logs
Safety
The ai can only access files in the sandbox folder. If it even tries to leave, the program stops with an error :3
How it works
- Python tools scan the sandbox and list all files with their extensions
- The file list gets sent to an ai model
- The ai decides how to organize everything and responds with JSON
- Python tools read that JSON and:
- Create any needed folders
- Move files into the right places
- The system keeps watching for more files
Logs
logs are saved at ~/file-agent/log.txt.
Metadata
Release files for file-agent-ai 1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| file_agent_ai-1.9.tar.gz | 10.1 kB | Without provenance | Details for file_agent_ai-1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| file_agent_ai-1.9-py3-none-any.whl | Python 3 | none | any | Details for file_agent_ai-1.9-py3-none-any.whl |
Total release size: 19.0 kB
Release files / file_agent_ai-1.9.tar.gz
| Download URL | file_agent_ai-1.9.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a27c53888da446e94745c08ad55886779c75ba906d9d6dc1830b1fb03ae0fee
|
|
BLAKE2b-256 checksum How to use checksums |
96465d885ef6843b08c70a2a4542662dea398cea07dea82c4fcf612bcca44925
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / file_agent_ai-1.9-py3-none-any.whl
| Download URL | file_agent_ai-1.9-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a075d5b43bf61bcae5a43b17ea5a9dd42c6b8de55ceb8de39dc6d644b00cff99
|
|
BLAKE2b-256 checksum How to use checksums |
d1a2abc78155d420d501720c98969dc546ee8b5a9bcca60a1beb1eaa7afbfe28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for file-agent-ai 1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.