Skip to main content

Pull up a chair by the window, and the controls move right in.

In a log cabin study, a glass person at a desk points at a settings card on a monitor, while a small mint robot swings open a window pane and Ouro, a smiling emerald snake curled into an O, basks on the sill.In a log cabin study, a glass person at a desk points at a settings card on a monitor, while a small mint robot swings open a window pane and Ouro, a smiling emerald snake curled into an O, basks on the sill.

Get started

Add it with dotnet.

Each release publishes the packages to GitHub Packages, ourostack's NuGet feed, which asks for a sign-in even for public packages: a token with read:packages. gh auth token gives you one, after gh auth refresh -s read:packages.

dotnet nuget add source https://nuget.pkg.github.com/ourostack/index.json --name ourostack --username <your GitHub login> --password <token> --store-password-in-clear-text
dotnet add package Ouro.UI.Windows --source ourostack

Rather not sign in? Each release attaches its .nupkg files too, for a local feed. Release 0.12.1

Five minutes

A button that knows what it does.

Declare your actions once in TypeScript with core’s defineAction, then generate the Windows files. An OuroButton with an Action runs it through the same runtime an agent’s call goes through.

  1. Generate the doors

    node vendor/core/ouro-actions-windows.mts generate my.actions.mts Generated

    That writes OuroActions.g.cs (the catalog), app-actions.json (App Actions), mcpb.manifest.json (the MCP bundle for the Agent Registry) and doors.json (which door carries which action, and why not).

  2. Press it, or let an agent call it

    MainWindow.xaml.cs
    var runtime = new OuroActionRuntime(OuroActions.Catalog, MyHandler.Handle, new OuroJsonlAudit(auditPath))
    {
        Confirm = OuroPerson.Dialog(() => window.Content.XamlRoot),
    };
    var add = new OuroButton { Action = OuroActions.AddShoppingListItem, Runtime = runtime, Input = () => new() { ["name"] = field.Text } };

    A consequential action an agent prepared waits for the person's yes before it runs.

  3. Draw an agent’s card

    Generate your catalog from your actions with core’s ouro-a2ui-catalog.mts catalog, then give OuroComposedSurface the tool result. It draws Ouro's composed tree or A2UI messages, limited to your catalog.

    An unpackaged app needs <EnableMsixTooling>true</EnableMsixTooling> in its project, so the build writes its resources.pri and the controls’ templates load.

  4. Check what you installed

    gh attestation verify Ouro.UI.Windows.0.12.1.nupkg --repo ourostack/ouro-ui-windows

    The release workflow attests each file it attaches, so you can check a package was built from its tag.

The rest, from the controls’ manners to where Windows differs from the spec, is in the kit’s README. What it has beside the other platforms is on Ouro HX’s coverage.