Canonical: https://botbento.com/usecases/rebuilding-legacy-libraries-against-test-suites/
Format: Markdown representation of the public HTML page.

[Home](/) / [Use cases](/usecases/) / [Coding](/usecases/?category=coding)

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 ](https://app.botbento.com/?ref=usecases&utm_source=botbento.com&utm_medium=usecases&utm_campaign=rebuilding-legacy-libraries-against-test-suites)Copy promptShare[Markdown](/text/usecases/rebuilding-legacy-libraries-against-test-suites/index.md)

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

- When you askStart library porting task
- ThenIterate code against test runner
- 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.
```

Copy

## Tools it uses

TerminalGitHub

## Works with

BotBento

## Tags

- migration
- testing
- refactoring
- code-generation

## Source

[Show HN: Xmloxide – an agent-made Rust replacement for libxml2](https://news.ycombinator.com/item?id=47201816)
Hacker News · checked 2026-10-15

Summarized in our own words. Any results described there are the authors’ own, not measured by BotBento.

By BotBento Editorial · Added 2026-10-15 · Updated 2026-10-15 · [Suggest a correction](/contact/)

## Related use cases

-

Codingintermediate

## [Automated code refactoring and test execution](/usecases/automated-code-refactoring-and-test-execution/)

Inspect repositories, apply code edits, and execute test suites from the command line

TerminalGitHub
-

Codingintermediate

## [Automated repository linting and build repair](/usecases/automated-repository-linting-and-build-repair/)

Run build verifications, resolve linter warnings, and generate basic tests across legacy codebases.

TerminalGitHub
-

Codingadvanced

## [Coordinated codebase migration across multiple modules](/usecases/coordinated-codebase-migration-across-multiple-modules/)

Break down complex migrations into parallel agent tasks, verify changes, and review patches.

TerminalGitHub
