What Are Gemini System Instructions?
Gemini system instructions are persistent context that gets prepended to every conversation — before your first message. They tell Gemini who you are, what your role is, what format you prefer, and how to approach your work. Once set, they apply to the entire conversation without you having to repeat yourself.
They're the Gemini equivalent of ChatGPT's system prompt, the Claude system prompt in the API, or the CLAUDE.md file for Claude Code. Same concept, different implementation.
Gemini is trained to be helpful to everyone, which means it defaults to the most general possible answer. System instructions break that default. When you tell Gemini "I'm a fintech product manager at a Series B startup, we use React + Python, our customers are SMBs" — every answer it gives gets filtered through that lens. The difference in answer quality is dramatic.
System instructions are different from regular messages in one important way: they're maintained throughout the entire conversation, even as the context grows. Your role and preferences don't get lost as you add more messages — Gemini always has that foundation.
Instructions for Gemini in the App: Examples to Paste
If you use Gemini at gemini.google.com rather than the API, your standing instructions go in Personal context. Google’s help page calls each entry “saved info”. Its steps, as written on 17 October 2026:
- Go to gemini.google.com.
- Go to Settings & help, then Personal context (or open gemini.google.com/saved-info).
- Click Add, enter what you want Gemini to remember, and click Submit.
You can also ask Gemini in a chat to remember something, and it is stored in the same place. Google’s own examples are one short line each: “Always give me vegetarian recipes.” “Remember that I don’t own a car.” “Don’t forget that I’m an English teacher.” So write one fact or one rule per entry, not a long essay.
Examples by role (add each line as its own entry)
How to tell it worked, and the limits
Google says that when Personal context is on and Gemini uses it, you usually see “Your saved info” under “Sources and related content” at the bottom of the answer, and that Gemini may occasionally show that label incorrectly. Per the same page, the feature is not available to users under 18 and cannot be used in Gemini Live conversations. Source: Google Gemini Help, “Save info and reference past chats”.
Want instructions for one task only, such as a writing assistant or a meal planner? That is what Gems are for (next section). Building with the API or AI Studio instead? Keep reading.
Where to Set Gemini System Instructions
Besides Personal context in the app (above), there are four places to set instructions, depending on your use case:
🧪 Google AI Studio
Free interface at aistudio.google.com. Has a dedicated "System instructions" text field at the top of every new project. Best for testing and iteration.
🔌 Gemini API
Pass system_instruction as a parameter when creating your model instance. Supported in Python SDK, Node.js SDK, and REST.
💎 Gems (Gemini app)
A Gem is a custom version of Gemini with its own name and instructions: gemini.google.com, open the sidebar, Gems, New Gem. Google's help page says that starting in November 2026, Gems go away on personal Google accounts and transition to skills, so keep a copy of your Gem instructions.
🏢 Google Workspace
Gemini for Google Workspace lets admins set organization-wide instructions, plus individual users can add personal context in Gemini settings.
Using a free Gemini API key next to Claude Code? See how to hand Claude Code’s bulk reading to Gemini’s free tier, with a tested script that keeps only quoted answers.
Setting via API (Python)
We ran this exact script on 17 October 2026 with google-genai 2.31.0. It returned three bullets, and the first one asked which data is being imported and who the main user is, as the instruction told it to. Two later runs got a 503 “high demand” error from the free tier, so retry if you see one. The older google-generativeai package is the legacy SDK; new code should use google-genai.
Setting via Google AI Studio
In AI Studio, click "New project" and you'll see a "System instructions" panel on the left side. Paste your instructions there. They persist for the entire project and apply to all messages. You can also enable them in the Gemini API column when you export.
AI Studio is free and the best place to test your system instructions before committing them to a production API call. The "Run settings" panel shows token usage — you can see exactly how many tokens your instructions consume before they hit your context window budget.
Gemini System Instructions vs CLAUDE.md vs ChatGPT System Prompts
Each major AI platform has its own version of "tell the AI who you are." They work similarly but have meaningful differences in scope, persistence, and access method.
System Instructions
Set per-model-instance via API or per-project in AI Studio. Applies to the entire conversation. In the Gemini app, Gems are custom versions of Gemini with instructions built in (moving to skills on personal accounts from November 2026, per Google).
System Prompt
Set as the first message in the API "system" role. In ChatGPT web app, "Custom instructions" in settings apply globally. GPTs allow per-assistant instructions that persist for all users.
CLAUDE.md
A markdown file in your project root. Loaded automatically at session start. Much richer — can be thousands of words. Designed for deep project context, not just persona setting.
| Feature | Gemini System Instructions | ChatGPT System Prompt | CLAUDE.md |
|---|---|---|---|
| Scope | Per conversation / per model instance | Per conversation / per GPT | Per project (file in codebase) |
| Max length | Long (Google sets the limit) | Short (OpenAI sets the limit) | Unlimited (auto-loaded into context) |
| Version control | API param (can be committed) | Not natively | Yes — it's a file in your repo |
| Team sharing | Via Gems / API param | Via GPT sharing | Committed to shared repo |
| Format | Plain text / markdown | Plain text / markdown | Full markdown with sections |
| Free to use | Yes (AI Studio free tier) | Yes (ChatGPT free + API) | Yes (Claude Code) |
The fundamental insight: all three platforms are trying to solve the same problem — AI that knows your context without you re-explaining it every session. The implementation differs, but the principle is identical. Good context in = good answers out.
Role-Specific Gemini System Instructions
The following are example system instructions by role, ready to adapt. They're structured around the four layers that make context effective: identity, environment, workflow preferences, and output format.
Developer / Software Engineer
Marketing / Growth
Data Analyst / Finance
Founder / CEO
What Actually Works: Gemini System Instructions Best Practices
Lead with role, not persona
"You are a senior software engineer assistant" outperforms "You are Alex, a friendly AI helper." Gemini responds better to professional role framing than character personas.
Include real environmental context
Stack, team size, company stage, customers — real specifics produce dramatically better answers than abstract descriptions. "B2B SaaS, $2M ARR, 50 customers" vs. "a company."
Explicit format instructions
Tell Gemini exactly how you want answers formatted — bullet points vs. prose, code language preference, table format, length target. Gemini follows format instructions reliably.
Specify what to avoid
"Avoid buzzwords", "don't hedge with 'it depends'", "skip the preamble" — negative instructions are as important as positive ones for shaping Gemini's default output style.
Keep it under 2,000 tokens
Gemini supports long system instructions, but beyond ~2,000 tokens there are diminishing returns and more opportunities for contradictions. Start lean, add only what you notice is missing.
Version your instructions
Save your system instructions to a file (instructions.md or similar). Update it based on what's working. Treat it like code — iterate and version it, don't edit in-place without tracking changes.
The most effective system instructions follow a consistent pattern: (1) Role identity — who you are in professional terms. (2) Environmental context — stack, company, team, stage. (3) Behavioral instructions — how to respond, what to prioritize, what to avoid. (4) Format preferences — exact output structure. Skip any layer and quality drops noticeably.
Want this for Claude Code, kept current?
Everything above is free and works in Gemini today. Brainfile is a separate product, and it is for Claude Code only: the same idea — tell the AI who you are and how you work — turned into a running system in your project folder. There are no Gemini or ChatGPT versions.
What it is today: the Autopilot run protocol, 10 pattern files (a never-empty backlog, a ledger that tracks every ask until it is done, interview onboarding, an end-of-run brief, conversation history and a memory starter) and a weekly freshness feed. Pro adds 15 role packs — a role-tuned CLAUDE.md per profession.
How you start
- Start the free trial. Type your email. No card. Your setup line appears on the next screen and in your inbox.
- Paste the line into Claude Code. Open Claude Code in the folder you work from and ask it to run the line.
- Answer the questions. Claude usually starts them by itself: plain-English questions about you and your work, then it writes your Brainfile from your answers. If they don't start, type start.
New to Claude Code itself? Read the beginner’s install guide.
Email only. Every file you pull is yours to keep. See Free, Basic and Pro →
Try it free for 30 days.
No card, email only. The trial runs the Basic pull: the Autopilot protocol, the 10 pattern files and the weekly freshness feed. Pro adds the 15 role packs.
Paid plans: 30-day money-back guarantee · Cancel anytime · Free ChatGPT prompt templates →