About Bernstein
Bernstein is an MCP server published by chernistry in the Agents category: deterministic orchestrator for 30+ CLI AI coding agents. Git worktree isolation, HMAC audit trail, MCP server mode. Conduid read 19 tools from its source: bernstein_approve, bernstein_cancel, bernstein_claim, bernstein_complete, bernstein_cost, bernstein_create_subtask and 13 more. It is published to PyPI as bernstein and runs with uvx.
The repository has 1.2K stars and 185 forks, and its last commit was on 2 Dec 2026. The latest release is v4.0.2 (26 Nov 2026): A patch release on top of v4.0.1 covering server access gates, default loopback Host header checks, adapter and journal fixes, and conformance tests. It follows v4.0.1 (25 Nov 2026), and the 5 most recent releases go back to v3.24.0 (5 Nov 2026). It passes all 1 static checks Conduid ran on the repository. Its topics include a2a, agent-orchestration, agentic-engineering, agentic-workflow, ai-orchestration and ai-orchestrator.
Install
uvx bernsteinpip install bernsteingit clone https://github.com/chernistry/bernsteinTools (19)
bernstein_approveApprove a pending/blocked task| Parameter | Type | Description |
|---|---|---|
| note | string | |
| task_id * | string |
bernstein_cancelCancel one task and its subtask tree; the orchestrator keeps running.| Parameter | Type | Description |
|---|---|---|
| reason | string | Optional reason recorded on the cancellation. |
bernstein_claimClaim the next eligible task and return a verifiable claim receipt.| Parameter | Type | Description |
|---|---|---|
| capability | string | Only claim tasks requiring this capability. |
| claimer_card_fingerprint | string | ``sha256:`` fingerprint of the claimer's agent card key, bound into the receipt. |
| completed_ids | array | Task ids whose dependencies are satisfied; a task is eligible only when all of its ``depends_on`` are listed. |
| max_attempts | integer | Skip tasks at or above this attempt count. |
| project | string | Only claim tasks in this project namespace. |
| role | string | Only claim tasks for this role (e.g. ``backend``). |
bernstein_completeReport the result of work you are executing.| Parameter | Type | Description |
|---|---|---|
| result_summary * | string | What the work produced. The task server rejects an empty summary and fails the task instead. |
bernstein_costReturn cost summarybernstein_create_subtaskCreate a subtask linked to a parent task| Parameter | Type | Description |
|---|---|---|
| complexity | string | |
| estimated_minutes | number | |
| goal * | string | |
| parent_task_id * | string | |
| priority | number | |
| role | string | |
| scope | string |
bernstein_create_taskCreate a bare task without triggering orchestration or spawning agents.| Parameter | Type | Description |
|---|---|---|
| depends_on | array | Task ids that must complete before this task is eligible for claim. |
| description * | string | Full task description / brief. |
| effort | string | Optional effort hint (``max``, ``high``, ``medium``, ``low``). |
| model | string | Optional model hint (``opus``, ``sonnet``, ``haiku``). |
| priority | integer | 1 (critical) to 3 (low). Default 2. |
| role | string | Target role (e.g. ``backend``, ``reviewer``). ``auto`` lets the server classify from the description. |
| run_id | string | Optional open administrative container to hold the task. Members remain manually claimable and are excluded from automatic spawning. |
| scope | string | Task scope: ``small``, ``medium``, ``large``. |
bernstein_healthLiveness checkbernstein_post_artifactAttach a journal-anchored artifact to a task you hold the claim for.| Parameter | Type | Description |
|---|---|---|
| artifact_type * | string | One of ``report`` (markdown ``body``), ``table`` (``columns`` + ``rows``), ``link`` (``url`` + ``link_kind``), or ``finding`` (``sarif_result`` + provenance). |
| body | string | Markdown body, for ``report`` artifacts. |
| columns | array | Column headers, for ``table`` artifacts. |
| invocation_argv_hash | string | Hash of tool invocation arguments, for ``finding`` artifacts. |
| key * | string | The artifact slot; reposting a key appends a new version. |
| link_kind | string | The declared link kind - ``preview`` / ``dashboard`` / ``document`` - for ``link`` artifacts. |
| pinned_ruleset_or_feed_digest | string | Ruleset/feed digest, for ``finding`` artifacts. |
| poster * | string | Your claim identity; posting against a task you do not hold is refused and the refusal is audit-recorded. |
| rows | array | Rows of cells, for ``table`` artifacts. |
| sarif_result | object | Normalized SARIF 2.1.0 result object, for ``finding`` artifacts. |
| target | string | Target path or git ref, for ``finding`` artifacts. |
| tool | string | Scanner/linter name, for ``finding`` artifacts. |
| tool_version | string | Scanner version string, for ``finding`` artifacts. |
| url | string | The URL, for ``link`` artifacts. |
bernstein_post_messagePost a message to a task's mailbox as a signed journal entry.| Parameter | Type | Description |
|---|---|---|
| body * | string | The message body (<= 4096 bytes). |
| kind | string | Typed message kind - one of ``finding`` / ``artefact_ref`` / ``question``. |
| sender * | string | The posting worker's identity. |
| sender_card_fingerprint | string | ``sha256:`` fingerprint of the sender's agent card key. |
bernstein_runStart an orchestration run by posting a task| Parameter | Type | Description |
|---|---|---|
| complexity | string | |
| estimated_minutes | number | |
| goal * | string | |
| priority | number | |
| role | string | |
| scope | string |
bernstein_run_statusReturn a verifiable Tasks-extension handle for a run, by run id.| Parameter | Type | Description |
|---|---|---|
| workdir | string | Project root for orchestration journals. Administrative ids are read from the authenticated task server instead. |
bernstein_scenarioList, run, or poll Bernstein scenarios through one ``action`` selector.| Parameter | Type | Description |
|---|---|---|
| branch | string | Branch override (``run`` only). |
| orchestration_id | string | Value a ``run`` returned (required for ``status``). |
| pr_number | integer | PR number to inject when triggered by GitHub (``run`` only). |
| scenario_id | string | Identifier from the scenario library (required for ``run``), e.g. ``"pr-review-comprehensive"``. |
bernstein_shutdown_orchestratorShut down the ENTIRE Bernstein orchestrator for this project - everybernstein_statusReturn task counts summarybernstein_subscribeWait for the first new task for a role using SSE, then unsubscribe.| Parameter | Type | Description |
|---|---|---|
| timeout_seconds | number |
bernstein_task_capsuleReturn the worker's context capsule, optionally verified offline.| Parameter | Type | Description |
|---|---|---|
| verify | boolean | When true, recompute the capsule offline from the run journal and audit chain and include the verdict. |
| workdir | string | Project root directory (default: current directory). |
bernstein_tasksList tasks with optional status filter| Parameter | Type | Description |
|---|---|---|
| status | string |
load_skillDiscover skills, or load a named skill body, reference, or script.| Parameter | Type | Description |
|---|---|---|
| reference | string | Optional filename under ``references/`` - for example ``"python-conventions.md"``. |
| script | string | Optional filename under ``scripts/`` - for example ``"lint.sh"``. The script content is returned as text; the MCP harness does not execute it. |
Security checks
- ✓README presentThe repository's README runs to about 3.8K words.
5 checks have not been run yet.
Releases
README
The repository's README runs to about 3.8K words. The original in the repository is authoritative.
Read full README