
vedant
on June 7, 2026
6 min read
so eva is what i call a software factory. ai agents work in their own throwaway computers, write code, click through the app to test it, and leave proof of what they did. building it taught me the hard part wasn't the ai. it was the ordinary software around it.
if you treat an agent like a chat box stuck onto your code, you fight it all day. if you treat it like another user of your product, you start building things differently.
an agent can work for a long time. while it does, it sends a small "still here" signal several times a second, plus a ping every 10 seconds when it's busy and quiet. if those stop, eva assumes it's dead and ends the run. that happened in 39 of 1071 runs. the error said network, but most likely the agent had run out of memory. so now i check the activity log first and don't trust the message.
once tasks, sessions, docs and pull requests pile up, you need to find them fast. eva has a search bar and a cmd+k shortcut for it, and we made it open instantly with no animation cos you hit it a hundred times a day. agents use search too, so they aren't stuck when the only way in is clicking a sidebar.
instead of one giant set of instructions, eva has settings, like which checks to run on a change, how to build the app, and which ai model a repo uses. the agent reads and works with the same settings a person would. if it's on the screen, the agent can change it too.
agents can make their own small dashboards with live data, and eva hosts them. while a run is going you see screenshots, videos and updates as they arrive, plus a preview of the real running app, so you can see what the agent did without downloading the code.
most of the pain came from services with limits that aren't written down anywhere. none of it is glamorous, but that's the job. for me, building in the agentic era isn't a smarter chat. it's software an agent can live in without you watching over it.
so Eva is a software factory. agents live in sandboxes, they write code, they click through the app, they leave proof. the interesting part wasn't the model. it was the software around the model. heartbeats, pings, a search bar, UIs that get generated on the fly, and tools an agent can actually configure without you sitting there.
if you treat an agent like a chat box bolted onto a repo, you fight it all day. if you treat it like a user of your system, you start building different software.
Convex actions cap at about 10 minutes. a real agent turn lasts longer than that, so Eva doesn't hold a live socket from the host. the agent loop runs inside the sandbox. that process self-drives and pushes HMAC-signed heartbeats to Convex over HTTP. flush is every 150 ms. there's a 10 second keep-alive ping so the watchdog doesn't think it died during a quiet tool run.
the host waits on completion events the sandbox posts back. short durable workflow steps plus awaitEvent. that's the whole shape, cos the platform time limit is the architecture, not a footnote.
there's a nastier one too. nested ctx.runAction from a Node action dies around 300 seconds, not 600, with a bare Error and no message. four production incidents all died at about 5 minutes 12 to 29 seconds before we pinned it. fix is ugly until you've been burned: don't nest a long action inside another action. call the helper directly so you only have the caller's 10 minute budget.
the 10 second ping is what keeps the watchdog alive when the agent is busy and not flushing snapshots. if heartbeats stop for real, a watchdog kills the run. we used to think that was a network blip. it wasn't.
39 of 1071 runs ended watchdog_killed. the kill always landed at exactly the stale threshold, which we kept raising, 300s then 900s then 1500s. heartbeats had stopped permanently. the callback Node process was dead. activity logs showed the step at death was usually a short command, timeout 120s npx tsc --noEmit in about half the samples. best fit is the OOM killer SIGKILLing the callback during a memory-heavy step. the watchdog message masked it, and then cleanup deleted the sandbox so the evidence was gone.
so now I don't trust the surfaced error. I go to the activity log for that runId first. and I try not to destroy the sandbox before I've looked.
once you've got tasks, sessions, docs, PRs, artifacts, you need a way to find things without clicking around. we wanted a search bar on the dashboard, and a command palette, Cmd+K, over the same entities using Convex search indexes.
one thing we learned the hard way: don't animate that. a command palette gets hit a hundred times a day from the keyboard. open/close transitions on that just feel slow. Raycast doesn't animate it. we don't either.
the other thing is agents use search too. if the only way to find a task is a human clicking a sidebar, the agent is stuck. search is how both of you navigate the factory.
audits are categories you can turn on and append to a PR, then auto-fix findings. snapshots have a branch, build commands, config files, a rebuild schedule. MCP config is a root prompt under settings. repo model is configurable. the agent can read those settings and work against them, instead of you rewriting the prompt every time.
that's the shift. you don't hardcode the workflow into one mega prompt. you make the product configurable, then let the agent use the same knobs a human would. build commands, audit categories, which database to query. if it's in the UI, the agent can change it too.
agents generate artifacts. self-contained HTML dashboards Eva hosts, rendered in a sandboxed iframe, querying live data through MCP. that's a UI that didn't exist until the agent made it.
same idea in chat. toasts, tool results, proof screenshots, walkthrough videos. those appear while the run is live, so the UI has to be interruptible. transitions, not one-shot keyframes that restart from zero every time a new thing lands.
and preview is a real running app in the sandbox, not a static mock. changes show up as they happen. that's the dynamic UI that actually matters, cos you can see what the agent did without checking out the branch.
most of the pain was managed primitives with limits that aren't in the docs. Convex time ceilings. Vercel lazy-resume, any exec wakes a stopped VM, which meant opening a closed session page could silently resurrect it. cross-origin Convex websockets that can't attach a preview token, so we proxy through the already-authenticated origin. snapshot restore going from minutes on Daytona to about 0.3s on Vercel, then a pile of leftover Daytona ids that still had to stay in the schema.
none of that is glamorous. it's the software factory. heartbeats so you know the agent is alive, pings so quiet work doesn't look like death, search so both of you can find the work, config so the agent can steer the product, dynamic UIs so you can see what it did.
that's what building in the agentic era actually is for me. not a smarter chat. software that an agent can inhabit without you babysitting the socket.
Sign in to join the conversation