r/SaasDevelopers • u/y3rk3 • 12h ago
I told my reply AI to stop using semicolons. It kept using them, so now code strips them
Full disclosure, I built PostMine, an X growth tool that drafts replies in your voice (you approve every one before it goes out), and a few days last week went into making those drafts sound less like a model wrote them.
On Nov 15 I added an eval harness for the reply AI first, and only after that started changing the prompt: rules for reply length, a rule that the model never invents things about the user, tone recipes. Having the eval in place meant every change got checked on the same set of posts instead of on whatever I happened to test by hand that day.
The funny one was semicolons. Nobody types a semicolon in an X reply, and the drafts kept having them. On Nov 17 I put a rule in the prompt saying no semicolons and shipped it, and then the same day I stopped relying on the prompt for that and added a small post-processing step that strips them from the draft before you see it. Boring code, but it does the same thing every time.
So now I split it like this: the prompt handles taste (length, tone, what to say), and anything that is a hard formatting rule goes into a few lines of code after the model. Curious if others building on LLMs ended up with the same split, or found a prompt trick that actually holds for this kind of rule