Repository navigation
agent-framework-kosa8: a ShellExecutor that runs commands in microVM sandboxes (Python) #10514
drvt69talati
started this conversation in
Show and tell
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.
Disclosure: I work on kosa8, a commercial sandbox service, and this package is ours. The code and this post were written with AI assistance and reviewed by us.
agent-framework-kosa8is aShellExecutor(the protocol inagent-framework-tools, next toLocalShellToolandDockerShellTool) that runs commands in a kosa8 Cloud microVM sandbox instead of on the host or in a local container.What it does:
start/close/run(command, timeout=...)return the framework'sShellResult.ShellPolicy,on_commandand the stdout/stderr byte limits behave as in the built-in tools.as_function()returns akind="shell"FunctionTool, so it works withget_shell_tool(func=...)or directly intools=[...].as_tools()addsexecute_python,read_file,write_fileandlist_fileson the same sandbox.shin/workspace. Files and installed packages persist, butcdand shell variables do not, so it behaves like the built-in stateless mode.Tested against
agent-framework-core1.26.0 andagent-framework-tools1.0.0b261112. The unit tests use a mocked API. A live tier drives a realAgentwith a scripted chat client against real sandboxes.Feedback on the
ShellExecutorfit is welcome, especially whether a remote executor should offer a persistent mode.All reactions