Who it is forA platform engineer or researcher who needs an environment specific to their tasks and wants to build it in Python.
The problemStandard tasks do not match your domain, so you need your own environment that agents can run in and be graded in.
The outcomeYour Python project depends on agent-env and imports agent_env, and you have a starting point for an environment server that speaks the protocol.
What you need first
- Python 3.11.4 or newer
- uv (https://docs.astral.sh/uv/) or pip
- A running Docker daemon for running environments locally
Steps
- Run
uv add agentenv-frameworkin your project folder. - Read the environment server SDK section in packages/agentenv-protocol/README.md.
- Write your environment server using the SDK classes described there.
- Build and run it with the agent-env CLI as described in the documentation at https://www.agentenvframework.com/docs.
Prompt for your agent
In <project folder>, add agentenv-framework with `uv add agentenv-framework`, then follow the environment server SDK section in packages/agentenv-protocol/README.md of scaleapi/agentenv-framework to create a minimal environment server. Report the files you created and the commands you ran. Verify that `python -c "import agent_env"` runs without error inside the project environment.
Caveat. The README names the environment server SDK and documents it in packages/agentenv-protocol/README.md, but the exact class names and build steps are in those docs, not in this summary.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for scaleapi/agentenv-framework and "Build a custom environment with the SDK"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer