<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ray Thurn Void</title>
    <description>The latest articles on DEV Community by Ray Thurn Void (@raythurnevoid).</description>
    <link>https://dev.to/raythurnevoid</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1043334%2F71b8d6e5-4a6b-4574-a435-5dba209f93d6.jpg</url>
      <title>DEV Community: Ray Thurn Void</title>
      <link>https://dev.to/raythurnevoid</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/raythurnevoid"/>
    <language>en</language>
    <item>
      <title>My AI autopilot can do anything, even find me an apartment in Berlin</title>
      <dc:creator>Ray Thurn Void</dc:creator>
      <pubDate>Fri, 27 Nov 2026 23:53:50 +0000</pubDate>
      <link>https://dev.to/raythurnevoid/my-ai-autopilot-can-do-anything-even-find-me-an-apartment-in-berlin-5hfc</link>
      <guid>https://dev.to/raythurnevoid/my-ai-autopilot-can-do-anything-even-find-me-an-apartment-in-berlin-5hfc</guid>
      <description>&lt;p&gt;I built an autopilot for my apartment search in Berlin.&lt;/p&gt;

&lt;p&gt;In November I was living in Lisbon, and I had a job waiting in Berlin from January. I needed an apartment there, and I could not fly to Berlin every week to see one.&lt;/p&gt;

&lt;p&gt;Renting in Berlin is hard, even for people who live there. Prices are high. Landlords, especially the big housing companies, choose among tens or hundreds of people, and they do not trust strangers. The paperwork is insane. And many apartments cannot be rented at all by someone who moves from abroad, so for me the housing shortage was about twice as bad.&lt;/p&gt;

&lt;p&gt;So I had to write to many landlords, and be one of the first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Letting AI agents do the search
&lt;/h2&gt;

&lt;p&gt;An AI agent is an AI that uses a computer by itself. It can open a web page, fill in a form or read an inbox. AI has become much smarter, and today an agent can do almost any task that a person does on a computer.&lt;/p&gt;

&lt;p&gt;So I built an autopilot for the search. It started as one chat with one agent, which I call the lead agent. I told it what I needed: an apartment in Berlin from January, my budget, and where my office is. It built the first parts of the autopilot and wrote the instructions for the agents that came later. For two weeks, its chat was the place where I asked for things and made decisions.&lt;/p&gt;

&lt;p&gt;Most of the time, I talked only to the lead agent, and it checked the work of the other agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  The radar
&lt;/h2&gt;

&lt;p&gt;The first thing the lead agent built was a small app, the radar. It had no AI, because collecting ads is simple work that repeats all day. Every 15 minutes it checked the housing platforms and collected all the new ads. It kept the ones that fit my budget.&lt;/p&gt;

&lt;p&gt;Some of those apartments matched everything I look for, like the size or the distance from my office. The radar marked them as "ideal".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzydh4wbet81tdxppq54w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzydh4wbet81tdxppq54w.png" alt="The radar. Ads from the housing platforms go into the radar, which runs every 15 minutes. Then they go through a funnel, my filters. A few ads come out with a star, marked ideal." width="800" height="926"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The radar collected the new ads every 15 minutes and marked the ideal apartments.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The instant sender
&lt;/h2&gt;

&lt;p&gt;Landlords answer the first people who write, so the first message had to go out fast. During the day, when the radar found a new ideal apartment, it started an AI agent by itself: the instant sender.&lt;/p&gt;

&lt;p&gt;The instant sender read the ad and changed a template message to fit it. Then it sent the message through the platform's contact form. All of this usually took a few minutes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvdqkhv5831wim8vbjgxz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvdqkhv5831wim8vbjgxz.png" alt="The instant sender. The radar finds a new ideal apartment. This starts the instant sender, an AI agent. It writes the first message from a template and sends it to the landlord." width="800" height="1000"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The radar found a new ideal apartment and started the instant sender, which wrote to the landlord.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The scan agent and its workers
&lt;/h2&gt;

&lt;p&gt;After the first message, the landlords answered at any hour and in many places: on the platform, by email, on WhatsApp, on Facebook Messenger. Reading and answering all of it was the job of a second group of agents.&lt;/p&gt;

