agentleFS
sgroy10sgroy10/speclock/llms.txt

speclock

llms.txt25 starsChanged 3 months agoMITView on GitHub

AI Constraint Engine that enforces CLAUDE.md, .cursorrules, and AGENTS.md rules as laws. Your AI remembers your rules — SpecLock makes it obey them. SpecLock is the only tool that stops AI coding assistants from breaking things you told them not to touch. It provides semantic conflict detection, hard enforcement, tamper-proof audit trails, and universal rules sync across all major AI coding tools.

The file

Files
llms.txt
# SpecLock

> AI Constraint Engine that enforces CLAUDE.md, .cursorrules, and AGENTS.md rules as laws. Your AI remembers your rules — SpecLock makes it obey them.

SpecLock is the only tool that stops AI coding assistants from breaking things you told them not to touch. It provides semantic conflict detection, hard enforcement, tamper-proof audit trails, and universal rules sync across all major AI coding tools.

- **Version:** 5.7.0
- **Author:** Sandeep Roy
- **License:** MIT
- **npm:** [speclock](https://www.npmjs.com/package/speclock)
- **GitHub:** [sgroy10/speclock](https://github.com/sgroy10/speclock)
- **Official MCP Registry:** io.github.sgroy10/speclock
- **Website:** [sgroy10.github.io/speclock](https://sgroy10.github.io/speclock/)
- **Smithery:** [sgroy10/speclock](https://smithery.ai/servers/sgroy10/speclock)
- **Tests:** 1043 tests across 24 suites, 0 false positives
- **MCP Tools:** 51

## Key Features

- Semantic conflict detection (100/100 score, 0% false positives)
- Patch Gateway and AI Patch Firewall for change review
- Guardian Mode: zero-config enforcement from existing rule files
- Drift Score: 0-100 metric measuring how much AI deviated from intent
- Lock Coverage Audit: find unprotected code areas
- Lock Strengthener: grade and improve constraint quality
- Universal Rules Sync to Cursor, Claude Code, Windsurf, Copilot, Gemini, Aider, AGENTS.md
- Pre-commit hooks for CI/CD integration
- Spec Compiler: natural language to structured constraints
- Code Graph: dependency analysis and blast radius calculation
- Typed Constraints: numerical, range, state, temporal
- Hard enforcement mode with configurable thresholds
- HMAC-SHA256 tamper-proof audit chain
- AES-256-GCM encryption at rest
- RBAC with 4 roles and API key auth
- Policy-as-Code DSL (YAML rules)
- SOC 2 / HIPAA compliance exports
- Incident Replay: session flight recorder
- Safety Templates: safe-defaults, solo-founder, hipaa, api-stability
- Python SDK and ROS2 Guardian Node
- REST API v2 with SSE streaming

## Works With

- Claude Code (via MCP)
- Cursor (via MCP)
- Windsurf (via MCP)
- GitHub Copilot (via rules sync)
- Gemini (via rules sync)
- Aider (via rules sync)
- Cline (via MCP)
- Bolt.new (via npm)
- Lovable (via hosted MCP endpoint)

## Install

```
npx speclock setup --goal "Build my app"
npx speclock protect
```

## Links

- [Documentation](https://sgroy10.github.io/speclock/)
- [npm Package](https://www.npmjs.com/package/speclock)
- [GitHub Repository](https://github.com/sgroy10/speclock)
- [Smithery Registry](https://smithery.ai/servers/sgroy10/speclock)
- [Full Details](/llms-full.txt)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.