Could any one tell me if the V1 version is compati...
# proj-sdk
r
Could any one tell me if the V1 version is compatible with the trajectories generated by the event_stream in the V0 version? Can these historical trajectories be directly loaded and run in the V1 version? thanks ~
c
To my knowledge, we didn't really consider this, because they're different and work differently... Idk, but is it necessary? Just two thoughts: • it seems we could easily get the context by simply telling the V1 agent to read the respective V0 directory / json file • alternatively, you could tell it to make a converter. I'm not sure it's worth it compared to the first? I'd do the first. Tell the agent to load the trajectory, and understand it's information about what happened, and that you continue from there?
r
The reason for this question is that I have already developed many applications using the V0 version, and some of these application trajectories contain nearly ten thousand events. As I am learning about the V1 version, my primary concern is that the upgrade and migration costs will be very high. Therefore, I sincerely hope that the V1 version will at least maintain compatibility with the trajectories.
c
Thank you for the context! I absolutely love long conversations too. 😊 In a many-thousands events conversation, though, what is actually in use by the v0 agent is • the last condenser summary • + up to max_size number of recent events. The events older than that are not used. The agent has forgot them. Unless you don't use a condenser? Or if you do, could you please tell what max_size is it set at? Are you usually reusing those conversations, rather than start new conversations to continue developing? May I ask also, how many important conversations that you want to reuse do you have?
r
Your explanation makes sense. My
max_size
is generally set to 250. Currently, my team and I have developed approximately hundreds of applications deployed in the production environment, and we hope to continue using V1 for future iterations. The critical challenge we are facing now is how to migrate V0 applications to V1. We need developers to provide best practices for this transition. Additionally, as I mentioned earlier, it is essential to maintain at least backward compatibility with the trajectories.
c
Could you please help me understand better, these hundreds of applications are hundreds of separate git repositories? The reason I need to understand is that one of the most common workflows I know of, is like this: • develop a new app, in a conversation ◦ in its git repo ◦ test / etc / deploy • need a new feature => initialize new conversation on the same repo ◦ develop feature > commit ◦ test / etc / deploy • need to fix a bug => initialize new conversation on the same repo ◦ fix bug > commit ◦ test / deploy Everything in the application, everything in the repo, is perfectly compatible with doing the same in V1. It's only if you need to load old conversations that we hit an issue, because indeed we cannot load directly V0 conversations in V1. (I'm working on it, will follow up) Could you describe your workflow? I don't understand what it means to "migrate V0 applications to V1": the applications do not need migration. Sorry I'm dense, maybe I use the word "application" in a different sense than you did? Or is it possible to give a few examples, just a sentence each?
Thanks again for the explanation and for asking the trajectory compatibility question, it’s very helpful for understanding how V1 should do. I’ve started an example script that lets you reuse your long V0 conversations in V1. So, in practice, for very long conversations (10k+ events), V0 is only actively using: - the latest condenser summary, plus - the most recent N events (where
N <= max_size
in your condenser config). Everything older than that is “forgotten” by the V0 agent and only influences the conversation through whatever has been written into the summary. One thing we can do, is: 1. Have V1 read just the useful part of your V0 trajectory: - Find the last condenser summary event in the V0 event log. - Take the not forgotten events that follow it. - Treat the summary as a high‑level “project history so far”, and the events as the recent context. (which is the same thing that V0 does) This is a script doing this: • script gathering context from V0 2. Give V1 a prompt that explains exactly how to interpret this data and that it should “continue from here” rather than starting fresh. This is a resulting prompt, just an example, exactly like it was created by the script above, from one of my old conversations: (~ 3k events) • prompt for V1 agent
Now that I did this, I'm not actually sure this is the simplest way to reuse V0 context. A simpler way might be to just tell the V1 agent a few informations about V0 .json data, and let it figure it out, it's smart enough to actually do it, without pre-written scripts (it creates scripts itself) What would be really great, would be if you could share more info about your and your team's workflow and expectations. How do you use OpenHands, is it on the cloud, on docker containers, or...? Do you have all conversations events on the same machine where the agent is running, or do we need to figure out how to transfer them to the agent easier?
w
Yeah I'm curious what the real need is here. You can continue those old conversations using an old version of OpenHands, but conversations were never meant to last for ~weeks
If there's useful context in there, summarizing it and putting it into a microagent would be way more efficient than continuing the same conversation
r
@calm-artist-7206 @wooden-umbrella-84098 Thank you for your reply. I would like to explain how we use OpenHands V0 in our work. Firstly, we leverage OpenHands as the infrastructure to develop a CodingAgent, which builds an application from scratch (rather than from an existing git repo). Secondly, our application is characterized by two types of metadata: 1. The conversation trajectory of the application's generation and multiple rounds of modifications; 2. The code written by the CodingAgent. If V1 is incompatible with V0's trajectories, the issues for our workflow are as follows: 1. Multi-round modifications that should have context will lose the conversation history due to trajectory incompatibility. 2. Operations such as application conversation display, application rollback, and application duplication based on the above two types of metadata will all need to be redeveloped.
w
Wow yeah you've built a lot here. Is this for internal use? Or a product you're selling? I do think you're going to need to do a lot of rewriting based on the breaking changes. We had to do the same for our CLI and web applications