Skip to main content

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

Metadata

Release files for tension-detect 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tension-detect 0.1.0
File Size Uploaded Provenance
tension_detect-0.1.0.tar.gz 22.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for tension-detect 0.1.0
File Interpreter ABI Platform
tension_detect-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.9 kB

Release files / tension_detect-0.1.0.tar.gz

Download URL tension_detect-0.1.0.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8cff92e975a2c6828c6622e855e7751f2a04926611f705a670529930c364aa6c
BLAKE2b-256 checksum
How to use checksums
77dc67977255bf4ea02ad31e0c928653d4ee7a3ff5874932a0a04f91dca85042
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / tension_detect-0.1.0-py3-none-any.whl

Download URL tension_detect-0.1.0-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c77e59bace5f934a223c75e75191b19f35ceee2c5ca27d0dc87e5ad79c3b722a
BLAKE2b-256 checksum
How to use checksums
ecd35ac1aad3d5588f9852768fd65043df378508aef29dafcc9b005d886136f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for tension-detect 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page