&lt;p&gt;Every hour, a timer started the scan agent, which split the work among several AI agents, the workers. Each worker got a few platforms or inboxes, so they could all work at the same time.&lt;/p&gt;

&lt;p&gt;The workers read the new replies and answered them. They asked for the facts that the ad left out. They also booked video calls with the landlords and put them in my calendar.&lt;/p&gt;

&lt;p&gt;When I wanted news, I asked the lead agent. It checked what the agents had done and told me what I had to decide, like an offer that seemed to be a scam, or an apartment that cost more than the ad said.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fms44cdzz0tgux4qe93lx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fms44cdzz0tgux4qe93lx.png" alt="Scan agent and workers. I ask the lead agent, and it tells me what needs me. The lead agent checks the work of the scan agent and the workers. A timer starts the scan agent every hour. It starts the workers, which answer the landlords and book video calls." width="800" height="1119"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Every hour the workers talked to the landlords, and the lead agent told me what to decide.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What the agents shared
&lt;/h2&gt;

&lt;p&gt;All the agents worked in my own browser, logged in to my accounts, so their messages went out in my name. Every message they sent or received went into one shared list, the message log, and every call went into my calendar. An agent that had just started could then see what the others had already written.&lt;/p&gt;

&lt;p&gt;Before any job, an agent read the instructions, a list of written rules, for example how to write a message. The instructions and the message log were the agents' memory. When an agent learned something new about a platform, a new rule went into the instructions, so the autopilot was self-improving. And when I told the lead agent that an apartment was too far, it added a rule for all the agents.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fipfyf58njch9s7cef1jh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fipfyf58njch9s7cef1jh.png" alt="What the agents shared. The agents are in the middle. Around them are the four things that every agent used: my browser with my accounts, one message log with every message, my calendar with every video call, and the instructions with the written rules." width="800" height="956"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Every agent used the same four things: my browser, one message log, my calendar and the instructions.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What was left for me
&lt;/h2&gt;

&lt;p&gt;I did the video calls and made the decisions. Before a call, I asked the lead agent for a short note with the facts of the apartment and the questions to ask.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzuo1tw8xkjqnff3i0pjp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzuo1tw8xkjqnff3i0pjp.png" alt="The whole autopilot, drawn like the chart of a company. I am on top, and the lead agent is under me. Under the lead agent there are two branches: the radar, which starts the instant sender, and the scan agent, which starts the workers. The landlords are at the bottom. The instant sender and the workers write to them, the lead agent sends them my answers, and I do the video calls." width="800" height="1096"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The whole workflow as a company chart: me on top, the lead agent under me, and the other parts under it.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  From hundreds of messages to one apartment
&lt;/h2&gt;

&lt;p&gt;The agents wrote to hundreds of landlords, and almost half of them answered. Only a few of these conversations became a video call. Some landlords asked for things I did not have, and some found another tenant first. Other apartments were missing something that I found out only later.&lt;/p&gt;

&lt;p&gt;If I wanted the apartment after a call, I usually told the lead agent. It sent my answer and my documents to the landlord, and it checked the contract before I signed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same workflow is selling my furniture
&lt;/h2&gt;

&lt;p&gt;Before I move, I have to sell the furniture in my Lisbon apartment. I started a second lead agent for that.&lt;/p&gt;

&lt;p&gt;A small app shows a gallery of the furniture: one card for every piece, with my price and the lowest price I accept. The agents and I use it for the ads and the prices. The agents have written the ads and posted them on selling sites and in local online groups.&lt;/p&gt;

&lt;p&gt;For the usual questions, like "Is it still available?", the workers use the rules. A new question goes to the lead agent, which brings it to me with a suggested reply. My answer becomes a new rule, so the next buyer who asks gets a reply without me.&lt;/p&gt;

&lt;p&gt;Some decisions always stay with me, like an offer under my lowest price, or a message that looks like a scam. When the price is agreed, the lead agent books the pickup in my calendar.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn4opoqmifjlmaiv18yjh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn4opoqmifjlmaiv18yjh.png" alt="Selling my furniture. The lead agent starts the workers, which talk to the buyers. A new question goes from the workers up to the lead agent, which brings it to me. My answer goes back to the lead agent, which turns it into a new rule." width="800" height="993"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;In the furniture sale, my answer to a new question becomes a rule for the next buyer.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  An agentic workflow like this works for anything, such as GTM
&lt;/h2&gt;

