Professional Dev With Open-Weight Models and the Vision Loop That Catches Real Bugs

I’ve been having a lot of conversations lately with folks who are interested in doing professional development with open-weight models. We maintain our platform GuideAnts with open-weight models, but we built most of it with the frontier models of yesteryear, using tools like Cursor, Claude Code, Codex and lots of others. We take GuideAnts very seriously, and we and our contributors and users use it to build, test and operate production workloads.

One reason I started building it over a year and a half ago was to fully explore AI-assisted software development. As of today it’s been a bit over three months since I pushed changes to GuideAnts using anything other than GuideAnts and an open-weight model to do the work. I kept doing it because what started as an experiment with Qwen 3.8 27B was completely satisfactory.

Two things up front. I am not here to tell you that these models are as good generically as the greatest frontier models, because they aren’t, or to say this is what you should use. But I am here to say that if you have a good process you can get excellent results. You don’t have to make any compromises. You can’t necessarily get away with some of the things an expensive frontier model allows, or expect it to know about esoteric topics.

The process is plan, review, implement, test three ways, analyze the code with help from automated quality checks along the way.

Preparing the ground

Before planning came some environment setup and ways of working. Preparing the ground is important. The setup for this project might not fit your project, because why would it. I’ll show you the logical setup without all the GuideAnts details, because broadly speaking the ideas translate to a lot of projects, and most good AI tools have a set of features that will let you do something similar.

The logical setup: the guide, its skills, the sandbox, the host, and the audit trail.

At the top is a defined AI assistant, a guide, which has generic instructions about its role, how to use skills, how to interact with the developer, and how to present media. It’s a basic system prompt for a guide with specific skills. This version of it also has information about the environment I give it, which includes a secure sandbox with the repo code mounted as a folder, so it can search and edit but not install stuff or access Git or the larger development environment.

It also has a skill and the information it needs to access the host environment with a named user account that has specific permissions, and another that can use but not administer the database that has all of the conversations, usage info and more.

I can make and manage all of my content and specs about my work and keep a precise history of everything without polluting the repo or giving the assistant more access for a task, or information about a task, than it should have or needs. I find that keeping this stuff out of the repo and managing the context is really important, because I don’t want the assistant to see records of decisions made in previous sessions. All of them, in my experience, will assume that the decision applies to whatever my new work is, and surprise me in unpleasant ways.

The bug

For this job I started the same way I always do. I created a new branch and did a series of conversations to fully define the problem, the requirements for fixing it, and an inventory of the client API and data model changes and the unit and integration tests.

In a certain edge case the UI hangs on the settings page and in the conversation controls. It’s hard to test because it needs a couple of machines, where one has the main system and the other some optional services. It was low priority because eventually the UI responds. It was just aggravating.

The hang: embedding endpoint Unreachable, probe timed out after 3s.

I collected information including telemetry from the container logs, and I started a conversation to make the detailed plan. That conversation started with me describing the problem and having the assistant pull information into the context by looking at the repo and logs.

The plan

The first step is to clearly explain the reason for the plan. Explain the problem, and from that: these are the requirements, and this is how we’re going to fix it, and these files we’re going to touch, and this is how we’re going to test it and verify that everything works.

This began the longest part of the overall process in terms of my involvement, because I spent lots of time refining this plan. I’m not going to go through what the details were because they’re not interesting, right - just details specific to a complicated scenario. But I spent hours and made three large revisions before starting the execution. I used about 28 million input tokens and I produced about 500,000 output tokens, over the course of about an entire workday.

The usage records give the exact figures behind those numbers:

Round tripsInput tokensCachedOutput tokens
Requirements and the first two revisions812,385,9819,540,321180,200
The revision that fixed the plan96,823,9445,414,736193,961
The revision a failed test forced79,313,0108,892,261119,378
Total2428,522,93523,847,318 (84%)493,539

Now, this wasn’t the only thing I was doing, and a lot of that was time spent on inference. One way a more expensive model might be better is that it might take less time and use fewer tokens by making fewer mistakes. But either way, this is the important part of the process, and I don’t use a different workflow even if the model is demonstrably better.

At the end of it I had requirements, and I had classified the surface area of everything: all of my architecture decisions, what I was affecting in the architecture itself, a list of every single file that was going to be changed, and of course how it should all be verified and tested.

My expectation is that when I am done executing this plan and I’m ready to do the pull request, because the plan had the inventory in it, I can triangulate the execution back to the plan and see what happened, including the tests and results, which are also in the plan. The key thing is I’m here the whole time. Nothing in the final PR should be a surprise.

That’s a lot of evidence that the quality I got out of it was good, but there’s also a lot of static analysis that happens as well. These defects are actually delivered and fixed in GuideAnts 1.3, and if you look at the repo you can see all the checks that we do. There’s code quality analysis for C#, Java and Python and dynamic actions, and there’s a suite of thousands of server tests and thousands of client tests. All of these checks combined are the process that verifies that what the open-weight model did was correct.

