Coding · Advanced

Rebuilding legacy libraries against test suites

Port legacy codebases to modern languages by iteratively running and passing existing test suites

Use with BotBento Markdown

Opens BotBento. Paste the prompt into a bot; nothing is preconfigured.

  1. When you askStart library porting task
  2. ThenIterate code against test runner
  3. ResultReview passing test report

When maintaining outdated dependencies or migrating critical libraries to safer languages, an automated coding agent can systematically reimplement components while verifying behavior against existing test suites and conformance benchmarks.

Prompt to start with

BotBentoRecommended
Inspect the target specification and existing test suites in the local repository. Implement missing API functions module by module, executing the test runner in the terminal after each iteration. Refactor and fix failing tests until the entire test suite passes cleanly. Always ask for user approval before pushing branches, committing changes, or deleting legacy files.