Phi47 Superpowers Layer
Structural code quality layer based on Integrated Information Theory (IIT 4.0). Works on top of any editor (VS Code, Cursor, Neovim) or LLM (Claude, GPT-4, Gemini). No vendor lock-in. Use your own API keys.
Install
pip install phi47-superpowers
pip install "phi47-superpowers[llm]"
Quick start
phi47 analyze mycode.py
phi47 analyze .
phi47 generate "Build a REST API" --output api.py
phi47 init
Diagnostic codes
| Code | Issue | Severity |
|---|---|---|
| P001 | Low system Phi | error / warning |
| P002 | Zombie function | warning |
| P003 | High cyclomatic complexity | error / warning |
| P004 | Low causal density | info |
| P006 | Disconnected class | hint |
| P007 | God function | hint |
Use as a library
from phi47 import Phi47Linter
linter = Phi47Linter()
for d in linter.lint_file("mycode.py"):
print(d)
Scientific background
Phi47 applies spectral IIT 4.0 to dependency graphs: Phi = H(eigenvalues(C*C^T)) * (1 - e^(-k)) Runs in O(n^3) instead of exact O(2^n).
License
MIT License -- Copyright (c) 2025 Walter Calmels Von dem Knesebeck TUCH Systems Research Laboratory
Metadata
Release files for phi47-superpowers 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| phi47_superpowers-0.1.1.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| phi47_superpowers-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.8 kB
Release files / phi47_superpowers-0.1.1.tar.gz
| Download URL | phi47_superpowers-0.1.1.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca353bcf211122804cfe566d83231c2b5cd1a8c7bc2b1f831695c92cdce48cf4
|
|
BLAKE2b-256 checksum How to use checksums |
11197ecd1d8802f0d10759e774dfca154a32fcacc92cf812dcda840d7dd8c13c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / phi47_superpowers-0.1.1-py3-none-any.whl
| Download URL | phi47_superpowers-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eff6b3212ca7ad35f07f9fc9aa95ff36f0a28d787f8e3c029ef075e269e274d7
|
|
BLAKE2b-256 checksum How to use checksums |
46e9da28a848efd10aa55805f5037b29135e66ffa29b4a8adb26fc2e6b60f39f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|