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.6.tar.gz (40.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.6-py3-none-any.whl (44.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coreinsight_cli-0.1.6.tar.gz
  • Upload date:
  • Size: 40.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.6.tar.gz
Algorithm Hash digest
SHA256 b795d6839760b1edce4f22954edf8ab24909f6825436e0a4162523093f57cc1a
MD5 072535ae7a16191d55d75cfd2fd6744b
BLAKE2b-256 f6f877e9fe1682450987458f4aff8bbf4f788c874e22aa83e6faf526deadefaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for coreinsight_cli-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8a1a40676bf0a7425dfb417d1ae8b66bb79e5f194551fa24e7d77b08a3432003
MD5 843bec90e70fbd65c1b2564466a384a4
BLAKE2b-256 5ea368db19087995605c730cff6657d4cdb77c872024370cb9032e5df0633d12

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