Skip to content

Lab 107: How GitHub Copilot Works: Context, Models, Agents, and Data FlowΒΆ

Level: L50 Journey: copilot Time: ~25 min Cost: Free

Free-first design

Complete the guided exercise with Copilot Free or the included simulation. Paid features are optional and explicitly labeled.

AI Credit impact

Low for guided work; medium/high for agentic or repeated runs. Prefer automatic model selection, plan before acting, keep context focused, and avoid unnecessary parallel sessions.

What You'll LearnΒΆ

  • Describe the Copilot request lifecycle
  • Separate context selection from model selection
  • Distinguish completions, chat, and agents
  • Explain data boundaries, retention, and AI Credits at a conceptual level

GH-300 alignmentΒΆ

GH-300 foundation Β· Data and architecture. This mapping follows the GH-300 curriculum snapshot dated 2026-08-07. The official outline may retain older product wording such as β€œCopilot Edits”; this lab teaches the current product experience and calls out that difference.

Concept MapΒΆ

flowchart LR
  U[User intent] --> C[Selected context]
  C --> P[Policies and controls]
  P --> M[Model routing]
  M --> R[Response or agent plan]
  R --> T[Optional tools]
  T --> V[Human verification]
  R --> V

Hands-on ExerciseΒΆ

Step 1: Trace a requestΒΆ

Follow editor signals, explicit references, repository instructions, policy checks, model routing, response generation, and user verification.

Step 2: Compare experiencesΒΆ

Completions predict code locally in your editing flow; chat answers a conversation; agents plan and use tools over multiple steps.

Step 3: Map data and billingΒΆ

Document who controls the repository, which context leaves the client, applicable retention and exclusion policies, and which interactions consume AI Credits.

Supporting kitΒΆ

The site build generates stable PDF and ZIP downloads. The ZIP contains the lab guide and every supporting file declared for this lab.