How AI Agents Repeat Tasks: Prompts, Skills, Graphs, or Code

This Habr article explores the challenge of task reproducibility in AI agent systems. The core issue is that agents often re-plan steps upon re-execution, consuming extra tokens and potentially producing inconsistent output formats. The author examines four approaches to solve this: saved prompts, agent skills, execution graphs (workflows), and code-based action caching. The article details the pros and cons of each method, covering topics such as model non-determinism at zero temperature and error handling during mid-process failures. It also addresses strategies for preventing unintended side effects during repeated runs. This analysis is highly relevant for developers building agentic systems who need to improve the stability and predictability of their workflows.
This is a summary. Read the full article at the original source:
HabrRelated stories
Amazon devices chief Panos Panay envisions a future where AI replaces apps
At the TechCrunch Disrupt conference, Amazon’s head of devices, Panos Panay, outlined a transformative vision for the future of consumer technology. P…
Meta releases the most powerful US open model, yet still trails Chinese counterparts
On October 15, Meta released Muse Spark Open, an open-weights version of its neural network, which the company claims is the most powerful American op…
Anthropic grants METR researchers employee-level access to its AI models
Anthropic has entered into a significant partnership with the non-profit research organization METR, granting its researchers unprecedented access to…