&lt;p&gt;A lot of other work looks like the apartment search. An agentic workflow, where AI agents do most of the work, fits it too. One example is sales, or go-to-market (GTM): a company finds new customers and starts to talk to them.&lt;/p&gt;

&lt;p&gt;There, the radar would look for companies that fit, for example ones that just posted a job ad for work that your product can do. The agents would write to them first, answer them and book the calls. The salesperson would do my part: take the calls and make the decisions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhiiy2p8zt4xxpo0zp1im.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhiiy2p8zt4xxpo0zp1im.png" alt="The workflow for any work, drawn like the chart of a company. You are on top, and you take the calls. Your decisions go to a lead agent under you, which checks the others. Under it there are apps and agents of your choice, which find the right people and write to them first, and workers, which answer and book the calls. The people you want to reach are at the bottom." width="800" height="1000"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The same chart for any work: you on top, a lead agent under you, then workers and other apps and agents of your choice.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>automation</category>
      <category>career</category>
    </item>
    <item>
      <title>We built a ChatGPT-style chat with no AI framework</title>
      <dc:creator>Ray Thurn Void</dc:creator>
      <pubDate>Mon, 09 Nov 2026 01:29:49 +0000</pubDate>
      <link>https://dev.to/raythurnevoid/we-built-a-chatgpt-style-chat-with-no-ai-framework-21kf</link>
      <guid>https://dev.to/raythurnevoid/we-built-a-chatgpt-style-chat-with-no-ai-framework-21kf</guid>
      <description>&lt;p&gt;&lt;em&gt;We built the AI chat in Sybill by hand, with ChatGPT as our reference.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In January 2025 we started building Ask Sybill, the AI chat inside Sybill. Sybill makes AI tools for sales teams, and we wanted the chat to feel like ChatGPT, with the answer appearing word by word.&lt;/p&gt;

&lt;p&gt;AI chat frameworks were still young, and we did not use one. Instead, we opened ChatGPT in the browser and watched in the Network tab how an answer arrives: a stream of small events (Server-Sent Events), one after another. Then we built our own version of that stream.&lt;/p&gt;

&lt;p&gt;Today Ask Sybill keeps the answer when the connection drops, and you can run many chats at the same time. Getting there took much longer than we planned, and for a long time it felt like there was always one more thing to fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finally, a real use for async generators
&lt;/h2&gt;

&lt;p&gt;At the end of January I wrote the code that reads those events while they arrive. For this I used an async generator: a function that hands out values one at a time and waits in between for more data. Most of us almost never write one. But a stream of events is exactly what it was made for, and it was fun to finally use one in real code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpczr7gtxhyaotqgyhwh3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpczr7gtxhyaotqgyhwh3.png" alt="Code sketch. An async generator, readEvents, reads the response text, passes it to a parser, and hands out each event. On an error it hands out { stopped: true } if the user pressed Stop, else { error }. A for await loop below handles each result." width="799" height="413"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;An async generator reads the stream. The chat just loops over what it hands out.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You may notice that the reader never throws. Early on, I decided that our code would return errors as values, like any other result. So a network error, a message from the backend that we cannot read, and the user pressing Stop all come out of the same loop. The chat can then handle each one in its own way. A stop, for example, should never look like an error.&lt;/p&gt;

&lt;h2&gt;
  
  
  Every feature became a new event
&lt;/h2&gt;

&lt;p&gt;Each event the reader hands out has a type, and almost every type exists because of a feature in the chat. &lt;code&gt;chat_title&lt;/code&gt; gives a new chat its name. &lt;code&gt;task_progress&lt;/code&gt; shows the steps while the AI is working. &lt;code&gt;mcp_tool_approval&lt;/code&gt; asks you before the AI uses an outside tool. And &lt;code&gt;delta&lt;/code&gt; carries the words of the answer, a few at a time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzkinzxui0n4cuyy8ntci.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzkinzxui0n4cuyy8ntci.png" alt="Diagram. Left: the events of one answer in order: ack, chat_title, execution_plan, task_progress twice, delta three times, sources, done. Lines link each event to the part of the Ask Sybill screen it fills: title, steps, answer text, sources. The chat text is made up." width="800" height="533"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;One answer in Ask Sybill, as a stream of events.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The number of events grew with the product. Each new event meant work on every side: the backend had to send it, the shared types had to describe it, and the frontend had to read it and show it. With a framework, the common events come ready, and you only add the ones that are really yours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Streaming text and keeping the page fast
&lt;/h2&gt;

