# Intent drift

> Intent drift is an open-source agent skill for developer tools. Checks whether pending code changes still match the original request before more edits. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/github/awesome-copilot/tree/main/skills/intent-drift
- **Repository:** https://github.com/github/awesome-copilot
- **GitHub stars:** 41,707
- **License:** MIT
- **Skill name:** intent-drift
- **Collection:** https://github.com/github/awesome-copilot
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-30

## About

This skill has the agent compare the working-tree and staged changes in a git repository against the request it was given, and flag edits that the acceptance check does not need. It starts by writing down the request and the test or behavior that decides completion, then confirms the test suite passes before judging anything.

The review reads every pending source, including staged-only changes and new untracked files, and splits each hunk into smaller logical changes. Each change is labeled required or out of scope, with security and input-validation constraints treated as required and flagged for human review. The output is a fixed report ending in a verdict such as on track, drifted, or inconclusive.

The skill uses only git and the project's existing test command, and it does not install or run external scoring packages. It expects a git repository and a runnable acceptance check. When drift is found, it reverts only the out-of-scope changes and reruns the tests, and it avoids deleting untracked files without asking.

## When your agent uses it

> Use when the user asks whether current work still matches the original request, or when an agent has made several edits and is about to continue. Compares the working-tree diff against the stated request and lists out-of-scope changes before more edits are made.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/github/awesome-copilot/tree/HEAD/skills/intent-drift)
- [License: MIT](https://github.com/github/awesome-copilot/tree/HEAD/skills/intent-drift)

## Features

- **Request and acceptance check:** Records the original request in one sentence and names the test or behavior that decides whether it is done.
- **Complete change inventory:** Reviews unstaged, staged and untracked files so no pending edit is missed.
- **Hunk-level classification:** Splits hunks into smaller changes and labels each as required or out of scope.
- **Test integrity guard:** Treats weakened, skipped or deleted tests as drift unless the user asked for that change.
- **Security constraint protection:** Keeps authorization, validation and secret handling changes and flags them for review.
- **Guided correction:** Reverts only out-of-scope changes from the index and working tree, then reruns the acceptance check.

## Good for

- Check whether my current changes still match what I originally asked for
- Review the diff before continuing after several agent edits
- Find unrelated refactors or comment changes mixed into a bug fix
- Revert out-of-scope edits while keeping the changes the tests need

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/intent-drift` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/intent-drift &&
cp -R "$tmp/skills/intent-drift" ~/.claude/skills/intent-drift &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/intent-drift` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/intent-drift` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/intent-drift &&
cp -R "$tmp/skills/intent-drift" ~/.agents/skills/intent-drift &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/intent-drift` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/intent-drift` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/intent-drift &&
cp -R "$tmp/skills/intent-drift" ~/.cursor/skills/intent-drift &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/intent-drift` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/github/awesome-copilot.git --path skills/intent-drift
```

Or copy the folder to `~/.gemini/skills/intent-drift` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/intent-drift`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/intent-drift &&
cp -R "$tmp/skills/intent-drift" ~/.copilot/skills/intent-drift &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/intent-drift` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/github/awesome-copilot.git
```

Then copy `awesome-copilot/skills/intent-drift` into your agent's skills folder as `intent-drift`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It uses git and the repository's existing acceptance command, such as its test suite. It does not install or run external scoring packages.

### When does Intent drift trigger?

When the user asks whether the work still matches the original request, or when an agent has made several edits and is about to continue.

### What happens if the tests already fail?

The skill reports an inconclusive verdict, shows what is failing, and pauses before reverting anything, since there is no passing baseline.

### Will Intent drift delete untracked files?

Not by default. It removes an untracked file only if the task created it and it is clearly not user-authored work; otherwise it keeps the file and asks first.

### How do I install Intent drift in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/intent-drift to use it in all your projects, or to .claude/skills/intent-drift in one project.

### Does Intent drift run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Intent drift?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Intent drift?

The closest alternatives to Intent drift are Project review, Code review expert, Harness review, Review and Safe change.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Project review](https://ai-powered.com/skills/project-review): Project review is an open-source agent skill for developer tools.
- [Code review expert](https://ai-powered.com/skills/code-review-expert): Code review expert is an open-source agent skill for developer tools.
- [Harness review](https://ai-powered.com/skills/harness-review-chachamaru127): Harness review is an open-source agent skill for developer tools.
- [Review](https://ai-powered.com/skills/review-jasgujral): Review is an open-source agent skill for developer tools.
- [Safe change](https://ai-powered.com/skills/safe-change): Safe change is an open-source agent skill for developer tools.
- [Docs sync audit](https://ai-powered.com/skills/docs-sync-audit): Docs sync audit is an open-source agent skill for developer tools.
- [Fix merge conflicts](https://ai-powered.com/skills/fix-merge-conflicts): Fix merge conflicts is an open-source agent skill for developer tools.
- [Deslop](https://ai-powered.com/skills/deslop): Deslop is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/intent-drift
