Repository navigation
Give an ADK agent a shell and files in a sandbox you run #8362
carrollco
started this conversation in
Show and tell
Replies: 1 comment
|
I would give each run its own sandbox, and only reuse one within a single conversation when the later turn genuinely has to see the same files, as in your write-then-run example. A sandbox that lives across conversations will accumulate scripts, credentials the agent wrote to disk, and any network allowances you opened for the last task, and the next prompt inherits all of it. Destroying the environment when the conversation ends, and starting the next one empty, is the default I would want in production; keeping one per conversation is a reasonable exception for a tight edit-run loop. Disclosure: I work on Sandscale, which runs each agent run in its own Firecracker microVM: https://sandscale.dev/?ref=community-github |
0 replies
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.
When an ADK agent writes a script and runs it on the next turn, both steps need to see the same files. I built a Plimsoll backend for ADK’s existing environment tools so those steps can happen in a sandbox you run.
The example writes a Python script, runs it, edits it, and runs it again in the same sandbox. It multiplies 6 by 7 both ways, which is about as adventurous as a smoke check needs to be. It uses scripted model responses, so trying it takes a running Plimsoll server and no calls to a model provider.
If you’ve wired up an ADK workspace, I’d like to hear how you scope it in practice. Does each run get its own, or do you keep one per conversation?
Example with setup and run commands
All reactions