Skip to main content

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.


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)

Source distribution for file-agent-ai 1.9
File Size Uploaded
file_agent_ai-1.9.tar.gz 10.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for file-agent-ai 1.9
File Interpreter ABI Platform
file_agent_ai-1.9-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.9 This release

2 release files

1.8

2 release files

1.7

2 release files

1.6

2 release files

1.4

2 release files

1.3

2 release files

1.2

2 release files

1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page