<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[The full guide to how the agent works in BAS]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1791887717015-thumbnail-agent-ai.png" alt="Agent and the AI module in BAS" class=" img-fluid img-markdown" /></p>
<p dir="auto">Prefer to watch? It's all in my YouTube video, it's available in English, Hindi and Turkish: the agent interface <a href="https://youtu.be/EY2B457MBJo?t=245" rel="nofollow ugc">from 4:05</a>, and how it works under the hood <a href="https://youtu.be/EY2B457MBJo?t=3376" rel="nofollow ugc">from 56:16</a></p>
<p dir="auto">All the materials for the video are on my Telegram channel, come join: <a href="https://t.me/mustangbas" rel="nofollow ugc">t.me/mustangbas</a></p>
<h3>Plan</h3>
<ol>
<li>The agent interface
<ul>
<li>Two modes: Fast and Thorough</li>
<li>How backups work</li>
<li>How to check what the agent changed</li>
<li>How to send the log to the developers</li>
</ul>
</li>
<li>How the agent works under the hood</li>
<li>Writing code by hand in Code Editor</li>
<li>Where the agent gets its info about modules</li>
<li>What the agent can't do yet</li>
<li>Conclusion</li>
</ol>
<h3>The agent interface</h3>
<p dir="auto">Let's start with the agent interface and how it's built overall. I put every feature it has on one diagram:</p>
<p dir="auto"><img src="/assets/uploads/files/1791886413362-01-02-art01-features-en.png" alt="Every feature of the agent interface: request, chats and log, what the agent did, tools" class=" img-fluid img-markdown" /></p>
<p dir="auto">The start window has Tutorials &amp; example prompts, and there's a really big set of ready-made prompts for all kinds of tasks. There's also a burger menu with a new chat, history, Code Editor and settings</p>
<p dir="auto"><img src="/assets/uploads/files/1791890397415-01-03-01-start-window-crop.png" alt="Agent start window: burger menu, tutorials and the input field" class=" img-fluid img-markdown" /></p>
<h4>Two modes: Fast and Thorough</h4>
<p dir="auto"><img src="/assets/uploads/files/1791886413662-01-04-03-mode-thorough.png" alt="Mode switch in the request field, Thorough is selected" class=" img-fluid img-markdown" /></p>
<ul>
<li>Fast: here the agent doesn't check its work as carefully, doesn't go through the whole project and tries to give a result as quickly as it can. This mode is for quick and easy tasks that don't need any deep analysis</li>
<li>Thorough: here the agent checks the project much more carefully, so the whole thing takes longer. This is the mode for heavy tasks that need more careful work: a project from scratch, some big new feature or big changes to the project. If the task is clearly at least medium difficulty, Thorough is the one to pick. I used it in about 80 or 90% of my requests</li>
</ul>
<h4>How backups work</h4>
<p dir="auto">The agent always makes a backup, even when I just asked it what it can do. In the chat these are separate lines with a file name, and a request with changes basically gets two of them:</p>
<ul>
<li>the backup before the changes: the project is exactly as it was before the request</li>
<li>the backup after the changes: the project already has the agent's edits</li>
</ul>
<p dir="auto"><img src="/assets/uploads/files/1791886413703-01-05-06-backups.png" alt="Two backups around one request: before the changes and after" class=" img-fluid img-markdown" /></p>
<p dir="auto">To roll back, click the backup line. BAS restarts the project, and the browser loses all its state. Then step by step:</p>
<ol>
<li>Click OK</li>
<li>Press Enter in the resources window</li>
<li>Wait for the project to start</li>
</ol>
<p dir="auto">We can move between these two backups in both directions. I asked the agent to add an <code>Agent Backup</code> log at the very start and then checked how it actually works:</p>
<ul>
<li>rolled back to the backup before the changes, and the log simply wasn't in the project anymore</li>
<li>went back to the backup after the changes, and the <code>Agent Backup</code> log was right there again</li>
</ul>
<p dir="auto"><img src="/assets/uploads/files/1791891348990-01-06-08-rollback-arrow-en.png" alt="01-06-08-rollback-arrow-en.png" class=" img-fluid img-markdown" /></p>
<h4>How to check what the agent changed</h4>
<p dir="auto">Under every answer there are three tabs: Changes, Timeline and Statistics</p>
<p dir="auto"><img src="/assets/uploads/files/1791886478263-01-07-10-changes.png" alt="Changes tab: a new log was added to the Main function" class=" img-fluid img-markdown" /></p>
<p dir="auto">Changes shows exactly what the agent changed in the code, line by line: added lines in green, removed ones in red. In my case four lines were added and one was removed, and those lines are the new log in Main</p>
<p dir="auto">Timeline shows every step the agent took, in order:</p>
<ul>
<li>the request and the backup</li>
<li>what the model decided</li>
<li>which functions it looked at</li>
<li>what edits it made</li>
<li>what it answered in the end</li>
</ul>
<p dir="auto">For example, when the agent was fixing Rabby Wallet, there was a huge pile of tests. It really kept working until it fixed the error, and it did finish the project in the end</p>
<p dir="auto"><img src="/assets/uploads/files/1791886796971-01-08-11-timeline.png" alt="Timeline tab: every agent step from the request to the answer" class=" img-fluid img-markdown" /></p>
<p dir="auto">Statistics shows the time, tokens and model, and basically all the info about our requests</p>
<p dir="auto"><img src="/assets/uploads/files/1791886797015-01-09-12-statistics.png" alt="Statistics tab: time, model calls, tokens and the model" class=" img-fluid img-markdown" /></p>
<p dir="auto">And if an answer came out wrong, it can be flagged with the Report a bad generation button, and the report goes to the developers</p>
<h4>How to send the log to the developers</h4>
<p dir="auto">The log button opens the whole dialog, and it can be downloaded as a zip archive and sent to the developers if a bug turns up</p>
<p dir="auto"><img src="/assets/uploads/files/1791886797036-01-10-13-download-log.png" alt="Button that downloads the full dialog log" class=" img-fluid img-markdown" /></p>
<h3>How the agent works under the hood</h3>
<p dir="auto">By the way, if the agent's address <a href="https://ai.bablosoft.com:5500/" rel="nofollow ugc">https://ai.bablosoft.com:5500/</a> is opened in a normal browser, the same agent opens. So inside BAS it's built as a web interface. In a plain browser it just isn't connected to anything, knows nothing about a project and won't really answer a request</p>
<p dir="auto">The agent itself doesn't make decisions. It basically passes the request and the project data to the developers' server:</p>
<ul>
<li>actions</li>
<li>resources</li>
<li>browser state</li>
<li>logs</li>
<li>and even backups</li>
</ul>
<p dir="auto">Then everything goes in a loop until the task is done:</p>
<ol>
<li>The server decides what to do next and basically hands the agent the next step</li>
<li>BAS reads the project on the computer, changes it and runs it</li>
<li>Whatever came out goes back to the server</li>
</ol>
<p dir="auto"><img src="/assets/uploads/files/1791886797166-01-11-05-agent-internals-en.png" alt="How the agent works under the hood: the server decides, BAS reads and changes the project on the computer" class=" img-fluid img-markdown" /></p>
<p dir="auto">So the brain of all this work sits on the developer's server. What exactly happens there, we don't know. Most likely there are some skills and a system that decides what needs to be done and how, and talks to the agent</p>
<p dir="auto">All of this is improved by the developer, and there's no way for us to put our own data or rules into the agent</p>
<p dir="auto">And about money. The agent is completely free, nothing needs to be bought or connected for it. The developer pays for everything: they fully maintain the server, and the server is what solves all the tasks</p>
<h3>Writing code by hand in Code Editor</h3>
<p dir="auto">Code Editor opens from the side menu, and it's a completely separate thing. Code here is written by hand, and the agent doesn't process it at all, it kind of has nothing to do with this window. After Accept code or Ctrl+Enter, BAS turns every function call into a normal project action</p>
<p dir="auto">And this is, in short, not normal JavaScript at all. The developer spelled out in the editor header what's allowed and what isn't:</p>
<p dir="auto"><img src="/assets/uploads/files/1791886797360-01-12-15-editor-rules.png" alt="Code Editor header: what can and can't be written" class=" img-fluid img-markdown" /></p>
<p dir="auto">In short, it doesn't allow:</p>
<ul>
<li>declaring custom functions or arrow functions</li>
<li>string and array methods, BAS functions basically take their place: <code>ParseStringToList</code> instead of <code>.split</code>, <code>AppendElementToList</code> instead of <code>.push</code>, <code>find_substring</code> instead of <code>.indexOf</code></li>
<li>template strings or <code>async/await</code></li>
</ul>
<p dir="auto">The code has to be ES5, and if it's written in ES6, the editor just won't accept it. So if a neural network writes the code, it's worth giving it this header as context. I'd also add a separate note about ES5, because newer methods aren't supported here</p>
<p dir="auto">By the way, the header lists <code>let</code> among the variables. That one is from ES6, so variables are declared with <code>var</code></p>
<p dir="auto">I pasted the developer's example as is, and the same actions showed up in the project: loading Google, a search, clicks on selectors</p>
<p dir="auto">One more thing about comments. If a <code>//</code> comment is written above a line, it becomes the action's label</p>
<h3>Where the agent gets its info about modules</h3>
<p dir="auto">Reference, also Ctrl+J, basically shows all the documentation for BAS modules</p>
<p dir="auto"><img src="/assets/uploads/files/1791886808015-01-13-17-reference.png" alt="Reference button and the list of BAS modules with search" class=" img-fluid img-markdown" /></p>
<p dir="auto">The agent relies on this documentation. It takes the module and action descriptions from here and uses them to build the project</p>
<p dir="auto">And for Code Editor itself, every action here has its parameters, what it returns and examples, and the Insert into editor button pastes the example straight into the editor</p>
<p dir="auto"><img src="/assets/uploads/files/1791886828937-01-14-18-reference-action.png" alt="An action from Date and Time: parameters, result, examples and the insert button" class=" img-fluid img-markdown" /></p>
<p dir="auto">The agent sees custom modules too, by the way. Plus, if the agent wrote code with a module that isn't activated in BAS, BAS will offer to activate it</p>
<h3>What the agent can't do yet</h3>
<p dir="auto"><img src="/assets/uploads/files/1791886829078-01-15-art01-limits-en.png" alt="What the agent can't do yet: attachments, several projects at once, auto-confirm and very big tasks, and how to deal with it" class=" img-fluid img-markdown" /></p>
<p dir="auto">I tested attachments myself: I dragged a picture from my second screen right into the window, and the agent couldn't do anything with it, and after that I also had to close the agent window and open it again. I also asked it straight out about other projects, and it answered that it only sees the one that's currently open in the editor</p>
<h3>Conclusion</h3>
<p dir="auto">Honestly, at first I thought the agent was still raw and would work badly in a lot of places. After the second project I already understood I was very wrong</p>
<p dir="auto">So how it does in actual work:</p>
<ul>
<li>it builds logic pretty well overall, the only small problem is that it sometimes makes more blocks than needed</li>
<li>it writes selectors well and handles dynamic sites fine too</li>
<li>every project I worked with got done in the end. In the 6500-action project we didn't finish some tasks, I just didn't have much time</li>
</ul>
<p dir="auto">It's made really well, and the nicest part is that it's actually free. It costs nothing, we just write a prompt and it does everything</p>
<p dir="auto">The downsides: it takes a while to finish tasks, and the model there isn't the very top one. But what does it matter if it's free and anyone can build their own scripts with it</p>
<p dir="auto">In short, it's a really good tool. I'd tell everyone to move more toward neural networks and stop writing code by hand. It's better to write good prompts and give the agent as much background as possible, so basically it all comes down to writing a good spec</p>
<p dir="auto">Sometimes it might be necessary to look something up and give it a hint on how to write the code. But all of that will get polished over time too</p>
]]></description><link>http://community.bablosoft.com/topic/32581/the-full-guide-to-how-the-agent-works-in-bas</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 23:46:43 GMT</lastBuildDate><atom:link href="http://community.bablosoft.com/topic/32581.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Oct 2026 11:36:48 GMT</pubDate><ttl>60</ttl></channel></rss>