agui-dotnet-sample-step
Skill16k starsChanged 9 months agoMITView on GitHub
Add a GettingStarted sample Step (a Server/Client pair) to the AG-UI .NET SDK that demonstrates one protocol feature the way we want users to write it. USE FOR: adding a new samples/GettingStarted/StepNN_<Name> Server+Client pair, wiring it into AGUI.slnx and the integration-test project, giving it a deterministic FakeChatClient for replay, and registering it in the Step tables in AGENTS.md / docs/architecture.md. DO NOT USE FOR: the replay/Verify integration-test mechanics (use agui-dotnet-integration-tests), the dojo scenarios under samples/AGUIClientServer (use agui-dojo), or protocol/wire changes the sample exercises (use agui-dotnet-wire-types / agui-dotnet-transport).
Trending
More talk lately.about the whole repository
Who's talking about ag-ui-protocol/ag-ui
- strands-agents/harness-sdk“[FEATURE] AG-UI”GitHub · May 29, 2025 · 44 reactions
- A Hacker News story“Show HN: AG-UI Protocol – Bring Agents into Frontend Applications”Hacker News · May 13, 2025 · 36 points
- NousResearch/hermes-agent“Feature: Web UI Gateway — Local Browser-Based Interface with Streaming, Artifacts & Rich Rendering”GitHub · Mar 6, 2026 · 10 reactions
- langchain-ai/deepagents“AG-UI integration/demo”GitHub · Nov 5, 2025 · 8 reactions
- Effect-TS/effect“Feature request: AG-UI protocol support for effect/ai”GitHub · Jun 15, 2026 · 7 reactions
The biggest 5 of 56 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 56
Talked about on GitHub, Bluesky and Hacker News (56 times).
On GitHub · 50
- May 29, 2025[FEATURE] AG-UI — strands-agents/harness-sdk44 reactions · 4 comments
- Mar 6, 2026Feature: Web UI Gateway — Local Browser-Based Interface with Streaming, Artifacts & Rich Rendering — NousResearch/hermes-agent10 reactions · 15 comments
- Nov 5, 2025AG-UI integration/demo — langchain-ai/deepagents8 reactions · 5 comments
- Jun 15, 2026Feature request: AG-UI protocol support for effect/ai — Effect-TS/effect7 reactions
- Aug 22, 2025Feature Request: Add AG-UI Protocol Support — HolmesGPT/holmesgpt7 reactions · 5 comments
45 more on GitHub
- Aug 12, 2026Make Copilot SDK consumable for end-users by adding first-class AG-UI protocol support — github/copilot-sdk5 reactions
- Apr 10, 2026FR : Integrations with the A2UI and AG‑UI Protocols — Chainlit/chainlit4 reactions · 2 comments
- Jun 27, 2025support agui protocol — langgenius/dify4 reactions · 3 comments
- Sep 14, 2026IPI-1211 · PLANNER-RELIABILITY — Upgrade the Mastra Bridge to 1.1.4 Before Re-Testing Intelligence — amoai-tech/ipixaisays it tested it3 reactions · 11 comments
- Aug 17, 2026[Question / Feature Request] Any plans or built-in support for AG-UI protocol integration? — google/adk-go3 reactions · 2 comments
- Sep 27, 2026IPI-1363 · Prevent malformed workspace context from crashing the Planner — amoai-tech/ipixai2 reactions · 6 comments
- Sep 20, 2026IPI-1259 · Show a visible Production Copilot error when an AI run drops — amoai-tech/ipixai2 reactions · 14 comments
- Jul 22, 2026fix(deps): bump @ag-ui/mastra to stable, prevent HITL interrupt strand (IPI-760) — amo-tech-ai/lumina-studio2 reactions · 14 comments
- Nov 16, 2025docs: pluralize add_langgraph_fastapi_endpoint due to ag-ui-protocol/ag-ui/pull/701 — CopilotKit/CopilotKit2 reactions · 4 comments
- Oct 17, 2025🚀 Feature Request: Agno shared state as adk-middleware — CopilotKit/CopilotKit2 reactions · 2 comments
- Jun 30, 2025feat: AG-UI adapter (toolsets) — pydantic/pydantic-ai2 reactions · 6 comments
- Nov 1, 2026chore(deps): bump @ag-ui/core from 1.0.2 to 1.0.3 — dungsil/keundal1 reaction · 1 comment
- Aug 31, 2026Bump jsondiffpatch, @ag-ui/mastra and @mastra/client-js — ovabor/worksync-frontend1 reaction · 2 comments
- Aug 20, 2026Tracking: our upstream comments on A2A #1992 and AG-UI #2148 — hukaichun/funduq1 reaction · 1 comment
- Apr 10, 2026🐛 Bug: [sdk-python] Intermediate messages from subgraphs appear in final MessagesSnapshotEvent — CopilotKit/CopilotKit1 reaction · 2 comments
- Mar 15, 2026Ensure glasses client is written correctly and perform gap analysis of design document and implement missing features — companionintelligence/CI-Mentra1 reaction
- Feb 22, 2026[FEAT] add Agno (AgnoOS) as a supported agent provider — tambo-ai/tambo1 reaction · 1 comment
- Oct 7, 2025为BotSharp添加AGUI兼容插件 — GreenShadeZhang/BotSharp1 reaction
- Jul 25, 2025https://github.com/ag-ui-protocol/ag-ui — mikkihugo/claude-code-zen1 reaction
- Jun 23, 2025[FEAT] Support AGUI — VoltAgent/voltagent1 reaction · 5 comments
- May 25, 2025AG-UI — mudler/LocalAGI1 reaction
- Nov 2, 2026chore(deps): bump the ag-ui-updates group across 1 directory with 2 updates — 46ki75/elmethis0 reactions
- Nov 2, 2026Bump @ag-ui/client from 0.0.59 to 1.0.3 — govuk-once/govuk-chat-v20 reactions
- Nov 1, 2026Bump zod and @ag-ui/core in /chatbot-app/frontend — aws-samples/sample-reconciliation-agent0 reactions
- Nov 1, 2026Bump @ag-ui/client from 0.0.59 to 1.0.1 in /web — cfokit/cfokit0 reactions · 1 comment
- Oct 24, 2026Bump @ag-ui/client from 1.0.2 to 1.0.3 in /extensions/conversationalbi/runtime — sanderdw/iceberg-data-platform0 reactions
- Oct 23, 2026DEV: Bump @ag-ui/client from 0.0.59 to 1.0.3 in /architect-html — origam/origam0 reactions
- Oct 22, 2026[TASK] Progressive A2UI over AG-UI via a render_a2ui system tool — yaalalabs/agent-kernel0 reactions
- Oct 20, 2026chore: bump @ag-ui/client from 0.0.59 to 1.0.3 — 46ki75/internal0 reactions · 1 comment
- Oct 19, 2026build(deps): bump @ag-ui/client from 1.0.2 to 1.0.3 in /harness/web — roboalchemist/kicad-agent0 reactions
- Oct 15, 2026deps: bump @ag-ui/client from 0.0.59 to 1.0.2 — d2k-klin/reelhive0 reactions · 1 comment
- Oct 15, 2026deps: bump ag-ui-protocol from 0.1.22 to 1.0.0 — d2k-klin/reelhive0 reactions · 1 comment
- Oct 12, 2026Bump @ag-ui/client from 0.0.59 to 1.0.2 in /apps/portal — ovsec/agent-platform0 reactions
- Oct 11, 2026chore(deps): bump @ag-ui/client from 0.0.59 to 1.0.2 in /apps/admin — karthictu/casepilot0 reactions
- Oct 9, 2026build(deps): Bump @ag-ui/client from 0.0.59 to 1.0.2 in /src/web — devkimchi/battle-school-lunch0 reactions
- Oct 8, 2026ag-ui — hmafridy1-sketch/Hemel0 reactions
- Oct 5, 2026chore(deps): Bump @ag-ui/core from 0.0.57 to 1.0.1 in /server — dineshreddymeka/Agent-Marko0 reactions · 1 comment
- Oct 4, 2026build(deps): Bump ag-ui-protocol from 0.1.19 to 1.0.0 in /services/form-agent — angelmtenor/ai-circus-framework0 reactions
- Oct 4, 2026build(deps): Bump ag-ui-protocol from 0.1.19 to 1.0.0 in /services/rag-agent — angelmtenor/ai-circus-framework0 reactions
- Oct 4, 2026build(deps): Bump ag-ui-protocol from 0.1.19 to 1.0.0 in /services/assistant — angelmtenor/ai-circus-framework0 reactions
- Oct 4, 2026chore(deps): bump @ag-ui/core from 1.0.0 to 1.0.1 — c10366956/cyrene-cda0 reactions
- Oct 2, 2026Bump ag-ui-protocol from 0.1.19 to 1.0.0 — sidhasadhak/aughor0 reactions
- Sep 29, 2026chore(deps): bump @ag-ui/client from 0.0.59 to 1.0.2 in /chatbot-app/frontend — aws-samples/sample-strands-agent-with-agentcore0 reactions
- Sep 29, 2026chore(deps): bump @ag-ui/core from 0.0.59 to 1.0.2 in /chatbot-app/frontend — aws-samples/sample-strands-agent-with-agentcore0 reactions
- Sep 28, 2026build(deps): bump ag-ui-protocol from 0.1.22 to 1.0.0 — srtab/daiv0 reactions
On Bluesky · 5
- Aug 6, 2025with the emergence of early MCP-UI and AG-UI standards, the 2013 perspective of "cards are the future of the web" is set to ring true for a… — @ronan.design3 likes and reposts · 1 reply
- Oct 2, 2026📦 ag-ui-protocol / ag-ui ⭐ 16,187 (+68) 🗒 TypeScript AG-UI: the Agent-User Interaction Protocol. Bring Agents into Frontend Applications. — @github-trending-js.bsky.social1 likes and repost
- Jul 29, 2026📦 ag-ui-protocol / ag-ui ⭐ 15,003 (+48) 🗒 TypeScript AG-UI: the Agent-User Interaction Protocol. Bring Agents into Frontend Applications. — @github-trending-js.bsky.social1 likes and repost
- Jul 22, 2026github.com/ag-ui-protoc... [Related post:https://javapro.io/2026/07/16/solving-spring-ais-ui-challenge-with-ag-uis-java-sdk/] << ...open,… — @stefanofago.bsky.social1 likes and repost
- May 14, 2025github.com/ag-ui-protoc... — @detroitpro.bsky.social1 likes and repost
On Hacker News · 1
- May 13, 2025Show HN: AG-UI Protocol – Bring Agents into Frontend Applications36 points · 5 comments
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agui-cross-sdk-paritySkill
- agui-dojoSkill
- agui-dotnet-agents-syncSkill
- agui-dotnet-code-reviewSkill
- agui-dotnet-cross-language-testsSkill
- agui-dotnet-feature-workflowSkill
- agui-dotnet-integration-testsSkill
- agui-dotnet-sdk-docsSkill
- agui-dotnet-transportSkill
- agui-dotnet-unit-testsSkill
- agui-dotnet-wire-typesSkill
- agui-playwright-validateSkill
- ag-ui-a2ui-integrationSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Run all commands from sdks/dotnet/.
- Very specific: line 60
Solution: Add both .csproj paths to AGUI.slnx under the /samples/GettingStarted/ folder, in Step order.
- Very specific: line 62
Integration-test references: Add a ProjectReference to both the Server and Client projects in …
- Very specific: line 65
Replay test: Add Samples/GettingStarted/StepNN_<Name>Test.cs deriving from IntegrationTestBase<StepNN_<Name>.Server.Program>, then record …
- Very specific: line 71
Doc tables: Add the Step to the Step tables in sdks/dotnet/AGENTS.md and sdks/dotnet/docs/architecture.md (and the PR review guide's Step …
- Distinctive: line 87
Run the pair end to end (server in one shell, client in another) to confirm it reads like the code a user would write — the bar for a …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AG-UI .NET — Add a GettingStarted Sample Step
The samples/GettingStarted/Step01..StepNN pairs are the primary consumer-facing
deliverable: each Step is a self-contained Server + Client that demonstrates one
feature, written to look like the code we want users to write. Adding a Step is a
recurring, multi-artifact task. This skill covers the sample anatomy and wiring; it
routes the integration-test mechanics to agui-dotnet-integration-tests and the doc
sync to agui-dotnet-agents-sync.
Run all commands from sdks/dotnet/. Confirm the next free number and the current naming
by listing samples/GettingStarted/Step* first — never assume the range.
Anatomy of a Step
A Step is a folder samples/GettingStarted/StepNN_<Name>/ with two projects:
StepNN_<Name>.Server— an ASP.NET host (Microsoft.NET.Sdk.Web,net10.0).Program.cscallsbuilder.Services.AddAGUI(), registers anIChatClient, and ends withapp.MapAGUI("/"). TheIChatClientis the whole point: the SDK turns anyIChatClientinto an AG-UI endpoint, so the sample logic is just MEAI.- References
src/AGUI.Abstractions+samples/AGUI.Samples.Shared(the ASP.NET glue). It does not reference ansrc/server package directly. InternalsVisibleTothe integration-test project so its replay test can reach the server'sProgramand anyFakeChatClient.- Provide a deterministic
FakeChatClientfallback (fixed clocks, canned tool results) used when no real LLM is configured. Replayable determinism is what lets the integration test record once and replay forever.
- References
StepNN_<Name>.Client— a console app (Microsoft.NET.Sdk,OutputType Exe,net10.0).Program.csbuilds the client and hands it to a sharedSampleClient:using HttpClient httpClient = new() { BaseAddress = new Uri(baseUrl) }; var aguiClient = new AGUIChatClient(new(httpClient, baseUrl)); await SampleClient.RunAsync(aguiClient, Console.Out);- References only
src/AGUI.Client. (AGUIChatClientis constructed fromAGUIChatClientOptions— seeagui-dotnet-transportfor the protobuf opt-in viaAGUIEventStreamHandler.)
- References only
Mirror the closest existing Step rather than inventing structure: the feature determines
which one (tools → Step02/03, interrupts → Step09/10, state → Step05, parallel calls →
Step12). Keep the file-name/type-name/namespace consistent (StepNN_<Name>.Server etc.).
Wiring (the parts agents forget)
- Solution. Add both
.csprojpaths toAGUI.slnxunder the/samples/GettingStarted/folder, in Step order. - Integration-test references. Add a
ProjectReferenceto both the Server and Client projects intests/AGUI.Hosting.AspNetCore.IntegrationTests/*.csproj(it references every Step pair so its replay tests can host them). - Replay test. Add
Samples/GettingStarted/StepNN_<Name>Test.csderiving fromIntegrationTestBase<StepNN_<Name>.Server.Program>, then record its baseline. The recording/Verify/8-capture-point mechanics belong toagui-dotnet-integration-tests— use that skill; don't reinvent them here. Fixtures land underSamples/GettingStarted/fixtures/StepNN_<Name>/and baselines underbaselines/StepNN_<Name>/. - Doc tables. Add the Step to the Step tables in
sdks/dotnet/AGENTS.mdandsdks/dotnet/docs/architecture.md(and the PR review guide's Step table if present) viaagui-dotnet-agents-sync.
GettingStarted Steps are standalone console samples, not dojo scenarios. The dojo is a
separate host (samples/AGUIClientServer/AGUIDojoServer) — only touch it via agui-dojo
if the feature also needs a dojo demo.
Verify
dotnet build samples/GettingStarted/StepNN_<Name>/StepNN_<Name>.Server/StepNN_<Name>.Server.csproj
dotnet build samples/GettingStarted/StepNN_<Name>/StepNN_<Name>.Client/StepNN_<Name>.Client.csproj
dotnet test tests/AGUI.Hosting.AspNetCore.IntegrationTests/ --filter StepNN_<Name>Run the pair end to end (server in one shell, client in another) to confirm it reads like the code a user would write — the bar for a sample is exemplary, not merely passing.
❌ Anti-patterns
- Non-deterministic sample behavior. A wall-clock, RNG, or live network call in the
FakeChatClientpath breaks record/replay. Use fixed values. - Protocol or hosting code in the sample. A Step composes existing SDK APIs; if it
needs a new event/encoding, that lands in
src/first (agui-dotnet-wire-types/agui-dotnet-transport), and the sample only consumes it. - Half-wired Step. Forgetting
AGUI.slnx, the integration-testProjectReference, or the doc Step tables leaves a sample that builds locally but isn't covered, shipped in the solution, or documented. - Diverging from the sibling Steps. Copy the closest Step's shape (naming, csproj refs,
Program.csskeleton,InternalsVisibleTo) instead of a new layout.
References
- Replay/Verify test mechanics:
agui-dotnet-integration-tests. - Step tables / structure sync:
agui-dotnet-agents-sync. - Protobuf opt-in or a new encoding the Step demos:
agui-dotnet-transport. - End-to-end workflow context:
agui-dotnet-feature-workflow.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

