<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Paul Wilke on Medium]]></title>
        <description><![CDATA[Stories by Paul Wilke on Medium]]></description>
        <link>https://medium.com/@paul_93782?source=rss-662afece01b9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0b6N9svNahCS1QBB.jpg</url>
            <title>Stories by Paul Wilke on Medium</title>
            <link>https://medium.com/@paul_93782?source=rss-662afece01b9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:08:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paul_93782/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ask the Program, Not Its Ghost]]></title>
            <link>https://medium.com/@paul_93782/ask-the-program-not-its-ghost-98ef3e63608c?source=rss-662afece01b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/98ef3e63608c</guid>
            <dc:creator><![CDATA[Paul Wilke]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 09:10:49 GMT</pubDate>
            <atom:updated>2026-10-22T09:10:49.165Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Where live coding helped AI agents, where it lied, and what that says about Smalltalk</em></h3><p>A coding agent learns from files. It reads the source, runs the tests, reads the output, changes the source. That loop is the whole industry right now, and it works. In <a href="https://medium.com/@paul_93782/the-ghost-in-the-pipe-e6643e2f08a4?sharedUserId=paul_93782">The Ghost in the Pipe</a> I asked whether it misses something. A program that has been running for hours holds state no file describes. I built stlive, a command-line tool that lets an agent reach into a running Smalltalk program: ask it questions, swap a method, run the tests, no restart. At that point I had a tool and two hunches. Live access helps when an API is unfamiliar. Live access helps when a restart is expensive.</p><p>Now I have a day of logs. Here is what I found.</p><h3>What “live” means</h3><p>In most languages, the program and the source are separate things. You edit the source, you start the program, it runs, it stops. Every start is clean.</p><p>In Smalltalk, the program is a running world called an image. The code lives inside it. Change a method and the running program uses it at once. Objects created an hour ago keep living. Files exist, but mainly as an export for version control.</p><p>That gives an agent a partner it can ask, not just read. It also gives the agent a world that remembers everything, including things nobody meant to keep.</p><h3>The setup</h3><p>The project is a set of small services, each in its own image, behind one central process that routes requests to them and runs all day. A “module” is one such service plus its web page. Three agents worked on it in one day: one built a text editor module from scratch, one fixed four things in it, one ported an older module to the new structure. Three models, from cheap to expensive.</p><p>Each agent got one standing instruction. Log every stlive call. For every question to the running program, write one line: what you asked, what came back, whether starting fresh from the files would have given the same answer, and what it changed. Note every case where the running program behaved differently from a fresh start. Note what the live workflow cost.</p><p>Across the three runs the agents made about 460 stlive calls and logged 27 questions.</p><h3>One answer, one speed, one lie</h3><p><strong>The answer.</strong> One kind of question came up in all three runs, and only the running program could answer it. The central process reads its list of modules once, at start. To make it see a new module, you restart it. On that day, a restart would have loaded another thread’s half-finished work. So the agent did not restart. It asked the running process for its registry and added the new module in place. Done, nobody interrupted. The third agent reused the recipe. The second confirmed that a change made in one running image showed up in the central process within a minute.</p><p>A fresh start cannot do this. What the running program knew was not a fact but a situation: who else is working, and what a restart would destroy. The gain was not information. It was intervention.</p><p><strong>The speed.</strong> Most of the 460 calls were not questions. They were the loop: change, test, look, in a second or two instead of twenty. The clearest effect was how the agent used that. On the port, the first test run gave 44 failures. stlive reports failures in groups by cause; there were six. Six edits later, three failures were left. The agent never looked at 44 things.</p><p>A fresh start took 17 to 26 seconds. A live test run took one. That saves minutes a day, not hours. It changes the step size more than the total.</p><p><strong>The lie.</strong> Every run had a case where the running program said one thing and a fresh start said another. In the first run all tests were green, every check stlive offers passed, and the module did not load from its files. The running image had a class that a startup script had loaded; the module’s own dependency list never named it. Nothing in the live world could see that. A fresh start saw it in seconds. Without that check, a broken module would have shipped with every light green.</p><p>The other runs found smaller versions. An image that was supposed to be fresh but carried four-day-old leftovers. A lookup that found a stale object from an earlier experiment instead of the real one. Nine thousand unsaved changes that loading packages had left behind, waiting for a careless save.</p><p>The running program is the truth plus everything that ever happened to it.</p><h3>The surprise: the cheap model worked live first</h3><p>I did not plan this, but the runs split into two styles.</p><p>The two expensive models worked files first: write the code to files, load it, test it, reach into the running image to look something up or patch one method, save back. Fifty to ninety calls each on the module’s image, a handful of compiles.</p><p>The cheap model wrote almost everything straight into the running image. Test red, method, test green, next. A hundred and eleven compiles in nineteen minutes, then one save back to files. Four features, tests passing.</p><p>It also left a mess: methods on the wrong class, a throwaway method, a probe that wrote where it should only have read. An expensive model spent ten minutes cleaning up and trying the result in a web browser, where it found a real bug no test had seen. Nineteen minutes plus ten, against the forty-four the expensive model had needed for the first build.</p><p>That is a trade-off. Live feedback stood in for model size. The price was a second pass by something that can judge.</p><p>It is also the thread I most want to pull. I have fine-tuned a small local model on this way of working: test red, compile, test green, save. It learned the method. It does not yet finish a task; with the little context it holds, it falls into loops. My GPU is the limit, not the idea. I could end up with a cheap model that runs on my own machine and works inside a live image, with an expensive one checking at the end. We’ll see.</p><h3>The rule I took from the day</h3><p>Default: files first. The agent writes source files, loads them, commits them.</p><p>Ask the running program when the documentation is silent. Fix in it when a test is red, then save back once. Change it in place only when a restart is not yours to do.</p><p>The gate, before every commit: start fresh from the files alone, load everything, run everything. Not stlive’s own checks. They all passed on the day the module did not load.</p><p>Exception: a cheap model may work live first, if an expensive one cleans up and looks afterwards.</p><h3>The fair objection</h3><p>A Lisp programmer will say this is a REPL with an agent at the keyboard, and Lisp has had that for fifty years.. Erlang swaps code in production. Python has notebooks and debuggers. True. What Smalltalk adds is that the whole world lives in one place and classes change under living objects, which is exactly what produced the stale objects and the missing class.</p><p>So the claim is not “Smalltalk wins”. It is that an agent with a pipe into the running process works differently, and that the difference shows up in a log. stlive is nothing more than that pipe: a command line in front of the running image, plus a short instruction that tells the agent when to use it. Pharo made it cheap to build. The same could be built on a Python or Node process.</p><h3>What I do not know</h3><p>No run had a control without the pipe. Nothing here says live access was faster or cheaper than files alone. It says what the pipe was used for and what it broke.</p><p>The agents judged for themselves whether a question needed the running program, and I trusted those judgments rather than re-reading every log line. That trust is a weakness of everything above.</p><p>One day, one project, three runs. The tool is weeks old and cost time of its own: one hung image, one version mismatch, one wrong error message.</p><h3>self next; askForHelp</h3><p>I do not have a conclusion. I have a direction and an open question.</p><p>The direction: the fresh start is the honest witness for code, but it is blind to bugs that exist only in the memory of a running program, because every fresh start erases them. The project has one. A long-lived read-only view of a database keeps showing the state it first read; the writer’s later changes stay invisible until the view is reopened. The documentation says so. No test catches it, because every test opens a fresh view. That is the task for the comparison I promised in the first article.</p><p>The comparison is not files against pipe with the same model. It is two ways of organizing the work. On one side, a large model that splits the task into subtasks and works through files, the way everyone works today. On the other, the same large model on top, and underneath it a small model fine-tuned to work live in the image, with the large one checking at the end. The first side exists. The second needs a bigger fine-tune than my machine can do, and my own attempts at a benchmark did not hold: the numbers moved more between runs than between conditions.</p><p>The question, to anyone reading: have you built benchmarks for coding agents? Do you work with a live runtime of any kind and know a bug that only the running system shows? The tool and the logs are open. What I lack is a second pair of hands and a task that someone other than me thinks is fair.</p><p>Until then: ask the running program, change it when you must, then start fresh and see what was true.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98ef3e63608c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Over the Agent’s Shoulder]]></title>
            <link>https://medium.com/@paul_93782/over-the-agents-shoulder-832fd16bddc2?source=rss-662afece01b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/832fd16bddc2</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[pharo]]></category>
            <category><![CDATA[smalltalk]]></category>
            <dc:creator><![CDATA[Paul Wilke]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 20:57:02 GMT</pubDate>
            <atom:updated>2026-10-12T21:36:14.778Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>What a battery gauge and a Smalltalk window taught me about coding agents and running systems, and why I don’t know yet where it leads</em></h4><p>Where does a coding agent learn what it needs to know? The usual answer is: from the files. Source code, documentation, logs, tests. The agent reads them, changes them, runs the build and reads the output. That works surprisingly well. But it rests on a quiet assumption: that everything worth knowing has been written down somewhere.</p><p>Some systems know more than their files. This article is about that gap. I have not closed it, and I may have overrated it. I am writing this to sort my own thoughts, and because I find the question more interesting than any answer I have so far.</p><h3>How I got here</h3><p>For a few weeks I have let Claude Code work on a small handheld device, an ESP32 board with an e-paper screen, a keyboard, an LTE modem and fiddly power management. At some point the battery gauge stopped making sense. The board said it was done charging, but the percentage never came close to full.</p><p>The agent did not guess. It worked through logs, did some arithmetic and arrived at a suspicion: the gauge believed in a battery about twice as large as the real one. Then it asked the device itself. It read the setting from the chip, and the suspicion held. One write later, the gauge behaved.</p><p>I was excited. Here was an agent that did not only read files, but talked to a living system and got answers no file contained. I began to see this everywhere.</p><p>Looking back, I overrated it. Most of the problems in that project were found at the desk, by comparing code against datasheets and reference projects. The battery itself was found in a log before the device confirmed it. The device was a source of facts, and a valuable one. But nothing was fixed live. Every fix still went the long way: edit, build, flash.</p><p>So the excitement needed sorting. That sorting is where this article starts.</p><h3>Three questions instead of one</h3><p>My first framing was “dead files versus living system.” It was too coarse. Tests and builds are runtime feedback too. What I had lumped together turns out to be three separate questions:</p><ol><li><strong>Does the running system know something the files don’t?</strong> Call it the oracle question. I use the word loosely: a source that holds facts no document contains.</li><li><strong>How fast does the answer come back?</strong> That is the loop. A question that takes a full build-and-flash cycle is a different thing from one that takes a second.</li><li><strong>Can you change the system while it runs?</strong> That is liveness.</li></ol><p>The three are independent. My ESP32 project had a real oracle, a loop that got shorter over time, and no liveness at all. Every question restarted the program.</p><p>Once I had pulled the three apart, I remembered a world where all three come together by design.</p><h3>The Smalltalk memory</h3><p>In Smalltalk (Pharo, in my case), code does not live in files first. It lives in an <em>image</em>, a running snapshot of memory that holds every class, every object and the development tools themselves. You change a method, and the change is live at once. You can stop a program in the debugger, fix the code in the frame where it failed, and resume as if nothing had happened. Files exist, but mostly as an export for version control.</p><p>Smalltalk was built for exactly the conversation I had stumbled into on the ESP32. Oracle, short loop and liveness are not features you add. They are the ground you stand on.</p><p>In the last article I asked what good Smalltalk is in the age of coding agents. Behind that sat a more personal question. I like Smalltalk. But now that agents write more and more code, should I still write it at all? Agents have seen far more Python than Pharo. Maybe the language is a museum piece, and I am one of its guards. Or maybe a live system is precisely what an agent lacks: a partner that can be asked, not just read.</p><p>To find out, I built stlive, a command-line tool that lets an agent evaluate code, inspect objects and walk stack frames inside a running Pharo image. I described it in <em>The Ghost in the Pipe</em>. This article is about the question behind it. There I sorted things by modes of development. Here I sort them by what the running system can tell you. The two hypotheses from that article fit the new frame: exploring an unfamiliar API is an oracle question, and avoiding an expensive restart is a loop question.</p><h3>Watching</h3><p>The moment that stuck with me was not a measurement. It was a window.</p><p>With stlive, you can start an image with its graphical interface open. Then you let the agent work and simply watch. A class browser opens. A method appears in it. An inspector pops up, someone looks at an object, closes it again. A test runner turns red, then green. A new window builds itself, first an empty frame, then a list, then a button, then the button moves because the agent changed its mind. Nobody touches the mouse. The screen is busy with someone else’s thinking.</p><p>To see this more clearly, I let the agent build a small window through stlive and recorded the screen. Nothing here happens remotely, in a copy or in a sandbox that gets merged later. The agent works inside the same Pharo the window belongs to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mtzhLXfR1rhTPOOdheAjDw.gif" /><figcaption><em>On the right is the Pharo window as it appears on screen. On the left is exactly what the agent sends to the running image: each command and its code, line by line. The window builds itself step by step. The first attempt fails, and the agent fixes it in place. The box at the bottom shows the object behind the window, with its identity hash, a number Pharo assigns to each object. The hash never changes, because it is the same object from the first frame to the last. There is no second run and no restart. At the end, the agent even adds a new field, an instance variable, to the object’s class while the window stays open.</em></figcaption></figure><p>It feels like looking over a colleague’s shoulder during pair programming. You don’t read a diff afterwards. You see the work as it happens, with its detours and second attempts. You notice when the agent inspects the wrong object. You could say “no, not there.”</p><p>I find that fascinating, and I have to be careful with that word. Fascination is what got me to overrate the ESP32 probing. Watching an agent is entertaining. Entertaining is not the same as useful.</p><h3>What it might be good for</h3><p>So what could a running image give an agent that files cannot? I see three candidates, and I don’t know yet which one holds.</p><p><strong>Fewer tokens.</strong> An agent working on files rebuilds its picture of the program again and again. It reads code, runs it, parses the output, reads more code. In an image, it can ask directly: what is this value right now? That could save a lot of reconstruction. My strict, debugger-only run showed the opposite, though. I forced every fix into the debugger, and it cost more tokens and more time than the usual cycle. Without that constraint, on ordinary test-driven tasks, live access cost about as much as working with files, and brought no advantage either. Perhaps I chose the wrong method. Perhaps the idea is wrong. One run cannot tell.</p><p><strong>Problems that only exist in state.</strong> Some bugs live in the history of a running program: a cache that holds a stale value, an object created before a class changed, a result that depends on the order of calls. A test starts fresh and sees none of that. A running image remembers. If there is a class of problems where live access clearly pays, I suspect it is here.</p><p><strong>Transparency.</strong> Maybe the gain is not for the agent at all, but for the human. Watching the work instead of reviewing its result changes how much you trust it and how early you can intervene. That would make the image less of a tool and more of a shared workplace.</p><p>A fourth possibility is that none of these hold up, and that “an agent in a live image” is simply REPL-driven development with a different typist. I find that objection fair. REPLs, debuggers and hardware-in-the-loop setups have worked this way for decades. What is new is only who sits at the keyboard, and that an agent can ask a hundred questions without getting tired. Whether that changes the nature of the work or just its speed is exactly what I don’t know.</p><h3>What I have so far</h3><p>For now, a mixed way of working looks most promising. The agent writes code as text files, as usual, and keeps them under version control. When something fails, it reaches into the running image to ask, narrow the problem down and try a small fix. Then it goes back to the files. A fix that lives only in the image, or only on a device, is a liability.</p><p>And one rule seems to hold in both worlds: contradictions drive the search. On the ESP32 it was a charger that said “done” and a gauge that disagreed. Whatever the medium, the useful moment is when two sources tell different stories, and someone asks a third.</p><h3>Limits</h3><p>This is one person, two projects, a handful of runs and no good benchmark. Oracle, loop and liveness are a way to sort what I saw. They are a model, nothing more.</p><h3>Where the journey goes</h3><p>I don’t know yet. The next step is to find one honest test: a task with a bug hidden in state, solved once with files alone and once with the running image, under the same conditions. If the image wins, I will know where to look. If it loses, I will know something too.</p><p>Until then I keep watching windows open on a screen nobody is touching. Source code describes a system. Only the running system answers. Whether the agent at the other end of the pipe learns to listen is the open question.</p><p>If you work with live runtimes, REPLs or embedded probing, I would like to hear where asking the running system paid off for you, and where it did not.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=832fd16bddc2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Ghost in the Pipe]]></title>
            <link>https://medium.com/@paul_93782/the-ghost-in-the-pipe-e6643e2f08a4?source=rss-662afece01b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6643e2f08a4</guid>
            <category><![CDATA[smalltalk]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Paul Wilke]]></dc:creator>
            <pubDate>Sun, 11 Oct 2026 20:14:59 GMT</pubDate>
            <atom:updated>2026-10-11T20:14:59.623Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Giving coding agents a live-runtime interface — and testing where it actually helps.</em></p><p>What good is Smalltalk in the age of AI coding agents?</p><p>At first glance, not much seems to connect them. Smalltalk emerged from the interactive computing environments of the 1970s. Modern coding agents work with repositories, shell commands, tests, and development tools across many programming languages.</p><p>Yet there is a difference between these approaches that deserves a closer look: how we interact with a running program.</p><p>Many coding-agent workflows revolve around source files, test results, and command output. When something fails, the agent examines the available evidence, forms a hypothesis, changes the code, and tries again. Some agents also use debuggers and interactive environments, but the quality of their access to runtime state depends on the tools available to them.</p><p>What if we gave an agent a more direct way to inspect and modify a running program?</p><p>Alan Kay and the Smalltalk tradition provide an interesting historical starting point. They explored a model of computing in which objects communicate through messages and developers can work inside a persistent, interactive environment. That model predates coding agents by decades.</p><p>I wanted to investigate whether some of its properties could be useful in agentic software development today.</p><p>The result is <a href="https://github.com/paulwilke/smalltalk-live-cli?utm_source=chatgpt.com">stlive</a>, a Rust-based command-line tool that allows coding agents to inspect, debug, modify, and rerun code inside a running Pharo Smalltalk image.</p><p>The CLI is the interface, not the objective. The question is whether direct access to a live runtime helps an agent solve development tasks more effectively — or merely adds another layer of complexity.</p><h3>1. Three modes of software development</h3><p>To investigate this question, I find it useful to distinguish three modes of interaction with a program.</p><p>These are analytical categories, not mutually exclusive development paradigms. A real development environment can combine all three.</p><p><strong>Source-oriented development</strong> treats the program primarily as a collection of files. We edit source code, execute it, and examine the results. When something breaks, we use the available evidence to decide what to change.</p><p><strong>Process-oriented development</strong> focuses on the executing program. Its call stack, memory, execution history, and current state become important sources of information. Debuggers and profilers help us investigate this state.</p><p><strong>Environment-oriented development</strong> treats the development environment and the running system as closely connected. Developers can inspect objects and modify code within the environment in which the program executes.</p><p>The distinction is one of emphasis rather than capability. A debugger can expose rich runtime state, and an interactive development environment can still depend on files and version control.</p><p>The question is how easily a coding agent can move between these modes.</p><p>Many agents already have access to source files and test output. They may also have debugging tools, but these are not always integrated into a workflow that allows them to investigate a failure, modify the relevant code, and verify the correction without repeatedly reconstructing the execution context.</p><p>Sometimes that reconstruction is necessary. Sometimes it is simply an unnecessary detour.</p><p>This gives us a more precise starting point than the claim that agents work with dead artifacts: <strong>How much of the information available inside a running program can an agent use directly, and when does that access make a measurable difference?</strong></p><h3>2. A model of live interaction</h3><p>Smalltalk provides a useful environment for exploring this question.</p><p>In Pharo, a running image contains the objects, classes, and methods that make up the system. Developers can inspect objects and change methods without treating every modification as a reason to rebuild and restart the entire application.</p><p>A coding agent needs a way to access these capabilities through tools it can invoke and interpret.</p><p>For stlive, I organize this interaction into three layers.</p><p><strong>Observation:</strong> What is happening? The agent inspects stack frames, variables, and objects to understand the current situation.</p><p><strong>Intervention:</strong> Can I change the running system? The agent evaluates expressions, compiles methods, or reruns operations to test a hypothesis.</p><p><strong>Reconciliation:</strong> Can I verify and preserve the change? The agent executes tests, inspects differences, and writes changes back to source.</p><p>Each layer solves a different problem.</p><p>Observation helps the agent establish what happened rather than infer everything from an error message.</p><p>Intervention lets it test a hypothesis by changing the implementation or evaluating expressions in the relevant context.</p><p>Reconciliation establishes whether the change works and ensures that the resulting source code reflects the implementation we intend to maintain.</p><p>The third layer is particularly important. A method that works in memory but has not been saved is not yet a completed change to the repository.</p><p>The model also exposes a limitation: runtime access does not guarantee correct reasoning. An agent can inspect the wrong object, misunderstand a value, or modify a method for the wrong reason. The interface provides evidence and capabilities, not correctness.</p><p>With that distinction established, we can look at the actual workflow.</p><h3>3. From failure to a verified change</h3><p>Consider a hypothetical example.</p><p>A Cart object calculates the total price of a shopping cart, including tax. The operation fails because the tax rate is nil.</p><p>In a conventional file-based workflow, the agent might receive an exception and stack trace, inspect the implementation, identify a likely cause, edit the source file, and rerun the relevant tests.</p><p>With stlive, the agent can investigate the failure inside the running image.</p><p>It can request the relevant stack frames using stlive debug frames, followed by the identifier of the debugging session. The returned information gives the agent a starting point for examining the execution context. It can inspect relevant variables and objects before deciding what to change.</p><p>Suppose it identifies a faulty method. It can compile the corrected implementation directly into the running image using stlive method compile, specifying the class and the source file containing the corrected method.</p><p>At this point, the method has changed. But the original execution has not necessarily been repaired.</p><p>This distinction matters.</p><p>A method can be recompiled successfully while an existing execution still contains frames associated with the previous implementation. Continuing that execution is not equivalent to starting a new execution with the corrected method.</p><p>The agent can therefore rerun the failed operation using stlive debug rerun and the debugging session&#39;s identifier.</p><p>It can then inspect the result and execute the relevant tests.</p><p>The workflow is straightforward:</p><p><strong>Reproduce → inspect → hypothesize → modify → rerun → test → save.</strong></p><p>None of these individual steps is new. The experiment lies in connecting them through a persistent interaction with the running environment.</p><p>Instead of reconstructing the relevant state from scratch after every failure, the agent can investigate the state that already exists.</p><p>That does not eliminate the need for tests or careful reasoning. It changes the information available during the debugging process.</p><h3>4. The image is not the repository</h3><p>Live development has an obvious weakness: the running system and the source files can diverge.</p><p>If an agent changes a method in memory, that change does not automatically become part of the repository. Another developer cannot review it in a Git diff, and a new image may not contain it.</p><p>This is not a reason to reject live development. It is a reason to treat persistence as a separate problem.</p><p>stlive provides operations for writing method changes back to Tonel source files and inspecting differences between the image and the repository.</p><p>The intention is not to replace version control with a persistent image. The image serves as an interactive environment for investigation and experimentation. The repository remains the place where changes become explicit, reviewable, and maintainable.</p><p>There is a useful distinction here.</p><p>The running image tells us what the system currently does. The source repository records the implementation we intend to preserve. Tests provide evidence about whether that implementation behaves as expected.</p><p>These three views should agree, but they serve different purposes.</p><p><strong>Live development should not mean invisible development.</strong></p><p>This is also why reconciliation belongs in the workflow rather than being treated as an optional final step. Without it, an agent could produce a locally successful result that disappears when the image is discarded.</p><p>The current implementation does not cover every possible Smalltalk source change. Its source-writing capabilities have limits, including how existing class definitions are handled. Those limits matter when considering larger applications.</p><p>For the experiment to be useful, the agent must not only modify the running system but also leave behind a change that another developer can understand and reproduce.</p><h3>5. Why a CLI instead of an MCP server?</h3><p>When building tools for coding agents, it is tempting to start with the Model Context Protocol (MCP), which provides a structured way for compatible clients to discover and invoke tools.</p><p>For stlive, I chose a conventional Unix CLI as the initial interface.</p><p>The reason is practical. Coding agents such as Claude Code can already execute shell commands. They can therefore use stlive without requiring an additional protocol integration.</p><p>The CLI is also separate from the mechanism that communicates with the Pharo image. That separation allows me to investigate the debugging workflow before committing to a particular agent integration.</p><p>An MCP server could expose the same underlying capabilities later if doing so proved useful.</p><p>Neither interface is inherently better for every situation. A CLI is easy to compose with existing shell tools, but it introduces familiar issues involving command-line arguments and output parsing. A structured protocol can make tool invocation more explicit, but it also adds an integration layer.</p><p>For this experiment, the important question is not which interface is fashionable. It is whether the capabilities exposed through that interface help the agent work more effectively.</p><h3>6. Where does live access actually help?</h3><p>This is the central question, and it is where I want to be careful about the distinction between an observation and a conclusion.</p><p>My initial experiments have not shown that live runtime access automatically reduces token consumption. For some conventional test-driven development tasks, I have even seen little apparent disadvantage over working with source files and tests.</p><p>That is a useful result, even if it is not the result one might expect from the premise.</p><p>Modern coding-agent workflows already benefit from optimizations such as prompt caching, efficient file access, and concise diffs. Introducing additional CLI calls to inspect objects can increase the amount of interaction without providing enough additional information to justify it.</p><p>The advantage of live access may therefore depend on the task.</p><p>I am particularly interested in two hypotheses.</p><h3>Hypothesis A: Exploring the unfamiliar</h3><p>Suppose an agent needs to work with an unfamiliar API that returns a complex object.</p><p>It can read the documentation, inspect the source code, and infer the expected structure. Alternatively, if a suitable running environment is available, it can invoke the API and inspect the returned object directly.</p><p>The second approach may reveal information that is difficult to infer from static descriptions alone: the actual structure of the returned data, the values of particular fields, or the relationships between objects.</p><p>This is not necessarily faster. The API might be well documented, and constructing a suitable runtime environment might take longer than reading the source.</p><p>The hypothesis is narrower: <strong>When an API is unfamiliar or its output is difficult to predict, direct object inspection may reduce the uncertainty involved in understanding it.</strong></p><p>The experiment would need to establish whether that reduction in uncertainty translates into better task completion, less time, or lower overall resource consumption.</p><h3>Hypothesis B: Modifying a large, running system</h3><p>Consider an application that takes several minutes to start and requires substantial setup to reproduce a particular state.</p><p>A conventional workflow may require the agent to restart the application repeatedly or construct elaborate test fixtures.</p><p>If the relevant system is already running in a suitable state, live access could allow the agent to inspect that state, modify a method, and observe the effect without repeating the entire startup process.</p><p>This could be particularly useful for legacy applications with expensive initialization or complex runtime dependencies.</p><p>But the qualification matters: the existing state must be suitable for the task. A live system does not automatically provide a reproducible test environment, and changes made to the wrong state can be misleading.</p><p>The question is whether direct access can eliminate enough setup and repetition to provide a practical advantage.</p><h3>What the initial observations tell us</h3><p>So far, I see a tentative distinction.</p><p>For conventional TDD and simple fixes, live access appears to offer no advantage over efficient file-based workflows.</p><p>For exploring unfamiliar APIs and object structures, direct inspection might provide useful information that is difficult to obtain from static descriptions alone.</p><p>For investigating state in large, running systems, live access might save time when setup and restarts are expensive.</p><p>These are hypotheses to investigate, not established performance results.</p><p>In particular, I have not yet established that live access improves task completion rates or reduces the time required to produce a verified fix.</p><p>That is the next step.</p><h3>7. How to test the hypothesis</h3><p>A useful evaluation needs to compare workflows rather than rely on a collection of successful demonstrations.</p><p>I would start with a set of debugging and development tasks in a Smalltalk project. Each task would have a defined starting state and acceptance criteria.</p><p>The first condition would give the agent conventional access to source files, tests, and command output.</p><p>The second would provide the same capabilities plus stlive’s runtime inspection, debugging, and live method modification.</p><p>Where possible, both conditions should use the same model, task description, and project. The evaluation should also account for differences in tool instructions and available context.</p><p>Several measurements would be useful.</p><p><strong>Task completion rate:</strong> Does the agent solve more tasks?</p><p><strong>Time to verified fix:</strong> Does it reach a correct result faster?</p><p><strong>Tool calls:</strong> Does it need fewer interactions?</p><p><strong>Token consumption:</strong> Does it use less or more context?</p><p><strong>Regression rate:</strong> Does it introduce additional failures?</p><p><strong>Source/runtime consistency:</strong> Does the final repository reflect the verified implementation?</p><p>No single measurement is sufficient.</p><p>Fewer tool calls, for example, do not necessarily imply a more efficient workflow. One operation might return a large amount of information, while several smaller operations might allow the agent to request only what it needs.</p><p>Likewise, a quick correction is not useful if it introduces regressions.</p><p>The tasks also need to be diverse enough to distinguish where runtime access helps from where it does not. A simple defect in a method and a problem involving a complex object graph are not equivalent debugging tasks.</p><p>Finally, the evaluation should include unsuccessful attempts. If an agent makes an incorrect change, loses track of the state, or fails to reconcile its changes with the repository, those outcomes are part of the evidence.</p><p>The goal is not to demonstrate that stlive works. The goal is to determine when it provides an advantage over an alternative workflow.</p><h3>8. What remains incomplete?</h3><p>The current implementation establishes a working bridge between a coding agent and a running Pharo image. It does not establish that this approach is generally superior to conventional development workflows.</p><p>There are also practical limitations.</p><p>The debugging interface does not yet provide all the capabilities of a traditional interactive debugger, including conventional single-stepping into and over instructions.</p><p>Source reconciliation is also incomplete. The existing operations handle method-level changes, extensions, and method removals, but do not rewrite existing class definitions or cover every Smalltalk language construct.</p><p>Finally, the agent workflow has only been tried on a limited set of cases. There is no controlled benchmark demonstrating improvements in completion rate, execution time, or token consumption.</p><p>These limitations define the scope of the current experiment. They also suggest where further implementation work may be useful, but I do not want to confuse additional functionality with evidence that the underlying approach is better.</p><p>More commands might make stlive more capable. They would not, by themselves, establish that an agent becomes a better developer.</p><h3>Conclusion</h3><p>stlive explores a specific idea: a coding agent should be able to investigate a running program directly, rather than reconstructing its state entirely from source files, tests, and command output.</p><p>The current implementation makes that possible in Pharo Smalltalk. An agent can inspect a failure, examine live objects, modify methods, rerun operations, execute tests, and write changes back to source.</p><p>The next step is to establish where this workflow provides a measurable advantage — and where conventional source-oriented development remains just as effective.</p><p>The pipe is only the interface. The question is what becomes possible at the other end.</p><p><em>Project repository: </em><a href="https://github.com/paulwilke/smalltalk-live-cli?utm_source=chatgpt.com"><em>github.com/paulwilke/smalltalk-live-cli</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6643e2f08a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Vibe Coding]]></title>
            <link>https://medium.com/@paul_93782/beyond-vibe-coding-6cb24b7469fe?source=rss-662afece01b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cb24b7469fe</guid>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[resonance-coding]]></category>
            <dc:creator><![CDATA[Paul Wilke]]></dc:creator>
            <pubDate>Sat, 10 Oct 2026 21:43:28 GMT</pubDate>
            <atom:updated>2026-10-10T21:43:28.925Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What happens when you give an AI agent a phone to build, a board it has never seen, and a rulebook it has to keep.</em></p><p>I wanted a phone with no bullshit.</p><p>Not a smartphone with the bullshit turned off. A phone where I decide what happens: who can call it, who can write to it, what it sends and when. I wanted my kids to have one, but the idea is not really about kids. It is for anyone who just needs a phone that calls, sends messages and does a few simple things, and does them in a way you can check.</p><p>That phone now exists. It is called <strong>Phone OS</strong>, and how it came to exist is the more interesting part of the story.</p><h3>What Phone OS is</h3><p>Phone OS is an open firmware for the LilyGO T-Deck Pro MAX, a small device with an ESP32-S3, an e-ink display, a 4G modem, GPS and a keyboard. There is no Android on it. There is no operating system in the usual sense, no app store, and no services running in the background that I did not put there. It is one firmware that does a short list of things:</p><ul><li>Calls and SMS, but only with people in the contact book. Everyone else is ignored.</li><li>An SOS button. It waits briefly for a good GPS fix and then texts the position to every contact marked as an SOS recipient.</li><li>A position query: a parent sends a single trigger word by SMS, and the device answers. A stranger who sends the same word gets no reply.</li><li>School-time windows and quiet hours, a lock screen, and a settings page that the device serves itself over Wi-Fi.</li></ul><p>The device never sends its position on its own. Every query is logged with time, number and outcome, and the log could also be switched off. The messages travel as plain SMS through the mobile network, with no one else in between. The carrier still sees the SMS traffic and the cell the SIM is connected to, as with any phone. What is missing is a third party that collects and keeps the position.</p><p>That is the product. It is deliberately small.</p><h3>Why this hardware</h3><p>The phone was not the only goal. I also wanted to know how far vibe coding can go today, and for that I picked hardware that punishes sloppy work.</p><p>The T-Deck Pro MAX has an accelerometer, GPS, LTE with VoLTE, battery management, a touch screen and an e-paper display with its own particularities. Power saving is not optional. Every one of these areas can fail quietly. A demo that blinks an LED proves nothing. A phone that cannot make a call, drains its battery in an hour or reports the wrong charge is simply broken, and no amount of confident code hides that.</p><p>If vibe coding holds up, you get a device that works. If it does not, you get a pile of plausible-looking code that fails the first time it meets the real board.</p><h3>The agent explored the hardware</h3><p>I did not start from deep knowledge of this board. I worked with Claude Code, and the first thing that mattered was that the agent could talk to the hardware itself.</p><p>Through the serial console it ran firmware that probed the device, read registers and reported what the chips actually did. It also read the manufacturer’s documents and other projects for the same board, learned from them, and avoided problems they had already run into. Where the documentation left things open, or where two documents disagreed, it had a way to find out instead of guessing.</p><p>Here is one example that shows why this matters. For a while the device seemed not to charge. The status page said “full on the cable” next to 56 percent, and the battery bar and the percentage disagreed. A read-only diagnosis of the charger and the fuel gauge showed that the charger was fine and the battery was full: 4.16 volts, charge done. The fuel gauge, however, still held its factory design capacity of 3000 mAh. The battery in the device is 1500 mAh. The gauge reported about half the real charge and a time to empty twice as long as the truth. Writing the correct capacity into two registers once fixed it.</p><p>Nothing about this showed up as an error. Every value came from one chip and looked plausible. The percentage only disagreed with the cell voltage, and nobody had thought to compare them. The result in the code is a rule: at start, read the gauge’s capacity, write the configured value if it differs, and never show a percentage that the voltage contradicts.</p><p>There are other entries like it. Newer boards carry a different charger chip on a different I2C address than older ones, so a driver that looks at only one address treats the bus as broken. A bad SIM contact looks like “no network”. Outgoing calls hung the modem until the IMS data context was defined as IPv4v6. Each of these cost real time, and each is written down with what was measured, why it happened, and the rule that keeps it from coming back.</p><h3>Not “to vibe or not to vibe”</h3><p>The usual picture of vibe coding is simple: describe what you want, accept what comes out, and keep going as long as it seems to run. That is a fine way to build a prototype. It is a poor way to build something you want to trust.</p><p>What I did differently was not a better prompt. It was a set of rules, and the discipline to keep them:</p><ul><li><strong>Layers that the build enforces.</strong> The hardware is hidden behind interfaces named after what the software needs: a clock, a modem, power, positioning, files. The application knows no board and no driver. A script checks this and fails the build when someone breaks the rule.</li><li><strong>Everything is tested on a laptop.</strong> There are more than 2,400 host tests, and a simulator that runs the real application on fakes, so complete scenarios can be scripted without the device.</li><li><strong>Every bug gets a test</strong> that fails when the bug is put back.</li><li><strong>Honest status.</strong> “Compiled”, “tested on the host” and “verified on the device” are three different things, and the documentation never mixes them up.</li><li><strong>No leftovers.</strong> No dead code, no documentation of things that do not exist, open work in exactly one file.</li><li><strong>I stayed the owner.</strong> What the product is, what it refuses to do, and every security limit were my decisions. The AI proposed and implemented, and it was corrected often.</li></ul><p>The agent did a large share of the typing. But the engineering discipline did not come for free. It had to be asked for, written down and checked, again and again. In my experience, an agent inside rules like these is a different tool from an agent that is simply told to build something.</p><p>I would call that more than vibe coding. Whether you agree is exactly what I would like to know.</p><h3>What I am not claiming</h3><p>This is a hobby project, not a certified safety product. An SOS function deserves more scrutiny than I can give it alone, and I do not want anyone to trust it blindly. That is also why the status of what has been verified on the device is spelled out in the documentation. There is no ready-made firmware to download; you build it yourself and flash your own device. The LoRa radio is not part of this version.</p><p>I owe thanks to LilyGO for the board and to the Meck project, another firmware for the same device, whose published work on the pin map and the keyboard made my bring-up easier. Phone OS contains none of its code.</p><h3>Judge it yourself</h3><p>The source, the tests, the simulator and a user’s guide in English, German and French are open:</p><p><a href="https://github.com/paulwilke/Phone-OS"><strong>https://github.com/paulwilke/Phone-OS</strong></a></p><p>The simulator runs without any hardware, so you can try the whole phone on a laptop.</p><p>I do not know yet where the line sits between vibe coding and engineering with an AI. I only know that the answer is not in how fast the code was written. It is in what is left when you try to break it: the tests, the rules, the notes about what went wrong on the real device. The rest is not silence. It is documentation.</p><p>So take it apart, run it, tell me what you find. Would you trust an SOS function built this way, and what would you want to see first?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cb24b7469fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tips for Effective Communication with AI Language Models]]></title>
            <link>https://medium.com/@paul_93782/tips-for-effective-communication-with-ai-language-models-f1e13eeee736?source=rss-662afece01b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1e13eeee736</guid>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Paul Wilke]]></dc:creator>
            <pubDate>Sun, 02 Apr 2023 20:17:56 GMT</pubDate>
            <atom:updated>2023-04-02T20:19:39.335Z</atom:updated>
            <content:encoded><![CDATA[<p>Communicating with AI language models like ChatGPT can be a rewarding experience, but there might be instances where misunderstandings occur. To ensure effective communication and avoid repeated mistakes, it’s essential to establish some baseline practices and provide clear context. In this blog post, we’ll discuss several tips to help you work more efficiently with AI language models and avoid common pitfalls.</p><p><strong>Tips for Efficient Interactions</strong></p><p><strong>Be specific:</strong> Outline your preferences, goals, or requirements at the beginning of the conversation to help the AI understand your needs better.</p><p><strong>Provide context:</strong> Give a brief background or explain any assumptions you’re making. This enables the AI to provide more relevant and accurate information.</p><p><strong>Set the scope:</strong> If you have a particular focus in mind, let the AI know upfront to keep the discussion on track.</p><p><strong>Ask direct questions:</strong> To avoid ambiguity, ask direct questions and specify the type of information or help you need.</p><p><strong>Use clear language:</strong> Aim for clarity and simplicity in your language to minimize misunderstandings.</p><p><strong>Summarize and confirm:</strong> If you’re unsure whether the AI has understood your question or preference correctly, feel free to summarize your point or ask the AI to confirm its understanding.</p><p><strong>Dealing with Code and Context</strong></p><p>When discussing software code, provide context by explaining the problem, desired functionality, and sharing relevant code snippets. Mention any frameworks, libraries, or tools being used. Remember that there’s a character limit for each input, but it’s generally sufficient for most code-related questions.</p><p>AI language models can understand multiple classes and their interactions, but the ability to comprehend code depends on the complexity and clarity of the information provided. Be sure to clearly explain the purpose of each class and method, specify relationships between classes, share relevant code snippets, and provide any additional context or constraints.</p><p><strong>Managing the Conversation Flow</strong></p><p>If you need to provide context in multiple messages, start your message with a clear statement that you’ll be sending additional context or details in the following messages. You can also number your messages to indicate that they’re part of a series. Once you’ve provided all the necessary information, ask your question or request assistance.</p><p><strong>Additional Communication Tips</strong></p><p><strong>Use bullet points or lists:</strong> Organize your information into bullet points or numbered lists for easier comprehension.</p><p><strong>Separate topics:</strong> Use clear separation (like line breaks or headings) to help the AI distinguish between different subjects.</p><p><strong>Be patient:</strong> If the AI doesn’t fully understand your request or context at first, try rephrasing the question or providing more context.</p><p><strong>Provide feedback:</strong> Let the AI know what was wrong or unclear so it can improve its understanding and provide better assistance.</p><p><strong>Learn from examples:</strong> Providing examples can help the AI understand your expectations and tailor its response accordingly.</p><p><strong>Adjust your expectations:</strong> Keep in mind that AI understanding and knowledge have limitations compared to human experts. Adjusting your expectations can help you get the most out of your interactions.</p><p><strong>Conclusion</strong></p><p>By following these tips and strategies, you can improve the quality and efficiency of your communication with AI language models like ChatGPT. Understanding the limitations and capabilities of AI and adjusting your approach accordingly will help you get the most out of your interactions and avoid common misunderstandings.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1e13eeee736" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>