stlive: Live Debugging for Pharo Smalltalk

    by paulwilke

    1

    Let your coding agent debug, fix and test code inside a running Pharo image, frame by frame, and save the fix back to Tonel files.

    Free

    Security scanned

    Works with the AI Agents you already use

    stlive: Live Debugging for Pharo Smalltalk

    Example session with this skill installed

    StLiveDemoCounter>>next fails with "receiver of + is nil" in my running Pharo image. Find the cause, fix it in the image, add a regression test and save the package to src/.

    • Read your context and instructions
    • Compiled the stlive

    Summary

    next added 1 to an uninitialised value (nil). Fixed the method in the running image, re-ran the original failing call in the same image, added a regression test and saved both packages to Tonel.

    What the agent did

    StepCommandResult
    Reproducestlive eval 'StLiveDemoObject next'MessageNotUnderstood: receiver of "+" is nil, session dbg-2c7-1, first application frame 0
    Inspectstlive debug frame dbg-2c7-1 0executing ^ value := value + 1 in StLiveDemoCounter>>next
    Check statestlive debug eval dbg-2c7-1 --frame 0 'value'nil
    Regression teststlive test run StLiveDemoCounterTest1 ran, 1 failed (against the old method, as expected)
    Fixstlive method compile StLiveDemoCounter --file next.stcompiled, protocol counting kept
    Re-runstlive debug rerun dbg-2c7-1returns 1
    Verifystlive test run StLiveDemoCounterTest1 ran, 1 passed
    Savestlive save --package StLiveDemo --dir src --verifywritten to src/StLiveDemo, image and files agree

    The fix

    next
        ^ value := (value ifNil: [ 0 ]) + 1
    

    Regression test

    testFirstValue
        self assert: StLiveDemoCounter new next equals: 1
    

    Notes

    • The re-run used the same image and the same object; earlier side effects remain, so calling next again returns 2.
    • Saved files: src/StLiveDemo, src/StLiveDemo-Tests. Review the Git diff before committing.

    Next steps

    • Run the full suite in a fresh image: stlive test run --fresh --load MyApp --repository tonel://$PWD/src --group Tests

    Connects securely to your tools. The creator never sees your data.

    About this skill

    stlive gives your coding agent a working loop inside a running Pharo (Smalltalk) image instead of guessing from source files.

    What it does

    • Evaluate code in the live image and inspect the resulting objects
    • Keep failures debuggable: a failing evaluation or test becomes a debug session that keeps the stack alive; the agent steps through frames and evaluates expressions in a frame's context
    • Fix in place: compile a changed method into the running image and re-run the original operation
    • Run SUnit tests, including a clean check in a fresh image with your Metacello baseline
    • Save the fix: write the changed packages back to Tonel files and verify that image and files agree

    All commands return JSON, so the agent reads actual results rather than screen output.

    How it works

    1. Reproduce the problem with stlive eval or stlive test run
    2. Inspect a few stack frames and variables of the resulting debug session
    3. Compile the smallest justified change and re-run
    4. Run the tests and save the packages to Tonel with --verify

    Requirements

    The free, open-source stlive CLI (MIT) must be installed:

    cargo install --git https://github.com/paulwilke/stlive --locked
    stlive init
    

    Works with Pharo 13 and 14 on macOS and Linux; core commands are also verified on Windows 11.

    Source, documentation and a step-by-step tutorial: https://github.com/paulwilke/stlive

    Needs the stlive CLI installed and set up with "stlive init". A re-run executes in the same image, so earlier side effects remain; there is no automatic rollback. Saving to Tonel and fresh test runs are separate steps the agent has to take.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 17 days ago

    • Free with an Agensi account

    Software
    Gitstlive CLI (free, MIT)Pharo 13 or 14Rust toolchain (to install stlive)

    Install with: cargo install --git https://github.com/paulwilke/stlive --locked, then run stlive init once.

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    File Scopes

    src/**
    .stlive/**

    Runs the local stlive CLI in the shell. It talks to a Pharo image on this machine, reads Smalltalk sources and writes Tonel files under the project directory (src/) and instance state under .stlive/. "stlive init" downloads Pharo once during setup; the skill itself makes no other network calls.

    Listed17 days ago

    What's inside

    Frequently Asked Questions

    stlive solves the 'static analysis gap' by allowing your AI agent to interact with a live Pharo runtime. Unlike standard LLMs that only see code files, this skill enables the agent to inspect real objects, debug active stack frames, and verify fixes in a running image before saving them.

    Install the free stlive CLI (cargo install --git https://github.com/paulwilke/stlive --locked) and run "stlive init" once; it downloads Pharo 14 (or 13) and prepares an image with the server. Then "stlive start" in your project directory starts a project instance. Projects with Tonel sources and Metacello baselines work best.

    Yes, the skill includes specialized tools to write validated changes back to Tonel files. This ensures that any logic repaired or patched within the live image is correctly persisted to your local source directory for Git versioning.

    Any coding agent that can run shell commands in your project, such as Claude Code, Codex CLI, Cursor or Gemini CLI. stlive is a plain command-line tool that returns JSON; no MCP server is needed.

    Yes. Start the image with "stlive start --gui" and run widget code with --ui so it executes in the UI process. Errors in the UI become ordinary debug sessions instead of opening a debugger window. Web UIs can be opened with "stlive open-ui <url>".

    New in Testing & Debugging

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.

    Free