Skip to main content

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

Project description

CoreInsight

AI-powered performance profiler for Python, C++, and CUDA.

CoreInsight finds hardware bottlenecks in your code, generates optimized replacements, and verifies the speedup mathematically inside an isolated Docker sandbox — all running locally on your machine.

CoreInsight PR Comment showing 670x verified speedup


Install

# OpenAI key - quick install
pip install coreinsight-cli[openai]

# Gemini key - quick install
pip install coreinsight-cli[google]

# Claude key - quick install
pip install coreinsight-cli[anthropic]

# Local Ollama install
pip install coreinsight-cli

# Memory and additional usage install
pip install coreinsight-cli[openai,memory]

# Install everything
pip install coreinsight-cli[all]

Requirements: Python 3.9+ · Docker Desktop · Ollama (for local inference)


Quick start

# Configure your AI provider (defaults to Ollama + llama3.2)
coreinsight configure

# Run the built-in demo
coreinsight demo

# Analyse your own file
coreinsight analyze path/to/your_file.py

What it does

CoreInsight runs a full optimization pipeline on every function it extracts:

  1. Bottleneck analysis
  2. Code generation
  3. Sandbox verification
  4. Hardware profiling

Every result is stored in a local vector database. On repeat analyses, matching patterns are recalled instantly — no LLM call, no sandbox spin-up.


Commands

Command Description
coreinsight analyze <file> Analyse a .py, .cpp, or .cu file
coreinsight demo [--lang cpp] Run on a built-in example
coreinsight configure Set up AI provider and API keys
coreinsight configure --pro-key <key> Activate Pro tier
coreinsight memory Inspect stored optimizations
coreinsight memory --clear Wipe the memory store
coreinsight memory --export out.csv Export memory to CSV or Markdown
coreinsight index [--dir <path>] Index a repo for cross-file RAG context
coreinsight scan [--dir <path>] Rank hotspots by complexity without LLM
coreinsight view Launch the interactive TUI

All commands accept --no-docker to skip sandboxing when Docker is unavailable.


Supported languages

Language Analysis Benchmarking Correctness
Python
C++
CUDA

AI providers

Provider Tier Notes
Ollama Free ollama pull llama3.2
LM Studio / vLLM Free Any OpenAI-compatible server
OpenAI Pro GPT 5.3 recommended
Anthropic Pro Claude 4.6 Sonnet recommended
Google Gemini Pro Gemini 2.5 Pro recommended

Local providers run entirely on-device. No code leaves your machine unless you configure a cloud provider.


Pro — free during beta

Pro unlocks cloud providers and AI-free hardware profiling.
Keys are being distributed manually during the beta.

Request a key → tally.so/r/xXZ9YE

coreinsight configure --pro-key <your-key>

Privacy

  • Local providers — nothing leaves your machine
  • Cloud providers — only the function code you analyse is sent to the provider API, under your own key
  • The memory store lives at ~/.coreinsight/memory_db on your filesystem

Troubleshooting

Docker not running

open Docker Desktop, or: sudo systemctl start docker

Ollama model not found

ollama pull llama3.2

ChromaDB / SQLite error

pip install pysqlite3-binary

Links

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.3.5.tar.gz (85.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.3.5-py3-none-any.whl (92.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coreinsight_cli-0.3.5.tar.gz
  • Upload date:
  • Size: 85.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for coreinsight_cli-0.3.5.tar.gz
Algorithm Hash digest
SHA256 58238a04512435acb165613a6512952d48b0e5e029e46e958fc0069581a103e3
MD5 e3818e9c0564a834cd414775862d09d3
BLAKE2b-256 fb40542a4b1ded5653dc26f28ebcb6fa1835f34d3279d6e611981fc4d1ffb1b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreinsight_cli-0.3.5.tar.gz:

Publisher: publish.yml on Prais3/coreinsight_cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: coreinsight_cli-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 92.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for coreinsight_cli-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e5e4f4c9c1ee4be8ef8dadfa7fb0a973501ef9e2d0ea45b376bd01fe895b4bd6
MD5 e3a5f3964b167487aade73acc53e116a
BLAKE2b-256 b7fc0542cd22d2993c8969e00d52604b7b381c62d512c93d7f447f4886cb8ee0

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreinsight_cli-0.3.5-py3-none-any.whl:

Publisher: publish.yml on Prais3/coreinsight_cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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