Artificial Intelligence1 min read

Teaching My Copilot and Claude Children to Share

By · Published by Everything Blog

In short

Developers previously had to write instructions for Copilot CLI first and subsequently patch them for Claude Code to handle differing skill paths and rules. An analysis of local loading mechanics showed that Claude Code supports external references, whereas Copilot CLI automatically ingests directory patterns while ignoring foreign files like AGENTS.md. Restructuring these dotfiles into a shared base with dedicated override folders resolved these integration friction points. Symlinks now bridge the neutral repository to each tool's configuration directory to maintain custom project workflows independently.

Key points

  • Moving shared instructions into a neutral directory eliminates the need to patch secondar…: Moving shared instructions into a neutral directory eliminates the need to patch secondary assistants after updating Copilot.
  • Utilizing symlinks enables both tools to inherit common guidelines while strictly maintai…: Utilizing symlinks enables both tools to inherit common guidelines while strictly maintaining distinct environment settings.
  • Separate override directories allow developers to configure different co-author trailers…: Separate override directories allow developers to configure different co-author trailers without causing cross-tool file contamination.

Sources checked by our analysis pipeline: 1

I use both GitHub Copilot CLI with tokens paid for by Microsoft where I work, and Claude Code using my own subscription. I run Claude on a personal laptop and Copilot at work and use both almost every day, occasionally on the same projects, sometimes at the same time. Both read personal instructions and skills from my home directory, and I keep those in my dotfiles, linked into ~/.copilot

and ~/.claude

.

Copilot got there first. I am happy with Copilot, but I want to keep learning, so more recently I have begun using Claude for personal projects almost exclusively. When I added Claude, I took a shortcut in 2f19eb4: Claude’s CLAUDE.md

imported Copilot’s instructions with @~/...

and then listed exceptions.

@~/source/dotfiles/.copilot/copilot-instructions.md

## Claude-Specific Overrides

- In AI-assisted commits, use `Co-Authored-By: Claude <noreply@anthropic.com>`

instead of the Copilot co-author trailer.

- The shared instructions refer to a `pr-stack` skill. If no such skill is installed, ...

- Shared skills live in `~/source/dotfiles/.copilot/skills` ...

This wasn’t fair to Claude. Every session started by reading another tool’s instructions, including a line telling it…

Artificial Intelligence