Gemini CLI: Code with an AI AgentLesson 1 · Course introduction
0/24

Gemini CLI: Code with an AI Agent

Manage project context, review changes and control what an agent can do.

24 lessonsAbout 4 hoursVideo by Andrew Brown / ExamPro · freeCodeCamp.org
0/24 done

Lesson 1 of 24 · Set up · 6:47

Lessons

0 of 24 done · 4 chapters

Set up

Course introduction

Check the project and terminal skills this course assumes.

Visual noteKeep the person in the loop
  1. 01

    Small request

    Describe one change in a copy of your project.

  2. 02

    Review actions

    Read the plan and requested commands before approval.

  3. 03

    Check the diff

    Inspect the edits and run the relevant tests.

A sandbox limits access; it does not prove an edit is safe or correct. Keep confirmation enabled and review the result before keeping it.

Course mapSee how it connects
Project context → plan → review → controlled execution
  1. Set up

    You are here

    The CLI runs locally while model access depends on your chosen authentication.

    • CLI
    • Account
    • Model
  2. Give useful context

    Project instructions and session history shape what the agent sees.

    • GEMINI.md
    • Memory
    • Sessions
  3. Keep control

    Permissions restrict actions; a sandbox adds isolation; neither replaces review.

    • Policies
    • Permissions
    • Sandbox
  4. Extend the workflow

    Extensions, tools and automation expand the work an agent can perform—and the access you must review.

    • Skills
    • MCP
    • Automation