Everything you need to know about the AI Constraint Engine with 51 MCP tools, 991 tests, and semantic enforcement for CLAUDE.md, .cursorrules, and AGENTS.md.
npx speclock protect in your project directory. This sets up constraint enforcement, pre-commit hooks, and MCP integration in one command. No configuration files are needed — SpecLock automatically discovers your existing CLAUDE.md, .cursorrules, and AGENTS.md rules.
.cursorrules file is a static text file that provides suggestions to Cursor's AI, but it has no enforcement mechanism — the AI can ignore or forget those rules at any time. SpecLock actively enforces constraints with semantic detection, pre-commit blocking, and conflict checking. Think of .cursorrules as guidelines and SpecLock as laws.
speclock_session_briefing tool, providing Claude with your project's constraints, decisions, and history. Claude Code then checks every proposed change against your locks before applying it.
npx speclock protect is the one-line setup command for SpecLock. Running it in your project directory initializes constraint enforcement, installs pre-commit hooks, discovers existing rules from CLAUDE.md and .cursorrules, and configures MCP integration. It requires zero configuration and gets SpecLock running in seconds.
speclock package. Sandeep built SpecLock to solve the critical problem of AI coding assistants forgetting or ignoring project constraints between sessions.