Skip to content

Agent Configuration and Extensibility

nickzhums edited this page May 20, 2026 · 14 revisions

Customization Capabilities

GitHub Copilot for JetBrains supports multiple customization mechanisms that allow developers and enterprises to tailor AI behavior, workflows, and automation.

Currently, GitHub Copilot supports two different agent harnesses:

Harness Description
Local Agent Harness The built-in JetBrains agent experience. Supports core customization capabilities directly inside the IDE.
Copilot CLI Agent Harness (Preview) Uses Copilot CLI as the underlying agent provider. Enables additional agentic capabilities and aligns customization behavior with Copilot CLI and other Copilot surfaces.

Some customization capabilities are shared between both harnesses, while others are currently available only in Copilot CLI mode.


Instructions

What are Instructions

Instructions allow you to define common guidelines, rules, workflows, and task-specific behaviors that influence how GitHub Copilot generates code and handles development tasks.

Instructions can be scoped broadly across all interactions or applied contextually to specific files, paths, or workflows.

Local Agent Harness

Project-level

  • $PROJECT_ROOT/.github/instructions/**/*.instructions.md
  • $PROJECT_ROOT/.github/prompts/**/*.prompt.md

User-level

  • $HOME/.copilot/instructions/**/*.instructions.md

Copilot CLI Agent Harness (Preview)

Project-level

  • $PROJECT_ROOT/.github/copilot-instructions.md

You can also create path specific instructions.

User-level

  • $HOME/.copilot/copilot-instructions.md

Custom Agents

What are Custom Agents

Define custom chat agents for GitHub Copilot Chat. Custom agents allow you to tailor Copilot’s chat behavior for specific roles, workflows, or tasks.

Local Agent Harness

Project-level

  • $PROJECT_ROOT/.github/agents/**/*.agent.md
  • $PROJECT_ROOT/.claude/agents/**/*.agent.md

User-level

  • $HOME/.copilot/agents/**/*.agent.md

Copilot CLI Agent Harness (Preview)

Project-level

  • $PROJECT_ROOT/.github/agents/**/*.agent.md

User-level

  • $HOME/.copilot/agents/**/*.agent.md

Skills

What are Skills

Agent skills are folders of instructions, scripts, and resources that Copilot can load when relevant to improve its performance in specialized tasks.

The Agent Skills specification is an open standard used by a range of different AI systems.

Local Agent Harness

Project-level

  • $PROJECT_ROOT/agents/skills/**/SKILL.md
  • $PROJECT_ROOT/.github/skills/**/SKILL.md
  • $PROJECT_ROOT/.claude/skills/**/SKILL.md

User-level

  • $HOME/.agents/skills/**/SKILL.md
  • $HOME/.copilot/skills/**/SKILL.md
  • $HOME/.claude/skills/**/SKILL.md

Copilot CLI Agent Harness (Preview)

Project-level

  • $PROJECT_ROOT/.github/skills/
  • $PROJECT_ROOT/.claude/skills/
  • $PROJECT_ROOT/.agents/skills/

User-level

  • $HOME/.copilot/skills/
  • $HOME/.agents/skills/

Hooks

What are Hooks

Hooks define custom shell commands that Copilot agents can trigger at specific execution points.

They enable tighter integration between agents and local tooling or project-specific automation.

Local Agent Harness

Project-level

  • $PROJECT_ROOT/.github/hooks/*.hooks.json

Types of hooks

The following types of hooks are available:

  • userPromptSubmitted
  • preToolUse
  • postToolUse
  • errorOccurred

Copilot CLI Agent Harness (Preview)

Project-level

  • $PROJECT_ROOT/.github/hooks/

Clone this wiki locally