- Home
- Skills
- Testing & Debugging
- stlive: Live Debugging for Pharo Smalltalk
stlive: Live Debugging for Pharo Smalltalk
by paulwilke
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
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
| Step | Command | Result |
|---|---|---|
| Reproduce | stlive eval 'StLiveDemoObject next' | MessageNotUnderstood: receiver of "+" is nil, session dbg-2c7-1, first application frame 0 |
| Inspect | stlive debug frame dbg-2c7-1 0 | executing ^ value := value + 1 in StLiveDemoCounter>>next |
| Check state | stlive debug eval dbg-2c7-1 --frame 0 'value' | nil |
| Regression test | stlive test run StLiveDemoCounterTest | 1 ran, 1 failed (against the old method, as expected) |
| Fix | stlive method compile StLiveDemoCounter --file next.st | compiled, protocol counting kept |
| Re-run | stlive debug rerun dbg-2c7-1 | returns 1 |
| Verify | stlive test run StLiveDemoCounterTest | 1 ran, 1 passed |
| Save | stlive save --package StLiveDemo --dir src --verify | written 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
nextagain returns2. - 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
- Reproduce the problem with
stlive evalorstlive test run - Inspect a few stack frames and variables of the resulting debug session
- Compile the smallest justified change and re-run
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
File Scopes
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.
What's inside
Frequently Asked Questions
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.