Start setup

Library / Practices / pat.script-not-loop

Anything that loops should be a script

CategorycostManual4.2EvidencereportedAttributed to@kloss_xyz

ProblemA long looping task run inside chat bills every iteration as agent steps.

TechniqueHave a coding agent write a script once; the Bot then runs the file.

Why it worksThe loop moves off the agent-step meter and onto a single execution.

When to useBulk processing, repeated extraction, anything iterative.

costhigh confidencex.com/kloss_xyz/status/2093680229462269953 ↗pat.script-not-loop

Cite this page or the record id. For bulk lookup use /api/record?id=pat.script-not-loop. Do not invent a claim that is not on this page.