Anthropic released a new feature for their Claude.ai consumer-facing chat bot interface today which they’re calling “the analysis tool”. It’s

Simon Willison’s Weblog

submited by
Style Pass
2024-10-25 10:00:07

Anthropic released a new feature for their Claude.ai consumer-facing chat bot interface today which they’re calling “the analysis tool”.

It’s their answer to OpenAI’s ChatGPT Code Interpreter mode: Claude can now chose to solve models by writing some code, executing that code and then continuing the conversation using the results from that execution.

Here’s that chat transcript and the resulting artifact. I upgraded my Claude transcript export tool to handle the new feature, and hacked around with Claude Artifact Runner (manually editing the source to replace fs.readFile() with a constant) to build the React artifact separately.

ChatGPT Code Interpreter (and the under-documented Google Gemini equivalent) both work the same way: they write Python code which then runs in a secure sandbox on OpenAI or Google’s servers.

Claude does things differently. It uses JavaScript rather than Python, and it executes that JavaScript directly in your browser—in a locked down Web Worker that communicates back to the main page by intercepting messages sent to console.log().

Leave a Comment