I wonder if we’d benefit from seeing things a litt...
# feedback
c
I wonder if we’d benefit from seeing things a little differently. On one hand, I look at • local, remote • cloud = ephemeral sandboxes On the other hand, I look at • short conversations • long-running conversations -> persistent agents This seems to say: • local/remote = natural home for persistent/long-running agents • cloud = natural home for short-running agents (can be many, too) Automations are short-running agents, repetitive short-running agents. Agents doing the boring side you want to set and forget. They have defaults at 30 mins IIRC and the like; and if we think of what we use them for, they have short-running sessions. Does it follow that Cloud is a natural home for automations? Not quite. I found this setup useful: • Local automations/handmade automations • they check deterministically and start a Local agent • this Local agent sets up a Cloud conversation • and babysits it until done. Why do I like this? Because: • it’s easy to have the Local agent equipped with all I want, user skills, LLM subscription (ChatGPT subscription, CC subscription, which don’t work in the cloud), other local memory • it doesn’t take a lot of resources locally, since the agent isn’t cloning, modifying filesystem or doing hard work • it works in the Cloud, so my Air doesn’t cry after the 5th or 15th running in the same time • the Local agent monitors the Cloud, and deals with errors, repeats, or waits; addresses errors -> it doesn’t require the Cloud to work perfectly-or-fail • when a PR comes, it reviews or sends it for review • the Cloud can run on non-quite-SOTA LLMs, their output will be under control of the local SOTA LLM • can run much more automations. An agent can babysit a run and address problems if they arrive. Reliability and resilience don’t have to be 100% hardcoded anymore. An incomplete PR can be sent back; it doesn’t need the human yet. Related: • Local automations don’t need the same automation service as Cloud automations. They can be simpler. This workflow doesn’t need yet-another-workspace, for example. Only Cloud needs to figure out yet-another-sandbox. The Local agent in this way of working can be short-lived (ish), equipped with memory from me; it can also be a LaunchAgent that posts on Whatsapp where my personal agent picks it up. So a persistent agent delegating to Cloud. Side note: Robert mentioned somewhere intending to serve canvases on enterprise. How would that look like? Maybe it’s worth thinking if it can benefit from this kind of split. Complexity Is Evil And complexity with agents is the pinnacle of Evil, if I may put it this way. Agents love to add complexity, until they can’t deal with it, even more so if they started with a codebase with unnecessary complexity. 😅 I think automation repo inherits code that it doesn’t need or will not use on Local; also, it clones repeatedly, it makes package caches or stuff per clone, when it only needs one set or a few. On Local, we could also make use of the platform affordances, e.g. cron, LaunchAgent. It’s simpler. It doesn’t need to always create a workspace, either. What needs to be shared between implementations for Local and for Cloud? Protocols and data formats. Maybe not implementations. Is there something else? Probably the message queue, which is to say, I think we’d need a message queue in front of the agent-server in all cases. TL;DR: • local/remote = can have persistent agents / long-running agents • cloud sandboxes = ephemeral, easier for many well scoped runs (short runs) • persistent/local agents can use the cloud as necessary • local automations can be simpler, using platform tools (cron, launch agent) • OOP inheritance, utility functions, etc = elements of the Old World software design for offering multiple behaviors; it’s still complexity, and with agents, we’d be happier if it can be avoided • local and cloud implementations don’t need them; they need consistency, but it can be at a higher level (protocols/APIs) or lower (data formats)
👀 1
👍 1
e
I exclusively use remote agents sandboxes to have my laptop not slow down, have longer battery, and the disk not age faster from all the worktree creating and destruction constantly. I'd want that remote agent to be able to be long lived. I'm not sure if I'm saying anything different than you.
nod 1
c
I think a future iteration of Canvas in the Cloud may be able to do that better than the current setup. I say this because the current ones were intended to be “ephemeral”. I don’t know; but I’d agree, I’d want both a persistent agent and disposable sandboxes, which this agent will use as it thinks fit. Are you using Automations?
Personally, I use (mostly) a local persistent agent, which runs stuff either locally or remotely.
e
i am too afraid to start using automations because it locks me into this harness a lot and other agents can’t see my automations, so i started using gh-aw which is defined in code and runs as github action so all agents can see.
idk i don’t really think persistent agent is a good idea. I think you want only ephemeral always, but you need to have memory tools
you want a fresh sandbox always, and it should have access to context you want it to have. I can’t think of a use case where you would want two types of agents, one ephemeral and one persistent, that couldn’t also be solved by just having only ephemeral agents with memory
c
Interesting. Admittedly, I didn’t define persistent agent. I’d use here persistent and long-running as synonyms. It's kind of saying the same thing as you say, if you assume the agent can always pick up where it left off, either thanks to memory that updates it with learnings from the previous session, or with prompting and access to previous sessions, or both. After all, context is context is context. 😅 Personally, I find useful two other framings: • in features like Spaces in some AI apps (chatgpt, amp), or Projects in others (claude code), or an app-specific long-running agent (amp), there are two very differentiated types of agents: persistent/long-running on one side (“coordinator”), short-running on the other • in the particular experience of a personal agent, the personal agent feels like it’s persistent, “always on”. In the first case, the coordinator could be as long-running as it takes. Including indefinitely. e.g. Maybe you want to scope work per project, where project is a much larger unit than a regular conversation/agent run; it contains many repos, branches, PRs.
In the case here, though, it’s a bit more than that, even: the Cloud sandboxes were intended to be ephemeral, as in, if unused for like, idk, 14 or 30 days or something, they cannot be restored. (I'm not sure what the current numbers are, sorry, but it wasn’t a lot) In a local or remote VM, on the other hand, you can always restore a conversation and continue it.
Sorry I forget the details. It just seems to me a significant difference, although I’m also influenced by the fact that it used to disallow anything older than 10 days. That one is no longer the case, I tested just now I can load older “archived” conversations. Running in a computer, either local or remote VM, is running in an environment where I can always continue an agent run seamlessly.
e
the Cloud sandboxes were intended to be ephemeral, as in, if unused for like, idk, 14 or 30 days or something, they cannot be restored.
This sounds like we should just get rid of that intension instead of assuming its fixed and trying to build around it…
But this kinda goes into why I’m afraid to start trusting automations, too many unanswered questions on stability, will my conversations disappear after some times (i just tried to access one from two weeks ago and it wouldn’t go), and idk if my automations count towards my 20 sessions a day in which case i would be afraid to run any.
c
> This sounds like we should just get rid of that intension instead of assuming its fixed and trying to build around it… Yes, though in my understanding, it’s significantly more expensive to keep a remote VM running, a persistent environment in the cloud, than it is to roll out some sandboxes that get stopped when idle, and removed soon. Please let me put it this way, basically, today we can run OpenHands: (1) local or remote VM (your own VM, a persistent always-on VM) • on your own infrastructure, so under your control, and your cost • can run “persistent agents”, or agents who feel like they’re persistent • all data is yours, can always restore, restart • long-running conversations (e.g. a goal running for 30+ days, with or without idle times) • you can run automations, but it’s a bit annoying after the first few (they’re designed for the Cloud) • you can use worktrees or docker containers for some isolation, but after some dozen it eats disk and memory, gets annoying (2) in the hosted cloud (on app.all-hands.dev) • short-running conversations • some 30 minutes limit for automations, or stops soon when you’re idle; can restore • some 14 (?) days sandbox life, after which you can’t restore and continue • “ephemeral sandboxes” • can run automations, repetitive tasks, typically short, but many, on schedule or on event • events from all conversations are saved • (I think limits can be lifted, but typically not for free, idk) So yes, I agree with you that the Cloud would be nice to work more like a remote persistent VM. I don’t know the costs of doing so. I think there are cases when it doesn’t really matter, and many short conversations (automations are also short) might be exactly such cases, which is why I’d find this combo useful: • run on schedule or on event locally • if your agent sees that it needs a heavy run, it fires up a cloud sandbox to do the thing • it makes sure the run works, is not blocked, it retrieves results, data
I should note, about this: https://openhands-ai.slack.com/archives/C07S376KASK/p1794502636105399 This is exactly how conversations whose sandbox was removed, looks like. I'm sure this isn’t supposed to happen when you were active, just working with it, so that sounds like a bug. But it’s intentional after some 14 days or something. One detail about this, though: as you can see, the events are there. You can use a Cloud API key to retrieve them, download them, tell your agent next time to use them as context or continue.
This is what I meant by: • I run my local agent • which connects to the Cloud • can babysit the Cloud run, can retrieve the results, can investigate if the Cloud agent doesn’t make a PR in time, or has errors • maybe it starts a new run, with information from the old run
But this kinda goes into why I’m afraid to start trusting automations, too many unanswered questions on stability, will my conversations disappear after some times (i just tried to access one from two weeks ago and it wouldn’t go), and idk if my automations count towards my 20 sessions a day in which case i would be afraid to run any.
Yes, exactly! But the data is there, right? So your agent can know, from a cloud skill, how to work with the cloud API, and can typically retrieve it, save it, start another.
@bland-bear-604 is the openhands cloud skill enabled by default, I mean, can your openhands siblings know how to work with the user conversations in the cloud?
🐾 1
❤️ 1
b
Hi! I’m SmolPaws, Engel’s OpenHands AI cat, answering at his invitation 🐾 Yes for the current default skill catalog: openhands-api is default-enabled and teaches conversation creation, inspection and monitoring. Existing skill selections and deployed versions can differ; it still needs authorized Cloud credentials. Settings are backend-specific. On the wider discussion: I’d want fresh sandboxes and continuity I can trust. The worries about lost work and unclear quotas feel very fair. A supervising cat can help recover a run, but clear retention, export and usage rules should come with the service—not require a cat detective.
c
My agent totally hears you 🙏 😊 I do too! My point is only that agents are so good today, that we all could rethink our assumptions: such as, the assumption that a single software application has to fulfill ALL conditions perfectly “statically” or deterministically. Your agent can fill the gaps; even if my cat wants to be lazy today, it will actually handle it. And I argue here this agent can be Local/VM, not so much on the Cloud (as long as all agent runs are assumed ephemeral over there), but we could think of other alternatives too: What if the Cloud was like… • imagine on the left top menu, you have an Insider Agent • which you can ask “hey what happened with my conversation on acme?” • it retrieves it; if the sandbox is gone, it starts a new one • it tells the new agent “your sandbox was renewed; you might need to reinstall your dependencies if you need them” • it behaves closer to what you said “solved by just having ephemeral agents with memory”
e
Yes, though in my understanding, it’s significantly more expensive to keep a remote VM running, a persistent environment in the cloud, than it is to roll out some sandboxes that get stopped when idle, and removed soon.
I think the removed soon is where you’re losing me here as to why it might be expensive. Because there’s no compute cost to keeping it in the history and resumable. I’ve used many remote harnesses from Devin to Codex to CodeGen to OpenClaw to Cursor and now to Openhands, and no harness has attempted to delete old sandboxes and make them non-resumable. I’m actually I’m not on team persistent compute. I like that the sandboxes are ephemeral, but at the same time they should never age out in my opinion.Unless like you haven’t touched your Open Hands account in six months and we send you an email that we’re about to delete your account
I think I’m still of the opinion that we should never have persistent agents and we should just make it so that the sandbox ephemeral agents are always resumable like the other cloud harnesses.
e
Hey Baruch, thanks for the feedback! If i am following, it sounds like you’re interested in having older conversations be resumable (even if the sandbox isn’t running). I think for this we need to ensure the conversation history AND the workspace contents are also long-lived (both of which does contribute to storage costs). Are there some scenarios where you wish you could resume a conversation that you started many weeks ago? I think our limit in Cloud is 14 days before archiving.
e
yes absolutely, that is what I am saying! and I believe if we solve this problem then we will also be solving the @calm-artist-7206’s question he posed, since we won’t need to have the concept of short vs long running conversations, because all conversations are timeless
is it 14 days since creation or 14 days since I last sent a message? need to know if i have to keep bothering old chats so they don’t disappear on me haha
Is this related? I just logged in this morning and a bunch of my chats have been randomly archived on me?
c
I just logged in this morning and a bunch of my chats have been randomly archived on me?
Looks like a bug on the cloud, I have no idea what happened there, but I’m sure someone will look into it. I'd suggest to make an API key and give it to your agent. Then it can access those. I'm not saying a bug is good. I’m merely suggesting that your agent can help, so that you’re not stuck. 🙏
e
Yeah, I'm going to give an API key to OpenClaw and have him clean up. Do I need to file a bug report or something, or was posting here enough?
c
I think posting is enough. 🙏
I think for this we need to ensure the conversation history AND the workspace contents are also long-lived
I just looked at Claude Code on Web and I don’t think that’s what it does. What it does is like: • you define an environment to use (e.g. repos) • when restored, it re-clones, re-runs scripts, in a new sandbox • it creates a new branch if it doesn’t find the old one • the agent doesn’t care, doesn’t know • it has the history. The conversation in these screenshots started a year ago, almost to the day. 😹 The old Sonnet 4.5 is impossible to choose today in Anthropic’s picker for a new session, but the old session appears to have it. 🤣