{"id":51013126,"url":"https://github.com/alex-jb/council-diff-py","last_synced_at":"2026-06-21T06:02:28.469Z","repository":{"id":363630912,"uuid":"1264199040","full_name":"alex-jb/council-diff-py","owner":"alex-jb","description":"Python port of council-diff · 5-voice AI council with Brier audit · pip install council-diff","archived":false,"fork":false,"pushed_at":"2026-06-09T17:22:58.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T19:08:44.102Z","etag":null,"topics":["ai-agents","anthropic","brier-score","claude","decision-support","llm-evaluation","multi-agent","python"],"latest_commit_sha":null,"homepage":"https://github.com/alex-jb/council-diff","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alex-jb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.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-09T16:51:08.000Z","updated_at":"2026-06-09T17:32:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/alex-jb/council-diff-py","commit_stats":null,"previous_names":["alex-jb/council-diff-py"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/alex-jb/council-diff-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-jb%2Fcouncil-diff-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-jb%2Fcouncil-diff-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-jb%2Fcouncil-diff-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-jb%2Fcouncil-diff-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alex-jb","download_url":"https://codeload.github.com/alex-jb/council-diff-py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-jb%2Fcouncil-diff-py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34596047,"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-06-21T02:00:05.568Z","response_time":54,"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-agents","anthropic","brier-score","claude","decision-support","llm-evaluation","multi-agent","python"],"created_at":"2026-06-21T06:02:27.639Z","updated_at":"2026-06-21T06:02:28.464Z","avatar_url":"https://github.com/alex-jb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# council-diff-py\n\n\u003e Python port of [council-diff](https://github.com/alex-jb/council-diff) — 5-voice AI council for any decision.\n\u003e [English](README.md) · [中文](README.zh-CN.md)\n\nThis is the Python port of the TypeScript [`council-diff`](https://github.com/alex-jb/council-diff) library. Same architecture, same 6 built-in domains, same Brier audit math.\n\n## Install\n\n```bash\npip install council-diff\n```\n\n## Quickstart\n\n```python\nfrom council_diff import CouncilDiff\n\ncouncil = CouncilDiff(api_key=None)  # falls back to ANTHROPIC_API_KEY env\n\nresult = council.deliberate(\n    domain=\"founder\",\n    decision=\"Should I raise a $1M seed round or stay bootstrapped?\",\n    context=\"B2B SaaS, $5K MRR, growing 20% MoM, solo founder, 12mo runway\",\n)\n\nprint(result.recommendation)       # \"go\" | \"wait\" | \"kill\" | \"split\"\nprint(result.agreement_score)      # 0-1\nprint(result.consensus)            # 1-paragraph synthesis\n\nfor v in result.voices:\n    print(f\"{v.voice_display} ({v.score}/100): {v.verdict}\")\n    print(f\"  + {v.strength}\")\n    print(f\"  - {v.gap}\")\n```\n\n## Brier audit\n\n```python\nfrom council_diff.brier import add_prediction, resolve_prediction, brier_score, mean_brier\n\npred = add_prediction(\n    decision=result.decision,\n    domain=result.domain,\n    recommendation=result.recommendation,\n    agreement_score=result.agreement_score,\n    voice_scores=[v.score for v in result.voices],\n    resolve_by=\"2027-06-09\",\n)\n\n# 12mo later when outcome is known:\nresolved = resolve_prediction(pred, outcome=\"go-was-right\")\nscore = brier_score(resolved)  # 0 = perfect, 1 = worst, 0.25 = random\n\n# Aggregate over many resolutions:\naudit = mean_brier(all_resolved_preds)\nprint(audit[\"edge_vs_random\"])  # positive = council adds calibration value\n```\n\n## Roadmap\n\n- [x] Scaffold + spec parity with TypeScript version\n- [ ] `pip install council-diff` published\n- [ ] CLI: `council \"should I quit my job\" --domain career`\n- [ ] FastAPI server for hosting\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-jb%2Fcouncil-diff-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-jb%2Fcouncil-diff-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-jb%2Fcouncil-diff-py/lists"}