AI Task Selection: A Practical Framework
I use a simple mental checklist to decide whether to delegate a task to an LLM agent or handle it manually:
1. The "Predictability" Test
If the task follows a strict, logical rule set where a 1% error rate is a total failure (like calculating a payroll tax or updating a production database schema), stick to traditional code or manual review. If the task requires "vibes," synthesis, or pattern recognition where "mostly correct" is a great starting point, use AI.
2. The "Context Window" Cost
AI is expensive in terms of cognitive load when the context is massive. If you need the AI to understand 50 different files to change one line of CSS, you'll spend more time debugging the hallucinations than you would have spent just searching for the class name.
3. The "Iteration Loop" Speed
The real win is when the cost of an AI mistake is lower than the cost of manual execution.
- High AI Value: Drafting a boilerplate API wrapper. If it's wrong, you spot it in 2 seconds and prompt a fix.
- Low AI Value: Writing a complex regex for a mission-critical data migration. One wrong character and you've corrupted a dataset.
For those building a custom AI workflow, I recommend mapping your tasks into these buckets:
- Deterministic: (Hard-coded/Manual) → Zero tolerance for error.
- Probabilistic: (AI-assisted) → High volume, low-risk per unit.
- Creative/Synthesized: (AI-led) → Open-ended exploration.
The goal isn't to use AI for everything, but to identify exactly where the "human-in-the-loop" is the bottleneck versus where they are the safety net.