Regras & instruções Oficial

GEMINI.md

Context files named GEMINI.md that give Gemini CLI project instructions, personas and style guides on every prompt.

Autor
Google
Funciona com
Gemini CLI
Licença
Apache-2.0
Documentado
Oct 2, 2026

O que é GEMINI.md

GEMINI.md context files provide instructional context to the Gemini model so you do not repeat instructions in each prompt. Gemini CLI loads global, workspace and just-in-time files, concatenates them and sends them with every prompt.

O que ela faz

Como o GEMINI.md se integra: quais agentes o executam e o que ele acrescentaEXECUTA EMSeu agenteGemini CLIum host documentadoRULES · OFICIALGEMINI.mdInstruções do projeto que o agent…5 etapas de instalaçãosem permissões extras listadaslicença: Apache-2.0O QUE ELA ACRESCENTAO que ela fazLoads global context from ~/.gemi…Searches workspace directories an…Loads just-in-time GEMINI.md file…Imports other files with @file.md…agente → extensão → nova capacidade · do repositório ou da documentação oficial
Onde GEMINI.md roda e o que acrescenta, segundo a documentação
  • Loads global context from ~/.gemini/GEMINI.md
  • Searches workspace directories and parents for GEMINI.md
  • Loads just-in-time GEMINI.md files when a tool accesses a directory
  • Imports other files with @file.md syntax
  • /memory show and /memory reload inspect and refresh loaded context
  • File name configurable via context.fileName in settings.json

Quando usar

Boa adequação

  • You want project coding style and instructions applied to every Gemini CLI prompt
  • You want component-specific instructions loaded only when relevant
  • You want one set of shared instructions via a custom file name such as AGENTS.md

Não indicado para

  • Saving individual facts on demand: the docs point to the Memory tool

Como instalar o GEMINI.md

Você precisa de: Gemini CLI

  1. Create GEMINI.md at the project root (or ~/.gemini/GEMINI.md for global)
  2. Add general instructions and coding style as markdown
  3. Optionally import files with @./components/instructions.md
  4. Run /memory show to inspect the loaded context
  5. Optionally set context.fileName in settings.json
Exemplo de configuração (da documentação oficial)
{
  "context": {
    "fileName": ["AGENTS.md", "CONTEXT.md", "GEMINI.md"]
  }
}

Limitações

  • All found files are concatenated and sent with every prompt, so size affects context

Ferramentas que ela estende

Gemini CLI

Desktop

Ainda sem avaliações de usuários

Agente de IA de terminal de código aberto do Google que leva o Gemini à linha de comando; o site informa que usuários sem plano pago e do Google One foram movidos para o Antigravity CLI.

O plano gratuito termina em: Verify current availability

Listed Ainda não avaliada

Verificado geminicli.com (abre o site de Gemini CLI em uma nova aba)

Preços Preço nos EUA não confirmado

Perguntas frequentes

Where does Gemini CLI look for GEMINI.md?

~/.gemini/GEMINI.md, workspace directories and their parents, and just-in-time in directories tools access. fonte

Can GEMINI.md import other files?

Yes, with @file.md syntax using relative or absolute paths. fonte

Can Gemini CLI use AGENTS.md instead of GEMINI.md?

Yes, set context.fileName in settings.json to a list such as AGENTS.md, CONTEXT.md, GEMINI.md. fonte

How do I see what GEMINI.md context is loaded?

Run /memory show; /memory reload re-scans the files. fonte

Fontes e lacunas

Mais extensões para conhecer