ARTICLE AD
Anthropic’s Claude chatbot can now write and run JavaScript code.
Today, Anthropic launched a new analysis tool that helps Claude respond with what the company describes as “mathematically precise and reproducible answers.” With the tool enabled — it’s currently in preview — Claude can perform calculations and analyze data from files like spreadsheets and PDFs, rendering the results as interactive visualizations.
“Think of the analysis tool as a built-in code sandbox, where Claude can do complex math, analyze data, and iterate on different ideas before sharing an answer,” Anthropic wrote in a blog post. “Instead of relying on abstract analysis alone, it can systematically process your data — cleaning, exploring, and analyzing it step-by-step until it reaches the correct result.”
Anthropic gives a few examples of where this might be useful. For instance, a product manager could upload sales data and ask Claude for country-specific performance analysis, while an engineer could give Claude monthly financial data and have it create a dashboard with key trends.
Claude could attempt these tasks before. But, because it lacked a mechanism to mathematically verify the results, the answers weren’t always accurate.
Google offers a comparable feature for its Gemini models called Code Execution, which lets the models generate and run Python code to learn iteratively from the results. OpenAI’s flagship models can similarly write and execute code via a capability that the company calls Advanced Data Analysis.
Anthropic’s analysis tool is available for all Claude users on the web as of this morning. To turn it on, log into Claude.ai and click here.
Kyle Wiggers is a senior reporter at TechCrunch with a special interest in artificial intelligence. His writing has appeared in VentureBeat and Digital Trends, as well as a range of gadget blogs including Android Police, Android Authority, Droid-Life, and XDA-Developers. He lives in Brooklyn with his partner, a piano educator, and dabbles in piano himself. occasionally — if mostly unsuccessfully.
Subscribe for the industry’s biggest tech news