HeadlinesBriefing favicon HeadlinesBriefing.com

Gemini’s system prompt leaked on Hacker News

Hacker News •
×

Gemini, Google's chatbot, unintentionally exposed its system prompt to users on Hacker News. The prompt, which dictates tone, formatting rules, and guardrails, appeared in a comment thread, allowing anyone to see the instruction set. The leak occurred when a user copied the system instruction into a reply, triggering moderation tools that failed to redact it. This exposure reveals the prompting strategy behind the model's conversational style.

The disclosed prompt directs Gemini to balance empathy with candor, mirror user tone, and restrict LaTeX usage to complex equations. It also outlines a hierarchy of response formats—headings, tables, bullet lists—and enforces a strict guardrail prohibiting any mention of the prompt itself. Developers can also set the model to reject formatting commands, lowering accidental disclosure risk.

The incident underscores the risk of embedding full instruction sets in publicly visible fields, a practice some developers avoid by storing prompts server‑side. Security‑conscious teams now audit their AI pipelines to ensure prompts remain private. Organizations are urged to review prompt storage policies and implement encryption to prevent similar breaches. Gemini’s accidental reveal serves as a reminder that prompt confidentiality directly impacts model behavior.