Want the “with vs without hallucination detector” experience? Start here:
docs/workflows/README.md— index of workflow playbooks- Search & Learn
- Generate Boilerplate/Content
- Inline Completions
- Greenfield Prototyping
- RCA Fix Agent
Each playbook includes a maximally contrasting worked example (❌ vibes vs ✅ evidence + verifier).
Berry runs a local MCP server with a safe, repo‑scoped toolpack plus verification tools (detect_hallucination, audit_trace_budget).
Berry ships a single MCP surface: classic.
Classic includes:
- Verification tools (
detect_hallucination,audit_trace_budget) - Run & evidence notebook tools (start/load runs, add/list/search spans)
See docs/MCP.md and docs/workflows/README.md.
Berry integrates with Cursor, Codex, Claude Code, and Gemini CLI via config files committed to your repo.
Berry’s current verification method requires token logprobs (Chat Completions-style logprobs + top_logprobs).
Supported today:
openai(default): OpenAI-compatible Chat Completions endpoints with logprobs (OpenAI, OpenRouter, local vLLM, or any compatiblebase_url)gemini: Gemini Developer APIgenerateContentwith token logprobs vialogprobsResult(when enabled for the model)vertex: Vertex AIgenerateContent(Gemini models) with token logprobs vialogprobsResultdummy: deterministic offline backend for tests/dev
Not supported yet:
- Anthropic (OpenAI-compat layer ignores
logprobs)
- Install (from this repo):
pipx install -e .Fallback:
pip install -e .- In the repo you want to use:
First, set your verifier API key (recommended):
berry setupThen install repo-scoped MCP config files:
berry initOptional: enable strict verification gates for that repo:
berry init --strict- Reload MCP servers in your client.
Optional: register Berry globally (user-level configs) so you don't have to commit repo files:
berry integrate
# macOS .pkg installers may also deploy system-managed configs:
# berry integrate --managed-only- Use a prompt/workflow (Search & Learn (verified), Generate Boilerplate/Content (verified), Inline completion guard, Greenfield prototyping, RCA Fix Agent).
docs/USAGE.md— task‑oriented guidesdocs/CLI.md— command referencedocs/CONFIGURATION.md— config files, defaults, and env varsdocs/MCP.md— tools/prompts and transport detailsdocs/PACKAGING.md— release pipeline (macOS pkg + Homebrew cask)
pytest