xbtlin/ai-berkshire

AI 时代的伯克希尔:基于 Claude Code / Codex 的价值投资研究框架。巴菲特·芒格·段永平·李录四大师方法论 + 多Agent并行研究。| AI-era Berkshire: a value investing research framework built for Claude Code...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 9 minutes ago
Added to GitGenius on July 1st, 2026
Created on April 7th, 2026
Open Issues & Pull Requests: 31 (+0)
Number of forks: 2,336
Total Stargazers: 15,680 (+0)
Total Subscribers: 90 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 17.9 hours
Mean response time: 5.0 days
90th percentile: 18.2 days
Tracked items: 37

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 12% of issues opened in the past year have been closed. Three people close 85% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 22
New in 7 days: 2
Closed in 7 days: 0
Avg open age: 9 days
Stale 30+ days: 14
Stale 90+ days: 1

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 2
Events in 7 days: 4

Top labels

  • enhancement (4)
  • bug (3)

Detailed Description

AI Berkshire is a value investing research framework built on Python that integrates Claude Code and Codex to systematize the methodologies of four investment masters: Warren Buffett, Charlie Munger, Duan Yongping, and Li Lu. The repository enables individual investors to conduct professional-grade investment research by leveraging AI agents that operate in parallel, effectively transforming one person plus Claude into a complete investment research team. The framework is designed to address a fundamental problem with direct AI queries: while large language models can provide balanced analysis, they typically avoid definitive conclusions and lack the structured decision-making discipline required for actual investment decisions.

The repository demonstrates real-world performance validation with documented track records showing 69.29 percent returns in 2024 and 66.38 percent returns in 2025, significantly outperforming major global indices including the S&P 500, Hang Seng Index, and Nasdaq.

The framework's core innovation lies in its multi-agent adversarial analysis approach. Rather than applying a single analytical lens, AI Berkshire forces four distinct perspectives to evaluate the same investment opportunity, creating genuine intellectual tension. For example, when analyzing a company, Duan Yongping's business model perspective might rate it 3.7 out of 5, while Buffett's financial valuation approach rates it 4.4 out of 5, and Li Lu's long-term certainty standard rates it 2.0 out of 5. This deliberate conflict prevents the false consensus that emerges from single-perspective analysis and mirrors the reality of actual investment decision-making where reasonable analysts disagree.

The repository implements multiple anti-bias mechanisms embedded throughout its analytical workflow. These include information richness ratings that prevent confusing data abundance with certainty, Munger-style reverse checklists that force consideration of failure scenarios, rapid disqualification lists with eight hard red lines that trigger automatic rejection regardless of valuation, and anti-consensus checks that identify when the framework's conclusions diverge from market consensus. The framework also enforces precision in financial calculations using Python's decimal.Decimal for exact decimal arithmetic rather than floating-point operations, with critical data points cross-verified against at least two independent sources.

The repository organizes its functionality into 19 distinct skills grouped across six categories: deep research skills including investment-research, investment-team, management-deep-dive, private-company-research, and deep-company-series; earnings analysis skills covering earnings-review and earnings-team; industry screening skills including industry-research, industry-funnel, quality-screen, bottleneck-hunter, and investment-checklist; and additional portfolio management capabilities. Each skill enforces consistent output structure and evaluation criteria, enabling horizontal comparison across multiple companies and temporal comparison of the same company across different analysis periods.

The framework's architecture operates across three layers: a Skill layer that abstracts user intent into 19 explicit entry points, an Agent layer where four agents conduct parallel independent research within each skill, and a Tools layer providing precise calculation, real-time retrieval, and report verification. The multi-agent parallel approach effectively multiplies research depth by enabling four independent analysts to simultaneously search information sources, cross-validate data, and reach independent conclusions before a Team Lead synthesizes findings. This design philosophy directly addresses the limitations of single-prompt interactions with language models by creating genuine research parallelism rather than sequential prompt decomposition.