Back to Discover

rule-drift

connector

ri7in

Test whether AI agents retain critical instructions as conversations grow.

View on GitHub
0 starsSynced Aug 14, 2026

Install to Claude Code

/plugin marketplace add ri7in/rule-drift

README

RuleDrift logo

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.

Rendered live from ri7in/rule-drift's GitHub README — not stored, always reflects the source repo.

1 Install Method

NameDescriptionCategorySource
npm packageInstall via npm (stdio transport)mcp-serverrule-drift

0 Comments

Login required
Log in to post a comment or update on this repo.

No comments yet — be the first to share an update.