Core LM Studio is a local-first Windows desktop application built on top of the Core LM full-spectrum research kit. It combines:
- an Electron + React calculator-inspired console for Core LM operations;
- a Python sidecar service that wraps the existing deterministic Core LM reference product;
- SQLite persistence for sessions, workflows, chat bus messages, ledger mirrors, replay snapshots, connector metadata, and metrics;
- an n8n-like Flow Studio for node-based ingestion, compression, Core LM execution, chat output, and outbound routing;
- deterministic mocks for external LLM/local model/REST integrations.
- sample workflows, connector configs, and programming-agent packets that can run offline through the canonical sidecar.
- provider-native Ollama usage metrics, deterministic sampling controls, structural quality evaluation, and a Compression Inspector for run metadata.
- sidecar-managed Ollama startup for real local model runs when the
ollamabinary is installed. - a direct-runtime benchmark layer with strict-vs-bridge policy, direct adapter discovery, persisted benchmark profiles/runs/trials, and JSON/Markdown/CSV reports.
Core LM remains the canonical state authority. External systems are perturbation sources or outbound targets, and the global chat is an interaction bus rather than a truth store.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
npm install
npm run desktop:devWindows:
scripts\start_corelm_studio.ps1Useful development commands:
PYTHONPATH=. python -m services.core_service.corelm_studio
PYTHONPATH=. python -m services.core_service.corelm_studio.benchmark_cli profiles
PYTHONPATH=. python -m services.core_service.corelm_studio.benchmark_cli run --profile-id builtin-runtime-conformance
npm run desktop:test
npm run desktop:build
npm run desktop:package:win
PYTHONPATH=. python -m pytest -qMock connectors run fully offline. For real Ollama runs, set the connector to
mock=false; the sidecar probes the loopback Ollama API and starts
ollama serve on demand when possible. Core LM Studio does not bundle Ollama,
LM Studio, or model weights.
Primary Studio docs:
docs/corelm_studio/quickstart.mddocs/corelm_studio/architecture.mddocs/corelm_studio/connectors.mddocs/corelm_studio/workflows.mddocs/METRICS.mddocs/DIRECT_RUNTIME_BENCHMARK_PLAN.mddocs/METRIC_CATALOG.mddocs/ADAPTER_SUPPORT_MATRIX.mddocs/STRICT_BENCHMARK_POLICY.mddocs/BENCHMARK_PROFILES.mddocs/DETERMINISM_INSPECTOR.mddocs/RUNTIME_TELEMETRY.mddocs/QUALITY_EVAL.mddocs/COMPRESSION_INSPECTOR.mddocs/WINDOWS_BUILD_DIRECT.mddocs/corelm_studio/security_notes.mddocs/corelm_studio/replay_and_ledger.mddocs/corelm_studio/windows_build.mddocs/implementation_plan.mddocs/architecture_decisions.md
Core LM is a deterministic memory architecture that separates text generation from truth storage. This repository packages the project as one clean, reproducible bundle with four aligned layers:
- Publication artifact — formal specification, reference kernel, oracle kernel, benchmark suite.
- Archive package — source snapshot, checksums, manifest, release notes, rebuild path.
- Sales package — one-pager, FAQ, positioning, pricing template, objection handling.
- Local reference product — installable Python package plus CLI for structured fact ingestion, provenance, replay, and session persistence.
This bundle supports these precise claims:
- publication-ready research artifact;
- archive-ready reproducible source bundle;
- sales-collateral-complete package for demos and evaluation conversations;
- complete local reference product for single-user deterministic operation.
It does not claim:
- audited security hardening;
- multi-tenant cloud operations;
- customer adoption proof;
- legal review of commercial terms.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install .
corelm demo --session examples/demo_session.json
corelm get --session examples/demo_session.json --branch corelm --subject project --attribute namepython -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
make release-check# source mode
PYTHONPATH=. python -m pytest -q
PYTHONPATH=. python -m benches.runner --out reports/benchmark_latest.json --readiness-out reports/publication_readiness.json
PYTHONPATH=. python -m corelm.cli demo --session examples/demo_session.json
# editable install
pip install -e .
corelm demo --session examples/demo_session.json
# wheel build/install
python -m pip wheel . -w dist --no-deps
pip install dist/*.whl
corelm demo --session examples/demo_session.jsoncorelm/— kernels, baselines, product wrapper, CLIbenches/— frozen benchmark traces and runnertests/— publication and product testsdocs/— publication, archive, sales, product, maintenance, and handoff docsreports/— benchmark, readiness, and checksum reportsexamples/— reproducible demo session and command walkthroughtools/— cleanup and verification scriptsapps/desktop/— Electron, React, and TypeScript desktop shellservices/core_service/— Python Core LM Studio sidecar servicepackages/— shared TypeScript contracts and UI constantssample_workflows/— importable Flow Studio examplessample_connectors/— mock connector configuration examplesprompt_templates/— programming-agent outbound packet templatesscripts/— Windows and cross-platform local launch helpers
docs/quickstart.mddocs/user_guide.mddocs/reproducibility_guide.mddocs/limitations_and_scope.mddocs/maintenance_guide.mddocs/release_notes.md
- Publication artifact: complete
- Archive package: complete
- Sales collateral: complete
- Local reference product: complete
- Hosted production service: intentionally out of scope for this bundle