
Self-Improving Robots: An Agent-Orchestrated Platform for Autonomous Skill Development on AWS
This post introduces an AWS architecture for self-improving robots. A cloud orchestrator agent (Amazon Bedrock AgentCore) and an edge agent (AWS IoT Greengrass on NVIDIA Jetson) form an autonomous loop: robots execute tasks, record data, get evaluated, retrain on SageMaker, and redeploy — without human intervention. The result: entire robot fleets that continuously improve their skills autonomously.
Introduction
Robots are transforming industries from manufacturing to healthcare, but training them remains expensive, slow, and brittle. Each iteration typically demands expert roboticists, manual data collection, and human evaluation — creating a bottleneck that limits scalability.
Self-improving robots are systems that autonomously collect data, generate their own reward signals, and iteratively refine their policies without human intervention, which makes them more efficient, flexible, and capable than traditionally pre‑programmed machines. This concept represents a paradigm shift from traditional robot learning, which can significantly enhance operations across various industries such as manufacturing assembly lines, logistics sorting and palletizing, healthcare lab automation, energy infrastructure inspection, and precision agriculture — anywhere robots need low-latency edge control with continuous cloud-driven improvement.
In this post, we introduce an end-to-end platform for self-improving robots. By combining AWS services — Amazon Bedrock, Amazon SageMaker, and AWS IoT Greengrass — with the HuggingFace LeRobot framework, we demonstrate a fully autonomous closed-loop system in which a robotic arm continuously evaluates its own performance, generates targeted training data, fine-tunes its policy model, and deploys updates — all without human intervention.
How It Works
The platform runs as a closed loop between two agents, a cloud orchestrator agent and an edge agent:
- Orchestrate: the cloud orchestrator agent decides which task or skill to improve and issues commands to the fleet.
- Execute: the edge agent runs the robot to execute the task using an edge-deployed model on an NVIDIA Jetson AGX Orin device.
- Collect: the edge agent record demonstrations with synchronized video and joint telemetry.
- Catalog: episodes stream to the cloud and are catalogued into a training-ready dataset.
- Train: a compact VLA model is trained/fine-tuned on the accumulated demonstrations on Amazon SageMaker.
- Deploy: AWS IoT Greengrass pushes the updated policy back to the edge; the edge agent runs it, the orchestrator reviews the results, and the loop repeats.

We use a knowledge distillation approach: SpatialVLA, a ~7B-parameter teacher model running in the cloud, transfers spatial reasoning capabilities to SmolVLA, a ~500M-parameter student model deployable on edge hardware. This delivers real-time inference under 50ms while maintaining strong generalization, all built on HuggingFace's LeRobot framework.
This architecture eliminates the manual training bottleneck. Synthetic data generation scales without costly real-world collection. Centralized cloud training means improvements benefit entire robot fleets simultaneously.
Solution Overview

