The harness has the tool registry hardcoded INSIDE the loop. Adding a new tool means editing the loop function — not a module-level dict. After three new tools, the loop body is unreadable.
Fix dispatch(tool_use, tools) to take the registry as an
argument instead of hardcoding it. Then pass the registry in
from outside.
Expected output:
hits for tokyo
The break is on lines 1, 7 — but read the whole snippet first.