{"slug": "show-hn-i-made-a-webgpu-based-agent-worlflow-explainer", "title": "Show HN: I Made a WebGPU Based Agent/Worlflow Explainer", "summary": "A developer created a WebGPU-based explainer that visualizes the difference between agent loops and fixed workflows in AI systems. The tool shows how agents iteratively think, generate tool calls, and act until a task is complete, while workflows follow a predetermined pipeline with the model filling a single slot.", "body_md": "## What is an agent loop?\n\nAn agent solves a task by looping: it reads its **input**, **thinks**, **generates** a tool call, and the harness **acts** — the result becomes the next input, and it loops until done. A **tool** is a function the model may call. A **trace** is the recorded log of every step. A **guardrail** stops an unsafe or runaway action.\n\nINPUT→THINK→GENERATE→ACT↺ result → next input\n\n### Agents — they loop until done\n\nthe model decides the next move each turn\n\n## What is a workflow?\n\nA workflow is a **fixed pipeline**: the stages and their order are decided by code, not the model. Each stage either runs deterministic logic or calls the model exactly once, then hands off to the next. No looping, no tool choice — the model fills **one slot** and the harness drives the rest. Predictable and cheap; the trade-off is no autonomy.\n\nCODE→CODE→MODEL→CODEone fixed pass, no loop\n\n### Workflows — fixed pipelines\n\ndeterministic stages; the model fills one slot", "url": "https://wpnews.pro/news/show-hn-i-made-a-webgpu-based-agent-worlflow-explainer", "canonical_source": "https://tdu-naifen.github.io/AgentVisualization/", "published_at": "2026-06-29 02:21:53+00:00", "updated_at": "2026-06-29 02:28:02.526262+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "ai-tools"], "entities": ["WebGPU"], "alternates": {"html": "https://wpnews.pro/news/show-hn-i-made-a-webgpu-based-agent-worlflow-explainer", "markdown": "https://wpnews.pro/news/show-hn-i-made-a-webgpu-based-agent-worlflow-explainer.md", "text": "https://wpnews.pro/news/show-hn-i-made-a-webgpu-based-agent-worlflow-explainer.txt", "jsonld": "https://wpnews.pro/news/show-hn-i-made-a-webgpu-based-agent-worlflow-explainer.jsonld"}}