Deep agent used to validate Minimal Reproducible Examples (MREs) from incoming issues.
open-mre receives bug reports, extracts and executes the MRE, and produces either a runnable, validated reproduction (w/ batteries included) for maintainers, or requests additional context from the author. See the design doc for more details and the architecture section.
- Deep Agents (LangChain and LangGraph-based agent orchestration)
- Daytona sandbox for code execution
uv sync
# Copy environment template and configure
cp .env.example .env
# Substitute .env with your API keysopen-mre path/to/issue.mdThis:
- Extracts code from the bug report
- Validate package versions, if specified (if an issue is opened against legacy versions, the problem may have been fixed in later releases)
- Execute the code, hydrating with any missing imports or environment setup/entrypoint
- Report back findings
The CLI shows real-time progress updates as each node executes and is viewable in LangSmith.
If the code being tested requires API keys or other environment variables, you can pass them from your host environment to the Daytona sandbox for use when executing the MRE:
# Pass one or more environment variables
open-mre issue.md -e OPENAI_API_KEY ANTHROPIC_API_KEY DATABASE_URLGenerated files are saved to outputs/:
outputs/validation_report.md: Validation results with status (✅ GREEN/🟡 YELLOW/❌ RED)outputs/reproduction.py: Runnable reproduction script (if successful) for maintainers
Metadata and intermediate files:
outputs/execution_results.json: Raw execution output and metadataoutputs/extracted_code.py: Code extracted from the bug reportoutputs/version_report.json: Package version validation resultsoutputs/behavior_analysis.json: Expected vs actual behavior analysis
The system uses a coordinator agent that delegates to five specialized subagents:
- Code Extractor: Extracts Python code from markdown
- Version Validator: Checks package versions against PyPI
- Behavior Analyst: Parses expected vs actual behavior
- Executor: Runs code in isolated environment
- Report Generator: Creates final validation reports
See IMPLEMENTATION_SPEC.md for detailed technical specifications.
@bracesproul for inspiring the name