AWS IoT Greengrass edge runtime runs the Strands Agents locally and handles software deployments and ML model updates. The local agent publishes the robot motor data via AWS IoT Core MQTT broker. An AWS IoT rule puts the telemetry data into an Amazon DynamoDB table. The agent also puts the video from robot cameras to Amazon Kinesis Video Streams.
The orchestrator agent running on Amazon Bedrock AgentCore handles both the video and telemetry data to evaluate the outcome of the episodes recorded. Depending on the general outcome of the episodes, the agent can start a training job in Amazon SageMaker.
The trained policy is a VLA model, small enough to run on the edge with real-time inference while retaining strong generalization. Because training is centralized in the cloud, improvements benefit the entire fleet at once; since data collection is automated by the edge agent, it scales without a roboticist in the loop for every episode.
The always-on edge agent
At the heart of the robot is a resident AWS IoT Greengrass v2 component: a long-running Python service at the edge computer that owns the arm and cameras for the device's entire uptime, rather than a script launched per task.
A natural-language command dialog over MQTT. The agent subscribes to `things/{robot_id}/cmd` through the Greengrass IPC MQTT proxy and publishes acknowledgements, status/heartbeat, and telemetry on sibling topics. A command is just a plain sentence such as "pick the box and place it to the landing area", "run the pick task" or "stop." An intent parser turns that sentence into a typed command using Amazon Bedrock with a deterministic keyword parser as an offline fallback so the device still understands core commands if the cloud is unreachable.
A single-activity supervisor. The arm is a single physical resource, so a supervisor state machine runs exactly one activity at a time — record, inference, or manual control — with latest-wins pre-emption: a new command asks the running activity to stop at the next safe boundary, and the arm always returns to a home pose with motors energized before the next activity begins.
Collecting demonstration data
The edge agent's primary job in the improvement loop is to produce training data by running the robot through a task and recording everything in a model-ready format.
Synchronized recording: While the arm executes a task, a recorder captures a dataset — per-step observations and actions at a fixed control rate — and simultaneously records episode video to Amazon Kinesis Video Streams. Episode markers such as start/end, outcome, step counts, are published as MQTT telemetry; an AWS IoT rule persists them, so each episode becomes a catalogued, queryable record.
Episode generation: Data can be produced three ways through the same pipeline: the agent autonomously executing a scripted skill (e.g., the pick-and-place primitive, which randomizes the cube's position each episode for positional variety), an operator or the cloud agent teleoperating the arm, and policy rollouts during inference recorded as evaluation episodes. In every case the output is the same dataset shape, so collection and training stay decoupled.
Episode Evaluation: The orchestrator agent running in Amazon Bedrock AgentCore analyzes the task and images from Amazon Kinesis Video Streams for evaluating the performance metrics. The orchestrator agent marks success and failure, as well as details about the overall operation in plain text. This analysis is important for improving the robot, especially with edge cases. The edge cases can be used to create a dataset to help improving robot performance.
From a sentence to a grasp: perception and control
Turning "pick the cube and place it on the paper" into joint commands — reliably enough to record clean demonstrations — is a chain of calibrated transforms and safety checks.
One-time calibration establishes three artifacts per robot: a workspace frame (a rigid table→base transform from three taught points), a taught tool-down orientation plus a home pose, and a pixel→workspace homography so the overhead camera's detections map to table coordinates.
Perception: A lightweight HSV blob detector locates the cube in the overhead frame and maps its pixel to a workspace `(x, y)`; the place target is detected the same way. This can be improved by using an open vocabulary object detection model.
Motion planning with a feasibility preview: We use kinematics, but rather than trusting a single inverse-kinematics call from a far seed, we iterate IK to convergence offline — feeding each solution back as the next seed — to predict the residual error and the peak per-step joint motion before moving. That preview powers a reachable-zone guard (rejecting targets beyond the validated tool-down envelope) and a strict per-step abort that refuses to execute a leg whose path crosses a near-singular region. For far targets, an orientation search pitches the gripper forward by the smallest tilt that reaches accurately.
Grasping, and a real-world gotcha: The IK targets the gripper frame, not the jaw tips, so we subtract a calibrated grasp offset to land the jaws on the object. While bringing the system up we hit an instructive failure: commanding "close fully" reached the gripper's calibrated closed angle, but the side camera showed the jaws still slightly open — the motor calibration's closed extreme had been recorded with the jaws not fully shut, so no software value could close them further. The lesson: the closed extreme of the gripper's range calibration must be the jaws physically touching, or every grasp inherits the gap. Edge-tunable grasp parameters let us dial this in per deployment without rebuilding the component.
Contention-free live view and recording
A robot that learns from video must record episodes, stream a live view for humans, and read frames for perception — all from the same cameras at once.
We solve this with a camera hub: a single OpenCV owner per camera that tees each frame to three consumers — the LeRobot recorder, Amazon Kinesis Video Streams, and an always-on KVS WebRTC master for low-latency live view in the operator console. Stream names and signalling channels are keyed per robot `{robot_id}-{cam}-cam`, so a fleet's video is self-describing and isolated.
Direct teleoperation for agentic control
Beyond high-level tasks, the platform exposes direct teleoperation through the same MQTT dialog. An external coding agent can drive the arm with plain sentences: "go to 0.12, 0.0, 0.05", "set shoulder_pan to 10 degrees" or "nudge the elbow by -5" (per-joint), "close the gripper fully" / "close the gripper to 3.5" (gripper), and "go home" / "where are you" / "show me the side camera".
The agent interprets these into the same typed-command structure, and a loosely-coupled execution module carries them out — reusing the reachable-zone guard, cancellation, and joint-step clamping from the autonomy path. Results return on the status topic as a structured envelope with the outcome and a fresh state snapshot (joint angles, end-effector workspace pose, gripper angle); an image-grab command returns a downscaled JPEG inline. A manual command pre-empts any running activity and is itself interruptible by `stop`. This turns the robot into something an AI agent can observe and drive programmatically — the loop needed for agent-assisted calibration, debugging, and targeted data collection.
The cloud orchestrator agent
If the edge agent is the hands, the cloud orchestrator agent is the planner. Built on Amazon Bedrock AgentCore, it is a tool-using agent that drives the improvement loop without a human issuing every instruction.
Tools, not buttons. The orchestrator reasons over the fleet's state and acts through tools — most importantly the ability to send a robot command and to manage recording requests. When a recording request is approved, the orchestrator publishes the corresponding "record N episodes of <task>" command to the target robot, then tracks progress as status and telemetry flow back.
State it manages. The orchestrator persists its work in Amazon DynamoDB — conversation messages, recording requests, runs, and training jobs — so the loop is observable and resumable. A web console surfaces all of this and lets an operator converse with the orchestrator or step in directly. This is what makes the system agent-orchestrated rather than scripted.
Training the VLA model on collected data
The collected demonstrations are the fuel for a vision-language-action (VLA) policy. When a dataset reaches a configurable size, the orchestrator triggers a training job on Amazon SageMaker. The job trains/fine-tunes VLA on the accumulated real-world demonstrations, with training metrics streamed to Amazon CloudWatch.
The output is a compact policy that runs at the edge — small enough to close a control loop at the edge, capable enough to generalize across cube positions and lighting. The trained checkpoint is packaged as a Greengrass component and deployed to the fleet, after which the edge agent can run it in infer mode and record policy rollouts as new evaluation episodes — feeding the next round of the loop.
Safe fleet deployment over AWS IoT Greengrass
A trained policy reaches robots as a versioned Greengrass component delivered over the air. Two implementation details make these rollouts dependable: every deployment resets and re-applies the critical configuration (IPC access-control policy, model and calibration paths, credentials), because Greengrass applies a component's default configuration only on first install and a stale setting could otherwise persist; and a candidate policy is evaluated before promotion, so a regression is rejected and the previous version retained. Because deployments are versioned and reversible, rolling a fleet back to a known-good policy is a one-line operation.
The data flywheel and the console
Every status and telemetry message the edge publishes flows through AWS IoT rules into Amazon DynamoDB; a stream-triggered Lambda catalogues each episode, and an API surfaces it to a Robot Console web app where operators browse runs, watch recorded KVS video, view live WebRTC streams, and send commands or converse with the orchestrator agent. This connective tissue makes improvement compounding: every execution becomes a catalogued, queryable data point, and the flywheel accelerates as fleet size and accumulated data grow.
Conclusion
Self-improving robots represent a qualitative shift in how robotic systems are deployed and maintained. Instead of static programs that degrade over time, this architecture creates a virtuous cycle: every task execution makes the robot smarter, and the improvement happens autonomously — overnight, without human supervision.
AWS services provide the cloud-side backbone — Amazon Bedrock for AI-driven evaluation, Amazon SageMaker for scalable model training, and AWS IoT Greengrass for reliable fleet deployment — while the LeRobot framework handles the edge inference layer. Together they compress multi-week human-driven iteration cycles into autonomous overnight loops.
This platform is designed as a starting point. The same architecture applies across robot embodiments, task domains, and industry verticals — and the improvement flywheel becomes more powerful as fleet size grows and data accumulates. In future iterations of this architecture, the evaluation and reward-generation stages can be replaced with a Strands Agent running directly on the Jetson device, enabling fully distributed autonomous improvement with no cloud round-trip required for short-horizon decisions. Amazon Bedrock AgentCore provides the production-scale infrastructure for deploying and managing these agents with quality evaluations, policy controls, and enhanced memory. For improving safety, this solution can be extended with additional features such as agentic safety validation before deployment, human-in-the-loop checkpoints, and rollback mechanisms (e.g. if a policy fails).
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article