RuleDrift
Test whether AI agents retain critical instructions as conversations grow.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
rule-driftclaude mcp add ruledrift -- npx -y rule-drift@0.1.1 mcp
{
"mcpServers": {
"ruledrift": {
"command": "npx",
"args": [
"-y",
"rule-drift@0.1.1",
"mcp"
]
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
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.
الأسئلة الشائعة
ما هو RuleDrift؟
Test whether AI agents retain critical instructions as conversations grow.
كيف أثبّت RuleDrift؟
يعمل على جهازك. في Claude Code: claude mcp add ruledrift -- npx -y rule-drift@0.1.1 mcp. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج RuleDrift إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل RuleDrift مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون RuleDrift؟
ينشره ri7in. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.