AI for Developers2 of 30 steps (7%)

The Three Modes of AI-Assisted Development

Understanding AI-Assisted Development Modes

AI tools help you write code in three distinct ways. Each mode has different strengths and works best for different tasks. Learning when to use each mode makes you faster and more productive.

Mode 1: Copilot Mode (Autocomplete)

In copilot mode, AI watches you type and suggests the next line of code. You're in control. The AI predicts what you're about to write and offers shortcuts.

How It Works

You write a few characters or lines. The AI sees the context (your current file, function signature, recent code) and suggests completions. You press Tab to accept, or keep typing to ignore the suggestion. The model operates on your immediate context, usually the current file.

Tools for Copilot Mode

  • GitHub Copilot - Trained on public code, integrates with VS Code, IntelliJ, Neovim
  • Codeium - Free option, similar integration across editors
  • Supermaven - Fast, low-latency completions, context window up to 30K tokens

When to Use Copilot Mode

Use copilot mode when:

  • Writing repetitive or boilerplate code (loops, API calls, test cases)
  • You know roughly what you want but not the exact syntax
  • You're in a familiar framework or language and want speed
  • Working on simple functions or isolated pieces

Don't use it when:

  • You need to understand existing code in other files
  • The task requires knowledge of your full codebase
  • You're refactoring across many files
  • You need to ask complex questions about architecture

Example

You start typing a fetch function:

function getUserData(userId) {
  const response = await fetch(

Copilot suggests:

  const response = await fetch(`/api/users/${userId}`)
  const data = await response.json()
  return data

You accept with Tab. Done in seconds.

Mode 2: Codebase Chat (Full Repo Context)

In codebase chat mode, you ask questions about your entire project. The AI reads your code files, understands how they connect, and answers with context from the whole codebase.

How It Works

You open a chat window in your IDE or browser. You ask a question in natural language. The AI searches your codebase, reads relevant files, and builds a mental model of how things are organized. Then it answers your question or generates code that fits your actual project.

Tools for Codebase Chat

  • Cursor - IDE built around codebase chat, with AI understanding of your full project
  • Continue - Open-source IDE extension, works with local models or APIs
  • Sourcegraph Cody - Focuses on code understanding, integrates with VS Code

When to Use Codebase Chat

Use codebase chat when:

  • You need to understand how parts of your codebase fit together
  • You're adding a feature that touches multiple files
  • You want to refactor but need to know what depends on this code
  • You're generating code that must follow your project patterns
  • You need to debug something that involves multiple files

Don't use it when:

  • You just need a quick completion or autocomplete suggestion
  • The answer is simpler than loading the full codebase context
  • You're working in an IDE without codebase chat support

Example

You ask Cursor:

Where is the user authentication logic in this project?
How do I add a new role type?

Cursor reads your /auth, /models, /middleware folders. It finds the User model, the authenticate function, and role checks across your codebase. It explains the flow and shows you exactly where to add your new role type.

Mode 3: Agentic Mode (Autonomous)

In agentic mode, AI takes a goal and runs many steps with minimal hand-holding between them. It can write code, test it, refactor it, commit it, even run it. You set the goal and the AI figures out the steps.

How It Works

You describe a task in words. The AI breaks it into steps: write code, run tests, read error messages, fix issues, iterate. It has access to your codebase, your terminal, and your development environment. It can see the results of each action and adapt.

Tools for Agentic Mode

  • Claude Code (Claude with IDE integration) - Autonomous task execution, full file reading/writing, terminal commands
  • Devin - Autonomous AI software engineer, handles projects end-to-end
  • GitHub Copilot Workspace - AI-driven workspace for multi-file changes

When to Use Agentic Mode

Use agentic mode when:

  • You have a full feature to build and want hands-off implementation
  • You want AI to handle testing and iteration automatically
  • The task involves multiple files and coordination
  • You're refactoring large portions of your codebase
  • You want to parallelize work (AI does several tasks while you focus elsewhere)

Don't use it when:

  • You need fine-grained control over each decision
  • The task is too vague for the AI to break into steps
  • Your codebase is too unusual or custom for the AI to learn quickly
  • Security or compliance requires human sign-off at each step

Example

You say to Claude Code:

Add a new API endpoint to fetch user preferences.
It should support GET and POST.
Add tests for both methods.
Make sure it integrates with our auth middleware.

Claude Code:

  1. Reads your codebase to understand the endpoint structure and auth pattern
  2. Writes the endpoint with both methods
  3. Adds tests with proper setup and assertions
  4. Runs the tests to verify they pass
  5. Shows you the changes for review

Comparing the Modes

ModeSpeedControlContextBest For
CopilotFastestMaximumSingle fileQuick code
Codebase ChatMediumMediumFull projectUnderstanding and feature building
AgenticSlowest (but hands-off)Low (AI decides)Full environmentComplete feature implementation

How They Work Together

You don't have to pick one mode. Real development uses all three:

  1. Use Codebase Chat to understand where you need to add code
  2. Use Copilot Mode to write the implementation line by line
  3. Switch to Agentic Mode to add tests and handle refactoring
  4. Ask Codebase Chat to review your changes against project patterns

Start with the mode that matches your current task. As you get comfortable, mix them. A skilled AI-assisted developer knows which tool fits which moment.

Practice

Try this with your own project:

  1. Open a file and use copilot mode for 5 minutes. Accept some suggestions, reject others. Feel the speed.
  2. Ask your IDE's chat feature (if available) one question about a different part of your codebase. See how it understands context.
  3. Pick a small new feature and try agentic mode (if your tool supports it). Give it a specific, bounded task.

Notice which mode felt most natural for each task. That intuition will guide you as you grow more efficient with AI tools.

In the next step, you will explore how to set up a free AI coding assistant. Follow the tutorial and try it in your own editor.

Discussion

  • Loading…

← Back to Academy