&lt;p&gt;Everyone expects an AI chat to write its answer word by word, and we wanted that from the start. But it took a while. Without a framework, we had to turn the stream of each AI model into our own events, and the page had to stay fast while new words arrived many times a second. There was always something more urgent, so we kept putting streaming off. Until then, the full answer appeared at the end.&lt;/p&gt;

&lt;p&gt;When we finally turned it on, the text did not feel right. Words do not arrive at a steady speed. Sometimes many arrive at once, then nothing for a moment. Each new piece of text made React draw the chat again (a re-render). Those re-renders were expensive, so the page slowed down, and the text came in jumps. We tried throttling the updates, so React rendered less often, but the text still came in jumps. We tried delaying the stream and typing it out at a steady speed, but then the AI was already done while the page was still typing. What worked was a small buffer between the stream and the screen. It collects the new text and shows it on every frame, about 60 times a second on most screens. That is often enough to look smooth, and the text keeps up with the AI.&lt;/p&gt;

&lt;p&gt;There was one more slow part, in how we stored a chat. All the state of a chat lived in one object, so each new word created a new copy of it, and every part of the page that used the chat re-rendered. I moved the streaming text into its own small slice of the store, so now only the message that is being written updates. In a test chat with 15 turns, React spent about 3.3 seconds rendering while one answer streamed in. After the change, it spent about 0.35 seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  When chats get huge
&lt;/h2&gt;

&lt;p&gt;Streaming was not our only speed problem. Chats grow, and some get huge. Some people had more than 100 turns in one chat. Opening one froze the page, and the newest messages took about 24 seconds to appear. React drew every message in one go and could not stop in the middle, so until it was done, you only saw the empty start screen.&lt;/p&gt;

&lt;p&gt;React has a tool called &lt;code&gt;startTransition&lt;/code&gt;. It marks an update as not urgent, so React can stop that work when something more important comes in, like a key press, and start it again after. The React docs show it mostly for async work, like sending a form, and for a slow screen, like switching tabs. Drawing a long list in pieces is not one of their examples, but I used it for that, and it fits well. The newest 10 messages appear at once. Then the older ones are added 10 at a time, each step inside &lt;code&gt;startTransition&lt;/code&gt;, until the whole chat is there.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwcjj0j0ogqrnbzbchxvv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwcjj0j0ogqrnbzbchxvv.png" alt="Code sketch. A state value keeps the index of the first message to draw, starting with the newest 10. An effect moves it back by 10 inside startTransition until it reaches 0, and the chat draws the messages from that index on." width="800" height="307"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The newest 10 messages first, then 10 older ones at a time, when React is free.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Now the newest messages appear in less than a second instead of about 24 seconds, and the older ones keep loading while the page stays usable.&lt;/p&gt;

&lt;p&gt;Every message still ends up on the page, though. Nothing is removed later. For the long chats we tested, that worked well. If chats grow much larger, you will also need virtualization: the page draws only the messages near the screen, and adds and removes the others as you scroll.&lt;/p&gt;

&lt;h2&gt;
  
  
  Native popovers to the rescue
&lt;/h2&gt;

&lt;p&gt;Huge chats hid one more cost, in a place nobody looks: the tooltips. Each message has a row of buttons, like copy, feedback, and retry, and each button has a tooltip. A long chat has hundreds of them. With many component libraries, every tooltip lives in React, even while it is hidden. So React spends time on all of them, even though you see at most one. When you hover a button, showing its tooltip goes through React too, and JavaScript places it by measuring the button and the page. The library we used worked like that. In a test chat with 124 turns, hovering the buttons 30 times blocked the page for about 11.5 seconds in total, almost 0.4 seconds per hover.&lt;/p&gt;

