I spent time on why starting a conversation in Age...
# proj-agent
m
I spent time on why starting a conversation in Agent Canvas feels slow. I benchmarked the agent-server, not on every PR which touch the agent-server the benchmark will run (to prevent regression) and will post a message into the PR. Note that this benchmark is just centered about starting a conversation. The main findings were that • the terminal tool setting up its tmux environment with one subprocess per environment variable (~10 ms each, and a real Canvas install has ~100 of them). • worktree mode ran git on the server’s event loop, so every other conversation froze meanwhile • every create waited for all MCP servers to start. Open a stack of PRs to try to fix the problems. The first PR of the stack is the benchmark such that we can measure every change. You can also see the img for a recap. To be sure that we don’t introduce bugs: I asked an agent to formalize the agent-server of the last PR and search for possible bugs and fix them. Stack: Stack #6896 Issue: github.com/OpenHands/software-agent-sdk/issues/6868
🙌 1
❤️ 6
c
Woah, this is awesome!
l
Amazing 🙂 That’s too many PRs for me to review maybe, but if you have any particular ones you’d like a review on that’d be welcome
Otherwise if you have confidence I think it’s OK to merge with all-hands-bot
nod 1
👍 1
c
Funnily enough, I also asked an agent over the weekend about the slow start, but I discarded its proposal - it was combining files in canvas (maybe not a bad idea per se, it just went poorly about it only at build time and stuff)
m
This is just looking into the agent-server, it can also be that we have blocker in the agent-canvas. But in general the agent-canvas should just do API calls
c
nod It might do more than necessary, there’s a tradeoff there
Not a biggie, this is great!
a
This is great you are doing this.
e
I started working on the same exact thing, funny enough, so i just published a PR for what mine had that was additional github.com/OpenHands/software-agent-sdk/pull/6883
Not sure how it got closed out though but there it is if its helpful, it measures a few additional things
m
ah ok cool… you could add things in the benchmark if you see something which feel slow
a
Are there metrics we are tracking like this, the Grokbot folks for example track cold launch time, relaunch time, typing latency, opening settings, swtiching to a short chat, switching to a long chat. Measuring these could help the UI experience get better
l
We can maybe track that
m
do you mean in the app?
a
Yea. That would be more app measurements.
l
I was also thinking immediately we could get it from posthog or datadog as well
e
@modern-fireman-99755 it doesn’t seem like i have permissions to reopen the PR
c
I can't either, GitHub won’t allow it, maybe the other branch was deleted?
You could perhaps tell your agent to open a new one if so?
e
will do
The main feature ended up being added, so its just a unit test i made left
c
Unexpected 🫠