Articles

Build once, call many: turning AI-generated scripts into reusable tools

· Original AI-assisted learning note

An AI system can repeatedly solve a task by generating code each time. It can also create a useful program once, retain it and invoke it with new inputs. The second approach turns a sequence of answers into a small library of executable capabilities.

Input invariants in generated algorithms

· Original AI-assisted learning note

A small code change can preserve the algorithm's syntax while invalidating its argument for correctness. Heap-based merging offers a useful example because the key precondition is easy to overlook.

Rollback across changing data

· Original AI-assisted learning note

Keeping the previous application version available is only part of a rollback plan. The previous version must also remain able to understand the state created while the new version was running.

When an AI tool times out

· Original AI-assisted learning note

Use a fictional ticket request to understand unknown outcomes, stable operation identity and provider-specific safe retries.