|
| 1 | +# Integrations index |
| 2 | + |
| 3 | +Bernstein ships ready-made adapters for the CLI coding agents under |
| 4 | +`src/bernstein/adapters/`. This page lists every wired-in integration |
| 5 | +with a one-line use case so you do not have to grep the source tree. |
| 6 | + |
| 7 | +The same data is available from the CLI: |
| 8 | + |
| 9 | +```bash |
| 10 | +bernstein integrations list # one line per adapter |
| 11 | +bernstein integrations list --details # per-adapter block with config knob |
| 12 | +bernstein integrations list --installed # only adapters whose binary is on $PATH |
| 13 | +bernstein integrations list --json # stable JSON for CI dashboards |
| 14 | +``` |
| 15 | + |
| 16 | +Per-adapter copy lives in |
| 17 | +[`src/bernstein/adapters/use_cases.py`](../../src/bernstein/adapters/use_cases.py). |
| 18 | +That module is the single source of truth - this page links to it so we |
| 19 | +do not maintain two copies of the same list. |
| 20 | + |
| 21 | +## Selecting an adapter |
| 22 | + |
| 23 | +Set the active adapter through the `cli:` knob in `bernstein.yaml`: |
| 24 | + |
| 25 | +```yaml |
| 26 | +cli: claude # or any other registry key listed below |
| 27 | +``` |
| 28 | +
|
| 29 | +Use `bernstein adapters check <name>` to verify conformance for a |
| 30 | +single adapter, and `bernstein adapters list` for a richer view that |
| 31 | +includes source paths and conformance verdicts. |
| 32 | + |
| 33 | +## Categories |
| 34 | + |
| 35 | +The current registry covers four broad categories. Names below match |
| 36 | +the registry keys you pass via `cli:`. |
| 37 | + |
| 38 | +### Mainstream coding agents |
| 39 | + |
| 40 | +These are the most exercised adapters in the test matrix. |
| 41 | + |
| 42 | +- `claude` - Anthropic Claude Code CLI. |
| 43 | +- `codex` - OpenAI Codex CLI. |
| 44 | +- `cursor` - Cursor Agent CLI. |
| 45 | +- `aider` - Aider pair-programming CLI. |
| 46 | +- `gemini` - Google Gemini CLI. |
| 47 | +- `copilot` - GitHub Copilot CLI. |
| 48 | +- `goose` - Block Goose. |
| 49 | + |
| 50 | +### Local and offline |
| 51 | + |
| 52 | +For air-gap or BYO-model scenarios. |
| 53 | + |
| 54 | +- `ollama` - drives Aider against an Ollama or OpenAI-compatible server. |
| 55 | +- `gptme` - local-first coding agent with shell tools. |
| 56 | +- `mock` - test stub, no API keys or network. |
| 57 | +- `generic` - wrap any coding agent CLI by command string. |
| 58 | + |
| 59 | +### Specialised adapters |
| 60 | + |
| 61 | +- `iac` - infrastructure-as-code (Terraform / Pulumi) with plan-before-apply. |
| 62 | +- `clm` - sovereign LLM gateway over mTLS for regulated deployments. |
| 63 | +- `cloudflare` - Cloudflare Agents SDK via wrangler. |
| 64 | +- `openai_agents` - in-process OpenAI Agents SDK v2 (requires the |
| 65 | + `[openai]` extra). |
| 66 | + |
| 67 | +### Other supported CLIs |
| 68 | + |
| 69 | +See `bernstein integrations list` for the full enumerated set. The |
| 70 | +registry currently surfaces ~40 adapters; this page lists categories |
| 71 | +rather than re-listing each entry so the index does not drift. |
| 72 | + |
| 73 | +## Adding a new adapter |
| 74 | + |
| 75 | +1. Add a `<name>.py` module under `src/bernstein/adapters/` implementing |
| 76 | + `CLIAdapter`. |
| 77 | +2. Register the class in `src/bernstein/adapters/registry.py`. |
| 78 | +3. Add an entry to `src/bernstein/adapters/use_cases.py` so the new |
| 79 | + adapter shows up in `bernstein integrations list` with a meaningful |
| 80 | + headline. |
| 81 | +4. Cover the adapter with a conformance test under `tests/contract/`. |
| 82 | + |
| 83 | +The contract for new adapters lives in |
| 84 | +[ADAPTER_GUIDE.md](./ADAPTER_GUIDE.md). |
0 commit comments