# stlive: Live Debugging for Pharo Smalltalk

> 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.

stlive: Live Debugging for Pharo Smalltalk is a free AI agent skill on Agensi by paulwilke, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [paulwilke](https://www.agensi.io/creators/paulwilke)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-11-17
- Security: scan passed (2026-11-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/stlive-live-debugging-for-pharo-smalltalk
- Tags: testing, pharo, smalltalk, tonel, debugging, live-programming

## 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:

```sh
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

## Requires

- Git
- stlive CLI (free, MIT)
- Pharo 13 or 14
- Rust toolchain (to install stlive)

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

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the stlive: Live Debugging for Pharo Smalltalk skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does stlive differ from a standard Smalltalk coding assistant?

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.

### What are the technical prerequisites for using this skill?

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.

### Can this skill save changes made during a live session back to my local source code?

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.

### Which AI agents or IDEs can I use with this skill?

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.

### Does it work with GUI code?

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>".

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
