questions/refunds/
├─ question.txt
│ What was the total refunded in March 2026?
└─ refunds.csv
date;order;amount
2026-03-02;A-1041;120,00
2026-03-02;A-1057;89,90
2026-03-03;A-1102;
…
jobs events, paraphrased · illustration
- ·ran
awk … inputs/refunds.csv → 1.240,00 - ·called
submit_output with "answer": "1.240,00" - ✗rejected: answer must be a number, got "1.240,00", sent back to the agent
- ·converted the decimal comma, ran the script again →
1240 - ✓called
submit_output with "answer": 1240: accepted
questions/trips/
├─ question.txt
│ How many trips arrived more than 15 minutes late?
└─ trips.csv
trip,route,scheduled,arrived
T-0001,12,07:05,07:09
T-0002,12,07:20,07:41
T-0003,4,07:30,
…
jobs events, paraphrased · illustration
- ·ran
head inputs/trips.csv to read the columns - ·ran
awk … inputs/trips.csv → 37 - ✓called
submit_output: accepted on the first try
questions/readings/
├─ question.txt
│ What is the median daily reading for sensor B-7, skipping days flagged fault?
└─ readings.csv
day,sensor,reading,flag
2026-09-01,B-7,18.1,
2026-09-01,C-2,22.4,
2026-09-02,B-7,0,fault
…
jobs events, paraphrased · illustration
- ·ran
awk … | sort -n | awk … → 18.4 - ✓called
submit_output: accepted on the first try
One folder per question; the agent’s instructions and schema go in agent.txt and answer.schema.json:
questions/
├─ refunds/ question.txt, refunds.csv
├─ trips/ question.txt, trips.csv
└─ readings/ question.txt, readings.csv
$ npx elflodge batches submit \
--id questions \
--each questions/*/ \
--instructions "$(cat agent.txt)" \
--output-schema answer.schema.json \
--wait --output-dir results
# uploads the files, runs the Canary,
# then the rest; saves one line per jobTry batch extraction with invoice PDFs →