# Santiago explains turning agent tasks into reusable TypeScript workflows

> Original title: How to turn your tasks into workflows and reusable behavior.

- Source: Santiago
- Published: 2026-11-04T14:50:36.000Z
- Bad Influence: https://badinfluence.news/items/vp16im9pdv4xiak5rhg2gsbh9
- Original: https://x.com/svpino/status/2117992915448574127

## Summary

Santiago says users can have an agent build a task once as a TypeScript workflow, then run it repeatedly. He argues that models should handle only tasks that require them, while other steps are encoded in code, which makes troubleshooting easier and lets behaviors be reused across automations.

## Post

How to turn your tasks into workflows and reusable behavior.

You ask your agent to build it once, and then you run it again and again.

Huge advantage to doing this:

• You only use models for tasks that only models can do
• Every other step is encoded in TypeScript
• Very easy to troubleshoot
• You can reuse your behaviors across automations

[Video](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Famplify_video_thumb%2F2117992767125409792%2Fimg%2FhF8hNHOt1EVE-flV.jpg&mode=thumb&exp=1794009600&sig=85d7dbab31445287)
