Meta SARA and Lenz: facebookresearch Open Code for Agentic Bayesian Optimization Meta's Facebook Research organization open-sourced facebookresearch/sara, a release candidate pairing the Lenz Bayesian optimization backend with the SARA surrogate-augmented autoresearch agent described in the paper "Agentic Bayesian Optimization through Surrogate-Augmented Autoresearch." Lenz proposes next configurations via BoTorch but never runs experiments itself, while SARA drives Lenz through Pi, and the README points to docs/reproduction.md for validated experiments and states the code is not a final PyPI release, with botorch-lenz named as a future distribution name. Meta positions the drop as agent-facing research code for expensive evaluations with a trusted scalar metric, warning that Bayesian surrogates amplify noisy or gameable signals and that the release candidate lacks enterprise support. Meta research open-sourced facebookresearch/sara https://github.com/facebookresearch/sara?ref=explainx , pairing the Lenz Bayesian optimization backend with the SARA surrogate-augmented autoresearch agent described in the paper Agentic Bayesian Optimization through Surrogate-Augmented Autoresearch https://arxiv.org/abs/2608.00316?ref=explainx . The README positions the drop as a release candidate with explicit reproduction limits in docs/reproduction.md . TL;DR | Piece | Role | |---|---| | Lenz | Proposes next configs via BoTorch; never runs your experiment | | SARA | Agent harness driving Lenz through Pi | | experiments/ | Versioned paper recipes | | Install | uv tool install git+https://github.com/facebookresearch/sara.git | | Status | RC for internal review — not final PyPI | Architecture in one loop 1. Agent or script asks Lenz for candidate hyperparameters or discrete choices. 2. Your evaluator trains a model, runs a sim, or scores a pipeline. 3. Metrics return to Lenz state; acquisition function picks the next point. 4. SARA autoresearch layer automates parts of that dialogue for paper experiments. That split matters for coding agents: you can give an LLM tool access to Lenz JSON CLI while sandboxing training in your cluster. Bayesian optimization loop concept for Meta Lenz agent proposals Install commands from the README Development checkout: uv sync --extra dev uv run lenz --version uv run pytest Isolated tool install from GitHub: uv tool install git+https://github.com/facebookresearch/sara.git lenz --help The README notes a future distribution name botorch-lenz if Meta publishes to PyPI. Until then, treat Git SHA as your version pin. How this fits Meta open research in December explainx.ai covered Meta Fuxi https://explainx.ai/blog/meta-fuxi-unified-multimodal-github-facebookresearch-december-2026 days earlier in the same org. SARA targets experiment design , not multimodal inference. Together they show Meta pushing agent-facing research code where external labs can replicate workflows. Compare to agent benchmarks like Microsoft ThinkingBox https://explainx.ai/blog/microsoft-thinkingbox-agent-benchmark-stateful-2026 : benchmarks measure outcomes; SARA ships a search backend you can embed. When to use SARA vs classical sweeps Use Lenz when: - Each evaluation is expensive GPU hours, wet lab, long sim . - You have a scalar metric you trust. - You want BoTorch acquisition without writing it yourself. Skip or defer when: - Evaluations are cheap and parallel — random or grid search may win on wall clock. - Metrics are noisy or gameable — Bayesian surrogates amplify false signals. - You need production SLA — RC research code lacks enterprise support. Reproduction and honesty The README warns nothing is a published release yet and points to docs/reproduction.md for validated experiments. For a blog-style replication, run their pytest suite first, then one small experiment from experiments/ before you trust claims in the paper abstract. Paper and experiments folder The repository title references Agentic Bayesian Optimization through Surrogate-Augmented Autoresearch . The experiments/ directory holds versioned recipes; docs/reproduction.md states what Meta validated internally. For citations, use the Git commit SHA you run, not only the headline paper name. Pi integration and agent harness design SARA drives Lenz through Pi per README structure. Teams already running Pi for other Meta agent demos can slot optimization as another tool. If you use Claude Code or Cursor agents instead, you can still call Lenz JSON CLI from a subprocess without adopting Pi wholesale. BoTorch and acquisition choices Lenz leans on BoTorch for surrogate models and acquisition functions. That means Gaussian-process style thinking by default — strong for low-dimensional expensive evals, weaker when your eval space is high-dimensional neural architecture search without careful parameterization. Testing before you trust README lists uv run pytest . Run it on your hardware before citing benchmark numbers from the paper in your own decks. RC status explicitly warns internal review may change APIs. Comparison table for practitioners | Approach | Best when | Weak when | |---|---|---| | Grid search | Cheap evals | GPU-heavy training | | Random search | Wide bounds, baseline | Tight budget, need sample efficiency | | Optuna/TPE | General black-box | You want BoTorch acquisition research | | Lenz | Agent proposes trials, BoTorch core | Noisy or gamed metrics | | SARA autoresearch | Replicating paper agent loop | Production tuning without review | Security note for agent loops If an LLM controls Lenz, prompt injection that changes metric reports can poison the surrogate. Sandboxing training jobs and cross-checking metrics with independent scripts mirrors lessons from agentic property tests https://explainx.ai/blog/datadog-ephyra-agentic-property-based-testing-december-2026 . Docker and CI hooks Teams can wrap uv tool install in a reproducible CI image for nightly hyperparameter search on nightly model regressions. Pin git+https://github.com/facebookresearch/sara.git@