Decide which steps of an analysis to hand to an agent¶
Draft: not yet validated
Nobody has yet followed this tutorial. It is done on paper, so the AI assistant that drafted it had nothing to run. The cut-off scores in step 4 are a starting rule chosen for this page, not a tested one. Tell us what you find.
"Should I use an agent for this analysis?" is too big a question. An analysis is a list of steps, and the answer differs from step to step.
You will: have a list of your analysis's steps, each marked hand over, hand over and check, or keep.
Time: 10 to 15 minutes. You need: paper or a notes file, and an analysis you know well. If you have none, use the example.
Steps¶
-
Write the steps of the analysis, one to a row. The example totals July rainfall for each gauge in the practice data:
# Step 1 Load readings.csvandgauges.csv2 Join each reading to its gauge 3 Convert readings in centimetres to millimetres 4 Decide what to do with readings flagged S5 Add up the readings for each gauge 6 Replace the totals file in the folder your group shares You should see: between four and ten rows.
-
Add a column Rule, and score each step from 1 to 5. Score 5 when a rule decides every case, so that two careful people would do the same thing. Score 1 when the step is a judgment.
You should see: a number in every row. In the example, step 3 scores 5: one centimetre is 10 mm. Step 4 scores 1: whether a suspect reading stays in depends on the question.
-
Add a column Cost, for what happens if the step is done wrongly. Score 1 when you would see the error at once and could undo it. Score 5 when it could not be undone, or would reach other people before anyone noticed.
You should see: a number in every row. In the example, step 1 scores 1: a wrong file shows in the row count. Step 6 scores 5: it overwrites what others read.
-
Add a column Who. Read the two scores side by side, without adding them, and mark each step:
Rule Cost Mark 4 or 5 1 or 2 hand over 4 or 5 3 to 5 hand over and check 1 to 3 any keep: you decide; an agent may lay out the options You should see: the example come out like this. Step 6 is high on both scores.
# Rule Cost Who 1 5 1 hand over 2 4 2 hand over 3 5 3 hand over and check 4 1 4 keep 5 5 1 hand over 6 5 5 hand over and check -
Beside each hand over and check step, write what the check is.
You should see: something you can do, not "review it". For step 3: "convert one reading by hand and compare". For step 6: "the agent writes a new file; I replace the old one myself".
Check it worked¶
Every step has two scores and one mark, and every hand over and check step names its check. If nothing is marked keep, look again for a step where you choose what counts, such as which rows to drop.
If it didn't¶
You cannot settle on a score. Take the higher Cost and the lower Rule. The mark then errs towards your doing more of the work.
Next¶
- Check what an agent may change before you let it
- Ask an agent for a query, then run it yourself
- When to stop and ask
Not yet validated by a person. Drafted with AI assistance on 2026-11-30. The two scores are adapted from AI Automation and Agents v2, University of Arizona AI2S (CC0 1.0), Module 1, chapter 4; the three marks are MESA's own.
Machine-readable versions of this page: Markdown twin · raw source on GitHub · llms.txt · llms-full.txt (whole site). See For AI agents.