All ideasMore in Work

The AI migrated his whole project from JavaScript to TypeScript in 236 commits

He pointed the AI at his JavaScript project and asked for a full TypeScript migration without changing behavior. 236 commits and a full day later the project compiled clean, the linter passed, and 55 of 56 tests passed, with the one failure traced to a commit where a value was accidentally hardcoded.

How it works

  1. Points the AI at the project in goal mode
  2. Agent converts file by file across 236 commits
  3. Compiles and lints clean
  4. Runs the test suite, 55 of 56 pass
  5. The one failure is traced to a hardcoded value

Why it’s worth knowing

The failure was not conversion sloppiness in general; the agent changed behavior in exactly one place and the tests caught it.

Where it’s from

Summarized from a public post on njump.me. See the original ↗

Upgraded prompt

A ready-to-use prompt for this idea, built from research on what makes AI agents do the job right: who the AI should be, the exact steps, and a check to make sure it was done the way you wanted.

1Who the AI should be
2The prompt, with the steps
3The check when it’s done
Upgraded prompts are coming soon.

Try next

Every idea is a real post from someone who tried it, summarized in our words, with a link to the original. App names are swapped for plain words.