Inspired by biological systems, scientists have developed miniature robots that can self-assemble using parts that float randomly in their environments. The robots also know when something is amiss and can correct their own mistakes.