Google CLI

TokRepo for Gemini CLI

Gemini CLI reads GEMINI.md as project instructions and supports MCP via extensions.

Official docs: https://github.com/google-gemini/gemini-cli

60-second integration

Shortest path for Gemini CLI

  1. 01
    npx -y tokrepo@latest init-agent --target gemini_cli
  2. 02
    gemini settings mcp add tokrepo -- npx -y tokrepo-mcp-server
  3. 03
    GEMINI.md auto-loads on session start with TokRepo MANDATORY rules.
Project rule file
GEMINI.md
Install surface
GEMINI.md
MCP client
gemini settings mcp add
MCP install command
gemini settings mcp add tokrepo -- npx -y tokrepo-mcp-server
Six mandatory rules

Every agent runtime enforces

  • SESSION BOOTSTRAP — call tokrepo_session_init once per session.
  • DISCOVER BEFORE BUILD — call tokrepo_discover before writing reusable artifacts.
  • VERIFY BEFORE INSTALL — install_plan must include trust_gate; honor TOKREPO_MIN_TRUST (default 0.6).
  • DRY-RUN BEFORE APPLY — lifecycle tools default dry_run=true.
  • HANDOFF AFTER REUSABLE WORK — call tokrepo_handoff_plan.
  • PRIVATE BY DEFAULT, NEVER PUSH SECRETS.