Skip to content

chimera.env

chimera.env is the execution-environment layer: the place tools actually run.

from chimera.env import (
Environment,
LocalEnvironment,
GitEnvironment,
DockerEnvironment,
RemoteEnvironment,
CloudEnvironment,
PersistentShell,
)
SymbolModuleUse
Environmentchimera.env.baseABC. run(command), read(path), write(path, content).
LocalEnvironmentchimera.env.localDirect filesystem / subprocess.
GitEnvironmentchimera.env.gitBranch isolation: every run mutates a worktree branch you can roll back.
DockerEnvironmentchimera.env.dockerContainer isolation.
RemoteEnvironmentchimera.env.remoteHTTP client to a remote env server. Optional httpx extra.
CloudEnvironmentchimera.env.cloudManaged sandbox provisioning.
PersistentShellchimera.env.shelltmux-backed long-lived shell session.

Environment is the second positional argument to every tool’s execute(args, env). Tools that don’t touch the filesystem can ignore it and accept None.