cd /news/ai-agents/show-hn-i-made-a-webgpu-based-agent-… · home topics ai-agents article
[ARTICLE · art-42839] src=tdu-naifen.github.io ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Show HN: I Made a WebGPU Based Agent/Worlflow Explainer

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.

read1 min views1 publishedJun 29, 2026

What is an agent loop? #

An 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.

INPUT→THINK→GENERATE→ACT↺ result → next input

Agents — they loop until done

the model decides the next move each turn

What is a workflow? #

A 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.

CODE→CODE→MODEL→CODEone fixed pass, no loop

Workflows — fixed pipelines

deterministic stages; the model fills one slot

── more in #ai-agents 4 stories · sorted by recency
── more on @webgpu 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-i-made-a-web…] indexed:0 read:1min 2026-06-29 ·