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.5.tar.gz (34.6 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.5-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coreinsight_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 34.6 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.5.tar.gz
Algorithm Hash digest
SHA256 cf8e9457ee19c15f5197feaf3e83750f4774549b02a5209242bdca190a5b7710
MD5 fcde271752373faaf82bfffaaf346473
BLAKE2b-256 00853b8198d10a8d535a6b3ee5159e97e78e16881311ec741f96c243c4216579

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for coreinsight_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 69229fbd0b40f4ef36f454f8b8bfb353ac050f177de26dd5a500fe0adf53e07a
MD5 31511b744ffc51915ff5e57328f2550c
BLAKE2b-256 f0f16635f0431672c9fd914a6358321168b24d9066d6ae01b653c1382a05b6ed

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