Tootfinder

Opt-in global Mastodon full text search. Join the index!

@nelson@tech.lgbt
2026-07-06 15:16:35

A little appalled at how the Jules agent is editing my code. Instead of editing the file, it is writing Python programs to rewrite the file with a silly little state machine. Honestly it sort of makes sense given LLM's limitations, but it's still awful.

for line in lines:
if line == " # Connect to SQLite database":
new_lines.append(line)
elif line == " conn = sqlite3.connect(db_path)":
new_lines.append(" with contextlib.closing(sqlite3.connect(db_path)) as conn:")
in_with = True
elif line == " conn.close()":
in_with = False
continue
elif in_with:
if line == "":
new_lines.append("")
elif line.startswith(" "):
new_lines.append(" " line)
else:
new_lines.append(line)
else:
new_lines.append(line)