Original development: 22 May 2025
Anthropic announced Claude 4 on 22 May 2025, emphasising coding and longer-running agent workflows. The announcement also described API capabilities including code execution, an MCP connector, a files interface and extended prompt caching.
Read the original Anthropic announcement for the historical details.
What code execution means for business users
There is an important difference between a model writing a plausible calculation and software executing actual code. An assistant that can run code in a controlled environment may calculate totals, analyse a data file or generate a chart, but the result still depends on the quality of the inputs and the program that was executed.
For a small company preparing a monthly cost report, provide an approved CSV export and ask for clearly specified calculations. Independently reconcile the result against a sample of records or the original spreadsheet. Do not assume that a generated program implements the correct business definition of revenue or margin.
Prompt caching and recurring costs
Repeated API requests often contain the same instructions or reference material. Prompt caching can reduce the cost or latency of processing eligible repeated input, subject to provider-specific rules. It does not make model output deterministic and should not be confused with storing a completed answer.
Compare the supplier’s current cache pricing and retention behaviour with the company’s confidentiality requirements. Never include unnecessary customer data merely to improve a cache hit rate.
Agents working on code
A coding assistant should work in a controlled repository or test environment, with reviews and automated tests before changes reach production. Restrict access to secrets and live systems. The 2025 launch is useful context for how these capabilities developed, rather than a guarantee of current performance or plan availability.
Illustrative stock photograph: Andy Holmes / Unsplash.
Use executable analysis with independently checked inputs
A business might ask a coding-capable assistant to reconcile two CSV exports containing invoice references and payment amounts. First define the expected file formats and which fields are authoritative. A deterministic program can then identify duplicate references, parse amounts and compare totals. A language model can help explain the exceptions, but should not invent missing payment information.
Validate the generated program before using it on production data. A script that runs successfully may still interpret a blank field as zero, exclude negative adjustments or incorrectly match two similar invoice references. Test deliberately awkward examples and compare its output with independently calculated results.
Keep code execution separate from production credentials
Provide a controlled workspace containing only approved files. An analysis task usually has no need to access the live accounting database, send email or change website files. Give it a read-only input directory where possible and require review before transferring generated code or documents to operational systems.
For software development, review dependencies introduced by an assistant and keep credentials out of repositories and prompts. Use version control to examine the changes and run the existing test suite. Treat generated code as a proposed contribution rather than an approved deployment.
Measure the economics of repeated requests
In a workflow that repeatedly analyses reports under the same rules, retain stable instructions separately from variable business data. Measure the actual cached-input usage and compare total costs including output, tool execution and review. Historical caching features and prices are not necessarily the current terms.
The NCSC secure AI development guidelines provide lifecycle security principles that apply to these integrations. Anthropic’s developer documentation is the starting point for checking supported code and tool features. See also our explanation of prompt caching for a worked cost example. The practical goal is reproducible analysis, not simply generating more software.
Distinguish generated code from verified analysis
Ask the application to preserve the input-file version, program used and output totals for each important analysis. If a later run produces different figures, these records help establish whether the discrepancy arose from changed input or altered calculation logic. A script that succeeds technically is not necessarily implementing the intended accounting or operational definition.
Use a reproducible test with known results. The NCSC’s secure software development guidance provides wider principles for testing and reviewing software. See our model evaluation briefing for assessing the quality of completed deliverables.