---
title: "Discussion on \"When Two AI Agents Drift Apart\" | Hashnode"
description: "Discussion on \"When Two AI Agents Drift Apart\". Learn how to keep AGENTS.md, CLAUDE.md and Copilot instructions in sync, from simple scripts to AIContext exports, validation and CI checks."
url: "https://hashnode.com/posts/when-two-ai-agents-drift-apart/6b002b532cb3133aa9b0438a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [When Two AI Agents Drift Apart](https://mortylen.hashnode.dev/when-two-ai-agents-drift-apart?utm_source=hashnode&utm_medium=feed)

Learn how to keep AGENTS.md, CLAUDE.md and Copilot instructions in sync, from simple scripts to AIContext exports, validation and CI checks.

1d ago · 10 min read · mortylen.hashnode.dev  
Read the article

-   [#devtools](https://hashnode.com/tag/devtools)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#AI](https://hashnode.com/tag/AI)
-   [#developer-tools](https://hashnode.com/tag/developer-tools)

## Written by

[mortylen](https://hashnode.com/@mortylen)

@mortylen

  
[View profile](https://hashnode.com/@mortylen)

Is's easy to make software: all you have to do is touch the right key at right time and the software will run without errors.

By day, I work on enterprise and industrial systems; by night, I experiment with modern technologies. I’m committed to lifelong learning and continuously exploring new ideas.

## Responses 2

Markdown supported · ⌘↵ to post

[Vic Moreno](https://hashnode.com/@itsvicmoreno)

[1d ago](https://hashnode.com/posts/when-two-ai-agents-drift-apart/6b002b532cb3133aa9b0438a/comment/6b002ea7595f81e2cac588a4)

For the Claude side there is a shortcut before any script: its memory file can import another file with an @ path, so a single line pointing at the AGENTS file leaves one source to maintain. Copilot instructions still need their own copy, which is where a CI check earns its keep. Does yours fail the build on drift or only warn?

[mortylen](https://hashnode.com/@mortylen)

[1d ago](https://hashnode.com/posts/when-two-ai-agents-drift-apart/6b002b532cb3133aa9b0438a/comment/6b002ea7595f81e2cac588a4#reply-6b00335575c660b7bfe57a39)

Good point, thanks. For Claude, that's the simpler solution: one `@AGENTS.md` line in `CLAUDE.md` and you have a single source. The imported file is loaded together with `CLAUDE.md`, so it helps with maintenance but doesn't reduce the context size.

Copilot is different. Its instructions need their own copy, and that's where a CI check comes in handy, whether it's AIContext or a plain diff.

On drift, the build fails. Both `aicontext validate --strict` and `aicontext export --target all --check` exit with code `1`, so the CI job fails. The difference from an import is that AIContext generates `CLAUDE.md` as a full copy. If you only use Claude and `AGENTS.md`, the import is enough and you don't need any extra tools.
