Bernstein
Bernstein is a Python-based orchestrator designed to coordinate multiple AI-powered CLI coding agents for complex software development tasks. It takes a high-level goal or issue description, uses a single LLM call to generate a structured plan breaking the work into discrete tasks, and then deterministically schedules those tasks across a pool of over 40 supported CLI agents (such as Claude Code, Codex, Gemini CLI, Cursor, and Aider). By using deterministic scheduling, Bernstein ensures that the same plan will always produce the same execution order, enabling reproducibility and easier debugging. Each task is executed in an isolated git worktree, which prevents code changes from interfering with one another and allows for easy rollbacks if a task fails. Quality gates can be defined to validate the output of each step, such as linting, testing, or custom checks, ensuring that the overall codebase remains stable. Bernstein can be run as a standalone command-line tool or integrated into CI/CD pipelines via its GitHub Action, making it suitable for both local development and automated workflows. Key features include extensive agent compatibility, plan-first architecture that reduces repetitive LLM calls, worktree isolation for safe parallel execution, and built-in quality assurance. The tool is open source and actively maintained, with a growing community and support for custom agent integrations.
- Category
- AI Agents
- Pricing
- Open Source
Problem solved
Development teams and individual developers often want to leverage multiple AI coding assistants—each with unique strengths—but manually coordinating them leads to chaos, conflicting changes, and quality issues. Bernstein solves this by providing a unified orchestrator that plans tasks upfront, isolates execution in git worktrees, schedules them deterministically, and enforces quality gates, thus enabling safe, parallel, and reproducible multi-agent development.
Use cases
- Automating a multi-step refactoring across a large codebase by distributing different modules to specialized agents.
- Parallelizing feature implementation where each agent works on a separate component in its own isolated environment.
- Integrating into a CI/CD pipeline to automatically plan and execute code changes from a GitHub issue with quality checks.
- Running safe experiments to compare how different AI agents handle the same coding task without affecting the main branch.
- Bootstrapping a new project by generating boilerplate, tests, and documentation concurrently using multiple agents.
Audience
- Developers
- ML Engineers
- Researchers
Pros
- Deterministic scheduling ensures reproducibility and easier debugging.
- Git worktree isolation prevents conflicts and simplifies rollbacks.
- Single LLM plan call reduces cost and complexity compared to per-agent calls.
- Supports 40+ CLI agents out of the box, with extensibility for custom agents.
- Open source with an active community and GitHub Action for easy CI integration.
Cons
- Planning quality depends on a single LLM call, which may produce suboptimal task breakdowns.
- Only supports CLI-based agents; agents requiring GUI or API-only interaction are not compatible.
- Setup and configuration may be required for each agent, adding initial complexity.
Official website: https://github.com/sipyourdrink-ltd/bernstein
Canonical LambdaBase page: https://www.lambdabase.com/tools/bernstein