r/LangChain • • 14m ago

Question | Help I built an open-source tool for behavioral regression testing of AI agents. Looking for developers to try it.

Title: I built an open-source tool for behavioral regression testing of AI agents. Looking for developers to try it.

I've been working on a problem that I think many AI agent developers encounter:

An agent works correctly today, but after changing a prompt, tool, or implementation, its behavior changes. How do we reproduce and catch that regression?

I built Stepfork, an open-source Python tool that provides a workflow for:

  • Recording instrumented agent executions.
  • Replaying them with frozen model and tool results.
  • Comparing agent behavior.
  • Exporting pytest regression tests.

I made a working LangGraph demonstration:

  • Record a buggy and corrected agent.
  • Replay the buggy execution without re-executing model or tool bodies.
  • Detect the changed approved output.
  • Generate a pytest regression test.
  • See it fail on the buggy implementation and pass on the corrected one.

GitHub: https://github.com/utsab345/stepfork

PyPI: https://pypi.org/project/stepfork/

I'd love to get feedback from developers building AI agents.

Would you try this on one of your LangGraph or Python agent projects? What would you improve or add?

I'm the creator and maintainer of this project. Honest feedback and contributions are very welcome.

1 Upvotes

1 comment sorted by