The Autonomous Stack

Documents & Content · File Organization · v1.0.0

Agent Organizer Pack v1.0

Tidy, classify & archive local files and folders autonomously. Dry-run by default, fully reversible, BYO-LLM optional.

$3.00one-timePay with crypto

organizer files archive agent autonomous byo-llm

agent ⟶ theautonomousstack.xyz

01GET /api/v1/pack/agent-organizer-v1

402 Payment RequiredX-PAYMENT-REQUIRED

02sign TransferWithAuthorization3.00 USDC · Base (eip155:8453)

03GET + PAYMENT-SIGNATURE

200 OKapplication/zip · 18 files

pay per pack over x402no account

What's inside

An autonomous agent that ranges, classifies and archives the files and folders on a machine (Downloads, Desktop, projects…) according to rules you control. It previews everything in dry-run by default, never deletes your data, and every executed run is fully reversible.

How is this different from a backup pack?

agent-organizer-v1 (this pack) agent-backup-v1
Goal tidy a messy disk: sort, classify, archive protect data: snapshots + restore
Core action move/copy files into a tidy tree copy into timestamped backups
Classification extension / date / name / size / LLM n/a
Archiving compress stale folders into YYYY-MM/ scheduled full snapshots + retention prune
Reversibility JSON journal + --rollback of every move restore from a snapshot
Deletes data? never never

They are complementary: organize your disk, then back it up.

Architecture

+------------------+     +------------------+     +------------------+
|   Rules (YAML)   | --> |   SCANNING       | --> |   CLASSIFYING    |
| source/target/   |     | white/black list |     | ext|date|name|   |
| classify_by      |     | recursive?       |     | size|llm         |
+------------------+     +------------------+     +--------+---------+
                                                           |
                              +----------------------------+
                              |
                    +---------v----------+      +----------v---------+
                    |   ORGANIZING       |      |    ARCHIVING       |
                    | move/copy ->       |      | stale folders ->   |
                    | target/<category>/ |      | archive/YYYY-MM/   |
                    +---------+----------+      +----------+---------+
                              |                            |
                    +---------v----------+      +----------v---------+
                    |   LOGGING (JSON)   |      |   REPORTING        |
                    | journal_*.json     | ---> |  --rollback undo   |
                    +--------------------+      +--------------------+

One-shot install (Debian/Ubuntu)

unzip agent-organizer-v1.zip && cd agent-organizer-v1
sudo bash install.sh          # system deps + venv + daily systemd timer (DRY-RUN)

The timer runs the organizer in dry-run so it never moves files unattended. Review the plan in journalctl -u agent-organizer-v1 -f, then edit the unit's ExecStart to add --execute when you trust it.

No root / no systemd? bash install.sh --no-service sets up the venv, then run the commands below by hand.

Quick commands

python agent.py --help
python agent.py --dry-run  --config templates/organizer_rules.yaml   # preview (default)
python agent.py --execute  --config templates/organizer_rules.yaml   # apply moves/copies
python agent.py --execute  --archive-old 90d --config templates/organizer_rules.yaml
python agent.py --rollback journal_20260710_120000.json              # undo a run
bash smoke_test.sh

Classification modes (classify_by)

Mode Destination Example
extension target/<category>/ report.pdf → Organized/documents/
date target/YYYY/MM/ modified 2026-03 → Organized/2026/03/
name first matching name_rules invoice_* → Organized/finance/
size small / medium / large 2 GB video → Organized/large/
llm LLM-chosen category (optional CLI) ambiguous name → best-fit folder

Safety by design

Connect your LLM (optional, no API key)

Set classify_by: llm and connect one coding-agent CLI:

CLI Install Connect
Claude Code npm i -g @anthropic-ai/claude-code run claude, /login
Kimi Code see platform.moonshot.ai kimi-code
Codex npm i -g @openai/codex codex login

Force one with PACK_LLM=claude|kimi|codex. If none is connected, the deterministic classifier runs — the agent never blocks.

Contents

File Purpose
agent.py Runnable organizer — scan, classify, organize, archive, journal, rollback
llm_adapter.py BYO-LLM CLI adapter (claude/kimi/codex), no API key
templates/organizer_rules.yaml Editable rules (paths, classify_by, lists, maps)
install.sh One-shot Debian installer (deps + venv + safe dry-run timer)
agent-organizer-v1.service Reference systemd unit (install.sh generates the real one)
smoke_test.sh / test_agent.py Offline test suite (deterministic)
PROMPTS.md Classifier / Archive-advisor prompts loaded by the agent
SPEC.md Technical spec + rules schema
CHECKLIST.md 22-step deploy & operate checklist
CUSTOMIZE.md 5-minute guide to plug in your folders & rules
OPERATING_COST_ESTIMATE.md Provider-agnostic LLM cost estimate ($0 in default mode)
CHANGELOG.md Version history
README.md This file
requirements.txt Python deps (stdlib core + optional PyYAML)
deploy.sh Thin wrapper → install.sh
agent-organizer-v1.json Pack manifest