Skip to main content

Local-first AI performance profiler that mathematically verifies optimizations for Python, C++, and CUDA

Project description

CoreInsight CLI

CoreInsight is a local-first, hardware-aware AI performance profiler. It shifts performance engineering "left" by parsing your Python, C++, and CUDA code, identifying hardware bottlenecks (like CPU cache thrashing or CUDA warp divergence), and mathematically verifying AI-generated optimizations inside secure Docker sandboxes.

CoreInsight Python

Prerequisites

  • Python 3.9+
  • Docker Desktop / Docker Engine (Must be running for the sandbox verification)
  • Ollama (Optional, if using local models) or API keys for cloud models.
  • Suggested: Setup OpenAI/Anthropic/Google API keys to use those models

Install

pip install coreinsight-cli

Usage

1. Build Locally: Clone this repository and install it in editable mode:

pip install -e .

2. Configure CoreInsight CLI: Set up your preferred AI provider (Ollama, local vLLM, OpenAI, Anthropic, or Gemini):

coreinsight configure

3. Build Global Context (Recommended for multiple files): Index your repository so the AI understands your custom structs, classes, and dependencies across files:

coreinsight index

4. Test on a file: Analyze a specific file. The CLI will extract hot loops, process them in parallel, verify optimizations in Docker, and output a live Markdown report.

coreinsight analyze <file_name>

5. Project-Wide Hotspot Scanning: Instead of guessing which files are slow, scan your entire repository. CoreInsight will use static AST analysis to rank the most complex, deeply-nested loops in your project.

coreinsight scan

Build the Project

Download build:

pip install build

Run the build command to generate wheel file:

python -m build --wheel

To build project elsewhere using wheel file:

pip install dist/coreinsight_cli-*.whl

Architecture Notes

CoreInsight runs 100% locally. Code is only transmitted to the AI provider you configure. If you use Ollama or a local server, your proprietary code never leaves your machine.

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

coreinsight_cli-0.1.3.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

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

coreinsight_cli-0.1.3-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

Details for the file coreinsight_cli-0.1.3.tar.gz.

File metadata

  • Download URL: coreinsight_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for coreinsight_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b3341782893158b4981c6bec11be878582d6084cf77b6b884d2012dcbc219692
MD5 f749a164019025052581044fb6e8ba2a
BLAKE2b-256 fcbce9199b8a9c67d4d218a0b858d2eb1a2100120d357e818c68d3ee230696ea

See more details on using hashes here.

File details

Details for the file coreinsight_cli-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for coreinsight_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1e56f2cf1cdcf25d5a9b4d626fd11f56a73e77fa67b057496dfd16a186305166
MD5 4004ad8f5268a93d90caf6f32ee207f3
BLAKE2b-256 c274aa1109f1f4bc011e46a4c7bb0fd485e112bdfbc357178465af9315ada790

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