&lt;p&gt;Browsers can now do this job themselves. The Popover API puts the tooltip on top of the page, and CSS anchor positioning places it next to its button. I rewrote our tooltip to use these two and moved its hover logic to plain JavaScript, outside React. So the hidden tooltips stay cheap, and showing one makes React draw only that tooltip. A JavaScript library still places the tooltip in a few cases, like when it does not fit on the screen or the browser is too old.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F400bngeo7n6l4dvl2dy8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F400bngeo7n6l4dvl2dy8.png" alt="Code sketch. On hover, JavaScript gives the button an anchor name and shows the tooltip with showPopover, which puts it on top of the page. CSS uses position-anchor to place the tooltip under that button, centered on it." width="800" height="347"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The browser shows the tooltip on top of the page and places it next to its button.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In the same test, the 30 hovers now block the page for about 2.5 seconds instead of 11.5.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping the answer when the connection drops
&lt;/h2&gt;

&lt;p&gt;Sometimes an answer got lost halfway: the connection dropped, or someone reloaded the page while the AI was still writing. We wanted the answer to survive both.&lt;/p&gt;

&lt;p&gt;So the backend saves every event of an answer in Redis Streams, a Redis feature for ordered messages. Each event gets an id. The browser remembers the id of the last event it received. When the connection comes back, it asks for everything after that id, and the answer goes on from where it stopped. If you open a chat while its answer is still being written, the page joins that answer in the same way.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1z6ve3aok1yc6w8wss61.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1z6ve3aok1yc6w8wss61.png" alt="Diagram. Events 1 to 4 arrive, then the connection is lost. The browser reconnects and says its last event was 4. Redis sends events 5 to 8, shown in green." width="800" height="267"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;When the connection drops, the browser asks for the rest.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Resume alone was not enough, though. At first, the connection to the browser kept the answer alive: when it closed, the answer from the AI model stopped too. That happened when you closed the page, but also when the Wi-Fi dropped. Now the backend reads the answer from the model on its own. It sends each event to the open connection and also saves it in Redis. If the connection closes, the backend keeps going and keeps saving, and the browser can come back for the rest.&lt;/p&gt;

&lt;p&gt;One thing surprised us. Sometimes the AI thinks or works for a long time without sending anything. This is a known weak spot of Server-Sent Events: a proxy, a server between the browser and our backend, may close a connection that stays quiet for too long. So while the backend has nothing else to say, it sends a heartbeat every 15 seconds, and the connection stays open.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would choose today
&lt;/h2&gt;

&lt;p&gt;All of this works well. But if I built a chat today, I would not write the stream myself. AI chat frameworks like Vercel's AI SDK are common now, and they already solve much of what we built by hand, like streaming text, stop, and tool approval.&lt;/p&gt;

&lt;p&gt;Looking back, I think we should have moved to a framework once we understood the problem well. That is easy to say now. At the time, the chat was already live, it had features of its own, and moving would have paused product work for a while. Building it ourselves also taught us how every part of a chat works.&lt;/p&gt;

&lt;p&gt;We started by opening ChatGPT and watching its answers arrive. If you start today, open a framework's docs first. Most of what took us so long is already in there.&lt;/p&gt;

</description>
      <category>react</category>
      <category>ai</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>I worked like the company was mine. Here is what two and a half years at a Silicon Valley startup taught me.</title>
      <dc:creator>Ray Thurn Void</dc:creator>
      <pubDate>Sun, 18 Oct 2026 11:46:10 +0000</pubDate>
      <link>https://dev.to/raythurnevoid/i-worked-like-the-company-was-mine-here-is-what-two-and-a-half-years-at-a-silicon-valley-startup-3088</link>
      <guid>https://dev.to/raythurnevoid/i-worked-like-the-company-was-mine-here-is-what-two-and-a-half-years-at-a-silicon-valley-startup-3088</guid>
      <description>&lt;p&gt;&lt;em&gt;I was a frontend engineer at Sybill from May 2024 to September 2026.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Founders do not wait for a ticket. For two and a half years, neither did I.&lt;/p&gt;

&lt;p&gt;In May 2024 I joined Sybill, a Silicon Valley startup that builds AI for sales teams. I was hired as a frontend engineer. Over the next two and a half years I built a large part of Ask Sybill, our AI chat, from its first version to the day I left. A strong backend team built the AI brain behind it. My job was everything around that brain, so that people enjoyed using it every day.&lt;/p&gt;

