The Mind Debugger is the primary UI for inspecting, debugging, and replaying FastAgent execution tracks. It treats the agent's reasoning like source code in a traditional debugger.
- Entries:
#42 [ACT] vscode: focusWindow (SUCCESS). - Filtering: Phase, Tag, Error, Tool.
- Tabs: Input | Internal | Decision | Action | Observation | Raw JSON.
- Functionality: Deep diffing between State N and N+1.
- UIA Snapshot: Thumbnail or Tree View.
- Goal Stack: Visualized hierarchy of intents.
- Branch Tree: Interactive graph of forks.
class MindDebugger extends JFrame {
JList<StateNode> timelineList;
JTextArea jsonView;
JPanel detailsPanel;
JTree branchTree;
void onSelectState(StateNode s) {
jsonView.setText(prettyJson(s));
detailsPanel.showState(s);
branchTree.setSelectionPath(pathForState(s));
}
}Compare State N with State N+1.
- What changed in the
WorldState? - Which variable in the
InternalStatewas updated? - Why did the
Observationtrigger aReplan?
The debugger automatically highlights states where:
- The
Observationdid not match the expectedPlanresult. - The
durationMsexceeded the threshold. - The
ErrorStatewas triggered.
If an agent fails at Step 89, the developer can:
- Jump to Step 88.
- Inspect the variables.
- Fork a new branch with a modified goal or tool parameter.
- Execute to see if the new path succeeds.