Back to browse
GitHub Repository

AI Constraint Engine — enforces CLAUDE.md, .cursorrules, AGENTS.md rules as laws. 51 MCP tools, 991 tests. Official MCP Registry. npx speclock protect

25 starsJavaScript

SpecLock – AI Constraint Engine that stops AI from breaking locked code

by sgroy10·Mar 1, 2026·1 point·0 comments

AI Analysis

●●●BangerSolve My ProblemBig BrainZero to One

Semantic constraint enforcement for AI—Claude memory without guard rails. Nobody else does this.

Strengths
  • Addresses a genuine AI UX failure mode: AI remembers constraints but ignores them when inconvenient, with semantic synonym+negation detection to catch real conflicts not just keyword matches.
  • Works across multiple AI platforms (Claude Code, Cursor, Lovable, Bolt.new) via both npm file-based mode and MCP remote—genuine ecosystem breadth.
  • 19 MCP tools plus Git-aware checkpoints, drift detection, and multi-agent timeline tracking show depth beyond MVP—production-grade architecture for AI guardrails.
Weaknesses
  • Early adoption risk: depends on Claude Code, Cursor, and Lovable ecosystem maturity; if these tools improve native constraint handling, moat erodes quickly.
  • No public user metrics, traction data, or evidence of actual developer adoption since launch—claims are strong but unverified at scale.
Target Audience

Solo developers and teams using Claude Code, Cursor, Bolt.new, Lovable with concerns about AI guardrails and code integrity.

Similar To

Claude's native memory · Mem0 · Cursor Memory Bank

Post Description

I built SpecLock because I was tired of AI coding assistants "remembering" my constraints then ignoring them when inconvenient.

The problem: Claude Code has auto-memory. Cursor has Memory Bank. But memory without enforcement is dangerous. Your AI remembers you use PostgreSQL — then switches to MongoDB because it "seemed better."

SpecLock adds active constraint enforcement: • You: "Don't ever touch the auth files" • AI: Locked • ...5 sessions later... • You: "Add social login" • AI: CONFLICT: This violates your lock. Should I proceed?

Key features: - Semantic conflict detection (synonym + negation, not just keywords) - Auto-guard related files (injects warnings into source code) - Works with Bolt.new, Lovable, Claude Code, Cursor - 19 MCP tools for memory, tracking, enforcement - Free & open source (MIT)

Demo: https://sgroy10.github.io/speclock/ GitHub: https://github.com/sgroy10/speclock npm: npm install speclock

Similar Projects

Security●●Solid

Secure SDLC Agents for Claude and Cursor (MCP)

Eight specialist agents catch what Claude Code misses, but it's prompts not actual code analysis.

Niche GemSolve My Problem
kirumachi
102mo ago