thesis-drift

thesis-drift is a skill for Claude Code from xbtlin/ai-berkshire. It costs 34 tokens per session (3,007 once invoked), scanned A, original, MIT.

An investment-research workflow that checks whether a company's underlying situation has changed, separating real developments from changes in wording.

In plain words
What is it for?
Use it to compare earlier and newer company information, identify changes in facts, and assess whether the investment case has drifted.
Why use it?
It helps investors avoid treating every new statement as a change in the investment case, or missing important changes hidden behind similar language.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents; mentions Claude Code; mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 tools/financial_rigor.py verify-valuation \.

Good fit Use it to compare earlier and newer company information, identify changes in facts, and assess whether the investment case has drifted.

Compare 6 skills from other repositories ↓
About the project

AI Berkshire is a collection of Claude Code and Codex skills that structures investment research around the methods of four value-investing thinkers and uses multiple agents for adversarial analysis. It is intended for investors who want a disciplined process for researching companies and making valuation-based decisions.

xbtlin/ai-berkshire · 16,273 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/xbtlin/ai-berkshire
agentmods
npx agentmods add skills/xbtlin/ai-berkshire/thesis-drift

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for thesis-drift

README.md
[![agentmods](https://agentmods.dev/badge/skills/xbtlin/ai-berkshire/thesis-drift/github.svg)](https://agentmods.dev/skills/xbtlin/ai-berkshire/thesis-drift)
Your own site
<a href="https://agentmods.dev/skills/xbtlin/ai-berkshire/thesis-drift"><img src="https://agentmods.dev/badge/skills/xbtlin/ai-berkshire/thesis-drift/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for thesis-drift

Your own site · 80×15
<a href="https://agentmods.dev/skills/xbtlin/ai-berkshire/thesis-drift"><img src="https://agentmods.dev/badge/skills/xbtlin/ai-berkshire/thesis-drift.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,007 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.03007
Opus 5 $0.00017 $0.01503
Sonnet 5 $0.00007 $0.00601
Haiku 4.5 $0.00003 $0.00301

Measured 11d ago against content hash 28363374d4b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

thesis-drift scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

codex-skills/thesis-drift/SKILL.md · 226 lines

How it starts

The opening of the file, as written. The whole thing — 226 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex adapter note

This skill is generated from skills/thesis-drift.md so Claude Code and Codex users share one canonical workflow.

  • Treat $ARGUMENTS as the user's request in the current Codex thread.
  • When the source mentions Claude-only surfaces such as Task, Agent, WebSearch, Bash, Read, or Write, use the closest Codex capability available in this session: subagents when available, web search when needed, shell commands for local tools, and normal file edits for workspace files.
  • Use shared project tools from tools/ in this repository. Prefer running commands from the repository root with paths like python3 tools/financial_rigor.py ...; if the current thread starts outside the repo, locate the actual checkout path first instead of assuming a fixed home-directory path.
  • Before starting research, run the date command to confirm today's date; treat it as the baseline for "latest" data and state the data cutoff date in the report header. Never assume the current date from training data.
  • Preserve the research quality rules from AGENTS.md: cross-check financial data, use exact arithmetic tools for valuation/math, and clearly label uncertainty and source gaps.

投资论文漂移检测:分清事实变化与措辞变化

对 $ARGUMENTS 执行投资论文漂移检测。

支持输入格式

  • 公司名 旧报告路径 新报告路径 — 指定两份研究报告或论文快照进行对比
  • 公司名 reports/{公司名}-thesis-旧日期.md reports/{公司名}-thesis-新日期.md — 对比两份带日期的论文快照
  • 公司名 — 自动查找 reports/{公司名}-thesis.md 及同目录历史快照;如果没有基线则转入缺失基线处理

"当事实改变时,我就改变想法。你呢?" —— 凯恩斯

"股价波动不是论文漂移,事实变了才是。" —— AI Berkshire

设计理念

长期持仓最难的不是每天读新闻,而是区分三件事:

  • 事实改变:收入、利润率、竞争格局、管理层行为、资本配置发生可验证变化
  • 价格改变:市场情绪或估值倍数变化,但生意本身未变
  • 措辞改变:两份报告表达不同,但底层证据和判断没有变化

投资论文漂移检测的目标是:只在证据变化时承认论文变化。不能因为报告换了写法就制造漂移,也不能因为股价涨跌就误判基本面。

本 Skill 依赖 /thesis-tracker 输出的结构化维度:核心假设清单、红线清单、估值锚点、追踪记录表。没有这些结构时,先补齐基线,再做漂移检测。

执行流程

第一步:判断操作模式

解析 $ARGUMENTS

  • 如果提供两份报告路径 → 进入指定报告对比模式
  • 如果只提供公司名 → 查找 reports/{公司名}-thesis.md 及历史快照,进入自动快照对比模式
  • 如果只找到一份报告或没有历史基线 → 进入缺失基线处理模式
  • 如果两份报告不是同一家公司 → 停止并要求用户确认,不做跨公司漂移判断

Read the full file on GitHub · 226 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 226 lines · 34 tokens per session scan A 28363374d4b0

Subscribe to this mod's changes

thesis-drift is a skill published in the GitHub repository xbtlin/ai-berkshire (16,273 stars, last pushed 3d ago), licensed MIT. It adds 34 tokens to every session and 3,007 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.