Repository navigation
feat(workspace): add Maritime as a sandboxed workspace backend #3695
mariagorskikh
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem?
AgentScope workspaces can run on E2B, Daytona, OpenSandbox, Docker, K8s, Apple Container and Bubblewrap. Maritime (maritime.sh) runs cloud sandboxes with the same shape as E2B's
basetemplate (Ubuntu, useruser,/home/user, passwordless sudo, python3, curl), and they pause when idle and resume on the next call with disk and memory intact. There is no Maritime workspace today.Describe the solution you'd like
A
MaritimeWorkspaceandMaritimeBackendundersrc/agentscope/workspace/_maritime/, plusMaritimeWorkspaceManagerunderapp/workspace_manager/, following the E2B backend file for file:exec_shellmaps to the SDK'sSandbox.runwith an argv array (no shell quoting),cwd, and a timeout clamped to Maritime's 1 to 3600 seconds.read_fileandwrite_filemap toSandbox.files.agentscope.workspace.idmetadata throughsandboxes.list(metadata=...);close()pauses, unclaimed pre-warmed sandboxes are killed, as in the E2B manager.--no-deps).New dependency
An optional extra
workspace-maritime = ["maritime>=0.10.0"], lazily imported. Themaritimepackage has no third-party dependencies. It would also join theworkspaceextra like the others; happy to leave it out of that if you prefer.Tests and docs
Live tests skipped unless
MARITIME_API_KEYis set (mirroring the E2B ones), mocked unit tests for the SDK mapping, reattachment and the manager's pre-warm handling, and a companion "Maritime" tab inbuilding-blocks/workspace/run-workspace.mdxin agentscope-ai/docs.Disclosure: I'm a co-founder of Maritime. We'd maintain this backend and answer issues about it. The implementation is ready on my fork (main...mariagorskikh:agentscope:maritime-workspace). If this sounds good, I'd like to take it on once there is an issue to claim.
All reactions