ai-berkshire
AGENTS.md17k starsChanged 5 months agoMITView on GitHub
This repository contains investment research workflows, reports, and shared validation tools. Keep compatibility with both Claude Code and Codex users. - skills/*.md: Claude Code slash-command source files. - codex-skills/*/SKILL.md: Codex skill packages. Most are generated from skills/*.md; Codex-only hand-written packages are allowed when clearly marked and no same-named skills/*.md source exists. - codex-prompts/*.md: generated Codex custom prompts for slash-command style entry points. These are a compatibility layer; skills remain preferred. - tools/*.py: shared financial validation and data tools used by…
Trending
Less talk lately.about the whole repository
Who's talking about xbtlin/ai-berkshire
- @alexiskirke.bsky.social“I discovered this standout GitHub repo about AI-powered value investing using adversarial multi-agent …”Bluesky · Jul 4, 2026 · 3 likes
- A Hacker News story“AI Berkshire”Hacker News · Jun 28, 2026 · 2 points
- @dailygithubtrends.bsky.social“今日のGitHubトレンド xbtlin/ai-berkshire AI Berkshireは、バフェットやマンガーら価値投資の大家の思考法をシステム化した、Claude …”Bluesky · Jun 30, 2026 · 1 likes
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 xbtlin / ai-berkshire ⭐ 1,532 (+201) 🗒 Python AI 时代的伯克希尔:基于 Claude …”Bluesky · Jun 25, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.xbtlin.ai-berkshire: init at 1.0.0”GitHub · Oct 4, 2026
The biggest 5 of 30 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 30
Talked about on GitHub, Bluesky and Hacker News (30 times).
On GitHub · 25
- Oct 4, 2026agent-skills.github.xbtlin.ai-berkshire: init at 1.0.0 — sudosubin/agents.nix0 reactions
- Aug 31, 2026candidate: wechat-article — BigPengSays/awesome-creator-skills0 reactions
- Aug 30, 2026candidate: wechat-article — BigPengSays/awesome-creator-skills0 reactions
- Aug 29, 2026candidate: wechat-article — BigPengSays/awesome-creator-skills0 reactions
- Jul 26, 2026[ai-berkshire study] Add a pre-investment research gate before deep analysis or new exposure — KCNyu/clawock0 reactions
20 more on GitHub
- Jul 26, 2026[ai-berkshire study] Build a durable thesis registry and evidence-only drift engine — KCNyu/clawock0 reactions
- Jul 26, 2026[ai-berkshire study] Add a primary-source earnings and management accountability ledger — KCNyu/clawock0 reactions
- Jul 26, 2026[ai-berkshire study] Tighten repository description and expose the existing research surfaces — KCNyu/clawock0 reactions
- Jul 26, 2026[ai-berkshire study] Add a fail-closed numeric provenance gate for research artifacts — KCNyu/clawock0 reactions
- Jul 8, 2026PRD: 보수적 한국 주식 분석 원격 MCP 서버 전면 재작성 (Python FastMCP + Railway) — Mrbaeksang/korea-stock-analyzer-mcp0 reactions · 1 comment
- Jul 7, 2026新增 Institution Tracker 并吸收 ai-berkshire 的投研流程优点 — racheleleanorzhang-Q/Rachel-Capital0 reactions
- Jul 4, 2026Add AI Berkshire as governed financial research skill and decision-discipline adapter — aa-os/aaos-public0 reactions · 2 comments
- Jul 3, 2026docs: refresh 2026-W26 skills entries — LLMQuant/awesome-trading-agents0 reactions
- Jul 1, 2026GitHub Trending Top 10 - 2026-07-01 — Archerpiggy/trending-top100 reactions
- Jun 30, 2026GitHub Trending Top 10 - 2026-06-30 — Archerpiggy/trending-top100 reactions
- Jun 29, 2026GitHub Trending Top 10 - 2026-06-29 — Archerpiggy/trending-top100 reactions
- Jun 29, 2026🔥 GitHub Trending AI 早报 · 2026-06-29 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jun 28, 2026🔥 GitHub Trending AI 晚报 · 2026-06-28 · Top 5 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jun 28, 2026GitHub Trending Top 10 - 2026-06-28 — Archerpiggy/trending-top100 reactions
- Jun 27, 2026GitHub Trending Top 10 - 2026-06-27 — Archerpiggy/trending-top100 reactions
- Jun 26, 2026ai-berkshire: Claude Code 기반 다중 에이전트 투자 연구 프레임워크 — roomedia/ax-trend0 reactions · 1 comment
- Jun 26, 2026🌐 Global Tech Briefing - 2026-06-26 — AtomChen0425/Global_Trends0 reactions · 1 comment
- Jun 26, 2026GitHub Trending Top 10 - 2026-06-26 — Archerpiggy/trending-top100 reactions
- Jun 24, 2026[2026-06-23] Steam Machine launches today — jiacai2050/mofish0 reactions
- Jun 23, 2026[2026-06-24 01:24:56] - V2EX 共 10 条热门话题 — R2DM/v2ex_mofish0 reactions
On Bluesky · 4
- Jul 4, 2026I discovered this standout GitHub repo about AI-powered value investing using adversarial multi-agent analysis and proven methodologies.… — @alexiskirke.bsky.social3 likes and reposts
- Jun 30, 2026今日のGitHubトレンド xbtlin/ai-berkshire AI Berkshireは、バフェットやマンガーら価値投資の大家の思考法をシステム化した、Claude CodeやCodex向けの投資研究フレームワークです。… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 25, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 xbtlin / ai-berkshire ⭐ 1,532 (+201) 🗒 Python AI 时代的伯克希尔:基于 Claude Code… — @github-trending.bsky.social1 likes and repost · 1 reply
- Jun 29, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 xbtlin / ai-berkshire ⭐ 6,312 (+1,445) 🗒 Python AI 时代的伯克希尔:基于 Claude Code / Codex… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Jun 28, 2026AI Berkshire2 points
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 27
Treat skills/*.md as the canonical workflow source.
- Very specific: line 28
After changing any file in skills/, run: python3 scripts/sync-codex-skills.py
- Very specific: line 30
If slash prompt compatibility is needed, also run: python3 scripts/sync-codex-prompts.py
- Very specific: line 32
Do not manually edit generated codex-skills/*/SKILL.md unless also updating the corresponding source in skills/.
- Very specific: line 37
Keep tool paths compatible with the documented checkout path: ~/ai-berkshire/tools/...
- Distinctive: line 39
Keep CLAUDE.md for Claude Code behavior and this AGENTS.md for Codex behavior.
- Very specific: line 44
Before starting any research, run the date command to confirm today's date.
- Distinctive: line 47
Never assume the current date from training data.
- Very specific: line 50
Use exact arithmetic tools for market cap, valuation, cross-source checks, and scenario analysis: python3 tools/financial_rigor.py ...
- Very specific: line 53
Use report audit tooling before treating generated research as publishable: python3 tools/report_audit.py ...
- Distinctive: line 62
Keep changes scoped to the requested skill, tool, script, or documentation.
- Very specific: line 63
Before finishing a skill/tool change, run the relevant syntax or generation check.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI Berkshire Codex Guide
This repository contains investment research workflows, reports, and shared validation tools. Keep compatibility with both Claude Code and Codex users.
Project Layout
skills/*.md: Claude Code slash-command source files.codex-skills/*/SKILL.md: Codex skill packages. Most are generated fromskills/*.md; Codex-only hand-written packages are allowed when clearly marked and no same-namedskills/*.mdsource exists.codex-prompts/*.md: generated Codex custom prompts for slash-command style entry points. These are a compatibility layer; skills remain preferred.tools/*.py: shared financial validation and data tools used by both systems.reports/: research outputs. Do not rewrite unrelated reports while changing tooling or skills.scripts/sync-codex-skills.py: regenerates Codex skills fromskills/*.md.scripts/install-codex-skills.sh/scripts/install-codex-skills.bat: installs Codex skills locally.scripts/install-codex-prompts.sh/scripts/install-codex-prompts.bat: installs generated Codex slash prompts locally.scripts/install-claude-commands.sh/scripts/install-claude-commands.bat: installs Claude Code commands locally.
Compatibility Rules
- Treat
skills/*.mdas the canonical workflow source. - After changing any file in
skills/, run:python3 scripts/sync-codex-skills.py - If slash prompt compatibility is needed, also run:
python3 scripts/sync-codex-prompts.py - Do not manually edit generated
codex-skills/*/SKILL.mdunless also updating the corresponding source inskills/. - For Codex-only hand-written packages under
codex-skills/, keep them clearly marked as Codex-only and do not create a same-namedskills/*.mdfile unless intentionally adopting the workflow for Claude Code too. - Keep tool paths compatible with the documented checkout path:
~/ai-berkshire/tools/... - Keep
CLAUDE.mdfor Claude Code behavior and thisAGENTS.mdfor Codex behavior.
Research Quality Rules
- Before starting any research, run the
datecommand to confirm today's date. Treat that date as the baseline for "latest" data (prices, market cap, most recent filings), and state the data cutoff date in the report header. Never assume the current date from training data. - Financial data must come from at least two independent sources when the skill requires verification.
- Use exact arithmetic tools for market cap, valuation, cross-source checks, and
scenario analysis:
python3 tools/financial_rigor.py ... - Use report audit tooling before treating generated research as publishable:
python3 tools/report_audit.py ... - Clearly label low-confidence conclusions, incomplete data, and source gaps.
- This project is for learning and research, not investment advice.
Editing Rules
- Preserve existing report files unless the task specifically asks to change them.
- Keep changes scoped to the requested skill, tool, script, or documentation.
- Before finishing a skill/tool change, run the relevant syntax or generation
check. For compatibility changes, run:
python3 scripts/sync-codex-skills.py - To verify generated Codex artifacts are current without rewriting files, run:
python3 scripts/sync-codex-skills.py --checkand, when slash prompts are relevant:python3 scripts/sync-codex-prompts.py --check
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

