Edit this page

NA-MIC Project Weeks

Back to Projects List

Interactive Workflow Replay and Step-Back Navigation for Slicer Agent

Key Investigators

Project Description

The Slicer AI Agent is a scripted extension that lets users use natural-language instructions and have the system autonomously generate, validate, and execute Python code within the 3D Slicer scene. For complex multi-step operations, such as extension-specific surgical planning workflows, the agent enters a deterministic workflow runtime that executes a sequence of predefined steps (automated code execution, interactive 3D mark-up placement, user choices, and branching logic) with a progress bar tracking completion.

Currently this progress bar is forward-only: once a step completes, there is no way to go back, inspect what happened at an earlier step, or modify a previous choice and re-run the downstream pipeline. This limits both transparency (users cannot easily understand what was done and why) and usability (a wrong choice means restarting the entire workflow from scratch).

We propose adding a workflow replay timeline that records per-step state and allows users to go back to any completed step, inspect the code and choices that were made, optionally modify parameters, and re-execute the workflow from that point onward.

Objective

We aim to add a workflow replay and step-back navigation capability to the Slicer AI Agent’s workflow runtime. By recording per-step state and exposing it through an interactive timeline, users will be able to scrub back to any completed step, inspect what happened, optionally modify a prior choice, and re-run the remaining pipeline — improving both process transparency and the ability to correct mistakes without restarting the workflow from scratch.

Approach and Plan

Progress and Next Steps

TBD

Illustrations

https://github.com/user-attachments/assets/5eb1dab5-9b35-4d5e-9d96-c0cc058e951f

https://github.com/user-attachments/assets/ea27d290-b2c5-4be0-9954-8051650bda90

Background and References

Slicer AI Agent source repository: https://github.com/puxuntu/Slicer_agent