Skip to content

# Gemini CLI

CCE integrates with the Gemini CLI through its settings file and an instruction file.

## Quick setup

Section titled “Quick setup”
Terminal window

    cce init              # Auto-detects Gemini CLI if .gemini/ existscce init --agent gemini

## Files created

Section titled “Files created”

### `.gemini/settings.json`

Section titled “.gemini/settings.json”

Registers the CCE MCP server for Gemini CLI.

    {  "mcpServers": {    "context-engine": {      "command": "cce",      "args": ["serve"]    }  }}

### `GEMINI.md`

Section titled “GEMINI.md”

Contains instructions for Gemini to prefer `context_search` over reading files directly. The CCE block is wrapped in markers so your own content is preserved.

## Auto-detection

Section titled “Auto-detection”

CCE detects Gemini CLI when a `.gemini/` directory exists in your project root or home directory. No explicit `--agent` flag is needed if the directory is present.