copilot-chat

When running copilot-chat, you are required to choose a directory because:

  • The directory serves as the context for the session. copilot-chat uses the files and structure within the selected directory to provide relevant suggestions and responses.
  • It allows copilot-chat to analyze the codebase, understand the project structure, and offer context-aware assistance.
  • By selecting a directory, copilot-chat can access and reference files, functions, and other resources within the project to provide more accurate and helpful responses.
  • It ensures that the tool operates within the scope of a specific project, avoiding irrelevant or unrelated suggestions.

This directory-based approach is particularly useful for large projects, as it helps copilot-chat focus on the relevant parts of the codebase.

Typical Workflow

  1. Start with copilot-chat-transient (C-c c) to explore available commands.
  2. Select a command from the transient menu, such as starting a chat or sending a prompt.
  3. Use direct commands or keybindings for repetitive tasks once familiar with the workflow.