AI Worker worker.md

bernstein

Deterministic orchestrator for 40+ CLI AI agents. Git worktree isolation, HMAC audit trail, MCP server mode. https://bernstein.run

Tool registry 306 stars Python Apache-2.0 Worker-compatible

Source#

Tags#

agent-frameworkagent-orchestratorai-agentsai-codingaiderclaude-code

Integration notes#

Repository is focused on tool/server interoperability; wrap in bounded worker contracts for production use.

worker.md example#

Starter worker.md contract mapped from this registry entry. Copy this file and adapt schemas, constraints, and statuses for your task.

---
id: bernstein-repo-derived-worker
name: bernstein Repo-Derived Worker
version: 1.0.0
source_registry_url: https://worker.md/registry/bernstein/
source_repository: https://github.com/sipyourdrink-ltd/bernstein
repository_default_branch: main
repository_language: Python
repository_license: Apache-2.0
repository_updated_at: 2026-05-10
worker_mode: tool-gateway-worker
derivation_method: github_repository_metadata_plus_raw_readme
derivation_confidence: 0.95
derived_on: 2026-05-10
tags:
  - agent-framework
  - agent-orchestrator
  - ai-agents
  - ai-coding
  - aider
  - claude-code
---

# bernstein Repo-Derived Worker

## Repo-derived summary
- Registry summary: Deterministic orchestrator for 40+ CLI AI agents. Git worktree isolation, HMAC audit trail, MCP server mode. https://bernstein.run
- Repository description: Deterministic orchestrator for 40+ CLI AI agents. Git worktree isolation, HMAC audit trail, MCP server mode. https://bernstein.run
- Stars (snapshot): 306
- Primary language: Python
- Worker mode classification: tool-gateway-worker

## Extracted from
- https://github.com/sipyourdrink-ltd/bernstein
- https://github.com/sipyourdrink-ltd/bernstein/blob/main/README.md
- https://github.com/sipyourdrink-ltd/bernstein/actions/workflows/ci.yml/badge.svg
- https://img.shields.io/pypi/v/bernstein
- https://img.shields.io/badge/ghcr.io-bernstein-2496ed?logo=docker&logoColor=white

## Evidence notes (from repository text)
- README summary paragraph: > *"To achieve great things, two things are needed: a plan and not quite enough time."* — Leonard Bernstein
- ### orchestrate any AI coding agent. any model. one command.
- https://github.com/sipyourdrink-ltd/bernstein/actions/workflows/ci.yml/badge.svg](https://github.com/sipyourdrink-ltd/bernstein/actions/workflows/ci.yml)
- - **43 CLI agent adapters** ship in v1.10.1 — 40 third-party wrappers, 2 leaf-node delegators, plus a generic `--prompt` wrapper. Source of truth: the [supported agents](#supported-agents) table below.
- i wrote bernstein because i was paying $400/month in claude bills running three coding agents in parallel and getting nondeterministic merges.
- - engineering teams running ≥3 cli coding agents in parallel — each agent gets its own git worktree, the merge queue serialises landings, no race conditions

## Installation hints found in README
- `pip install bernstein # pip`
- `pip install 'bernstein[openai]'` |`
- `pip install aider-chat` |`
- `pip install aider-chat`, then set `CLM_ENDPOINT` / `CLM_TOKEN` |`

## worker.md contract (derived starter)
Purpose: Expose repository-supported tool/server capabilities behind a bounded worker interface.

### Input schema
```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "request_id",
    "operation",
    "payload"
  ],
  "properties": {
    "request_id": {
      "type": "string"
    },
    "operation": {
      "type": "string"
    },
    "payload": {
      "type": "object"
    }
  }
}
```

### Output schema
```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "request_id",
    "status",
    "result"
  ],
  "properties": {
    "request_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "retryable_error",
        "invalid_request",
        "invalid_output"
      ]
    },
    "result": {
      "type": "object"
    }
  }
}
```

### Constraints
- timeout_seconds: 30
- max_attempts: 2
- idempotency_key: request_id
- status_enum: [ok, retryable_error, invalid_request, invalid_output]
- notes: adapt to concrete APIs/classes documented in this repository before production use

## How this should be used
1. Treat this file as a repo-derived starter profile, not a claim of an official repository API contract.
2. Replace schemas with exact interfaces from code/docs you adopt.
3. Keep execution bounded and auditable using worker protocol constraints.

How to use#

  • Save this as a worker spec file (for example: bernstein-my-task.worker.md).
  • Replace the input/output schemas and purpose with your real bounded task.
  • Enforce schema validation + timeout + retry policy in your runtime before production use.

Citation#

Reference URL: https://worker.md/registry/bernstein/

Source URL: https://github.com/sipyourdrink-ltd/bernstein