&lt;p&gt;If something hurt our users or the company, I treated it as my problem, even when nobody had put it on my list. This is the story of what that looked like, day by day.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdckuxsf889nevk5aha0w.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdckuxsf889nevk5aha0w.jpg" alt="My GitHub stats from my last two years at Sybill." width="800" height="726"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;My GitHub stats from my last two years at Sybill.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  It started on day one
&lt;/h2&gt;

&lt;p&gt;On my first day, the browser's developer tools were slow on our app. I wanted to know why. The cause was in our CSS: the same block of style values was copied into the page again and again, once for every file that used it. I removed the copies, the app shipped less CSS, and the tools were fast again. Nobody had asked me to look.&lt;/p&gt;

&lt;p&gt;In my first week I moved our build to Vite, a much faster build tool, and a few days later the tests followed. I pushed the team toward TypeScript, which catches mistakes before the code runs, and I started refactoring right away. I did it because I cared about the software we all worked in every day. If the floor creaks, you fix it today.&lt;/p&gt;

&lt;h2&gt;
  
  
  I gave every screen the same building blocks
&lt;/h2&gt;

&lt;p&gt;Six months in, I noticed that every screen in our app had built its own buttons, modals and menus. Some existed twice. Most of them I would not have approved in a code review. So every new feature started by building the same basic pieces again.&lt;/p&gt;

&lt;p&gt;AI could not help much with this yet. When I joined, we used GitHub Copilot in VS Code, and it mostly finished the line you were typing. Then we moved to Cursor with Sonnet 3.5, and its Composer, a chat window that could edit code for you, felt like a huge jump. It could write a function. It could not write good UI that matched the rest of our app.&lt;/p&gt;

&lt;p&gt;The old way to go faster was to reuse code. In a product like ours, most screens have to be made for their own job, so you cannot share much of the high-level code. But the small pieces can be shared. A button, a modal and a menu should work the same everywhere.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn2zydpc8i7fwu8bhwe67.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn2zydpc8i7fwu8bhwe67.png" alt="A Sybill app screen. Buttons, menus and chips like these are the small pieces a shared library gives every screen." width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;A Sybill app screen. Buttons, menus and chips like these are the small pieces a shared library gives every screen.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I had wanted a component library for months, so when our CTO mentioned the idea, I was ready. In December 2024 I created syb-ui. I built it with the compound components pattern before I even knew the pattern had a name. It just felt like the natural way to do it. It was also not my first time. I had built component libraries twice before, both in Svelte: once as an open-source side project I never finished, and once at work at Altice.&lt;/p&gt;

&lt;p&gt;It paid off. The UI became consistent, we had fewer UI bugs, and new screens were faster to build because we could take an existing screen as a reference. For months I was the only one working on it. Then other engineers started adding to it, and it became a team effort. To me, that was the real sign it worked.&lt;/p&gt;

&lt;h2&gt;
  
  
  We built an AI chat before the tools for it existed
&lt;/h2&gt;

&lt;p&gt;In January 2025 we started Ask Sybill. Today there are popular frameworks for building an AI chat. Back then they were young and few teams used them, so we built it all ourselves: answers that stream in word by word, a stop button, retries, and a way to manage the huge amount of state an AI chat needs to work.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fklrv6zbscwer8ztbwv75.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fklrv6zbscwer8ztbwv75.png" alt="Sybill's AI agent answering a user query." width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Sybill's AI agent answering a user query.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For months, almost the whole chat lived in one file. By September 2025 it was about 4,800 lines long. Most people would tell you to split a file like that early. I chose not to. One file kept the total amount of code small, and there were no layers to dig through to understand one click.&lt;/p&gt;

&lt;p&gt;It also helped in a way I did not plan. For most of 2025, AI tools did not get much better. Anthropic's models were the best we had. The most expensive models, like Opus and OpenAI's o1 and o3, cost a lot and were not worth it for our daily work. With tools that weak, one big file was a gift: the AI could see everything important in one place. A big file is fine. A big file nobody understands is not.&lt;/p&gt;

&lt;p&gt;The right moment to split came when we put Ask Sybill in a sidebar too. The core of the chat moved into one shared piece that both screens used. Each screen kept its own wiring, the code that connects that core to its buttons and lists. About 70% of the two screens behaved the same, but the other 30% had to be different, because the screens did different jobs. With separate wiring, neither screen could break the other. I only connect two parts of the code when the product connects them.&lt;/p&gt;

