By sharathsphd
Pratyabhijna Creative Engine (PCE) marketplace: a mechanism study of recursive self-reflexivity layers for LLM creative cognition. The plugin ships a five-shakti cascade (cit, ananda, iccha, jnana, kriya) with vimarsa shadow-revision and apohana negative-space refactoring, exposed through MCP tools, skills, agents, slash commands, and lifecycle hooks.
npx claudepluginhub sharathsphd/pratyabhijnaPratyabhijna x Active Inference creative-cognition engine v0.4 (mechanism study). Builds on v0.3's clean Haiku CLI substrate (no API key) and event-gated, always-shadow-revision cascade. v0.4 makes cit_temperature causal via best-of-K candidate width, makes the free-energy budget a hard gate inside run_cascade (HaikuRateLimitError on 429), adds a pluggable commit-policy stack (always_draft / always_revise / event_gated / learned_gate / oracle) so Experiments A/B/C from the v0.3 adversarial review run on a single cascade pass, and re-enables a stratified Sonnet LLM-judge bridge for construct validity (32-item subset, $5 cap, frozen prompt sha). Ships 19 MCP tools (18 v0.3 + judge_pair), 5 skills, 5 agents, 5 slash commands, and 3 lifecycle hooks.
7-day visitors to each marketplace page
A portable plugin (Cursor + Claude Code + standalone CLI) that operationalises Abhinavagupta's Pratyabhijñā five-śakti generative cascade as typed operators over an active-inference / Bayesian Model Reduction substrate, with a recursive vimarśa self-reflexivity layer.
v0.4 — mechanism study of recursive self-reflexivity layers for LLM creative cognition. Cascade-vs-bare null at the pilot's n; recursive revision pass robustly positive on its own (H8a, g = 0.65, p < 1e-4); learned commit gate beats the v0.3 event gate (H8b, F1 0.65 vs 0.52); proxy scorer disagrees with the Sonnet-4.5 LLM-judge at ρ = 0.0 (H9 — flagged as a metric-design problem, not a refutation). Cost ledger split honestly: Haiku cascade
$12.73 / 1,277calls; Sonnet judge$0.48 / 23rows; combined pilot spend$13.21. v0.4 frozen atpaper/v0.4/.Live site: https://sharathsphd.github.io/pratyabhijna/ — Astro Pages site that reads
benchmarks/results_v0.4/stats.jsondirectly and animates all 9 showcase demos with full cascade traces.Companion work. Pratyākṣa (direct perception / context-discipline) at https://zenodo.org/records/19680692 and https://sharathsphd.github.io/context-engineering-harness/. PCE is the recognition + creativity counterpart in the same author program.
This repository holds the engine, the dual plugin manifests (plugin/.claude-plugin/plugin.json, plugin/.cursor-plugin/plugin.json), the standalone pce CLI, the Phase 7 mechanism pilot's results and audit, the v0.4 paper, and the Astro v0.4 site.
docs/SPEC_v0.4.md, docs/PRD_v0.4.md, docs/RELEASE_NOTES_v0.4.md, docs/COMPLETION_PROMISES_v0.4.md.docs/adr/v0.4/ (ADR-001 cit_temperature substrate, ADR-002 learned commit gate, ADR-003 free-energy budget, ADR-004 managed-API fairness lattice, ADR-005 fixed-effects H5, ADR-006 typed Haiku errors, ADR-007 SDK code-path removal).docs/triz/v0.4/.plugin/.claude-plugin/plugin.json and plugin/.cursor-plugin/plugin.json (both at v0.4.0).# 1. Standalone CLI (works in any shell with `claude` on PATH)
git clone https://github.com/SharathSPhD/pratyabhijna.git
cd pratyabhijna
uv pip install -e . # required: registers the `pce` console script
# and pulls numpy / sentence-transformers
pce smoke # verifies the CLI, OAuth substrate, and cascade module
pce cascade --prompt "Write a haiku about rain on a tin roof" \
--constraint "imagism" --k 4 --seed 4242
# 2. Cursor plugin
cursor --install-plugin .
# 3. Claude Code plugin
claude plugin install https://github.com/SharathSPhD/pratyabhijna
# or, for a local clone:
ln -s "$(pwd)" "$HOME/.claude/plugins/pce"
See docs/RUN_LOCAL.md for the full operator guide, including the precedence chain (defaults → repo pce.toml → user ~/.config/pce/config.toml → env vars → CLI overrides) and example configurations.
# Regenerate the figure pack and autoreport against the published stats.json
python -m benchmarks.figures --version v0.4
python -m benchmarks.autoreport --version v0.4 --strict
# Build the paper PDF (tectonic preferred; latexmk also supported)
cd paper && tectonic -X compile main.tex
# Build and serve the Astro site locally
python scripts/prepare_site_data.py
cd docs/site && pnpm install && pnpm build && pnpm preview
The v0.4 pilot ran the same four base arms as v0.3 plus a five-policy commit multiplexer over the cascade arm. The arm matrix is:
| arm | role |
|---|---|
haiku_bare | architecture-vs-nothing primary control |
haiku_cascade | primary treatment (always-shadow revision; commit per policy) |
haiku_bare_2K_scorer | +K-compute control (H6.v4) |
haiku_generic_revise_2pass | revision-protocol control (H7.v4) |
The commit-policy multiplex over haiku_cascade is always_draft / always_revise / event_gated (the v0.3 policy) / learned_gate (ADR-002) / oracle (analysis upper bound).
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.