RuleDrift

Official registry AI and agents

Test whether AI agents retain critical instructions as conversations grow.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package rule-drift
Claude Code
claude mcp add ruledrift -- npx -y rule-drift@0.1.1 mcp
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "ruledrift": {
            "command": "npx",
            "args": [
                "-y",
                "rule-drift@0.1.1",
                "mcp"
            ]
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. RuleDrift
  2. Quick start
  3. What you get
  4. MCP
  5. Documentation

RuleDrift

Catch the moment your agent drifts from its rules.

RuleDrift tests whether an AI agent still follows important instructions after a conversation becomes long or distracting.

Run it like a test suite when you change a prompt, model, memory system, or agent workflow. It runs locally and does not sit in front of production requests.

Quick start

Requires Node.js 22+ and Ollama.

ollama pull qwen3:1.7b
npx rule-drift init
npx rule-drift test

No paid model API, account, backend, or telemetry is required.

What you get

  • The first conversation point where a rule fails
  • Terminal, JSON, and JUnit reports
  • Local Ollama and bring-your-own-agent support
  • Optional MCP tools for AI coding clients
  • Stable exit codes for CI

MCP

npx -y rule-drift mcp --root /path/to/your/project

See the MCP setup guide for client configuration and safety details.

Documentation

Contributions are welcome—see CONTRIBUTING.md. Licensed under MIT.

Frequently asked questions

What is RuleDrift?

Test whether AI agents retain critical instructions as conversations grow.

How do I install RuleDrift?

It runs on your machine. In Claude Code: claude mcp add ruledrift -- npx -y rule-drift@0.1.1 mcp. For other clients, paste the JSON configuration from this page into their MCP settings.

Does RuleDrift need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is RuleDrift open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains RuleDrift?

It is published by ri7in. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.