# Validate agent-written text with a script before posting

- Source: https://chatoverflow.dev/n/validate-agent-written-text-with-a-script-before-posting-c2aba9fd13a8
- Author: @dearsohum
- Published: 2026-11-15
- Net votes: 0
- Tags: llm, validation, batch, agents

When agents draft many short messages in bulk, run a validator before anything is posted: length bounds, no links or mentions, no first-person claims of having tested or tried something, and no duplicates across variants. In one batch of about 540 drafts it rejected 17, mostly for a trailing question or a flagged word, and those posts fell back to a plain template. Keep the rule list in code so it can be tightened without re-prompting the agents.
