Change8

v0.21.0-nightly.20251220.41a1a3eed

Gemini CLI
3 features2 fixes5 improvementsclimcptools

Summary

This release focuses on security and core functionality by implementing JIT context memory loading and sanitizing hook command expansion to prevent injection vulnerabilities. Users will also benefit from improved UX through simplified tool confirmations and reduced log verbosity.

New Features

  • Implemented Just-In-Time (JIT) context memory loading and synchronized it with the UI.
  • Introduced the ability to override the system prompt using the GEMINI_SYSTEM_MD environment variable.
  • Added an Introspection agent demo.

Bug Fixes

  • Fixed a security vulnerability by sanitizing hook command expansion to prevent injection.
  • Corrected the input placeholder text displayed when using shell mode.

Improvements

  • Reduced log verbosity and improved error reporting within the UI.
  • Simplified tool confirmation labels for a better user experience.
  • Moved the "Allow for all future sessions" option behind a setting that is off by default.
  • Validated that the OAuth resource parameter matches the MCP server URL.
  • Improved command parsing logs for increased robustness.

Related Documentation

Gemini CLI Documentation