SpecLock: Open Source Constraint Engine for AI Coding Agents

SpecLock is an open source constraint engine that adds active enforcement to AI coding agents. While Claude Code's native memory can remember constraints, SpecLock actively blocks violations with semantic conflict warnings.
How SpecLock Works
SpecLock operates as an MCP server with 19 MCP tools. When you set a constraint like "never modify auth files," if Claude tries to violate it—even 10 sessions later—the action gets blocked. The system uses three key techniques:
- Synonym expansion across 15 groups
- Negation detection
- Destructive action flagging
This semantic understanding means that "remove the login endpoints" correctly triggers against a constraint about "never modify auth files."
Compatibility and Availability
SpecLock works with multiple platforms:
- Bolt.new (npm mode, no MCP needed)
- Lovable
- Cursor
- Windsurf
The tool is free, open source, and available on GitHub. The developer built it over several months after experiencing frustration with AI tools ignoring constraints.
📖 Read the full source: r/ClaudeAI
👀 See Also

Codebase Memory MCP: Graph-based code exploration for Claude Code
A developer built an MCP server that indexes codebases into a persistent knowledge graph using Tree-sitter and SQLite, reducing token usage by 20x on average for structural queries like call tracing and dead code detection.

Freddy MCP Server Connects Wearables to AI Agents with Headless Sign-In
Freddy is a personal MCP server that links wearables (Polar, Oura, Withings, Suunto, Intervals.icu, Hevy, plus WHOOP, Strava, Dexcom in beta) to AI clients like Claude Code, ChatGPT, and Notion AI via OAuth. New headless sign-in enables scheduled workflows for autonomous agents.

Phaselock: An AI Agent Control System Inspired by Parenting Techniques
Phaselock is an open-source Agent Skill that implements four control mechanisms for AI coding agents: explicit gates before action, immediate feedback on mistakes, constrained choices, and mechanical rule enforcement. It works with Claude Code, Cursor, Windsurf, and any tool supporting hooks.

Testreel: Programmatic Demo Video Generation with Claude Code
Testreel is an npm package that generates polished product demo videos from JSON, YAML, or Playwright interaction descriptions. It creates webm/mp4/gif videos with cursor overlays, click ripples, and gradient backgrounds.