Let Your Agent Pre-Label, Then Build the Human Safety Net: A Human-in-the-Loop Annotation Workflow in Voxel51
by Adonai Vera
• 7 min read
Author

Machine Learning Engineer
I'm exploring how we can make agents see, understand, and transform the world around us. I’m dedicated to building systems that bridge perception and action, shaping a future where technology seamlessly integrates into our lives.
See all articles by Adonai Vera
In this article
Key takeawaysA dataset with four ways to failConnect your agent, then ask it to pre-labelWhat came backThe second prompt: build the human safety netInside the stage graphStarting it, and watching it runThe audit trail: every write, attributedBuilding your own human-in-the-loop annotation pipelineWhere this matters outside a demo orgTry itFrequently asked questions
In this article
Key takeawaysA dataset with four ways to failConnect your agent, then ask it to pre-labelWhat came backThe second prompt: build the human safety netInside the stage graphStarting it, and watching it runThe audit trail: every write, attributedBuilding your own human-in-the-loop annotation pipelineWhere this matters outside a demo orgTry itFrequently asked questions
Try Voxel51 for yourself
Two prompts, zero clicks in the App. We connected a coding agent to a real Voxel51 deployment over the agent gateway, then gave it two instructions in plain English: pre-label a dataset of concrete bridge inspection photos, then build and launch a human review pipeline for exactly the samples it just labeled, reject loop included. The agent read each instruction, worked out which calls to make, and ran them itself end to end. Neither of us opened the samples grid, dragged a stage onto a canvas, or clicked an assign button. The result is a hybrid pipeline where an AI agent does the first pass at scale and a human team catches what it got wrong, with every write attributed in the dataset's own activity log, not a shared service account.
Key takeaways
- A coding agent connected to Voxel51 through the agent gateway can pre-label a dataset and build a human review workflow from two plain-English prompts, without anyone clicking in the Voxel51 App.
- On 40 images from the Concrete Defects dataset, a Voxel51 Agentic Labeling run drew 157 bounding boxes across four defect classes in 246 seconds, with zero parse or inference failures.
- A human-in-the-loop annotation workflow in Voxel51 routes AI pre-labels through an annotate-then-review stage graph, and its reject loop sends any rejected sample back to Annotate.
- Voxel51 logs every write from an AI labeling run in the dataset's Activity tab, attributed to the account that ran it, the same way it logs human edits.
A dataset with four ways to fail
Concrete Defects is 1,200 close-up inspection photos of reinforced concrete bridges and structures. A labeling agent already existed on this dataset, built by the Voxel51 team earlier, targeting four defect classes: a crack (a fracture line, long and narrow even where its edges have chipped), spalling (a patch where the surface has broken off, exposing rough aggregate), exposed rebar (a steel reinforcement bar visible inside a spalled area, usually rusty), and corrosion (rust-colored staining bleeding from steel, not to be confused with water stains, moss, or efflorescence). The agent's own system prompt is explicit about that last distinction, the kind of edge case a generic "find defects" prompt misses.
Connect your agent, then ask it to pre-label
The agent gateway is a remote, OAuth-authenticated Model Context Protocol (MCP) server. Point any MCP-capable client at it with a fixed client ID (Dynamic Client Registration is not supported, so this flag is required), and it runs under your own account and your own dataset permissions from then on:
claude mcp add --transport http --scope user voxel51-agent-gateway \
https://app.voxel51.com/api/proxy/fiftyone-teams/mcp \
--client-id voxel51-agent-mcpFull setup steps, including Cursor, VS Code, and OpenAI Codex, are in the agent setup docs. Remote agent access on a self-hosted deployment ships behind a feature flag, off by default, so if you are on-prem, ask your administrator to turn it on first.
Once connected, this is the entire first instruction, typed once, nothing else:
Using the existing "Concrete defects (boxes)" labeling agent on the Concrete Defects dataset, run it over the first 40 samples.From there the agent took over. It looked up the saved labeling agent by name, confirmed its target field (al_defect_boxes), and started the run itself, no follow-up question, no confirmation we had to approve beyond the initial instruction.
What came back
All 40 of 40 samples finished, zero parse failures, zero inference failures, in 246 seconds. The run used 40 requests, 220,600 input tokens and 4,101 output tokens total, and 78 percent of the input was served from cache, the same defect taxonomy and few-shot examples get reused on every sample, so only the image itself is new each time. The dataset's own activity log later confirmed the exact same numbers the run reported, not a separate estimate.
| Defect class | Boxes drawn |
|---|---|
| exposed_ | 63 |
| spalling | 48 |
| corrosion | 29 |
| crack | 17 |
157 boxes total across 40 images. One of the 40 came back with zero boxes, the agent's own instructions say to return nothing when the concrete is intact, and on this one image it did exactly that rather than forcing a detection to justify the call.
The second prompt: build the human safety net
Pre-labeling at scale is only half the story. The other half, newly exposed through the same gateway, is Voxel51's annotation workflow engine: projects that hold batches, a batch that runs a graph of stages (annotate, review, and more), split into tasks and handed to people, with full progress and metrics reporting. There is no separate REST or GraphQL API for any of it, an agent reaches the whole thing the same way it reached the labeling run above.
The full feature is documented in the Projects docs, projects, batches, stage graphs, review rounds with a reject loop, task assignment, and per-person metrics.
This is the second and last instruction we gave it, again typed once:
Take only the samples that came back with a defect, save that as a view, then build a project with an annotate-then-review workflow scoped to it: wire in a reject loop back to annotate, put our two reviewers in the pool, and start it.The agent broke this into its own steps, none of which we specified: it filtered down to the 39 samples that actually had a defect (the one empty sample was correctly left out, there is nothing to review on an intact photo), saved that as a named view, created the project, and built the batch scoped to it.
Inside the stage graph
A batch built from the annotate-then-review template arrives with the stages wired but no stream stage, a per-sample stage cannot take a whole collection directly, so the agent reads the draft back, inserts the missing stream stage between the start event and Annotate, and saves the complete graph in one call before anything can run. Review has two outputs: accepted samples move on to Complete, rejected samples route straight back to Annotate for another pass, the same reject loop whether a human rejects a human's work or a human rejects what the AI drew.
Starting it, and watching it run
Starting the batch locks its graph (you can still reassign tasks, change priority, or add more samples later, just not redesign the stages) and opens 39 samples worth of work in the Annotate stage. Our prompt never said who should hold the first task, so the agent left assignment on auto and let the least-loaded policy pick a holder by itself: Daniel Gural, the person with fewer open tasks between the two reviewers in the pool, no manual assignment step from either of us.
One honest limit worth flagging: our prompt never asked for the work to be split, so the agent left the Annotate stage's batching config at its default and all 39 samples became a single task held by one person, not spread across the two-person pool. Say so in the prompt ("split this across the team") and the agent sets batching to a fixed count or fixed size instead, the same config the stage already reads for splitting. We also did not complete the human review pass ourselves for this post, the task sat open, assigned, and ready, which is the real state a team sees the moment a batch like this goes live.
The audit trail: every write, attributed
The dataset's own Activity tab already shows the pre-labeling pass as three distinct entries, not one opaque bulk update: "Adonai Vera updated 40 samples via Run labeling", naming the exact field it wrote (al_defect_boxes) and a per-batch breakdown 2 samples / 21 labels, 37 samples / 135 labels, 1 samples / 1 labels, summing to the same 157 boxes the run itself reported. This is the same activity feed any human edit in the App writes to, the AI labeling run does not get a special, less visible lane. As reviewers work the Annotate and Review stages, each accept and each reject will land here the same way, by name, by timestamp, by exact sample.
Building your own human-in-the-loop annotation pipeline
- Pick a labeling agent that already fits your defect taxonomy, or write one, a short system prompt naming each class and its edge cases does more for accuracy than a bigger model.
- Pre-label a bounded view first, not the whole dataset, so you can look at what came back before committing a reviewer pool's time to it.
- Scope the review batch to only what has something to review, a saved view filtered to non-empty predictions keeps reviewers from clicking through intact samples with nothing to check.
- Start with auto assignment and a plain annotate-then-review template, add a second review tier or consensus only once you know the first pass is catching real mistakes, not before.
Where this matters outside a demo org
- Bridge and infrastructure inspection agencies already shoot thousands of photos per structure per cycle. An AI first pass that flags candidate defects, with a licensed inspector required to accept or reject every one before it counts, is the actual compliance shape most of these programs need, not a fully automated sign-off.
- Electronics manufacturing quality control (QC) lines run the identical pattern on printed circuit board (PCB) defect detection instead of concrete, the same gateway, the same two-stage pipeline, just a different labeling agent's system prompt.
- Any annotation team scaling past what full manual labeling can cover gets a cheaper first pass without giving up a human sign-off step, the reject loop is exactly the mechanism that keeps the AI's mistakes from reaching the final dataset unexamined.
Try it
The full workflow engine, projects, batches, stages, consensus, metrics.
Agentic Labeling itself, how to build and test a labeling agent.
Browse a real industrial anomaly detection dataset live on Voxel51 Cloud.
Frequently asked questions
Human-in-the-loop annotation is a labeling workflow where an AI model or agent labels data first and people review, correct, or reject those labels before they reach the final dataset. In this Voxel51 example, a labeling agent pre-labels concrete defects and a review stage with a reject loop sends rejected samples back to Annotate.
You connect a coding agent to Voxel51 through the agent gateway, a remote, OAuth-authenticated MCP server. Add it to an MCP client such as Claude Code, Cursor, VS Code, or OpenAI Codex with the fixed client ID voxel51-agent-mcp, and the agent runs under your own account and dataset permissions.
Yes, an AI agent can build and start an annotation review workflow in Voxel51 through the agent gateway. In this example, the agent saved a view of the 39 pre-labeled samples, created a project, built an annotate-then-review stage graph with a reject loop, and started the batch from one prompt.
Voxel51 records changes made by an AI labeling agent in the dataset's Activity tab, the same feed that logs human edits in the App. The labeling run shows up attributed to the account that ran it, with the field it wrote and the number of samples it changed.

Machine Learning Engineer
I'm exploring how we can make agents see, understand, and transform the world around us. I’m dedicated to building systems that bridge perception and action, shaping a future where technology seamlessly integrates into our lives.
See all articles by Adonai Vera
Try Voxel51 for yourself
Related posts
Boost your visual and physical AI workflows.


by Adonai Vera, DevRel
AI agents, Product and news
• 