An ai file organizer that can create and move files around!
Project description
File Agent
An ai file organizer that can create and move files around!
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
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
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.
Project details
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 file_agent_ai-1.7.tar.gz.
File metadata
- Download URL: file_agent_ai-1.7.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40fdab3128bf52c05dcfe62bcd2fba0fe54f1df7f23934d5f7d10b43ad76def0
|
|
| MD5 |
1c390845d8ed96c7f98a2a3a20173a93
|
|
| BLAKE2b-256 |
aa3a932e02079b7b6857a4ce35ab362b0e54d9d05b31ef84afe3d39edcea85fe
|
File details
Details for the file file_agent_ai-1.7-py3-none-any.whl.
File metadata
- Download URL: file_agent_ai-1.7-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2864126582cd6e3daeaf8f6e4e924fc156b7330a74d12e06a852ea9e05ba73c
|
|
| MD5 |
9c80eee6bcf32fea7acc384e4c33adb5
|
|
| BLAKE2b-256 |
30f0bdcfe43c60c6b037ce53c44b79ff36dd44b96ccd6cb99bffcfa710d867b5
|