{"id":51502762,"url":"https://github.com/blanzy-labs/ai-consensus","last_synced_at":"2026-07-07T21:01:45.456Z","repository":{"id":363168031,"uuid":"1261919285","full_name":"blanzy-labs/ai-consensus","owner":"blanzy-labs","description":"A local-first multi-model consensus app. Part of the Blanzy Labs AI app family.","archived":false,"fork":false,"pushed_at":"2026-06-30T15:26:39.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-30T17:18:17.982Z","etag":null,"topics":["ai","blanzy-labs","consensus","docker","fastapi","gemini","llm","local-first","openai","react","vite"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blanzy-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/security-and-privacy.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-07T10:32:45.000Z","updated_at":"2026-06-30T15:27:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/blanzy-labs/ai-consensus","commit_stats":null,"previous_names":["blanzy-labs/mythadis","blanzy-labs/ai-consensus"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/blanzy-labs/ai-consensus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blanzy-labs%2Fai-consensus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blanzy-labs%2Fai-consensus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blanzy-labs%2Fai-consensus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blanzy-labs%2Fai-consensus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blanzy-labs","download_url":"https://codeload.github.com/blanzy-labs/ai-consensus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blanzy-labs%2Fai-consensus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35242497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","blanzy-labs","consensus","docker","fastapi","gemini","llm","local-first","openai","react","vite"],"created_at":"2026-07-07T21:01:44.399Z","updated_at":"2026-07-07T21:01:45.450Z","avatar_url":"https://github.com/blanzy-labs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Consensus Engine\n\nAI Consensus Engine is a local-first Blanzy Labs AI app for comparing multiple LLM responses and producing a synthesized consensus.\n\nCurrent release: `v0.1.1 - Blanzy Labs Standardization Patch`\n\nOriginal MVP release: `v0.1.0 - Local Consensus MVP`\n\nAI Consensus Engine is part of the Blanzy Labs AI app family.\n\n## What It Does\n\n- Runs a three-stage consensus workflow: primary answer, reviewer critique, and final synthesis.\n- Lets users choose OpenAI or Gemini providers for each stage.\n- Produces structured sections for agreement, disagreement, uncertainty, and follow-up questions.\n- Exports the visible result as a local Markdown report in the browser.\n\n## Current Scope\n\n- Local-first FastAPI backend and React/Vite frontend.\n- Bring-your-own provider API keys.\n- OpenAI and Gemini provider support.\n- Docker Compose support.\n- No prompt history, result history, login, database, telemetry, analytics, or server-side result storage.\n\n## Out Of Scope\n\n- Hosted or production deployment.\n- User accounts, authentication, teams, or share links.\n- Database persistence or report history.\n- Voice features.\n- Hidden web browsing or research mode.\n- Professional legal, financial, medical, security, or compliance advice.\n\n## Roadmap\n\n- v0.1.1: Blanzy Labs naming, docs, metadata, and release-readiness cleanup.\n- v0.2.x: validation polish, docs normalization, and focused app improvements.\n- Future provider or local-model expansion only where explicitly planned.\n\n## Architecture\n\n- Backend: FastAPI\n- Frontend: React, Vite, TypeScript\n- Providers: OpenAI and Gemini\n- Runtime: local development or Docker Compose\n\nSee [docs/architecture.md](docs/architecture.md).\n\n## Local Setup\n\n```bash\ngit clone https://github.com/blanzy-labs/ai-consensus.git\ncd ai-consensus\ncp .env.example .env\n```\n\nBackend:\n\n```bash\ncd backend\npython -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\npytest\nuvicorn app.main:app --reload\n```\n\nFrontend:\n\n```bash\ncd frontend\nnpm install\nnpm run test -- --run\nnpm run build\nnpm run dev\n```\n\nOpen:\n\n- Frontend: `http://localhost:5173`\n- Backend health: `http://localhost:8000/health`\n\nSee [docs/local-install.md](docs/local-install.md).\n\n## Docker Setup\n\n```bash\ncp .env.example .env\n# edit .env with backend provider keys if needed\ndocker compose up --build\ndocker compose down\n```\n\nDocker Compose loads `.env` for the backend service. The frontend receives only non-secret configuration.\n\n## Environment Variables\n\nRoot `.env` values:\n\n```env\nAPP_NAME=\"AI Consensus Engine\"\nAPP_ENV=development\nBACKEND_HOST=0.0.0.0\nBACKEND_PORT=8000\nFRONTEND_ORIGIN=http://localhost:5173\n\nOPENAI_API_KEY=\nOPENAI_MODEL=gpt-4.1-mini\n\nGEMINI_API_KEY=\nGEMINI_MODEL=gemini-2.5-flash\n```\n\nProvider keys go only in the backend/root `.env`. Do not put OpenAI, Gemini, or other provider keys in frontend env files. `.env` is ignored by git; `.env.example` contains placeholders only and is safe to commit.\n\nIf a provider reports a model-not-found or unsupported-model error, update `OPENAI_MODEL` or `GEMINI_MODEL` in `.env`.\n\nThe frontend uses `VITE_API_BASE_URL` for the backend URL:\n\n```env\nVITE_API_BASE_URL=http://localhost:8000\n```\n\n## Testing\n\nBackend:\n\n```bash\ncd backend\npytest\n```\n\nFrontend:\n\n```bash\ncd frontend\nnpm run test -- --run\nnpm run build\n```\n\nDocker:\n\n```bash\ndocker compose build\n```\n\n## Usage Workflow\n\n1. Start the backend and frontend with Docker Compose or local development commands.\n2. Add provider keys to the ignored `.env` file.\n3. Open `http://localhost:5173`.\n4. Enter a question.\n5. Choose providers for the primary answer, reviewer, and synthesizer.\n6. Run the consensus workflow.\n7. Review the final answer, agreement, disagreement, uncertainty, and follow-up sections.\n8. Export Markdown locally if needed.\n\n## API Summary\n\n- `GET /health`: returns backend status.\n- `POST /consensus/run`: runs the consensus workflow.\n\nThe frontend calls only the local backend. Provider API keys remain backend-only.\n\n## Troubleshooting\n\nSee [docs/troubleshooting.md](docs/troubleshooting.md).\n\n## Security And Privacy\n\nSee [docs/security-and-privacy.md](docs/security-and-privacy.md).\n\nShort version:\n\n- API keys are backend-only.\n- User prompts and generated responses are sent to configured providers.\n- No prompt/result storage is implemented in V1.\n- Markdown export is generated locally in the browser.\n- Avoid submitting sensitive or private data unless you are comfortable sending it to the configured providers.\n\n## Documentation\n\n- [Architecture](docs/architecture.md)\n- [Security and privacy](docs/security-and-privacy.md)\n- [Security notes](docs/security.md)\n- [Local install guide](docs/local-install.md)\n- [Troubleshooting](docs/troubleshooting.md)\n- [Prompt design](docs/prompt-design.md)\n- [Demo script](docs/demo-script.md)\n- [Sample report](docs/sample-report.md)\n- [Release checklist](docs/release-checklist.md)\n- [Release notes](docs/release-notes/v0.1.1.md)\n- [Validation notes](docs/validation/v0.1.1-validation.md)\n- [Disclaimer](docs/disclaimer.md)\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## License\n\nSee [LICENSE](LICENSE).\n\n## Disclaimer\n\nSee [docs/disclaimer.md](docs/disclaimer.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblanzy-labs%2Fai-consensus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblanzy-labs%2Fai-consensus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblanzy-labs%2Fai-consensus/lists"}