Vibeleaderboard
← All Intel
Intel / article

Long Running Claude

Source
anthropic.com
Publisher
Anthropic
Author
Anthropic research
Date

Context

Most scientists using AI agents still steer every step in a conversation. In this post, Siddharth Mishra-Sharma of Anthropic's Discovery team describes the alternative: state the high-level goal and let Claude Code work for days, checking in only occasionally. He argues it suits well-scoped work with clear success criteria, such as reimplementing a numerical solver, porting legacy Fortran or a codebase against a reference. His example was having Claude Opus 4.6 write a differentiable version of a cosmological Boltzmann solver, code that predicts the statistical properties of the Cosmic Microwave Background, in JAX. Differentiable here means gradients can flow through the whole solver, which enables faster gradient-based parameter estimation. The task was outside his own expertise.

The has a few parts. A CLAUDE.md file in the project root holds the goals and design decisions, here full feature parity with the established CLASS solver, full differentiability and a 0.1% accuracy target, and Claude can revise it as it learns. A CHANGELOG file serves as what he calls the agent's portable long-term memory, recording status, accuracy results and failed approaches so later sessions do not repeat dead ends. A test oracle, here the CLASS reference implementation, gives the agent something objective to check against, and it commits to after each meaningful unit of work. The session runs inside tmux on a GPU node of a SLURM cluster, and a Ralph loop pushes the agent back into work when it claims to be finished, to counter what he calls agentic laziness.

He contrasts this with Anthropic's C compiler project, where Claude worked across roughly 2,000 sessions that could be spread across many . A Boltzmann solver is a tightly coupled pipeline in which a small numerical error early on can shift everything downstream, so he favors a single agent working sequentially, spawning subagents as needed and using the reference implementation to bisect discrepancies.

Over a few days, working from scratch, Claude reached sub-percent agreement with CLASS across its outputs. Mishra-Sharma says the result is not production-grade and does not match CLASS to an acceptable accuracy in every regime, and that the agent can make elementary mistakes, such as tripping over gauge conventions. Even so, he argues the project shows that agent-driven development can shrink months or even years of researcher work into days.

Terms in this piece · Glossary
  • Debugging — Following a failure back along the data path to the place where the data first goes wrong.
  • Setup — The combination of a model, a harness, its connections and the path the task's data takes, considered together for a task.
  • Git and version control — A system for recording and comparing changes to a codebase.
  • Parallel agents — Multiple isolated agents working simultaneously on independent work streams.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source www.anthropic.com
More from Anthropic research
Recommended reads