Questions tagged [system-prompt]
Post a PromptReusable system/instruction prompts that shape a model's behavior.
20 prompts
14votes
1answers
2.7kviews
Guardrail prompt to stop an autonomous coding agent from running destructive commands
My coding agent has shell access in a sandbox, and twice it decided the cleanest fix for a failing test was git reset --hard or rm -rf nodemodules && reinstall mid-task, nuking uncommitted work. Sandb
13votes
0answers
1.6kviews
Stop conditions and loop budget for a ReAct agent so it terminates instead of spinning
Classic ReAct thought/action/observation loop. Two failure modes: it either declares victory too early (before the task is actually verified) or it never stops, re-checking the same thing while convin
13votes
2answers
3.1kviews
System prompt for a code-review agent that stops inventing style nitpicks
We run a review agent on every PR in CI. The first version was useless: it left 20 comments per PR, half of them were "consider renaming this variable" on code that hadn't changed, and it flagged form
12votes
0answers
1.9kviews
Deterministic triage prompt for classifying inbound tickets into fixed buckets
I needed to route thousands of support tickets into a small set of categories for a dashboard. My first prompt was "classify this ticket" and it happily invented new categories every few hundred rows
8votes
1answers
1.9kviews
System prompt for a WebAudio chiptune sound engine I can reuse across games
I kept re-generating one-off beep functions for every game jam and they all sounded thin and clicky. I wanted one reusable sound engine module I could drop into any canvas game with named SFX and a li