<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/writing-to-length-the-agent-that-hits-an-exact-runtime-ydulnkaun" -->

---
title: Writing to length: the agent that hits an exact runtime
description: A small agent built into schelp.app addresses the problem of language models writing to a word count rather than a target duration, which typically causes...
canonical: https://daily.dev/posts/writing-to-length-the-agent-that-hits-an-exact-runtime-ydulnkaun
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Writing to length: the agent that hits an exact runtime | daily.dev
og:description: A small agent built into schelp.app addresses the problem of language models writing to a word count rather than a target duration, which typically causes...
og:url: https://daily.dev/posts/writing-to-length-the-agent-that-hits-an-exact-runtime-ydulnkaun
og:image: https://api.daily.dev/og/posts/YdulnKaun.png
og:image:alt: Writing to length: the agent that hits an exact runtime
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Writing to length: the agent that hits an exact runtime

**[Leonardo Martellini](https://daily.dev/sources/pevk9fu8aicgmrowhdpik)** · [@uranio](https://daily.dev/uranio) · 1 min read · 0 upvotes · 0 comments

## Summary

A small agent built into schelp.app addresses the problem of language models writing to a word count rather than a target duration, which typically causes generated scripts to run short of the requested runtime. The agent measures a draft's estimated spoken length and rewrites it iteratively to hit an exact target time, such as 8 minutes, without padding the content with filler.

## Content

Ask for an 8-minute podcast, get exactly 8 minutes. The catch: models write words, not minutes, and they always come up short. This is the little agent in @schelpapp  that measures the draft and rewrites it to length, without filler.

[https://schelp.app/news/writing-to-length-the-agent-that-hits-an-exact-runtime](https://schelp.app/news/writing-to-length-the-agent-that-hits-an-exact-runtime)

## Similar posts on daily.dev

- [LAI \#148: What Happens Between Prompt and Output?](https://daily.dev/posts/lai-148-what-happens-between-prompt-and-output--gsikv2cdx) · Medium · 0 upvotes · 0 comments
- [\[7/4\] Speak to LLMs with voice-to-text](https://daily.dev/posts/7-4-speak-to-llms-with-voice-to-text-x1217ui7m) · RUBYLAND · 1 upvotes · 0 comments
- [How to keep enjoying programming in a world of LLMs](https://daily.dev/posts/how-to-keep-enjoying-programming-in-a-world-of-llms-dbajtmasp) · Lobsters · 0 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#ai-agents](https://daily.dev/tags/ai-agents)

[View this post on daily.dev](https://daily.dev/posts/writing-to-length-the-agent-that-hits-an-exact-runtime-ydulnkaun)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/writing-to-length-the-agent-that-hits-an-exact-runtime-ydulnkaun","headline":"Writing to length: the agent that hits an exact runtime","text":"A small agent built into schelp.app addresses the problem of language models writing to a word count rather than a target duration, which typically causes generated scripts to run short of the requested runtime. The agent measures a draft's estimated spoken length and rewrites it iteratively to hit an exact target time, such as 8 minutes, without padding the content with filler.","url":"https://daily.dev/posts/writing-to-length-the-agent-that-hits-an-exact-runtime-ydulnkaun","datePublished":"2026-08-26T21:16:13.262Z","dateModified":"2026-09-13T21:33:16.414Z","author":{"@type":"Person","name":"Leonardo Martellini","url":"https://daily.dev/uranio","image":"https://media.daily.dev/image/upload/s--guVbxs5e--/f_auto/v1738411405/avatars/avatar_PEVk9fU8AICgmrowHdPIK","description":"I even find road signs interesting, but I get bored easily.","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":1860}},"image":"https://media.daily.dev/image/upload/s--jE-xjM01--/f_auto/v1787778973/posts/YdulnKaun?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/pevk9fu8aicgmrowhdpik","name":"Leonardo Martellini"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Leonardo Martellini","item":"https://daily.dev/sources/pevk9fu8aicgmrowhdpik"},{"@type":"ListItem","position":3,"name":"Writing to length: the agent that hits an exact runtime"}]}
```

