Skip to main content

An ai file organizer that can create and move files around!

Project description

File Agent or NAGFS (Not A Generic File Sorter)

file_agent

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

  1. Go to https://ai.hackclub.com
  2. Go to the Models tab and pick a model (Qwen3 32B works well)
  3. Go to the Keys tab and create a new API key
  4. Copy the key
  5. 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

  1. Python tools scan the sandbox and list all files with their extensions
  2. The file list gets sent to an ai model
  3. The ai decides how to organize everything and responds with JSON
  4. Python tools read that JSON and:
    • Create any needed folders
    • Move files into the right places
  5. 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

file_agent_ai-1.9.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

file_agent_ai-1.9-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file file_agent_ai-1.9.tar.gz.

File metadata

  • Download URL: file_agent_ai-1.9.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for file_agent_ai-1.9.tar.gz
Algorithm Hash digest
SHA256 0a27c53888da446e94745c08ad55886779c75ba906d9d6dc1830b1fb03ae0fee
MD5 713fb153614c2655c83916b17d3c5f58
BLAKE2b-256 96465d885ef6843b08c70a2a4542662dea398cea07dea82c4fcf612bcca44925

See more details on using hashes here.

File details

Details for the file file_agent_ai-1.9-py3-none-any.whl.

File metadata

  • Download URL: file_agent_ai-1.9-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for file_agent_ai-1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a075d5b43bf61bcae5a43b17ea5a9dd42c6b8de55ceb8de39dc6d644b00cff99
MD5 1c833d79b81922deaeee2379e9a4890f
BLAKE2b-256 d1a2abc78155d420d501720c98969dc546ee8b5a9bcca60a1beb1eaa7afbfe28

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page