Grok prompts
November 17, 2025 ยท View on GitHub
We are regularly updating this repository with the system prompts that we use for the Grok chat assistant and various product features across X and grok.com.
Prompts
The following prompts are made public via this repository:
grok4_system_turn_prompt_v8.j2- The system prompt for the Grok 4 chat assistant on grok.com and X.grok3_official0330_p1.j2- The system prompt for the Grok 3 chat assistant on grok.com and X.grok_analyze_button.j2- Used for the "Grok Explain" feature on X.ask_grok_system_prompt.j2- Prompt for the Grok bot on X.grok_4_code_rc1_safety_prompt.txt- Injected system prompt prefix forgrok-code-fast-1model on the xAI API.grok_4_mini_system_prompt.txt- Injected system prompt prefix forgrok-4-fastmodel on the xAI API.grok_4_safety_prompt.txt- Injected system prompt prefix forgrok-4-0709model on the xAI API.grok4p1_non_thinking_no_tool_system_turn_prompt.j2- The system prompt for grok 4.1 non thinking no toolgrok4p1_non_thinking_system_turn_prompt.j2- The system prompt for grok 4.1 non thinking with toolgrok4p1_thinking_system_turn_prompt_v2- The system prompt for grok 4.1 thinking no tool
License
This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.