Eden
Python orchestrator for AI coding agents in sandboxed git worktrees.
Eden creates a fresh git worktree on a new branch, runs a coding agent (Claude Code, Codex, opencode, pi, or any line-streaming CLI) inside a sandbox (Docker, Podman, isolated, Daytona, Vercel, or forkd microVMs), captures its output, and commits the changes back. You get a branch with one clean commit per iteration, ready to review or merge.
flowchart LR
Repo[(Host repo)] --> WT[Fresh worktree<br/>on new branch]
WT --> SB[Sandbox<br/>docker • podman • isolated<br/>daytona • vercel • forkd • no_sandbox]
SB --> Agent[Coding agent<br/>claude_code • codex<br/>opencode • pi • cli_agent]
Agent -->|stdout stream| Loop{iteration loop}
Loop -->|commit per iteration| Branch[Eden branch]
Loop -->|next iteration| Agent
Branch --> Repo
Install
pip install eden-agent
Requires Python 3.11+.
Quick example
The simulated_agent runs without any external CLI installed. Run this from inside a git repository:
from pathlib import Path
from eden import run, simulated_agent
from eden.sandboxes.no_sandbox import provider as no_sandbox
result = run(
cwd=Path.cwd(),
sandbox=no_sandbox(),
agent=simulated_agent(
output="hello from the simulated agent\n<promise>COMPLETE</promise>\n",
),
prompt="ignored by the simulated agent",
max_iterations=1,
)
print(f"branch: {result.branch}")
print(f"iterations: {len(result.iterations)}")
For a real agent, scaffold a project:
eden init --sandbox docker --agent claude-code --yes
cp .eden/.env.example .eden/.env # then fill in API keys
eden docker build-image
python .eden/main.py
Development with Flox
Eden uses Flox in two distinct ways — don't conflate them:
- The repo dev toolchain — the
.flox/environment that sets up your machine to work on Eden. - Per-agent runtimes — an optional, separate environment each agent declares for its own CLI.
Repo dev toolchain
On Linux/macOS the repo ships a declarative, lockfile-pinned dev environment under .flox/. With Flox installed:
flox activate # provisions toolchain + builds .venv on first run
pytest -m "unit or e2e"
pre-commit run --all-files
flox activate provides Python 3.11/3.12/3.13, git, gh, the docker/podman clients, pre-commit, and make, then builds .venv via pip install -e ".[dev]". Pick the interpreter with EDEN_PYTHON (e.g. EDEN_PYTHON=python3.12 flox activate; defaults to python3.11).
Flox is Linux/macOS only — on Windows, install directly with python -m pip install -e ".[dev]". See AGENTS.md for the full command list.
Per-agent runtimes
Separately, each agent can declare its own Flox runtime via flox_env= on its factory. Eden then runs that agent's CLI inside flox activate -d <dir> -- <argv>, so the agent gets a declared, lockfile-pinned toolchain instead of inheriting the host's. See Agents — Per-agent Flox runtime.
Documentation
Full documentation lives in docs/:
- What is Eden? — positioning and feature matrix
- Quick start — five-minute tour
- Tutorial: build your first agent loop — 10-minute walkthrough that ends with a real agent fixing a real bug
- After your first loop — inspect cost, replay transcripts, and choose the next reference
- Python API reference — every name importable from
eden - How it works — branch strategies, sandbox lifecycle, iteration loop
- Sandbox providers — provider matrix and local provider catalog
- Container sandbox providers — Docker and Podman details
- Agents — six agent factories
License
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 eden_agent-1.0.0.tar.gz.
File metadata
- Download URL: eden_agent-1.0.0.tar.gz
- Upload date:
- Size: 642.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dfa6705d0a5eaa1d1a06d221a02c95cc05977a94a4a4232f61aed77aa3c9106
|
|
| MD5 |
ff44dc93e5f220828a20c16485da7a4e
|
|
| BLAKE2b-256 |
a53b659a55cbb303e8509f65b6acc17cd763629c5ceb93b19e09602a6d5e1b7a
|
Provenance
The following attestation bundles were made for eden_agent-1.0.0.tar.gz:
Publisher:
release.yml on dotbrains/eden
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eden_agent-1.0.0.tar.gz -
Subject digest:
9dfa6705d0a5eaa1d1a06d221a02c95cc05977a94a4a4232f61aed77aa3c9106 - Sigstore transparency entry: 2497612236
- Sigstore integration time:
-
Permalink:
dotbrains/eden@868a4810029b97f3d0029a3fe6c2a1427a8143e7 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/dotbrains
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release.yml@868a4810029b97f3d0029a3fe6c2a1427a8143e7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file eden_agent-1.0.0-py3-none-any.whl.
File metadata
- Download URL: eden_agent-1.0.0-py3-none-any.whl
- Upload date:
- Size: 297.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29332321944f7f19f295e6c0df485714ade9c71473fc8e5b5a147a78c3d50c20
|
|
| MD5 |
a7ad1d82b00bd72303e619f3ded75a6d
|
|
| BLAKE2b-256 |
cfbcca7d4c9705d498a7b43d96ced46eeaa42c77ec6979a762db46ba10ef5a24
|
Provenance
The following attestation bundles were made for eden_agent-1.0.0-py3-none-any.whl:
Publisher:
release.yml on dotbrains/eden
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eden_agent-1.0.0-py3-none-any.whl -
Subject digest:
29332321944f7f19f295e6c0df485714ade9c71473fc8e5b5a147a78c3d50c20 - Sigstore transparency entry: 2497612282
- Sigstore integration time:
-
Permalink:
dotbrains/eden@868a4810029b97f3d0029a3fe6c2a1427a8143e7 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/dotbrains
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release.yml@868a4810029b97f3d0029a3fe6c2a1427a8143e7 -
Trigger Event:
push
-
Statement type: