Gum tool output

From vchelaru/Gum · View interactive version

Gum tool output is an AI agent skill from the GitHub repository vchelaru/Gum. Gum Output tab. Triggers: IOutputManager, MainOutputViewModel, GuiCommands.PrintOutput, adding output/error messages.

How to use this skill

Skill file

Gum Tool Output System Reference

Architecture

IOutputManager (Tools/Gum.Presentation/Managers/MainOutputViewModel.cs):

MainOutputViewModel — implements IOutputManager. Stores all output as a single OutputText string (not a list). Registered as a singleton in DI, aliased as both MainOutputViewModel and IOutputManager.

MainOutputPlugin (Tools/Gum.Presentation/Plugins/InternalPlugins/Output/) — CorePriorityPlugin that creates the Output tab at TabLocation.RightBottom.

How to Write Output

Inject IOutputManager and call AddOutput or AddError directly — this is the standard approach. Callers must already be on the UI thread.

IGuiCommands.PrintOutput is a thin wrapper around AddOutput that marshals to the UI dispatcher — use this when calling from a background thread. There is no PrintError equivalent in IGuiCommands; callers needing AddError from a background thread must dispatch manually.

Non-Obvious Behaviors

Key Files

| File | Purpose |

|------|---------|

| Tools/Gum.Presentation/Managers/MainOutputViewModel.cs | IOutputManager interface + MainOutputViewModel implementation |

| Gum/Commands/GuiCommands.cs | PrintOutput — dispatcher-safe wrapper |

| Tools/Gum.Presentation/Commands/IGuiCommands.cs | PrintOutput declaration |

| Tools/Gum.Presentation/Plugins/InternalPlugins/Output/MainOutputPlugin.cs | Registers the Output tab |

| Tool/Gum.Avalonia/Panels/ToolPanelViews.cs (OutputView) | Avalonia Output tab view; WPF twin is Gum/Plugins/InternalPlugins/Output/MainOutputPluginView.xaml |

| Tools/Gum.Presentation/Services/GumCoreServiceCollectionExtensions.cs | DI registration of MainOutputViewModel as IOutputManager |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.