# Grok prompts 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`](grok4_system_turn_prompt_v8.j2) - The system prompt for the Grok 4 chat assistant on grok.com and X. * [`grok3_official0330_p1.j2`](grok3_official0330_p1.j2) - The system prompt for the Grok 3 chat assistant on grok.com and X. * [`grok_analyze_button.j2`](grok_analyze_button.j2) - Used for the "Grok Explain" feature on X. * [`ask_grok_system_prompt.j2`](ask_grok_system_prompt.j2) - Prompt for the Grok bot on X. * [`grok_4_code_rc1_safety_prompt.txt`](grok_4_code_rc1_safety_prompt.txt) - Injected system prompt prefix for `grok-code-fast-1` model on the xAI API. * [`grok_4_mini_system_prompt.txt`](grok_4_mini_system_prompt.txt) - Injected system prompt prefix for `grok-4-fast` model on the xAI API. * [`grok_4_safety_prompt.txt`](grok_4_safety_prompt.txt) - Injected system prompt prefix for `grok-4-0709` model on the xAI API. * [`grok4p1_non_thinking_no_tool_system_turn_prompt.j2`](grok4p1_non_thinking_no_tool_system_turn_prompt.j2) - The system prompt for grok 4.1 non thinking no tool * [`grok4p1_non_thinking_system_turn_prompt.j2`](grok4p1_non_thinking_system_turn_prompt.j2) - The system prompt for grok 4.1 non thinking with tool * [`grok4p1_thinking_system_turn_prompt_v2`](grok4p1_thinking_system_turn_prompt_v2.j2) - 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](LICENSE) file for details.