AI Worker worker.md

bernstein

Audit-grade multi-agent orchestration for CLI coding agents (Claude Code, Codex, Gemini CLI, +40 more). HMAC-chained audit log, signed agent cards, per-artefact lineage, air-gap deploy. The orchest...

Tool registry 578 stars Python Apache-2.0 Worker-compatible

Source#

Tags#

agent-frameworkagent-orchestratoragentic-aiai-agentsai-codingaider

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-06-21
worker_mode: agent-orchestration-worker
derivation_method: github_repository_metadata_plus_raw_readme
derivation_confidence: 0.95
derived_on: 2026-06-21
tags:
  - agent-framework
  - agent-orchestrator
  - agentic-ai
  - ai-agents
  - ai-coding
  - aider
---

# bernstein Repo-Derived Worker

## Repo-derived summary
- Registry summary: Audit-grade multi-agent orchestration for CLI coding agents (Claude Code, Codex, Gemini CLI, +40 more). HMAC-chained audit log, signed agent cards, per-artefact lineage, air-gap deploy. The orchest...
- Repository description: Audit-grade multi-agent orchestration for CLI coding agents (Claude Code, Codex, Gemini CLI, +40 more). HMAC-chained audit log, signed agent cards, per-artefact lineage, air-gap deploy. The orchestrator your compliance team will sign off on. https://bernstein.run
- Stars (snapshot): 578
- Primary language: Python
- Worker mode classification: agent-orchestration-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
- ### deterministic multi-agent CLI orchestration
- https://github.com/sipyourdrink-ltd/bernstein/actions/workflows/ci.yml/badge.svg](https://github.com/sipyourdrink-ltd/bernstein/actions/workflows/ci.yml)
- https://github.com/sipyourdrink-ltd/bernstein/actions/workflows/codeql.yml/badge.svg?branch=main](https://github.com/sipyourdrink-ltd/bernstein/actions/workflows/codeql.yml)
- - **44 CLI agent adapters** in v2.2.x: 41 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.

## 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: Execute one orchestrated agent task as a bounded worker step.

### Input schema
```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "run_id",
    "task",
    "context"
  ],
  "properties": {
    "run_id": {
      "type": "string"
    },
    "task": {
      "type": "string"
    },
    "context": {
      "type": "object"
    }
  }
}
```

### Output schema
```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "run_id",
    "status",
    "result"
  ],
  "properties": {
    "run_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: run_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