Github Blog

Onboarding your AI peer programmer: Setting up GitHub Copilot coding agent for success

thumbnail

Onboarding your AI peer programmer

Setting up GitHub Copilot coding agent for success involves two key capabilities: coding agent and agent mode. Coding agent is an autonomous tool that takes an issue, spins up an Actions container, and returns with a pull request (PR).

Agentic workflows in GitHub Copilot: coding agent vs. agent mode

GitHub Copilot has coding agent and agent mode capabilities. Coding agent is autonomous, while agent mode involves more interaction with the user.

Inside Copilot coding agent’s workflow: From issue to ready‑to‑review pull request

When a task is assigned to Copilot, it creates a branch, writes the code, and generates a pull request for review.

Configure Copilot’s environment with GitHub Actions

Copilot requires access to the necessary tools in the environment where it works. GitHub Actions can automate tasks using YAML files to set up the environment.

Make your repository welcoming (for developers and AI)

Just as you would onboard a new developer, ensure the project has a clearly defined issue, relevant history, and suggestions on how to approach it for Copilot.

Optimize project structure and docs so Copilot finds the right info fast

Provide an overview of the project, user stories, frameworks in use, project structure, and coding guidelines to help Copilot complete tasks efficiently.

Targeted instructions files

Use <file-name>.instructions.md files to provide specific instructions for different types of files in the codebase, helping Copilot understand how to approach each file.