&lt;p&gt;From there, the chat grew up with the rest of the market. At the start, every AI chat was simple: you ask, it answers. Then they learned to run many conversations at once, keep working in the background and use outside tools. Ask Sybill followed the same path. I started with the simplest design that worked and made it more advanced only when the product needed it. The models grew up too. GPT 5 was the first GPT model I really liked, and later Opus 4.5 was another big step.&lt;/p&gt;

&lt;p&gt;To keep up, I improved the code all the time. Every time I touched a part of the app, I tried to leave it faster and simpler than I found it. I was known for two things: making the product better, and breaking some of it on the way. During one big refactor of the AI chat, I introduced bugs. I knew it could happen. Refactoring is risky and nobody thanks you for it: when it works, nobody notices, and when it breaks, everybody does. I did it anyway, because I knew what I was doing and better software is worth the risk.&lt;/p&gt;

&lt;h2&gt;
  
  
  I never let slow or broken things slide
&lt;/h2&gt;

&lt;p&gt;I used our product every day and watched it closely. I watched session recordings of real users and checked our metrics. This was never perfect. We always had more work than time, so these fixes came in small steps, whenever I had a chance. But when something was slow or broken, I did not wait for it to reach the roadmap.&lt;/p&gt;

&lt;p&gt;Long chats are a good example. Very few users had them, but for those few, opening a long chat could freeze the app for about 20 seconds. They just stared at the greeting screen, wondering if anything was happening. The code made it clear that this would only get worse as people used the chat more, and I do not like leaving edge cases like that open.&lt;/p&gt;

&lt;p&gt;The usual answer is virtualization: draw only the messages you can see on the screen. Virtualization is a fine tool, but it brings its own problems, and I like to understand the root cause first, in code and in life. So I went through the code one function at a time and made each one faster, to raise our baseline. My rule is simple: make the code truly fast first, and add virtualization only when you reach a size where nothing else works.&lt;/p&gt;

&lt;p&gt;Then I brainstormed with GPT 6 Astra, and it came up with a clever use of a React feature called &lt;code&gt;startTransition&lt;/code&gt;. React uses it to mark an update as not urgent, so the screen stays responsive, for example while you switch tabs. We used it to build a long chat in small pieces: the newest messages show up at once, and the older ones are added quietly in the background. That one idea did about 80% of the job. The freeze went from about 20 seconds to about 1.4 seconds.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff5dydd61cwoi6dmo084j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff5dydd61cwoi6dmo084j.png" alt="Opening a very long chat: newest messages first, older ones in the background." width="800" height="347"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Opening a very long chat: newest messages first, older ones in the background.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  I thought about the product, not only the code
&lt;/h2&gt;

&lt;p&gt;Fixing what is slow is engineering. Deciding what to build is product. Any product that wants to be good needs both.&lt;/p&gt;

&lt;p&gt;Users kept telling us that cutting video clips from their recorded meetings was painful. It took too many steps, it was not clear what to click, and sometimes people lost their work. It was not on the roadmap, and nobody asked me to fix it. So I watched the recordings, read the feedback and designed a new page myself. For ideas, I looked at classic video editors like Sony Vegas, with a real timeline where you can see and shape every clip. Our designer polished the look, and I shipped it. Customers praised it to me directly. That story gets its own article.&lt;/p&gt;

&lt;p&gt;We had also wanted, for a long time, to let Ask Sybill build small apps, like dashboards, that run right in the user's browser. That is powerful, but risky: the AI writes code, and that code runs on the user's screen. Our first version was very naive. I started a new project for it, and with a teammate I studied how Claude runs the code it writes. I already had some ideas of my own. In the end we built a sandbox that keeps the code safe and still lets the AI do useful work. For the dashboards we picked shadcn/ui instead of our own library, because Claude already writes it well without any guidance.&lt;/p&gt;

&lt;h2&gt;
  
  
  I worked on the company, not only in it
&lt;/h2&gt;

&lt;p&gt;We were always running. There was always more to build than time to build it, so I guarded time like money. Every minute lost to bureaucracy or a meeting with no clear point was a minute we paid back at night or on the weekend.&lt;/p&gt;

