Stepfork: open-source tool records agent runs and turns regressions into pytest tests

Low-Cut-528 · reddit · 2026-11-29

A developer released Stepfork, an open-source Python tool for behavioral regression testing of AI agents. It records instrumented agent executions, replays them with frozen model and tool results (no re-execution), compares behavior, and exports pytest regression tests. A LangGraph demo shows recording buggy vs. fixed agents, detecting a changed approved output, and generating a test that fails on the buggy version and passes on the fix. Code on GitHub, published on PyPI; feedback welcome.

Original post →

More from coding & agent

coding & agent channel →