hooks — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited hooks (Hook) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A Claude Code plugin that calibrates an AI + developer co-system on common sense, scientific method, and Nash-equilibrium cooperation. Agents, hooks, an invariant-driven self-check, and a held-out evaluation harness.
What it is: an anti-hallucination («anti-neuroslop») harness for Claude Code — runtime invariants with a per-turn self-check, deterministic hooks, five agents (developer · analyzer · critic · epistemic-auditor · translator), a dual approval+verification gate, and a held-out evaluation harness that keep AI-assisted coding anchored to reality. Topics: Claude Code plugin, AI agents, prompt engineering, LLM evaluation, AI code review, hooks, agentic, AI safety.
/plugin marketplace add AlexShchuka/neuro-matrix
/plugin install neuro-matrix@neuro-matrixRequires Claude Code. On install: a risk-weighted invariant self-check each turn, cycle / critic / verification hooks on mutations, five sub-agents for analysis, code, review, epistemic audit, and codebook translation.
The operating protocol lives in CLAUDE.md. This README answers: why, on what concepts, how to work as a team, and what the project is for.
The name is a nod to John Forbes Nash Jr. — payoff matrices in game theory, the mind matrices Nash drew on glass in A Beautiful Mind, and the neurodivergent cognitive style that powers systems thinking under uncertainty.
Defensive: keep AI-scaled development from degrading the codebase and engineering culture.
What the industry shows:
This protocol does not accept that outcome. Neuroslop — code that looks plausible but is architecturally meaningless — accumulates unless the system catches it.
Outputs: (a) codebase health, (b) culture of systems-thinking, (c) currency with AI practice. All three are non-contradictory.
Knowledge transfer goal: tacit «how to work with AI» knowledge from systems-thinkers (including neurodivergent developers) is formalized into the protocol. The cognitive style: hyper-systemizing (Baron-Cohen 2009), monotropism (Murray/Lesser/Lawson 2005), detail-focused processing (Frith & Happé 2006). The connection to architectural defense is the hypothesis this plugin tests; the eval harness probes it.
Calibration of priors, not imperative rules — the protocol shapes how the AI weighs alternatives.
Systems theory — agents, hooks, eval, and developer are connected by feedback loops; drop any layer and equilibrium breaks.
Game theory — anchor-verification dominates hallucination; per-mutation gating dominates unauthorised mutation; mutual doubt dominates unilateral fallibility; own-interest cooperation dominates sycophancy.
Base operational concepts:
associated from X, not verified).Cross-cutting ideas: halt on contradiction; fix the binding constraint (compress, not expand); teaching by demonstration — every refusal carries a one-line «why».
Invariants in invariants.txt — three groups: agent-side, developer-side (mutual doubt), cooperation-strategy. Each carries risk-class [critical|important|style], deontic-class [O|P|F], and a Counter: clause. One invariant is sampled risk-weighted each turn via UserPromptSubmit hook (scripts/random-invariant.sh).
Operational gates:
scripts/random-invariant.sh — samples one invariant per turn.scripts/cycle-detector.sh — blocks Bash/Edit/Write/MultiEdit/NotebookEdit on three identical calls in a row.scripts/auto-critic.sh — approval gate: blocks git push and MR-creation tools until @critic returns approve.scripts/verification-gate.sh — verification gate: on git commit, runs machine-checkable evidence (bash -n for shell, ast.parse for Python, jq empty for JSON) and blocks if any fails. Dual gate per arXiv:2511.05524 — approval-only ≈ 100% false-completion, verification-only ≈ 25%, dual gate → 0%.scripts/self-review-preflight.sh — on critical-review prompts, emits a reading-list reminder to prevent inverted sycophancy.Ten rules. The protocol does the rest.
filename:line, exact strings, ticket IDs) → fewer hallucinations.git push and MR-creation tools.associated from X, not verified requires manual verification.invariants.txt.@critic or apply critic-invariants locally. Otherwise inverted sycophancy fires — plausible critique without reading the artifact.This plugin exists so that AI-assisted development does well and does no harm — scientifically, through systems-thinking and strategic vision. It is not a security gate against the agent itself — it is a co-system calibration tool; the developer remains the decision-maker and responsible party.
It formalizes tacit knowledge of senior systems-thinkers into a protocol, defends the codebase from neuroslop, and develops toward a measurable cumulative effect through two-sided error detection, epistemic discipline, and pre-registered statistical proof that each change improves the whole.
Agents are bound to roles in the co-system. Names are current bindings; the protocol depends on the role, not the name.
| Binding | Role | Responsibility |
|---|---|---|
analyzer | system investigator | RCA, architecture, MR/PR review, dead-end diagnostics |
developer | code mutator | Code, tests, build, git push — the only mutator |
critic | anti-neuroslop reviewer | Reviews proposed output before it lands in shared state |
epistemic-auditor | epistemic auditor | Boundary between confirmed and associative + developer-side mutual-doubt checks |
translator | codebook translator | Codebook A↔D, RU↔EN for AI-facing files, session condensation, abstraction-ladder rewrite |
Stack specifics can be placed in references/per-stack/<stack>.md.
The eval harness — paired Wilcoxon + bootstrap CI on Cohen's d + McNemar one-sided under a pre-registered decision rule — lives in eval/run_suite.py and eval/statistical_test.py. Binary rubric (18 criteria, MET/UNMET) removes central-tendency bias; --k N runs with median aggregation; Krippendorff α on 18 binary criteria raises inter-rater reliability; a canary GUID in every probe + scripts/check-canary-leak.py catch contamination. Methodology: 2026 SOTA for rubric-based LLM evaluation.
© 2026 Aleksandr Shchuka. Licensed under the MIT License — see LICENSE and COPYRIGHT-NOTICE.md.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.