promptdojo_

The toy is_looping function should flag a session as looping when the same tool is called with the same arguments three turns in a row. The current implementation only checks the tool name, so it misses the fact that the third call has different arguments. Fix the check on line 5 so the function returns False for this trace.

Expected output:

False
The break is on line 5 — but read the whole snippet first.

this step needs the editor

on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.

open this same url on a laptop to keep going today.