&lt;p&gt;That is why I pushed to keep our processes lean, and sometimes to have almost no process at all. The biggest waste I saw was the distance from our customers. There were too many steps between a customer and an engineer. Feedback got lost on the way, and people forgot how customers really felt. We were fast compared to many companies, but we could be faster. I wanted a key customer to ask for something and get it in one or two days.&lt;/p&gt;

&lt;p&gt;So I pushed engineers to talk with customers directly in Slack, to ask the sales team what they were hearing, and to look at the analytics themselves. When one customer asked to sort their data in a new way, we shipped it in a day. That push was mostly mine, and I was still at it when I left.&lt;/p&gt;

&lt;p&gt;Saving money was part of the same work. Our end-to-end tests had been broken for six months and still cost about $200 a month to run. We paid about $1,000 a month to store large files in our build pipeline that we did not need. And we sent so much useless noise to Sentry, our error tracking tool, that it cost about another $1,000 a month. Together that is more than $26,000 a year spent on nothing. None of it was my job. If the company were mine, I would want someone to fix it, so I fixed it.&lt;/p&gt;

&lt;h2&gt;
  
  
  I pushed AI everywhere (when it made sense)
&lt;/h2&gt;

&lt;p&gt;I never treated AI like a religion. Online, the hype was loud long before the tools were good, and I did not let it move me. I watched the tools instead. Each time they got better, I noticed early and put them to work.&lt;/p&gt;

&lt;p&gt;In the beginning, AI was only a small help. Still, in September 2024, a few months after I joined, I wrote our first rules file for AI tools: a short guide that tells the AI how we write code. Later I added skills, short guides for specific tasks. With them, anyone could quickly understand a complex component, or take a piece of existing code and turn it into new UI much faster.&lt;/p&gt;

&lt;p&gt;Over time, more of the work became agentic, which means AI agents doing whole tasks on their own. We used them for debugging, performance profiling and analytics, and even to click through the app in a real browser to test it.&lt;/p&gt;

&lt;p&gt;I pushed AI into places few teams had tried yet. I used it for handoffs and documentation, and I even added an AI step to our hiring process. I said it all the time: documentation is not for people, it is for AI. People rarely read docs. AI reads every word, and then it explains the code to people when they ask.&lt;/p&gt;

&lt;p&gt;Then Fable 5 arrived, and my output roughly doubled. For the first time I was not buried in frontend work and tech debt, so I finally had time for the backend too. When a feature needed a backend change, I made it myself instead of waiting. As a team, we moved faster than the roadmap, which left room for the work nobody had planned.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently
&lt;/h2&gt;

&lt;p&gt;The first thing is people. There were moments of stress and frustration that could have been fun, with more frank and friendly talk. Today I try to let people be the main character of their own work. I cheer their choices even when I do not agree, and I put being welcoming before being right. It worked with some people and not with others. With some teammates it grew into a strong bond that made both of us happier and more productive, and that is one of the things I am proudest of. What I learned is that it has to start on day one.&lt;/p&gt;

&lt;p&gt;The second is tests. I would not have spent time on end-to-end tests, the tests that click through the whole app like a real user. For a long time they did not pay off. They took a long time to write and run, and they kept breaking while the product changed every week. Nobody wanted to take time from features to fix them, so ours sat broken. Fable 5 changed that. It writes a decent test from a short description, so a new test costs almost nothing, and tests that were never worth it suddenly are. Another team brought them back.&lt;/p&gt;

&lt;p&gt;The third is cleanup. In August 2026 we spent a week as a team deleting dead code. With Fable 5 we removed a lot of unused code. We tested everything ourselves, and no production issue showed up for a long time after. Still, I think cleanup belongs in every change. A special cleanup week teaches people to wait for the next one.&lt;/p&gt;

&lt;p&gt;I left Sybill in September 2026. The lesson I take with me is simple:&lt;/p&gt;

&lt;p&gt;Act like the company is yours, even when your title says otherwise.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faiz1p6wlvb1d0nkof1do.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faiz1p6wlvb1d0nkof1do.jpg" alt="This is me." width="800" height="1062"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;This is me.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>frontend</category>
      <category>react</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
