Registry / devops / bernstein

bernstein

JSON →
library2.7.0pypypi✓ verified 80d ago

Bernstein is an audit-grade multi-agent orchestration library for CLI coding agents (Claude Code, Codex, Gemini CLI, and 40+ more). It provides HMAC-chained audit logs, signed agent cards, per-artefact lineage, and supports air-gap deployments. Current version 2.7.0 requires Python >=3.12.

pip install bernstein
INSTALL
IMPORT
SIG · BERNSTEIN
B
bernstein
devopspythonv2.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Path
from bernstein import Path
from bernstein import Orchestrator
annotations
from bernstein import annotations
get_templates_dir
from bernstein import get_templates_dir

Initialize the orchestrator with an API key and execute an agent.

from bernstein import Orchestrator import os orc = Orchestrator( api_key=os.environ.get('BERNSTEIN_API_KEY', ''), audit_log='./audit.chain' ) result = orc.execute( agent='claude-code', prompt='Refactor the database module', context={'repo': './app'} ) print(result.artefact_id) print(result.audit_hash)
Debug
Known issues
breakingIn version 2.0.0, the 'agent' parameter changed from string to enum-like Agent enum. Using raw strings may break or be deprecated.
fix
Use Agent.CLAUDE_CODE instead of 'claude-code'.
affects: >=2.0.0
gotchaThe audit log is HMAC-chained by default; attempting to modify the log file will break the chain. Do not edit the file manually.
fix
Use the provided API (AuditLog.verify()) to validate integrity.
affects: all
deprecatedThe 'verbose' parameter in Orchestrator is deprecated since 2.5.0 and will be removed in 3.0.0.
fix
Use logging configuration with standard Python logging.
affects: >=2.5.0
Upgrade
Version history
2.7.0latest on PyPI · released May 24, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
OpenAI (training)
1
Resources
bernstein — pip install bernstein · libregistry