So I built Claw Drive — a CLI tool + AI skill that turns a local AI agent into a file manager.
How it works: send a file to your agent (locally, via email, or Telegram), and it auto-categorizes it into a structured directory, generates tags, deduplicates via SHA-256, and indexes everything in a JSONL file. Later you find files with natural language queries.
Key decisions: - JSONL index instead of a database — easy to inspect, version, and back up - CLI for write ops (store/update/delete), but the agent reads the index directly for search — no point building grep when the consumer is an LLM - Privacy-first: won't read file contents unless explicitly allowed. No response = treated as sensitive by default - Optional Google Drive sync via fswatch + rclone
Built as an OpenClaw skill but the CLI is standalone. Written in bash.
Would love feedback on the architecture and any edge cases I'm missing.