Official Terminal Utilityv1.0.0

AgentRules CLI & MCP Server

Zero install required. Scan your project manifest, detect framework combinations, and inject verifiable behavioral constraints into Cursor, Claude Code, and Windsurf in seconds.

$ npx agentrules initInstant Scan
Web Auditor

Scan project manifests and write tailored .cursorrules or CLAUDE.md files.

Terminal — bash / zsh / powershell
CLI Output Preview
$ npx agentrules init --client cursor
═══════════════════════════════════════════════════════════════════
  AgentRules.org - Industrial Behavioral Rules Generator
═══════════════════════════════════════════════════════════════════
🔍 Scanning repository manifests in: /workspace/my-app
✅ Detected 3 frameworks:
   • next (15.2.0) -> Rule: nextjs-15-app-router
   • react (19.0.0) -> Rule: react-19-compiler
   • tailwindcss (^4.0.0) -> Rule: tailwind-v4

📦 Assembling rules pack for client: cursor...
✨ Generated .cursorrules in project root.
✨ Generated modern .cursor/rules/agentrules.mdc.

🎉 Setup complete! Your AI Coding Agent is now constrained by verifiable industrial rules.

Model Context Protocol (MCP) Setup

Connect AgentRules directly to Cursor or Claude Desktop so your AI coding agent can dynamically query and audit rules at runtime.

claude_desktop_config.json / .cursor/mcp.json:
{
  "mcpServers": {
    "agentrules": {
      "command": "npx",
      "args": ["-y", "agentrules", "mcp"]
    }
  }
}

CI/CD Automated Rule Linting

Ensure no developer commits deprecated or conflicting instruction files into your Git repository with automated pre-commit checks.

.github/workflows/agentrules-lint.yml:
- name: Audit AI Instruction Rules
  run: |
    npx agentrules audit .cursorrules
    npx agentrules audit CLAUDE.md