Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.17 instead.

Proprioceptive Lens

See inside your local model. A free app for anyone running local AI with Ollama or Hugging Face models.

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

qwen3:4b says the 17th US president was Garfield, with 100% certainty. (It was Andrew Johnson.) Token confidence shows the surface; Lens also lets you look underneath.

  • Confidence you can see. Every word is tinted by how sure the model was. Hover any word to see what it almost said.
  • Where it hesitated. A live certainty trace, plus the exact words where the model weighed alternatives.
  • It remembers you. Private memory of your conversations, on your computer, for any model.
  • Inside the model (deep mode). A live layer-by-layer activity map of the network while it writes.
  • Behaviour (optional). Internal-state probes score what the model is doing: writing code or prose, formal or casual register, following your instructions, creative or literal, assertive or hedged, repeating itself, asking or stating. These probes were validated on the original model, then transferred to each supported model. There they were re-tested against length and random-direction controls, and with a live test on the model's own answers.
  • Terminal mode and an API for wiring Lens into your own stack.
  • Private. Everything runs locally. Behaviour is opt-in and sends only 16 scrambled numbers per word, never your text.

Deep mode: layer activity map and live Behaviour scores

Install and run

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

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

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.
  • Nothing steers automatically. You choose, and you can always compare against the unsteered answer.
  • Same privacy as Behaviour: your text never leaves your computer.

Start the 7-day free trial from the Steer panel; no card is needed. Enter your email, 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 coding agents (MCP)

lens mcp runs Lens as an MCP server, so Claude Code, Cursor and other agents can ask your local models and see how sure they were:

claude mcp add lens -- lens mcp            # Claude Code

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.

License

MIT for this client. The Behaviour probes and the scoring service are proprietary to Proprioceptive AI, are not part of this package, and no licence to them (or to any Proprioceptive AI patent) is granted by this licence.

Metadata

Release files for proprioceptive-lens 0.1.1

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

Source distribution (sdist)

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

Built distribution (wheel)

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

Total release size: 89.9 kB

Release files / proprioceptive_lens-0.1.1.tar.gz

Download URL proprioceptive_lens-0.1.1.tar.gz
Size 45.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5ed0e5d27aac0a238755449571b36f9a6b02a44911d97d86171539ea9d68dfc0
BLAKE2b-256 checksum
How to use checksums
bcfdcff7bfbb6eb247213826d13be163a47558f0934915e1e615e5794c5ffed4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

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

Download URL proprioceptive_lens-0.1.1-py3-none-any.whl
Size 44.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd8552b9d80f37bdf1ea740e727e255c5e59ca61dab8cdf92238c6a4f782b347
BLAKE2b-256 checksum
How to use checksums
6335675a99000e123ab55d6b65840c0a98bd5baced74ab3c806c087b94ac1876
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Security for proprioceptive-lens 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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