Skip to main content
Loss of provenance

A previous release had provenance metadata, but this release does not. View details.

Proprioceptive Lens

See inside your local AI. Inspect its confidence. Steer its behaviour.

Website · Quick start · Models · Agents & MCP · Changelog · Report an issue

Your local model is wrong more often than it sounds. Lens shows you where, and checks.

PyPI Python 3.9+ Models License: Apache 2.0

A free app for anyone running local AI with Ollama or Hugging Face. One command, no account, no dependencies, and nothing you type leaves your computer.

You:   In what year was Albert Einstein born? Answer with just the year.
Model: 1904            ← Lens: "190" was only 66% sure
Lens:  Double-check → "Albert Einstein was born in 1879."   ✗ the answers disagree

A real run on Llama 3.2 1B (unedited output from Lens's own test set).

pip install proprioceptive-lens && lens

See Lens in action

Token confidence and double-checking — see what your model hesitated on, and when a second answer disagrees.

Lens showing a confidently wrong answer: every word at near-100% certainty

Deep mode and Behaviour — explore layer activity and internal-state readings as the model writes.

Deep mode: layer activity map and live Behaviour scores

Choose your workflow

You want to… Start here
Chat with your local model and inspect token confidence Install and run
Explore hidden states and Behaviour readings Deep mode · Supported packs
Steer behaviour, try verified answers, or check claims Lens Deluxe — free, no card, no time limit; activation required
Work in a terminal or build a pipeline Terminal mode
Give Claude Code, Cursor, or another agent access to Lens Plugin and MCP setup

What you get

What it does Evidence
Certainty on every word Each word is tinted by how sure the model was. Hover to see what it almost said. Read straight from the model's own probabilities
Double-check A short answer with a shaky word gets re-asked in full, and Lens tells you if the answer changes. Short factual questions: Llama 3.2 1B 68.6% → 91.2% correct, Qwen2.5 0.5B 77.5% → 87.9%, Qwen2.5 1.5B 93.8% → 99.0%, Llama 3.2 3B 96.4% → 98.7%. Passed on all 4 models tested.
See inside (deep mode) A live layer-by-layer map of the network while it writes. Runs the model's open weights on your machine
Behaviour (opt-in) Internal-state readings: code or prose, repeating itself, creative or literal, assertive or hedged, asking or stating. On realistic prompts across 16 popular models, the bars you see lean the right way 77% of the time and the wrong way 8%. A bar that can't read a model reliably is hidden for that model.
Steering (Deluxe) Sliders that push the model's internal state while it writes, with a before/after. 81 models, 184 directions, each tested on its own model against random pushes. The most popular models also pass a long-answer safety check.
Private memory Remembers your conversations across chats, on your computer, for any model. Local SQLite file you can view or delete
For agents lens mcp lets Claude Code, Cursor or Claude Desktop ask your local model and see how sure it was. Claude Code plugin included

How to interpret the readings

  • Token confidence measures the model's probability for its output. Confident factual errors remain possible; double-checking focuses on uncertain answers.
  • Behaviour readings indicate patterns in internal state. In the reported real-prompt evaluation, they leaned the right way about three times in four.
  • Steering controls are opt-in, with model-specific strength limits based on the published evaluations.

Install and run

You need Python 3.9+ and Ollama installed and running for this quick start. If you already have a chat model downloaded, use it; otherwise pull the example below.

pip install proprioceptive-lens      # no dependencies; Python 3.9+
ollama pull qwen3:4b                 # any chat model works
lens                                 # opens the app in your browser

Lens opens in its own app window (using Chrome, Edge, Chromium or Brave if you have one; otherwise your browser). Add it to your apps menu with lens install; use lens --tab for a normal browser tab.

Options: lens --port 7777 --ollama http://127.0.0.1:11434 --hindsight http://localhost:8888.

Deep mode and Behaviour

pip install "proprioceptive-lens[deep]"
lens --deep Qwen/Qwen2.5-3B-Instruct

Already chatting with an Ollama model? Press See inside in the app. Lens loads the same model's open weights and switches you into deep mode, with no restart. Or start Lens with --deep <model> as above.

Deep mode runs a Hugging Face model locally and reads its hidden states. It works with Llama, Qwen, Mistral, Gemma, Phi, Falcon, Granite, OLMo, SmolLM, DeepSeek and other families. Lens tells Ollama users which command matches the model they already run. Switch on Behaviour in the app to see internal-state probe scores. The app lists which models have a Behaviour pack; so does docs/MODELS.md.

Lens Deluxe: steer the model from the inside

Behaviour shows what the model is doing. Deluxe lets you change it while it writes. A slider per behaviour (more or less formal, more or less repetitive, and others) pushes the model's internal state in that direction, and Before / after re-runs your question without steering so you can see exactly what changed.

  • Every steering direction is tested on each model before it is offered. It has to change the model's writing more than random pushes of the same size do. It also has to keep the text fluent, add no refusals and stay on topic. Sliders stop at the strongest setting that passed.
  • On the most popular models, long answers are checked too: a direction that makes 300-word answers more repetitive is capped or withdrawn. Elsewhere, sliders stay at the gentlest strength that passed until that check has run.
  • New: Answer in French (Qwen2.5 3B, app 0.1.14+). Steers the model's internal state toward French with no instruction in your prompt. In testing, 8 plain English questions went from 8% to 99% French at one step of the slider, while a random push of the same size stayed at 1–2%.
  • Nothing steers automatically. You choose, and you can always compare against the unsteered answer.
  • Same privacy as Behaviour: your text never leaves your computer.

Verified answers (Deluxe, app 0.1.15+, Qwen/Qwen2.5-0.5B-Instruct only). For a three-option factual question, Lens makes a small, exact write inside the model so that its own first answer is the verified one, checks that the write did what it was meant to, and either commits it or puts the model back exactly as it was. The cloud never sees your question or the options: your computer sends the fact's key (relation and subject), hashes of the options and text-free measurements, and receives the write and a signed record of what happened. Measured on held-out multiple-choice facts (four pre-registered single runs, 669 stems): the route corrected 334 of 336 wrong answers with 0 harms, and 0 of 219 correct answers flipped when exposed to a write. Scope: 25 validated fact relations (capitals and countries, currencies, languages, continents, elements, SI units and prefixes, planets, independence, reign, admission, battle, treaty and space-mission years, US states, US presidents, Olympic hosts, and years of birth, death, events, publication and founding) on that one model; these results apply to the specified three-option factual task. From 0.1.16 the target comes from evidence: your computer embeds the question with a small local embedding model (downloaded once, about 1.2 GB) and sends only that vector; the cloud retrieves an authenticated fact record and binds it to one of your options, or abstains. On 300 fresh questions the evidence binder bound a target 300 times with 0 wrong bindings; a hard gate on the model's own uncertainty decides whether a write is attempted. The route is validated on 25 relations for Qwen2.5-0.5B (three more are bound as coverage only). lens verify "In what year did Isaac Newton die?" --options 1727 1725 1737

Truth check (Deluxe). A local reader model reads factual claims, including claims from Claude or any other assistant, and Proprioceptive AI's internal-state probe returns a fabrication-risk reading for each: low, elevated or high. It catches blatant mismatches in factual relations: who wrote what, capitals, landmarks, currencies, discoveries, chemical symbols. On claims where an unrelated real answer was swapped in, "high" flagged about 57% with about 2.5% false alarms. Its evaluated scope is blatant relational mismatches; plausible errors, numbers, and dates remain outside that scope. A low reading means no red flag was detected, rather than factual confirmation. Your claims are read on your computer. Available in the app API (/api/claims) and to Claude through lens mcp (check_claims).

Deluxe is free, with no card and no time limit. Enter your email in the Steer panel, then paste the activation token you receive. Deluxe also removes the daily Behaviour limit.

Proprioceptive Terminal Mode

lens term                                   # interactive: confidence-coloured output, /why, /memory, /behaviour
lens term -m qwen3:4b "your question"       # one-shot
echo "your question" | lens term --json     # JSON-lines events for scripts and pipelines

Events: memory, token (text, p, alternatives, plus layers in deep mode), behaviour (score per probe), done. Any OpenAI-compatible client pointed at http://127.0.0.1:7777/v1 also gets Lens memory.

Use it from Claude Code, Cursor and other agents

Claude Code plugin (MCP server + a skill that teaches Claude when to ask your local model and how to read its certainty):

/plugin install proprioceptive-lens --marketplace Loganwins/ProprioceptiveAI

(Needs pip install proprioceptive-lens first. On older Claude Code: /plugin marketplace add Loganwins/ProprioceptiveAI then /plugin install proprioceptive-lens@proprioceptive-ai.)

Or add just the MCP server: lens mcp runs Lens as an MCP server.

claude mcp add lens -- lens mcp            # Claude Code

Claude Desktop: add {"mcpServers": {"lens": {"command": "lens", "args": ["mcp"]}}} to claude_desktop_config.json (use the full path from which lens if Desktop can't find it).

For Cursor or another client, add a stdio server with command lens and argument mcp. Tools:

  • ask_local_model: the answer, its overall certainty, and the words the model hesitated on, with what it almost said (plus Behaviour scores in deep mode);
  • list_local_models;
  • search_memory.

Share a prompt

http://127.0.0.1:7777/?ask=Why%20is%20the%20sky%20blue opens Lens with the prompt ready to send.

Privacy

Lens listens only on 127.0.0.1 and rejects requests from other websites. Memories live in ~/.proprioceptive-lens/memory.sqlite3. You can view or forget them in the app, or delete the file. Behaviour is off until you turn it on.

Get involved

If Lens is useful to you, star this repository to help other local-AI builders find it.

  • Try a model: share the model name, Lens version, and a reproducible example in Issues.
  • Build an integration: connect your agent through MCP or your application through the local OpenAI-compatible endpoint.
  • Improve the client: documentation, UI polish, tests, and installation fixes are welcome. See Contributing.
  • Follow development: browse the changelog and releases.

The public repository contains the client. Proprietary backend implementations and probe assets remain outside this repository; see the license boundary below.

License

The client code in this repository is licensed under the Apache License, Version 2.0. Copyright (c) 2026 Proprioceptive AI.

The separately hosted backend, Behaviour probes, scoring service, and private probe assets are not included in this repository and remain proprietary. This boundary does not modify the terms of the Apache License for the included client code.

Metadata

Release files for proprioceptive-lens 0.1.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Loss of provenance

These files do not have provenance metadata, despite files in a prior release including this data.

We recommend further investigation before installing these files. View details.

Source distribution (sdist)

Source distribution for proprioceptive-lens 0.1.20
File Size Uploaded Provenance Actions
proprioceptive_lens-0.1.20.tar.gz 84.1 kB Without provenance Details for proprioceptive_lens-0.1.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for proprioceptive-lens 0.1.20
File Interpreter ABI Platform Actions
proprioceptive_lens-0.1.20-py3-none-any.whl Python 3 none any Details for proprioceptive_lens-0.1.20-py3-none-any.whl

Total release size: 156.5 kB

Release files / proprioceptive_lens-0.1.20.tar.gz

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL proprioceptive_lens-0.1.20.tar.gz
Size 84.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ecccc4e86ee7552063acd408f542afff175a669ae6d641d7edbbbd3ef86a5479
BLAKE2b-256 checksum
How to use checksums
a0a5738b0658091fcd8d2064d9ac5746717455d4a702990092d82f0cf8ed9df3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Release files / proprioceptive_lens-0.1.20-py3-none-any.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL proprioceptive_lens-0.1.20-py3-none-any.whl
Size 72.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8146ec3543d76bf8b485ae7818f4e626216e804d55d9d949b0007e0b98fe6eb5
BLAKE2b-256 checksum
How to use checksums
d536af5032743c90b0a0574a86a8740217f66b1d0a9d91a82054f2f090cff852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.9

Security for proprioceptive-lens 0.1.20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Loss of provenance

A previous release of these files had provenance metadata, but this release does not.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Release comparison

  • Removed 0.1.17 2 files With provenance
  • Added 0.1.20 2 files Without provenance

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page