Skip to main content

Detect contradictions in your AI rules and generate judgment boundaries

Project description

tension-detect

Detect contradictions in your AI rules and generate judgment boundaries.

Your CLAUDE.md says "Write readable code" AND "Keep it DRY." Which one wins?

tension-detect finds the contradictions and helps you define when each rule applies.

Install

pip install tension-detect

Usage

MCP Server (recommended)

claude mcp add tension-detect -- python -m tension_detect.server

Then ask your AI: "Analyze my CLAUDE.md for contradictions and generate judgment boundaries"

CLI (detection only)

tension-detect .claude/CLAUDE.md

How it works

Most tools detect contradictions and try to resolve them. tension-detect turns them into judgment boundaries:

Rule A: "Write readable code"
Rule B: "Keep it DRY"
  -> Boundary: 3 lines or less -> readability. More -> DRY.
  -> Signal: Count the duplicated lines.

Architecture

Zero-LLM server. The MCP server does detection. The client LLM generates boundaries at zero cost.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tension_detect-0.1.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tension_detect-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file tension_detect-0.1.0.tar.gz.

File metadata

  • Download URL: tension_detect-0.1.0.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for tension_detect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8cff92e975a2c6828c6622e855e7751f2a04926611f705a670529930c364aa6c
MD5 23ad5caa4eab2554769115a8dbf6d759
BLAKE2b-256 77dc67977255bf4ea02ad31e0c928653d4ee7a3ff5874932a0a04f91dca85042

See more details on using hashes here.

File details

Details for the file tension_detect-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tension_detect-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for tension_detect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c77e59bace5f934a223c75e75191b19f35ceee2c5ca27d0dc87e5ad79c3b722a
MD5 d6a500b2e320c1f1bb132b78def6e8f2
BLAKE2b-256 ecd35ac1aad3d5588f9852768fd65043df378508aef29dafcc9b005d886136f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page