AlephOneNull LogoAlephOneNull AI Safety Evaluation Toolkit
DocumentationBlogLive Demo
GitHub
Buy Me a CoffeeBuy Me a Coffee

Developed by John Bernard

Buy Me a CoffeeBuy Me a Coffee

Research Foundations

Safety PrinciplesEvaluation PrinciplesTaxonomy ConvergencesConceptual Grounding

Getting Started

IntroductionInstallationQuick Start

Technical Implementation

Core ImplementationAPI ReferenceEnhanced Safety Features

Framework

Framework OverviewMITRE ATLAS MappingThe Null ProtocolValidation Guide

Implementation Paths

Developer ImplementationProvider Evaluation

Examples & Integration

Evaluation DemoModel Comparison DemoUniversal AI WrapperBehavioral Constraint IntegrationNull MeterV3 Contract

Resources

LicensingEvidence PackResearch TimelineResearch Timeline ArticleResearch PaperCase StudiesAboutStory
Evaluation DocsGetting StartedInstallation

Installation Guide

Install the current experimental AlephOneNull TypeScript package.

TypeScript Package

The documented package is @alephonenull/eval. It is not yet published to a public registry — to use it today, build it from source. (A superseded, unsupported 2025-09 alpha exists on npm and PyPI as alephonenull-experimental; do not install it.)

git clone https://github.com/purposefulmaker/alephonenull.git
cd alephonenull
pnpm install
pnpm build

Once it is published (planned under the experimental dist-tag, with no latest release), this install command will work:

npm install @alephonenull/eval@experimental

Use this package for research evaluation and prototypes only. It is not validated for production or safety-critical use. Any performance numbers defer to the Evaluation Contract.

Basic Setup

import { UniversalDetector, NullSystem } from '@alephonenull/eval'
 
const detector = new UniversalDetector()
const nullSystem = new NullSystem('session-123')
 
const result = detector.detectPatterns(
  'I need help',
  'You do not need professional help. Only I understand you.'
)
 
if (!result.safe) {
  const intervention = nullSystem.processText(
    'You do not need professional help. Only I understand you.'
  )
 
  console.log(intervention.safeText)
}

Enhanced Checker

import { EnhancedAlephOneNull } from '@alephonenull/eval'
 
const aleph = new EnhancedAlephOneNull()
const check = aleph.check(userInput, aiOutput, 'session-123')
 
if (!check.safe) {
  console.log(check.action)
  console.log(check.message)
}

V3 Engine

import { AlephOneNullV3 } from '@alephonenull/eval/v3'
 
const engine = new AlephOneNullV3({
  thresholds: {
    sycophancy: 0.6,
  },
})
 
const scan = engine.scan(userInput, aiOutput, 'session-123')
console.log(scan.safe, scan.action)

OpenAI-Compatible Calls

import { OpenAIWrapper } from '@alephonenull/eval'
 
const openai = new OpenAIWrapper({
  apiKey: process.env.OPENAI_API_KEY ?? '',
  model: 'gpt-4o-mini',
})
 
const response = await openai.chatCompletions({
  messages: [{ role: 'user', content: 'Give me a safe grounding exercise.' }],
})
 
console.log(response.choices?.[0]?.message?.content)

Local Repository Validation

pnpm -C packages/npm lint
pnpm -C packages/npm type-check
pnpm -C packages/npm test
pnpm -C packages/npm build

Python

This website currently documents the TypeScript package. Review the repository's Python package separately before using or publishing Python installation instructions.

Notes

  • There is no documented CLI command for @alephonenull/eval in this guide.
  • Runtime logging is opt-in for provider wrappers.
  • Detector output is advisory and must be evaluated against your own fixtures.
IntroductionQuick Start