The first step is the plan and the last step is to triangulate and verify that everything traces all the way through, from the bug that we described through all the tests and all the planning. We can check the file list matched and the tests all pass, and we did that here using nothing but open-weight models.

Execution

The execution of the plan took a very long time but was mostly unattended by me. I started it and corrected the first conversation early on to correct the way it was doing builds: I told it to always build the .NET solution fully instead of individual projects. And it continued and ran overnight for the first pass.

This took about eight hours over one thousand steps and produced a few hundred thousand output tokens.

Plan executionDefect debuggingTotal
Turns / messages3 / 1,0396 / 2099 / 1,248
Active time (no idle between turns)7.9 h1.5 h9.4 h
Wall span (including the overnight run)13.8 h1.8 h15.6 h
Output tokens313 k119 k432 k
Tool invocations517129646

The test the plan called for found a major problem. The process worked, and so we did a second session to handle that. In the end 52 client, server and test source code files were created or edited, then built and test-verified. At this point everything builds, there are no build warnings, and thousands of unit and integration tests all pass.

The vision loop

To me the most interesting thing is the UI tests we do with Playwright, where the AI tests scenarios through the real UI. It’s got a vision loop that uses the LLM’s vision modality to identify visual problems and an entire class of bugs the unit and integration tests missed.

The UI testing, an AI driving Playwright with a vision loop, sits on the prepared ground I told you about before. At the top is the orchestrator, a skill using a guide imaginatively named UI Test Guide.

The UI Test Guide component model.

Its first skill is named UI testing, and it tells it how to define a test for its first crew member, an assistant named UI Tester. UI Tester actually does the test and captures a record with screenshots.

The second crew member is a general-purpose assistant we reuse in a lot of guides. It has no system prompt or tools, but it can receive image attachments as the target of the OpenAI SDK-compatible APIs. The UI Test Guide sends the image and its questions to the assistant and it returns its judgment, exactly like it would if you were to, for example, paste an image into ChatGPT and ask a question.

The second skill, named host-ssh, along with specific shell permissions, gives the guide the ability to start and stop Docker containers on a second device to create the situation that causes the hang condition.

The two skills: ui-testing and host-ssh.

Keeping the tester from cheating

People I shared this with were interested in how it’s set up to keep the tester from cheating to complete tasks, and from doing things a person with a mouse and keyboard can’t do, like hitting APIs directly.

The division of labor between the guide and crew is important because it avoids confusion by keeping missions separated. The UI Tester’s single mission is: test according to instructions. It has no reason to do anything else. In any way, the crucial thing is that it can’t cheat, because the only tools it has are narrow and specific to testing.

The plan the guide receives, with its steady-state table.

The UI Test Guide has the larger goal but doesn’t have a browser. It must use the UI Tester. It also has no direct way to see the image and must use the Wire Target, and the Wire Target has no tools and can only reply to input.

Canonical Claude skills typically work through a shell. The LLM writes code that runs, and that could possibly do anything. Skills are great if they have a lot of possible downsides, and there are other options for tool calling. GuideAnts supports a bunch of different ways to give the LLM brain some hands to do work.

The UI Tester's twenty named tools.

UI Tester’s tools come in the form of a sandbox module that gives it twenty named tools to do things like navigate, scroll, click and snapshot the screen.

Tool source type: Sandbox Module.

These tools execute in the sandbox just like run bash and run python do, but here those tools don’t exist, so there is no mechanism to run code. It can use its set of twenty named tools to fill one role and do one kind of task, but again, it can’t write arbitrary code to cheat.

Global tools left off: no Run Bash, no Run Python.

From evidence to a verdict

The UI Test Guide receives a plan as input, one of the things to come from the planning process. It describes all the tests and the evidence to collect. For hours the guide executes the plan using the UI Tester and the Wire Target, and it collects all the screenshots to make a report.

A screenshot going to the Wire Target with the checks.

Every piece of evidence goes to the Wire Target along with the quality checks the test requires, and the Wire Target produces a verdict.

The verdict: four control checks, all PASS.

It seems small, but I think my favorite bit of this is the secure shell skill, which lets the guide start and stop the Docker container on the secondary device at the appropriate times.

The report the run wrote, with the screenshot inlined.

What I wouldn’t oversell

I’d like to say that I always diligently follow the process and that’s why these tests all passed. But if I’m being honest, I was looking for some kind of case study, so it’s totally possible that my plan was a little tighter than normal. But all of this was done with open-weight models on private hardware.

I’m here to testify that you can get great quality if you bring a professional process and experience to AI-assisted software development.

The planning is now the critical step, because the file inventories and that level of detail make the “air traffic control”, so to speak, possible. It makes it possible to scale up the process generally, so we can subdivide the work and manage a product roadmap with intelligence instead of vibes.

What’s next

In upcoming work I’m going to go back to sandboxes and skills, and use the ones here as examples of awesome skills, explain risks, and show you how to deal with them as you go from a prototype to a safe and secure production footing.

Resources