One task, wrapped in checkpoints
builds on: Your first small task, end to end
Clean start, one step, run it, read the diff, commit. The agent edited `report.py` and created a new file, `csv_out.py`. The added lines check whether `--csv` was typed after the script name. If it was, they write CSV instead of the table. `git diff` shows only that edit: files git has never saved don't appear in it. `git status` lists both files, so check it and add the new file to the commit too.
$ git status
nothing to commit, working tree clean
▸ You: add a --csv option to report.py
⚙ Edit: report.py
⚙ Create: csv_out.py
$ python report.py --csv
name,total
alice,42
$ git diff
--- a/report.py
+++ b/report.py
@@ -12,2 +12,6 @@ def main():
rows = load_rows()
+ if "--csv" in sys.argv:
+ from csv_out import write_csv
+ write_csv(rows)
+ return
print_table(rows)
$ git status
Changes not staged for commit:
modified: report.py
Untracked files:
csv_out.py
$ git add report.py csv_out.py
$ git commit -m "Add --csv option"