Skip to main content

prabodha — प्रबोध

Recognition-gated workspace steering for language models.

Prabodha ("awakening") implements the missing control theory for the Jacobian-lens actuator: steer a frozen LLM through its global workspace using a small recognition-driven world model. Writes are timed by sphurattā events (uncommitted moments), verified by āgama re-cognition, bounded by svātantrya (autonomy), and diagnosed by the three malas.

Built as a bridge between PWM (Pratyabhijñā World Model, Sharath S), the J-space (Anthropic's verbalizable global workspace), and GNW (Global Neuronal Workspace), read as engineering.

What it does

Claim Evidence Strength
Workspace band + verbalizable content replicate across 3 model families, 2 sizes gates L1, L1b, L2 screen, multi-model
Event-gated writes steer within entropy budget (core claim) gates L9, L11 confirm, 6 seeds
Alignment beats rate-matched control gates L11 p≈0.016, 6/6 sign-consistent
Transfers to a 2nd model via calibration gates L13, L14-ms confirm, 4 seeds
Amplitude ∝ 1/lens-strength; monotone dose in active range gates L14-amp, L15-amp, L16 confirm (Qwen3) / screen (Nemotron)

The readback verdict is weak (BA ≈ 0.59 at n=120 — honest negative, gates L14–L16); corpus-amplitude coupling is confirmed directionally but fails the strict margin criterion (gate L19 fail-on-margin). No new claims are made; all numbers are committed to gates.

60-second quickstart

pip install prabodha

Fit a lens and steer on a public model (Qwen3-4B, ~6 GB):

from prabodha.lens import fit, vis
from prabodha.steer import write

# 1. Fit a band-targeted lens (one-time; resumable)
fit(
    model_config_path="configs/models/qwen3.yaml",
    lens_config_path="configs/lens_mid.yaml",
    out_path="outputs/lens_qwen3_mid30.pt"
)

# 2. Steer with recognition-gated writes
write(
    model_config_path="configs/models/qwen3.yaml",
    lens_file_path="outputs/lens_qwen3_mid30.pt",
    exp_config_path="configs/experiments/e13full.yaml",
    out_path="gates/my_run.json",
    alpha=0.3,
    seed=42,
    emit_trace="outputs/traces/my_trace.json"  # optional: emit per-token trace
)

# 3. Visualize lens readout (interactive HTML)
vis(
    model_config_path="configs/models/qwen3.yaml",
    lens_file_path="outputs/lens_qwen3_mid30.pt",
    prompt="the fire remembers rivers",
    out_path="outputs/fire_vis.html"
)

See examples/quickstart_qwen3.md and examples/quickstart_nemotron.md for full command-line workflows with expected numbers (gate-cited).

Install & use

Library

pip install prabodha            # core library + CLI
pip install prabodha[hybrid]    # + flash-linear-attention support

Public API

# Lens operations
from prabodha.lens import fit, eval, vis

# Steering operations
from prabodha.steer import write, gate, verify

CLI

prabodha --help                           # all subcommands
prabodha lens-fit --model M.yaml --lens L.yaml --out lens.pt
prabodha lens-eval --model M.yaml --lens-file lens.pt --exp E.yaml --out gate.json
prabodha lens-vis --model M.yaml --lens-file lens.pt --prompt "..." --out page.html
prabodha steer --model M.yaml --mid-lens lens.pt --exp E.yaml --out gate.json [--emit-trace trace.json]
prabodha figures                          # regenerate paper figures from gates/

Plugin & MCP integration

Claude Code users: the plugin at integrations/claude-code-plugin/ ships skills (lens-map, steer-verify) with defaults from the measured findings.

MCP server at integrations/mcp-server/ exposes lens_map, steer_generate, readback_verify, list_gates for any MCP client.

Provenance & license

Vendored: anthropics/jacobian-lens (Apache-2.0) — companion code for Verbalizable Representations Form a Global Workspace (Anthropic, 2026).

Prabodha: Sharath S, Pratyabhijñā World Model (arXiv, 2026).

License: Apache-2.0.


Author: Sharath S qbz506@york.ac.uk · GitHub: SharathSPhD · Release: v1.0.0

Docs: jspace_pratyabhijna_scoping.md · Paper: docs/paper/paper.pdf · Live app: prabodha.vercel.app · Pages: sharathsphd.github.io/prabodha · HuggingFace: qbz506/prabodha-lenses

Metadata

Release files for prabodha 1.0.0

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

Source distribution (sdist)

Source distribution for prabodha 1.0.0
File Size Uploaded Provenance Actions
prabodha-1.0.0.tar.gz 74.3 kB Without provenance Details for prabodha-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prabodha 1.0.0
File Interpreter ABI Platform Actions
prabodha-1.0.0-py3-none-any.whl Python 3 none any Details for prabodha-1.0.0-py3-none-any.whl

Total release size: 141.2 kB

Release files / prabodha-1.0.0.tar.gz

Download URL prabodha-1.0.0.tar.gz
Size 74.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8000021fa65c0f37036216ac3e5aed582eb1a759dae232fef21d2bb96baace33
BLAKE2b-256 checksum
How to use checksums
5a404bc1f30efbaae2e7fbcca72ecd08423a50a6a149b7da4bd804d1a6047f11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / prabodha-1.0.0-py3-none-any.whl

Download URL prabodha-1.0.0-py3-none-any.whl
Size 66.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd72e71a6418805747911c1e9a68c216c620adaf5bb7e41318aa0e44f4688c0f
BLAKE2b-256 checksum
How to use checksums
9e5174acd3457d6da5a6685d914d0cd826b230099048b7fe9d9513abf011bc27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for prabodha 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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