wooden-umbrella-84098
09/29/2025, 12:41 PMopenhands/workspace
• This replaces our existing Runtime implementations from the OpenHands repo
• Each impl would start an AgentServer
◦ Except for LocalWorkspace
• They'd provide the same high-level methods for getting the workspace set up
◦ execute_bash
◦ setup_git_config
◦ clone_repo
◦ get_microagents_from_org_or_user
◦ get_microagents_from_selected_repo
A basic example would look like this
workspace = DockerWorkspace()
dest = workspace.clone_repo("https://ghp_asdf@github.com/user/repo")
microagents = workspace.get_microagents(dir=dest)
agent = Agent(microagents=microagents)
conversation = Conversation(agent=agent, workspace=workspace)calm-artist-7206
09/29/2025, 5:06 PMwooden-umbrella-84098
09/29/2025, 5:19 PMwooden-umbrella-84098
09/29/2025, 5:19 PMcalm-artist-7206
09/29/2025, 6:40 PMcalm-artist-7206
09/29/2025, 6:41 PMgit worktree for some conversation, it needs to restart the server, or start another server, I guess
Please don’t get me wrong, I think this workspace abstraction handles more than 90% expected clients, it’s perfectly fine. And I feel it also fits somehow with the concept of “ephemeral agent-server” better than a server that sits there and somehow runs agents in different folders. It just seemed for a split second that the latter could sort of happen 😅
Just for context, this use case is what I had in mind : https://github.com/All-Hands-AI/agent-sdk/issues/530#issuecomment-3344559179calm-artist-7206
09/29/2025, 6:52 PMwooden-umbrella-84098
09/29/2025, 8:31 PMworking_dir to the tools for each conversation/worktreecalm-artist-7206
09/29/2025, 8:35 PMcalm-artist-7206
09/30/2025, 8:09 AM