vgpu-agent-flow
Skill2.4k starsChanged 2 months agoMITView on GitHub
Lead workflow for developing vgpu features and Blender assets with the repository's subharness specialists. Use for agent-based research, API design, implementation, shaders, materials, simulations, or ImageGen-guided asset iteration, and when the human mentions the agent flow or subharness team.
- Reads credentials
- Installs packages
Trending
Quiet since October.about the whole repository
Who's talking about vercel-labs/vgpu
- @camilleroux.com“vgpu, librairie TypeScript de Vercel Labs pour WebGPU, importe les fichiers .wgsl comme modules typés avec …”Bluesky · Aug 29, 2026 · 7 likes
- @yug1224.com“ブラウザとNode.jsの両方でWebGPUシェーダーを動かせるTypeScriptライブラリっぽい グラフィックス表現やビジュアライズの実装でめちゃくちゃ使えそう yug1224 starred …”Bluesky · Sep 5, 2026 · 3 likes
- @technews4869.bsky.social“github.com/vercel-labs/vgpu GitHub - vercel-labs/vgpu: Modular cross-runtime WebGPU library for shaders, 3D …”Bluesky · Sep 5, 2026 · 1 likes
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 vercel-labs / vgpu ⭐ 923 (+209) 🗒 TypeScript Modular cross-runtime …”Bluesky · Aug 29, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.vercel-labs.vgpu: init at 0.5.0”GitHub · Oct 3, 2026
The biggest 5 of 19 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 19
Talked about on GitHub and Bluesky (19 times).
On GitHub · 15
- Oct 3, 2026agent-skills.github.vercel-labs.vgpu: init at 0.5.0 — sudosubin/agents.nix0 reactions
- Sep 21, 2026Bump vgpu from 0.4.1 to 0.5.0 in /web — Dojo-1/doubt-the-machine0 reactions · 1 comment
- Sep 18, 2026chore(deps): bump the minor-and-patch group with 3 updates — kleinpanic/datahall0 reactions · 1 comment
- Sep 17, 2026Bump vgpu from 0.3.1 to 0.5.0 — scristobal/retropixels-vgpu0 reactions
- Sep 17, 2026chore(deps): bump the production group with 8 updates — PunGrumpy/vecstore-sdk0 reactions · 7 comments
10 more on GitHub
- Sep 14, 2026Add subtle vgpu CRT glass and curvature — pablostanley/vackrooms0 reactions · 1 comment
- Sep 14, 2026feat(graphics): 探索使用 WebGPU / vgpu 重构 SignalCore 光线色散与体积光效果 — A1oha666/MonostichBlog0 reactions
- Sep 14, 2026Bump vgpu from 0.4.0 to 0.4.1 in /web — Dojo-1/doubt-the-machine0 reactions · 2 comments
- Sep 11, 2026Bump vgpu from 0.3.1 to 0.4.1 — scristobal/retropixels-vgpu0 reactions · 1 comment
- Sep 7, 2026Bump vgpu from 0.3.1 to 0.4.0 — scristobal/retropixels-vgpu0 reactions · 1 comment
- Sep 7, 2026Bump vgpu from 0.3.1 to 0.4.0 in /web — Dojo-1/doubt-the-machine0 reactions · 2 comments
- Sep 2, 2026chore(labs): vgpu WebGPU demos — headless Metal render + Vite gallery — ziyu4huang/video_generation0 reactions
- Aug 31, 2026Add Learn vgpu (Tutorials) and a vgpu demo (Demos) — mikbry/awesome-webgpu0 reactions · 3 comments
- Aug 29, 2026canvasMouseTracker reports pointer positions at 1/devicePixelRatio scale — vraj00222/vgpu0 reactions
- Aug 27, 2026Update skill: /vercel-labs-vgpu (medium risk) — aiskillstore/marketplace0 reactions
On Bluesky · 4
- Aug 29, 2026vgpu, librairie TypeScript de Vercel Labs pour WebGPU, importe les fichiers .wgsl comme modules typés avec une API unique valable… — @camilleroux.com7 likes and reposts · 3 replies
- Sep 5, 2026ブラウザとNode.jsの両方でWebGPUシェーダーを動かせるTypeScriptライブラリっぽい グラフィックス表現やビジュアライズの実装でめちゃくちゃ使えそう yug1224 starred vercel-labs/vgpu… — @yug1224.com3 likes and reposts
- Sep 5, 2026github.com/vercel-labs/vgpu GitHub - vercel-labs/vgpu: Modular cross-runtime WebGPU library for shaders, 3D scenes, GPU tens... — @technews4869.bsky.social1 likes and repost
- Aug 29, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 vercel-labs / vgpu ⭐ 923 (+209) 🗒 TypeScript Modular cross-runtime WebGPU library for shaders, 3D… — @github-trending-js.bsky.social1 likes and repost · 1 reply
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apps/docs/agents.mdAGENTS.md
- vgpuSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 4 are distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
All pipeline artifacts are gitignored scratch under .context/work/<topic>/ (kebab-case topic):
- Very specific: line 63
Before Phase 1, follow AGENTS.md and .github/guides/workflow-context.md: establish the directing person's role (run its gh permission …
- Very specific: line 84
Write brief.md. Split the question into 2–5 independent angles (e.g.
- Very specific: line 90
Use api-researcher for API questions and graphics-researcher for shaders, materials, simulations, and rendering techniques.
- Very specific: line 108
Write decisions.md: one numbered section per decision (D1, D2, ...) with the chosen option, the final signatures/defaults/error codes, …
- Distinctive: line 126
Create an isolated worktree and bring the pipeline folder into it:
- Distinctive: line 135
Run the lane's tasks in order, one implementer session per task, each lane as its own background command:
- Very specific: line 142
After each task, copy the lane's plan/progress/<id>.md back and update plan/progress.md.
- Distinctive: line 149
Run your own integration review over the whole branch:
- Very specific: line 167
Remove finished worktrees: git worktree remove .context/worktrees/<topic>-<lane>.
- Very specific: line 188
When several examples are built in sequence, improve the builder between them: ask its session what context or tooling would have saved …
- Distinctive: line 195
Use the agent handoff contract for task assignments, results and review follow-ups.
- Very specific: line 199
Prefer one ordinary subharness run ...
- Very specific: line 204
Use wait <task-id> --after <response-id> to observe later responses.
- Very specific: line 207
Follow up in the same session with subharness send <session-id> --prompt "...".
- Very specific: line 218
Check readiness without spending a model turn: npx subharness check repo:<name>.
- Very specific: line 222
All vgpu specialists, including Codex/Claude implementations and child writers/reviewers, must use Vercel project OIDC through AI Gateway …
- Very specific: line 248
Verify every role with pnpm exec subharness check repo:<name>, including implementation, writer, reviewer, and both researchers.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
vgpu agent flow
You are the lead. Specialists live in .subharness/agents/ and run through the subharness CLI
(root devDependency; call it as pnpm exec subharness or npx subharness). You own every
conversation with the human, every decision, every worktree, and every merge. Specialists never
talk to the human and never see this conversation — each prompt must carry the full context.
Team
For Blender assets and image-guided visual refinement, use the asset iteration lane. It pairs an Astra author with declared Opus 5.5 shader/runtime and critique children, with measured screenshots and evidence-based lessons. The normal API phases below still apply if the asset work changes a public API.
| Target | Harness / model | Role |
repo:api-researcher | fx google/gemini-3.8-flash → Codex gpt-5.6-luna | How other frameworks/libraries solve it. Raw findings only |
repo:graphics-researcher | fx google/gemini-3.8-flash → Codex gpt-5.6-luna | Papers, talks, shipped game techniques. Raw findings only |
repo:eval-designer | Claude claude-opus-5.5 high → Codex gpt-6-astra high | Eval methodology, independent gates, negative controls, and evidence-based analysis |
repo:api-designer | Codex gpt-6-astra xhigh → Claude claude-opus-5.5 xhigh | API alternatives + illustrative snippets, agent-ergonomics evaluation |
repo:planner | Codex gpt-6-astra high → Claude claude-opus-5.5 high | Plan folder: index, task specs, lanes, progress log |
repo:implementer | Codex gpt-5.6-sol high → Claude claude-opus-5.5 high | One task, test-first; runs writer and reviewer as children; commits |
repo:writer | Claude claude-opus-5.5 high → Codex gpt-5.6-sol high | Docs in house style (called by implementer, or by you for docs-only work) |
repo:reviewer | Claude claude-opus-5.5 high → Codex gpt-6-astra high | Read-only review (called by implementer per task, and by you after integration) |
repo:builder | Codex gpt-5.6-sol high → Claude claude-opus-5.5 high | Applies a bounded list of integration-review findings |
repo:asset-author | Codex gpt-6-astra high (no fallback) | Blender modeling, renders, environment lighting and AO/lightmap bakes; declares runtime and critic children |
repo:asset-runtime | Claude claude-opus-5.5 high (no fallback) | Shaders, browser rendering and parity with Blender; called by asset-author |
repo:asset-critic | Claude claude-opus-5.5 high (no fallback) | Actual capture and cost review, called by asset-author |
repo:example-builder | Claude claude-opus-5.5 xhigh | One docs gallery example end to end from a brief; sees it running through capture_preview; runs example-reviewer; commits |
repo:example-reviewer | Claude claude-opus-5.5 high | Example review: code plus hands-on interaction checks through capture_preview (called by example-builder) |
Fallback (→) only happens when the first harness is unavailable before the task starts (missing CLI, no login, no fx Gateway access). A task that fails after starting is never retried elsewhere; re-run it yourself if needed.
Workspace
All pipeline artifacts are gitignored scratch under .context/work/<topic>/ (kebab-case topic):
.context/work/<topic>/
brief.md # you: the problem statement in the human's words + constraints
research/<angle>.md # researchers: raw findings
design/api-options.md # api-designer: alternatives + snippets
decisions.md # you: locked decisions (after human validation)
plan/index.md # planner
plan/tasks/T01-*.md # planner
plan/progress.md # planner creates; you keep it current
plan/progress/T01.md # implementers
reviews/integration-*.md # you: saved integration review output
.context/worktrees/<topic>-<lane>/ # git worktrees for parallel lanesNever commit .context/.
Phase 0 — Select the repository workflow
Before Phase 1, follow AGENTS.md and .github/guides/workflow-context.md: establish the directing
person's role (run its gh permission lookup if unknown) and the task's origin, then select
maintainer-original (internal work), maintainer-adoption (anything originating from an external
issue/PR), or external-contributor. Announce the workflow and record it in brief.md:
Workflow: maintainer-original | maintainer-adoption
Origin: internal request, or source issue/PR URL + author
Triage: confirmed problem, evidence, disposition
Scope: accepted outcome and non-goalsThe phases below implement that workflow's plan and implementation stages; they do not replace its
rules on baseline, changesets, PR delivery, or merge authorization. Every lane branches from a
freshly fetched origin/canary (<base> below) unless the task is a documented production lane.
For adoption, pass the source links to every specialist as evidence and state that the external
implementation must not be copied, cherry-picked, or merged. Stop at the stage the human asked for:
a research or design request ends with findings, a planning request with the plan.
Phase 1 — Research
- Write
brief.md. Split the question into 2–5 independent angles (e.g. "three.js / Babylon API shape", "Bevy / wgpu resource lifetime", "screen-space GI papers 2018–2025"). - Launch one researcher per angle in parallel, each as its own background command:
Usenpx subharness run repo:api-researcher --prompt "Topic: <topic>. Brief: .context/work/<topic>/brief.md. Question: <angle question>. Write .context/work/<topic>/research/<angle-slug>.md."api-researcherfor API questions andgraphics-researcherfor shaders, materials, simulations, and rendering techniques. - Researchers do not conclude. Skim their files yourself only to decide whether an angle needs
a follow-up run (
subharness send <session-id> --prompt "...").
Phase 2 — API design (skip for work with no public API change)
npx subharness run repo:api-designer --prompt "Topic: <topic>. Read brief.md and research/ under .context/work/<topic>/. Design the public API for <problem>. Write design/api-options.md."Expect 2–4 alternatives; a single recommendation only when one clearly wins.
Phase 3 — Validate with the human and lock decisions
- Present the alternatives to the human: short summary, one key snippet each, trade-offs, the
designer's open decisions, and your recommendation. Use the ask-question tool for each open
decision. Iterate (re-run the designer with feedback via
send) until every decision is settled. - Write
decisions.md: one numbered section per decision (D1,D2, ...) with the chosen option, the final signatures/defaults/error codes, rejected alternatives with one-line reasons, and explicit non-goals. Mark itStatus: locked (<date>). Only the human can reopen a decision.
Phase 4 — Plan
npx subharness run repo:planner --prompt "Topic: <topic>. Plan the implementation of .context/work/<topic>/decisions.md. Write plan/ under .context/work/<topic>/."Review plan/index.md for lane isolation (disjoint files between lanes) and missing tasks
(docs, changeset, examples, bundle budgets, native GPU tests), and check that its PR record is
self-contained. Show the human the lane summary before starting implementation.
Phase 5 — Implement
For each lane that can start:
- Create an isolated worktree and bring the pipeline folder into it:
A single-lane plan can run in the current workspace instead.git fetch origin canary git worktree add .context/worktrees/<topic>-<lane> -b <topic>/<lane> <base> # <base> = origin/canary mkdir -p .context/worktrees/<topic>-<lane>/.context/work cp -R .context/work/<topic> .context/worktrees/<topic>-<lane>/.context/work/ (cd .context/worktrees/<topic>-<lane> && pnpm install --frozen-lockfile && pnpm build) - Run the lane's tasks in order, one implementer session per task, each lane as its own
background command:
The implementer writes tests first, runsnpx subharness run repo:implementer --cwd .context/worktrees/<topic>-<lane> --prompt "Topic: <topic>. Implement task .context/work/<topic>/plan/tasks/T03-<slug>.md. Base ref: <base>. Governing: .context/work/<topic>/decisions.md."writerfor docs in parallel, runsreviewer(max 2 rounds), commits on the lane branch, and writesplan/progress/<id>.md. - After each task, copy the lane's
plan/progress/<id>.mdback and updateplan/progress.md. Report blocked tasks and disputed findings to the human instead of forcing them through.
Phase 6 — Integrate, review, polish
- Merge lane branches into the feature branch in the plan's integration order; resolve conflicts yourself and run the checks the plan lists after each merge.
- Run your own integration review over the whole branch:
Save the output tonpx subharness run repo:reviewer --prompt "Integration review for <topic>. Base: <base>. Governing: .context/work/<topic>/decisions.md and plan/index.md. Review the full branch diff, focusing on cross-task consistency, public API contract, docs vs code, and release hygiene."reviews/integration-<n>.md. - Hand blocker/major findings (and cheap polish) to the builder as a numbered list:
Re-review if the builder changed behavior. Then summarize to the human: what shipped, checks run, and remaining findings. When the human asks for a PR, follownpx subharness run repo:builder --prompt "Topic: <topic>. Fix these findings on the current branch: 1. ... 2. ... Verify with: <commands>.".github/guides/pull-requests.mdand.github/pull_request_template.mdagainstcanary. Build the description fromplan/index.md's PR record, the keydecisions.mdentries, and the implementers' validation notes; reviewers cannot see.context/. Declare exactly one PR type (developmentfor normal work) and one release impact matching the diff, and runpnpm migrations:check. For adoption, link the sources and credit the actual contribution; add aCo-authored-bytrailer only when verified and warranted. Opening a PR does not authorize merging, closing sources, or releasing. - Remove finished worktrees:
git worktree remove .context/worktrees/<topic>-<lane>.
Gallery examples
A new apps/docs/examples/<slug> example skips Phases 1–4: write
.context/work/<topic>/briefs/<slug>.md (idea, quality bar, interactions, constraints, closest
reference examples) and run one builder session per example in the target checkout:
npx subharness run repo:example-builder --prompt "Topic: <topic>. Build the example in .context/work/<topic>/briefs/<slug>.md. Base ref: origin/canary."The builder carries the example contract in .subharness/tools/example-playbook.ts and these tools:
capture_preview (.subharness/tools/preview/) loads /preview/<slug> from the checkout's docs dev
server in headless WebGPU Chrome, replays scripted mouse/touch/keyboard input, and returns
screenshots, burst contact sheets, console problems, and GPU/frame timing; render_thumbnail,
verify_example, and bundle_report (.subharness/tools/example/) cover thumbnails, the
pre-commit checklist, and chunk budgets. Two also run from a shell:
node .subharness/tools/preview/cli.ts <slug> --steps '<json>' and
node .subharness/tools/thumbs/mesa.ts <slug> [--update] (CI's pinned Mesa renderer).
When several examples are built in sequence, improve the builder between them: ask its session what
context or tooling would have saved time (subharness send <session-id> --prompt "..."), evaluate
each suggestion against the next brief and the repository rules, apply the ones that generalize to
the playbook or tools, and log feedback, verdicts, and changes in .context/work/<topic>/iterations.md.
Running specialists
Use the agent handoff contract for task assignments, results and review follow-ups. Keep full evidence on disk, pass compact revision-specific summaries, and use the executor's receipt to establish which artifacts were actually built or reviewed.
- Prefer one ordinary
subharness run ...per specialist through your background-command controls, continue other work, and collect the result. Otherwise use--detachand latersubharness wait <task-id>. Never use shell&. - Record the host background-command identifier alongside each task/session identifier. Collect
that command's result and inspect its state; an early response can leave descendant work pending.
Use
wait <task-id> --after <response-id>to observe later responses.--detachdoes not configure a completion notification or guarantee external chat reactivation; that depends on the host. Continue coordinating the authorized implementation after each result rather than ending at launch. - Follow up in the same session with
subharness send <session-id> --prompt "..."; cancel withsubharness cancel <task-id>.subharness dashboardshows live sessions. - Exit code 0 means a response arrived, not that the goal was met — read the response. A response
with
State: waitingmeans the specialist paused for a child; follow it withsubharness wait <task-id> --after <response-id>untilcompleted. - Version 0.0.5 returns
approval_requiredfor supported native permission requests. Inspect the actual operation, existing user authorization and returned schema; answer only an authorized, offered choice withsubharness respond <request-id> --content-file <path>, then observe the same task. Do not replay the prompt or broaden permissions. Hard sandbox denials remain hard denials. - In the dashboard, Up/Down selects a run, Enter opens session requests and expands prompt/response details, and Escape returns. Ctrl+C closes the monitor without stopping agents.
- Check readiness without spending a model turn:
npx subharness check repo:<name>.
Personal access (per user, not committed)
All vgpu specialists, including Codex/Claude implementations and child writers/reviewers, must use
Vercel project OIDC through AI Gateway so repository work is attributed to the project. Do not
fall back to native subscriptions, direct provider keys, or an unrelated Gateway key. Use the OIDC token of
the vercel-labs/vgpu project, configured once in the main checkout (worktrees read it from
there):
cd <main-checkout>
vercel link --yes --project vgpu --scope vercel-labs # writes .vercel/project.json
vercel env pull .env.local --yes # writes VERCEL_OIDC_TOKENvercel link may append .vercel / .env*.local to .gitignore; revert that and add them to
.git/info/exclude instead. Then create <main-checkout>/.subharness/agents.local.json
(auto-excluded from Git):
{
"access": {
"codex": [{ "type": "vercel-oidc", "project": ".", "envFile": ".env.local" }],
"claudeCode": [{ "type": "vercel-oidc", "project": ".", "envFile": ".env.local" }],
"fx": [{ "type": "vercel-oidc", "project": ".", "envFile": ".env.local" }]
}
}Verify every role with pnpm exec subharness check repo:<name>, including implementation, writer,
reviewer, and both researchers. A readiness check validates startup, not provider quota or a paid
inference result. Never print tokens or commit .env.local/agents.local.json.
The OIDC token expires after about 12 hours. The lead may renew it for this established project
through the existing authenticated Vercel CLI, following Subharness's sdk/access-config.md;
children report failures instead of racing to change shared credentials. Do not switch billing
routes when renewal fails. Credential changes apply only to new native sessions: checkpoint and
close older sessions, then start new sessions from those artifacts. A follow-up to an existing
session retains its original credentials. Record which sessions were restarted and the verified
project/expiry, without exposing credentials. The main-checkout access file covers linked worktrees;
a worktree-local copy is not an override.
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.

