Skip to main content

Chapter 7: File Processing Workflows

Your Downloads folder has become chaos. You can't find that tax document from last year. Screenshots pile up with meaningless names. Sound familiar?

Here's what surprises most people. The solution isn't learning bash commands or hiring an assistant. The solution is learning to direct a General Agent effectively. And the patterns you'll master with files apply to every domain where General Agents work.

This chapter uses a universal problem to teach you something far more valuable. You'll solve file chaos through conversation. You'll watch the agent work. You'll observe the Seven Principles in action. You'll build a prompt toolkit that transfers to email management, project organization, data cleaning, and any workflow where you direct General Agents.

Most people prompt blindly. They hope the General Agent understands. You're about to learn the systematic approach that separates effective collaboration from frustration.

What You'll Learn

By the end of this chapter, you'll be able to:

SkillWhat It Looks Like
Direct file surveys"Help me understand what's eating my disk space"
Request safety-first operations"Back up important files before making changes"
Design organization systems"Create categories that make sense for my workflow"
Automate batch operations"Rename these 100 screenshots with a consistent pattern"
Search intelligently"Find that PDF from 2023 about taxes"

This isn't about learning bash. It's about learning to work effectively with General Agents.

Why This Matters

The patterns you learn in this chapter aren't just about files. They're the foundation for building AI Employees that automate these workflows entirely. Learn these patterns now or you'll struggle with automation later.

Every expert who works with General Agents mastered these fundamentals first. File organization is the perfect training ground because the problems are concrete, the feedback is immediate, and the patterns transfer everywhere.

Chapter Flow

LessonTimeWhat You'll Do
1. Your First Agent Workflow25 minSurvey your files through conversation
2. The Safety-First Pattern20 minLearn to require backups before changes
3. The Organization Workflow30 minDesign and execute file categorization
4. Batch Operations Workflow30 minTransform repetitive tasks into scripts
5. Search & Discovery Workflow25 minFind lost files through description
6. Capstone: Your File Toolkit30 minBuild your personal prompt library

Total time: Approximately 2.5-3 hours

Seven Principles Observed

You won't memorize these principles. You'll see them in action:

PrincipleYou'll Observe The Agent...
P1: Bash is the KeyUsing ls, find, grep, mv behind the scenes
P2: Code as InterfaceCreating reusable scripts for repetitive tasks
P3: VerificationChecking results after each operation
P4: DecompositionTesting on one file before batch operations
P5: Persisting StateSaving rules and logs to files
P6: Constraints and SafetyCreating backups before destructive changes
P7: ObservabilityLogging everything and showing progress

Prerequisites

Before starting this chapter:

  • Complete Part 1 (Chapters 1-5)
  • Have Claude Code installed and working
  • Have a folder with files to organize (Downloads recommended)

What You'll Build

By the end, you'll have:

DeliverablePurpose
Prompt toolkitReusable prompts for common file tasks
Organization rulesDocumented categorization logic
Search patternsTemplates for finding lost files
Automation scriptsAgent-generated code you can reuse

From Manual to Automated

The patterns you learn here become the foundation for AI Employees:

This Chapter (Manual)Automated Workflow
Manual promptingAutomatic file watching
One-time organizationContinuous organization
"Show me the plan"AI decides and acts

You're building the vocabulary and verification instincts you'll need for autonomous agents.