Bernstein - Multi-agent orchestration
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Bernstein is an open-source governance layer for AI agents, one git worktree per task; a plan replays to the same task graph. Verifying the audit chain offline needs the install audit key. Driving a run:
bernstein_run starts a run and returns immediately with a task_id, which is the run id. It does not wait for the run to finish.
Poll bernstein_run_status with run_id set to that value. The handle is reprojected from the run journal, so it is safe to poll from anywhere.
Runs take minutes to hours. Poll on a slow cadence, tens of seconds apart. A handle still reading working is normal progress, not a stall, so do not start the goal again.
Stop polling once status is terminal: completed, failed or cancelled. input_required means the run is waiting on you. For anything deeper, call load_skill with a name from the skill index and load only the pack the task needs.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tasks | {
"list": {},
"cancel": {},
"requests": {
"tools": {
"call": {}
}
}
} |
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| bernstein_runA | Start an orchestration run. A run does real work and takes minutes to hours; the call returns once the run is queued, not when it finishes. Do not re-issue it while waiting, that starts a second run. Follow the run with bernstein_run_status, passing either the returned task_id or the returned run_id, after waiting the returned poll_after_ms. Pass parent_task_id to create the run as a subtask of an existing task. The queued orchestration writes project state and starts agent work. Host effects: writes files; spawns agent processes; makes network requests. Set template=administrative to create an empty audited manual container without a planner or agent processes; goal may be omitted for this template. |
| bernstein_subscribeB | Wait for one future role task notification over authenticated SSE, then unsubscribe. Host effects: makes network requests. |
| bernstein_statusA | Liveness, task counts, and cost in one read. Pass status to include the matching tasks; pass detail=true for full per-role and per-task rows. Retrieves data from the Bernstein server without changing it. Host effects: makes network requests. |
| bernstein_claimA | Claim the next eligible task for an agent. This changes task assignment state on the Bernstein server. Host effects: makes network requests. |
| bernstein_create_taskA | Create a bare task without triggering orchestration or spawning agents. The task enters the backlog and is immediately claimable via bernstein_claim by any session matching its role. Host effects: writes files; makes network requests. |
| bernstein_post_messageB | Post a progress message to a task mailbox on the Bernstein server. Host effects: makes network requests. |
| bernstein_post_artifactC | Post a versioned artifact to a task on the Bernstein server. Host effects: makes network requests. |
| bernstein_cancelA | Cancel one task and its subtask tree; the orchestrator keeps running. Cancellable statuses: open, claimed, in_progress, blocked, waiting_for_subtasks, planned. An already-terminal task is reported, not treated as an error. This changes task state on the Bernstein server. Host effects: makes network requests. |
| bernstein_shutdown_orchestratorA | Shut down the ENTIRE Bernstein orchestrator for this project, including every run and worker; use bernstein_cancel to stop one task while the orchestrator keeps running. Writes the local SHUTDOWN signal file. Host effects: writes files. |
| bernstein_approveA | Sign off a finished result only when the task is in pending_approval; every other status is refused. This completes the task on the Bernstein server. Host effects: makes network requests. |
| bernstein_completeA | Report a task result only from a worker-held state: open, claimed, or in_progress; every other status is refused. This completes the task on the Bernstein server. Host effects: makes network requests. |
| bernstein_run_statusA | Poll a verifiable handle for a run started with bernstein_run. Accepts either identifier that call returned: the task_id or the run_id. Reads the local run journal and audit evidence without changing them. Host effects: reads files. |
| bernstein_task_capsuleA | Read a task capsule together with its local journal and audit evidence. With verify=true, verification may create the install audit key if it is absent. Host effects: reads files; writes files. |
| load_skillA | List available skills when name is omitted, or load a named skill body, reference, or script file contents. Returns file contents as text; executes nothing. Host effects: reads files. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| orchestrate_goal | Plan a Bernstein orchestration run for a single goal. |
| triage_failed_tasks | Triage the most recent failed tasks and propose next actions. |
| cost_recap | Summarise Bernstein cost by role for a stated window. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| bernstein_capability | Runtime capability card: transports, auth, tiers, meter, spec rev. |
| skill_index | Compact index of loadable Bernstein skills and their content hashes. |
| lineage_stats | Summary counts over the entire lineage log. |
TDQS
Scored across 14 tools
Most tools target a distinct action (create/claim/complete/approve/cancel/post_message/post_artifact) and the state guards in descriptions make boundaries clear. The main overlap is among the read tools — bernstein_status, bernstein_run_status, and bernstein_task_capsule all read journal/task evidence, though scope differences (liveness summary vs. poll handle vs. capsule) are documented. load_skill is unrelated to orchestration but clearly distinct.
Nearly all tools use a consistent bernstein_ snake_case prefix with short, readable suffixes. The lone outlier is load_skill, which drops the server prefix, and a few suffixes (status, task_capsule) are nouns rather than verbs. Minor deviations only; the pattern is predictable overall.
14 tools is squarely in the well-scoped range for a multi-agent orchestration server. Each tool maps to a real lifecycle step (run, poll, claim, complete, approve, cancel, message, artifact, shutdown) with no obvious filler.
The task lifecycle is well covered: create, claim, complete, approve, cancel, shutdown, plus run/poll, messaging, artifacts, and capsule inspection. Gaps are minor — no explicit block/unblock or task-update operation despite 'blocked' being a listed status, and no way to read mailbox history (only subscribe for future notifications).