Code Velocity
AI in Practice

Claude AI Powers NASA's First AI-Planned Mars Rover Drive

·8 min read·Anthropic, NASA·Original source
Share
NASA Perseverance rover on the Martian surface following the AI-planned 400-meter route through a rock field

The First AI-Planned Drive on Another Planet

On December 8 and 10, 2025, the commands sent to NASA's Perseverance rover had been written by an AI for the first time. Anthropic's Claude planned the drive.

Engineers at NASA's Jet Propulsion Laboratory (JPL) used Claude to plot out the route for Perseverance to navigate a 400-meter path through a rock field on the Martian surface. Four hundred meters is one lap of a running track, but it marks a historic start for AI in space exploration.

The Challenge of Driving on Mars

Exploring Mars means always operating in the past. It takes about twenty minutes for a signal to reach the rover from Earth. By the time a new instruction arrives, the rover has already acted on the previous one.

Every rover drive needs to be carefully planned to avoid the machine sliding, tipping, spinning its wheels, or getting beached. Human operators have traditionally laid out waypoints using images taken from space and the rover's onboard cameras. The plan is then transmitted across 362 million kilometers via the Deep Space Network.

This is high-stakes work. In 2009, the Spirit rover drove into a sand trap and never moved again.

How Claude Planned the Mars Rover Route

JPL's engineers tested whether Claude could help plan Perseverance's route with the same accuracy as a human operator. The process was set up in Claude Code, which provided the agentic coding environment for the task:

StepDescription
Context loadingYears of rover driving data and experience provided to Claude Code
Image analysisClaude's vision capabilities analyzed overhead orbital images
Route planningWaypoints plotted in 10-meter segments along the path
Code generationCommands written in Rover Markup Language (XML-based)
Self-critiqueClaude iterated on its own work, suggesting revisions
ValidationOver 500,000 variables modeled in simulation to verify safety
Human reviewJPL engineers reviewed and made only minor adjustments

JPL engineers gathered years of driving data and experience, then loaded it into Claude Code. With this context, Claude wrote navigation commands in Rover Markup Language, the XML-based language originally developed for the Mars Exploration Rover mission.

Validation and Results

When JPL engineers reviewed Claude's plans, they found that only minor changes were needed. For instance, ground-level camera images gave a clearer view of sand ripples that Claude hadn't seen, requiring a more precise route split in one narrow corridor. Otherwise, the route held up well.

The plans were sent to Mars, and the rover successfully traversed the planned path. Engineers estimate that using Claude will cut route-planning time in half.

What AI Mars Navigation Means for the Future

Claude's role in the Perseverance mission is a test run for what comes next. The key capabilities, understanding novel situations, writing code for complex instruments, and making decisions without constant human input, apply directly to longer and more ambitious missions.

Upcoming AI Space Applications

  • Artemis Campaign: NASA plans to send humans back to the Moon and establish a base on the lunar south pole
  • Lunar Operations: AI could assist with mapping geology and monitoring life-support systems
  • Deep Space Probes: Autonomous AI could help explore distant parts of the solar system where signal delays stretch to hours
  • Ocean Worlds: Future probes might visit moons like Europa or Titan, descending through icy shells to chart courses through subsurface oceans

The same AI model that developers use to write code and scan for vulnerabilities is now helping humanity explore other worlds.

Frequently Asked Questions

What did Claude AI do on Mars?
On December 8 and 10, 2025, Claude AI planned the route for NASA's Perseverance rover to navigate a 400-meter path through a rock field on Mars. This was the first time an AI has planned a drive on another planet. JPL engineers provided Claude with years of rover driving data via Claude Code, and Claude used its vision capabilities to analyze orbital images and write commands in Rover Markup Language.
How does Claude plan a Mars rover drive?
JPL engineers loaded years of rover driving data into Claude Code. Claude then analyzed overhead orbital images using its vision capabilities, plotted waypoints in 10-meter segments, and wrote navigation commands in Rover Markup Language, the XML-based language developed for Mars rovers. The model iterated on its own work through self-critique, and its plans were validated through simulation modeling over 500,000 variables before human engineers reviewed and approved them.
Was the AI-planned Mars rover route safe?
Yes. Claude's waypoints were validated through a simulation modeling over 500,000 variables to check projected rover positions and predict hazards. When JPL engineers reviewed the plans, they found only minor adjustments were needed, such as refining one route split where ground-level camera images showed sand ripples not visible from orbit. The rover successfully completed the planned 400-meter path.
How much time does AI route planning save for Mars rovers?
JPL engineers estimate that using Claude cuts route-planning time in half compared to traditional human-only planning. Faster planning means more drives per mission, more scientific data collection, and more analysis of the Martian surface. This efficiency gain becomes even more important for future deep space missions where signal delays are measured in hours rather than minutes.

Stay Updated

Get the latest AI news delivered to your inbox.

Share