with Gemini CLI and Extensions
Use the Gemini CLI and its extensions to review code and analyze security in your development workflow. Configure the environment, install extensions, and explore how they work.
SDE 2 @ Adda247
Building scalable Android & Cross-Platform solutions for millions of users.
"I pushed this PR 3 days ago, Yatin..."
Fundamental concepts of using Gemini CLI in development.
Gemini CLI is an AI-native agent that operates directly from your terminal. It's not just a chat interface; it's equipped with functional tools that can read your codebase, edit files, and search the documentation in real-time.
Get your machine ready for the workshop.
Initializing the Gemini CLI framework.
{
"security": {
"auth": {
"selectedType": "gemini-api"
}
},
"gemini_api": {
"key": "your-gemini-api-key"
}
}
The config is stored in
~/.gemini/config.json but can be overriden using local
.gemini/settings.json files inside projects.
Navigate the AI agent environment like a pro.
"What does this project do?"
"Find the most complex function and refactor it for readability."
"Create a unit test for main.py using pytest."
"Check if my database connection is secure."
Enabling high-order skills for your agent.
Inside the gemini shell, run:
Manual scanning with AI-guided remediation.
main.py:146.
Input is directly concatenated into query string.
"Press CTRL + Y to trigger YOLO mode. This allows the AI to perform
destructive operations like mkdir or file_edit WITHOUT asking
for permission."
Integrating AI insights without manual steps.
Create .gemini/settings.json to
allow auto-approval.
{
"security": {
"disableYoloMode": false
}
}
main.py:146. Critical
risk.fetch_url endpoint.
main.py:423.
"I am speed. I am Gemini."
Connecting Gemini to your entire ecosystem.
MCP allows Gemini CLI to interact with GitHub APIs, managing issues, pull requests, and multi-file analysis directly.
{
"mcpServers": {
"github": {
"httpUrl": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "your-github-token"
}
}
}
}
"When MCP gives Gemini the full picture of your stack."
Automated AI intelligence for every commit.
#ModernProblemsRequireModernSolutions
Deep gratitude to the AI Community Delhi for hosting this session.
I'm happy to discuss code reviews, security, or anything AI-related!
Let's collaborate on the next big AI innovation together.
Scan the QR code below to download the slides or view them online.