Metadata-Version: 2.4
Name: coherion-mipcode
Version: 0.6.4
Summary: Static Python call-contract checks and Solidity structural analysis with mip-delta
Author: Brian Gansz
License-Expression: Apache-2.0
Project-URL: Source, https://github.com/Nitefawkes/mipcode
Project-URL: Documentation, https://github.com/Nitefawkes/mipcode/blob/v0.6.4/docs/usage.md
Project-URL: Issues, https://github.com/Nitefawkes/mipcode/issues
Keywords: python,static-analysis,pre-commit,code-review,contract-testing,ci,ai-agents,mipdelta,mipcode
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Quality Assurance
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Provides-Extra: test
Requires-Dist: pytest>=8; extra == "test"
Provides-Extra: mcp
Requires-Dist: mcp>=1.2.0; extra == "mcp"
Provides-Extra: ast
Requires-Dist: tree-sitter>=0.22.0; extra == "ast"
Requires-Dist: tree-sitter-rust>=0.23.0; extra == "ast"
Requires-Dist: tree-sitter-python>=0.23.0; extra == "ast"
Requires-Dist: tree-sitter-typescript>=0.23.0; extra == "ast"
Dynamic: license-file

# MipCode

MipCode's `mip-delta` command checks Python changes for call sites, wrappers,
and overrides that may need to change with them. It can also review a Python
repository snapshot and run structural checks on Solidity source. This is a
research preview. Findings are prompts for review.

## Install

Use Python 3.10 or later. The base package has no third-party Python runtime
dependencies. Install Git for Python repository auditing and Git comparisons.

```sh
python -m pip install coherion-mipcode
mip-delta --version
```

## Run

From your project's root, inspect Python source for existing issues:

```sh
mip-delta --root . --audit-repo
```

In a Git checkout, compare your working tree with `HEAD` and get JSON output:

```sh
mip-delta --root . --check-git --json
```

For a Solidity source tree:

```sh
mip-delta --root . --audit-solidity
```

These commands analyze source locally. Runtime observation with
`--run-pytest` is opt-in and requires Python 3.12 or later and pytest.
Model-assisted review with `--review` is also opt-in and uses configured
Anthropic API credentials or an authenticated Claude CLI.

See the [usage guide](https://github.com/Nitefawkes/mipcode/blob/v0.6.4/docs/usage.md)
for CI, pre-commit hooks, and command options, or the
[source repository](https://github.com/Nitefawkes/mipcode) for evaluation results.

MipCode is licensed under Apache-2.0.
