No project description provided
Project description
Synth Environments
Synthetic Environments for Long-Horizon Language Agents
A comprehensive framework for building and managing synthetic environments designed specifically for training and evaluating long-horizon language agents.
🎯 Key Features
- 🔄 Snapshotting & Reproducibility - Full state capture and replay
- 🏗️ Statefulness First - Built-in state management across environments
- 🔌 Consistent APIs - Unified interface for all environment types
- 📊 Observability - Built-in tracing and monitoring
- 🌐 HTTP Access - RESTful API for remote training and evaluation
- 📚 Curriculum Learning - Configurable filtering and progression
- 🛠️ Agent Tools - Simple abstractions for agent-environment interaction
🚀 Quick Start
Installation
pip install synth-env
Basic Usage
from synth_env import Environment
# Create environment
env = Environment("sokoban")
# Run agent
state = env.reset()
while not env.done:
action = agent.act(state)
state = env.step(action)
Development Setup
# Clone repository
git clone https://github.com/your-org/synth-env.git
cd synth-env
# Install dependencies
uv sync
# Run tests
python dev/update_readme_metrics.py --fast
🎮 Supported Environments
| Environment | Status | Description |
|---|---|---|
| Sokoban | ✅ Stable | Classic puzzle game for planning |
| Hendryks Math | ✅ Stable | Mathematical reasoning tasks |
| Crafter | ✅ Stable | Minecraft-like survival environment |
| Verilog | 🔄 Beta | Hardware description language tasks |
| Red Team | 🚧 Development | Security testing scenarios |
| SWE-Bench | 🚧 Development | Software engineering tasks |
📖 Documentation
- API Reference - Complete API documentation
- Environment Guide - Detailed environment descriptions
- Contributing - Development setup and guidelines
🔧 Development
Health Check
# Check codebase health
python scripts/check_health.py
Testing
# Fast tests (~3 seconds)
python dev/update_readme_metrics.py --fast
# Full test suite
python dev/update_readme_metrics.py
Code Quality
# Format code
ruff format .
# Check linting
ruff check .
# Type checking
uvx ty check
Release
# Increment version and publish
python scripts/release.py
# Dry run
python scripts/release.py --dry-run
Pre-Merge Checklist
Before creating a PR, see dev/pr_checklist.md for the complete checklist.
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for:
- Development setup
- Code style guidelines
- Testing requirements
- Pull request process
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
Special thanks to the research teams at DeepMind, Ragen AI, and other contributors to the environments included in this framework.
⚠️ Development Status: This project is under active development. While stable environments are production-ready, newer environments may have breaking changes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file synth_env-0.1.1.dev1.tar.gz.
File metadata
- Download URL: synth_env-0.1.1.dev1.tar.gz
- Upload date:
- Size: 496.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99cbdc922589dfde3445c07a27cce94c3ab343f4f2599a91dcffae46772a8806
|
|
| MD5 |
1e7f23960720f5ae9c78f56843e1cf97
|
|
| BLAKE2b-256 |
01cc23d4b97f26d60730d28bf0a8ad1482bfb1455a22bed05ee6d16468b91bcb
|
File details
Details for the file synth_env-0.1.1.dev1-py3-none-any.whl.
File metadata
- Download URL: synth_env-0.1.1.dev1-py3-none-any.whl
- Upload date:
- Size: 601.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50d0f3a82ca6d1a88023d8c72d5fee823090485f41f1673a328f98fb4cefdca7
|
|
| MD5 |
b4f020b75ca8d6274837dfa762b77c59
|
|
| BLAKE2b-256 |
213948a8353df57b5f7b343dbf68508a79aee32f3817ba8c2e66356eb7d75503
|