A local AI app that uses NotebookLM and Claude Code agents to audit your portfolio against Buffett's moat, management, and price filters.
By Gencay
Published: 2026-05-25
URL: https://www.learnwithmeai.com/p/warren-buffett-tutor-notebooklm-claude
Last week, I was researching stocks when I came across Warren Buffett’s track record.
He ran Berkshire Hathaway for 59 years and turned every $1,000 into $44 million. The S&P 500 turned the same $1,000 into $342,000. That’s 142x ahead of the market.
Average retail trader, same window: $9,000 (Dalbar 2024 report).
If I followed his methodology for the next 50 years, $1,000 becomes $44 million.
No brainer.
But what if I have questions I want to ask him?
How could I do that?
So I decided to build a digital version of him.
A decision system that thinks as he does and answers every question I have.
I did it using Claude Code and NotebookLM.
Let me explain to you how.
The architecture: NotebookLM + Claude Code agents

\NotebookLM and Claude Code Agent architecture to build Buffett Verdict\
The architecture has 3 layers.
- Layer 1 is the brain. NotebookLM was trained on Buffett’s writing. It hallucinates less because it only answers from the sources you give it.
- Layer 2 is the decision team. Two Claude Code sub-agents. Analyst pulls the facts. Judge calls it.
- Layer 3 is the interface. A local Python app on my laptop. Reads my portfolio CSV, triggers the workflow, and renders verdicts in the browser.
Layer 1: Brain

\NotebookLM trained, using Warren Buffett’s data\
NotebookLM gets trained once with one prompt.
The sources are Berkshire shareholder letters from 1977 to 2024, annual meeting transcripts, and Buffett’s own essays.
I picked NotebookLM because it hallucinates less. It only answers from the sources you give it. If the answer isn’t in Buffett’s writing, the notebook says “Not in sources” and stops. No invented quotes.

\No hallucination\
This becomes the single source of truth. Every fact the Claude Code agents pull has to come back to this notebook.
Layer 2: Agents

- Analyst. Queries NotebookLM for the three filters. Moat, management, price. Returns a structured report per stock.
- Judge. Reads the Analyst’s report. Delivers PASS, FAIL, or WATCH. Explains the call in Buffett’s framing.
I picked two agents because one agent agrees with itself. Analyst finds. Judge decides. Separation of duty.
Both agents query NotebookLM directly through the notebooklm-py CLI. No agent uses another’s answer secondhand. Each one goes to the source.
Layer 3: Local App
A local Python app sits on top of NotebookLM and the Claude agents.

\Local Buffett Audit Agent\
We first built it as Streamlit.

\Buffett Audit- Streamlit\
The UI was rough, so we switched to React.(just told Claude to switch to a better version, you’ll see.)

\Buffit Audit- React\
It has two different levels.
- Intent parser. Reads my message, confirms the scope before anything runs. “Audit portfolio.csv against Buffett’s three filters?” If I say yes, it triggers. If I say no, it asks what to change.
- Agent trigger. Spawns the Analyst and Judge sub-agents. They query NotebookLM through the notebooklm-py CLI. Verdicts land in an HTML dashboard. Opens in the browser when done.
Why the assistant in front? Because typing the wrong command into a sub-agent run wastes 20 minutes. The assistant catches it in 5 seconds. Confirm first, run second.
First verdict landed while I was making coffee. NVDA: FAIL. Reason: “Trading at 47x earnings. Mr. Buffett would not own this.”
What will be the result?
Here is what the app looks like on first launch.

\Buffet Audit Local App\
Click “Audit” or “Continue Audit” and the split screen opens. The left panel is the chat where you talk to the Buffett-trained NotebookLM.

\Talk with Buffett Audit Local App\
The right panel fills with verdict cards as each stock finishes.

\Audit with Buffett app\
Once the audit is done, the full report renders inside the dashboard.
The best part?
Due to a customization trick I’m going to show you in a second, if our agents ask a question to the NotebookLM trained on Warren Buffett’s history and there is no answer, NotebookLM responds with: “Not in sources.”

\NotebookLM answers “Not in sources”.\
The best part? If our Claude agents ask NotebookLM something that isn’t in the Buffett sources, NotebookLM answers “Not in sources” and stops.
So no more hallucinations.
We’ll build it in 4 steps. Let’s start with step 1.
Step 1: NotebookLM
I trained a NotebookLM with this prompt.
Research Warren Buffett's investment methodology and decision
framework. Compile sources covering:
1. Berkshire Hathaway annual shareholder letters from 1977 to 2024.
What businesses he bought, what he passed on, and the reasoning
behind each decision.
2. Berkshire Hathaway annual meeting transcripts and Q&A sessions
from 2000 to 2024. How Buffett evaluates moats, management
quality, and intrinsic value.
3. Buffett's published essays, interviews, and speeches. His
definitions of economic moat, circle of competence, margin of
safety, and owner earnings.
4. Case studies of specific Berkshire investments. Coca-Cola,
American Express, Apple, See's Candies, GEICO. Why he bought,
what he paid, what he saw that others missed.
5. Buffett's documented mistakes and post-mortems. Dexter Shoe,
US Airways, IBM. What pattern each failure fits.
6. Charlie Munger's mental models and his influence on Buffett's
framework. Inversion, lollapalooza effects, multidisciplinary
thinking.
Prioritize primary sources, direct quotes with dates, and specific
company examples with dollar amounts. Avoid generic value investing
articles and secondhand summaries.
How? → Visit NotebookLM → Try NotebookLM → Create New NotebookLM → Websites → Paste Link
Select deep search, like this.

After pasting this prompt( 4-5 mins later), you’ll see the sources are waiting for you to import.
So click “Import”.

After importing, the NotebookLM is ready.

You can always audit the sources, drop the ones that look off, and paste any source link into Claude or ChatGPT to check credibility.
We’ll use a customization prompt to lock in what matters and filter out the weak sources, but you get the idea.
Here’s the trained NotebookLM, ready to go.

\Customized NotebookLM\
Next step is customizing it so we can give it a personality and plug it into our Claude agents.
To do that, click “Create Notebook”, like this.

And click “custom” and select response length “shorter.”

And paste this prompt.
You are Warren Buffett's decision framework as a fact engine. Your
only job is to answer questions from two agents (Analyst, Judge)
who are auditing stocks against your documented methodology.
Your knowledge:
You have access to Berkshire shareholder letters 1977-2024, annual
meeting transcripts, Buffett's essays and interviews, Berkshire's
documented investments and mistakes, and Charlie Munger's mental
models.
How to answer:
1. Be specific. Always name the company, the year, the price, the
exact quote, and the source. Never give generic answers like
"Buffett values quality."
2. When asked about moat, return:
- Whether the moat exists (yes/no/unclear)
- The type (brand, switching cost, network effect, cost
advantage, scale)
- A comparable Berkshire holding that has the same moat type
- The exact Buffett quote that defines this moat category
3. When asked about management, return:
- Capital allocation track record (buybacks, dividends,
acquisitions, ROIC)
- Owner mindset signals (insider ownership, letter quality,
compensation structure)
- Red flags from past Berkshire avoidances
- The exact Buffett criteria for "outstanding management"
4. When asked about price, return:
- Current P/E and how it compares to Berkshire's documented
purchase multiples
- Free cash flow yield
- Whether the price implies a margin of safety against
intrinsic value
- The closest historical Berkshire purchase at a similar
multiple and what happened
5. If you do not have data on a question, say "Not in sources"
and stop. Do not speculate. Do not pull from general finance
knowledge.
6. Format every answer with bullet points. No prose paragraphs.
Each bullet must contain a fact, a number, a year, or a direct
Buffett quote.
7. When two sources conflict, use the more recent letter and note
the shift in Buffett's thinking.
You are not here to give investment advice. You are a fact engine
the agents query. Speed, specificity, and citation matter more
than completeness.
Save it. Step 1 is now finished.
Step 2: Building Agent Orchestration
Before building this connect your Claude with NotebookLM
Git repo: https://github.com/teng-lin/notebooklm-py
How? Use this prompt: “Hey Claude, use this Git repo and install it”
Now we’ll build the agent team.
To build them, here is the prompt.
Spawn an agent team with 2 teammates that audit my stock portfolio
against the Warren Buffett NotebookLM. Run immediately after spawn.
NotebookLM URL: [YOUR_NOTEBOOKLM_URL]
Portfolio: ./portfolio.csv (one ticker per row)
Setup verification (run before spawning):
- notebooklm --version
- notebooklm auth check --test
- notebooklm use [NOTEBOOK_ID]
- Abort and report if any fail.
CRITICAL query design rule:
The NotebookLM is a Buffett FRAMEWORK engine. It knows Buffett's
methodology, moat types, management criteria, purchase multiples,
and Berkshire holdings. It does NOT know your individual tickers
(NVDA, AAPL, etc.).
Never put a ticker in a NotebookLM query. The query returns the
framework. The agent applies the framework to the ticker in the
report.
WRONG: notebooklm ask "Does NVDA have a Buffett moat?"
RIGHT: notebooklm ask "What moat types does Buffett's framework
document? Cite the Berkshire holding that exemplifies
each type."
Team configuration:
1. Analyst (Framework Puller + Applier)
- For each ticker in portfolio.csv, run 3 framework queries
ONCE per session (cache the answers, reuse across tickers):
notebooklm ask "What moat types does Buffett's framework
document? Cite the Berkshire holding that exemplifies each
type, with the year and direct quote."
notebooklm ask "What does Buffett require for outstanding
management? Capital allocation criteria, owner mindset
signals, red flags. Include the exact criteria quote."
notebooklm ask "What is Buffett's documented range of
purchase multiples (P/E, P/B)? What is the highest P/E he
has paid for a Berkshire holding, and when does he call a
purchase overpriced?"
- For each ticker, Analyst writes ./reports/[TICKER].md by:
\* Pulling the ticker's current data (P/E, business model,
management) from public sources
\* Mapping it to the framework cached above
\* Citing the matching Berkshire holding and Buffett quote
\* Outputting moat / management / price verdicts per stock
2. Judge (Verdict Maker)
- Runs 3 framework queries ONCE per session, cached:
notebooklm ask "What is the documented bar for a Berkshire
PASS in Buffett's framework? How many of moat, management,
price must be satisfied?"
notebooklm ask "Which Berkshire mistakes happened when
Buffett violated his own filters? Return company, year,
filter violated, and lesson."
notebooklm ask "How does Buffett distinguish a 'wait'
stance from a 'no' stance? When does he flag a great
business at the wrong price vs a bad business?"
- Reads Analyst's ./reports/[TICKER].md.
- Applies the framework to deliver verdict per ticker:
\* Verdict: PASS, FAIL, or WATCH
\* Reasoning paragraph in Buffett's framing
\* Closest Berkshire analog (held or rejected) with year
\* Confidence: high / medium / low
- Appends verdict to ./reports/[TICKER].md.
- Adds one row to ./verdicts.md.
Workflow (executes immediately after spawn):
PHASE 1 — Cache framework (runs once):
Analyst runs 3 framework queries, caches answers in
./cache/analyst-framework.md.
Judge runs 3 framework queries, caches in
./cache/judge-framework.md.
PHASE 2 — Per-ticker audit:
FOR each ticker in portfolio.csv:
1. Analyst pulls ticker's current public data.
2. Analyst maps data to cached framework.
3. Analyst writes ./reports/[TICKER].md.
4. Judge reads the report.
5. Judge applies cached verdict framework.
6. Judge appends verdict to ./reports/[TICKER].md.
7. Judge appends one row to ./verdicts.md.
END FOR
PHASE 3 — Sort ./verdicts.md by verdict: FAIL, WATCH, PASS.
Reframe rules (when NotebookLM returns "Not in sources"):
If a framework query fails, the agent reframes — never gives up
on the first "Not in sources." Up to 3 reframes per query.
1. Specific concept → broader principle.
"What is Buffett's exact P/E ceiling?"
→ "What does Buffett say about overpaying for great
businesses? Cite the letter year."
2. Modern context → historical analog.
"How does Buffett evaluate AI businesses?"
→ "How does Buffett evaluate businesses he calls outside
his circle of competence?"
3. Verdict → underlying criterion.
"When does Buffett issue a WATCH stance?"
→ "What does Buffett say about waiting for the right price
on a great business?"
Log every reframe attempt and response to ./agent-transcript.md.
Coordination rules:
- Cache framework queries. Do not re-query for every ticker.
- Never put a ticker in a NotebookLM query.
- Every verdict cites a Buffett quote, year, or Berkshire holding.
- If 3 reframes all fail, Judge marks the ticker WATCH with
"insufficient framework data" and moves on.
- Log every query, reframe, and response with timestamp.
Final deliverables:
- ./cache/analyst-framework.md
- ./cache/judge-framework.md
- ./reports/[TICKER].md per stock
- ./verdicts.md (sorted summary table)
- ./agent-transcript.md (full query log)
Spawn the team and run all tickers in portfolio.csv. Do not stop
until ./verdicts.md contains one row per ticker.
After pasting this prompt, it will verify the notebook and trigger the agents right after.

And started creating the team.

5 minutes later, the agent team is ready.

But we won’t trigger them yet; let’s build the app to trigger these agents.
Step 3: Turning it to App
The assistant is the front door. You chat with it. It confirms scope. It fires the agents from Step 2. Verdicts land in your browser.
One prompt builds the whole thing.
Build a local Python assistant app that runs on my laptop. The
assistant is the trigger layer for the Buffett agent team I
already spawned in Step 2.
Architecture:
- Streamlit chat UI on localhost.
- Claude API for intent parsing.
- Subprocess call to the Claude Code agent team from Step 2.
- HTML dashboard auto-opens when verdicts.md is ready.
Files to create:
- app.py (Streamlit chat)
- intent_parser.py (Claude API wrapper)
- agent_runner.py (subprocess trigger)
- dashboard.py (HTML generator)
- portfolio.csv (one ticker per row, user-editable)
Behavior:
1. User opens the app: `streamlit run app.py`
2. Chat UI loads with one message:
"I audit your portfolio against Buffett's framework.
What do you want me to check?"
3. User types intent in natural language. Examples:
"Audit my full portfolio"
"Just check NVDA and AAPL"
"Re-run the FAIL stocks from last time"
4. Intent parser converts the message to a structured plan:
{
"action": "audit",
"tickers": ["NVDA", "AAPL"] or "all",
"filters": ["moat", "management", "price"]
}
5. Assistant confirms before running:
"I'll audit NVDA and AAPL against all three Buffett filters.
This takes ~3 minutes per stock. Proceed? (yes/no)"
6. On "yes", the assistant:
- Writes the ticker list to ./portfolio.csv
- Triggers the agent team via subprocess:
claude-code run --agents analyst,judge
- Streams progress to the chat:
"Analyst querying NotebookLM for NVDA moat..."
"Judge reviewing NVDA report..."
"NVDA verdict: FAIL"
- When ./verdicts.md is written, generate dashboard.html
from the verdict rows and open it in the default browser.
7. On "no", assistant asks what to change.
Dashboard layout (dashboard.html):
- Header: "Buffett Audit, [date]"
- Three columns: FAIL, WATCH, PASS
- One card per ticker:
\* Ticker (large)
\* Verdict pill (red/yellow/green)
\* Top reason (one line)
\* "Read full report" link to ./reports/[TICKER].md
Intent parser prompt template:
"You are an intent parser for a stock audit assistant.
The user types a request in natural language. Convert it
to JSON with action, tickers, and filters. If the request
is ambiguous, return action=clarify with a follow-up
question. Available tickers are in portfolio.csv: [LIST]."
Error handling:
- If the agent team errors, the assistant catches stderr
and shows it in chat. No silent failures.
- If NotebookLM auth expires mid-run, the assistant pauses
and asks the user to re-auth.
- If portfolio.csv is empty, the assistant offers to walk
the user through adding tickers.
Constraints:
- Keep it under 200 lines total across all files.
- No database. The verdicts.md and reports/ folder are the
source of truth.
- No web search. The NotebookLM is the only knowledge source.
Run the build. When done, print:
"Assistant ready. Start with: streamlit run app.py"
Paste the prompt above. Five minutes later, it's ready

To let it run, use this prompt.
Run this app for me
Here is the app.

It is good, but it should look better, so I used this prompt to improve it.
Convert it to a React +
FastAPI architecture without changing the agent logic.
Keep:
- intent_parser.py (Claude API wrapper)
- agent_runner.py (subprocess trigger)
- portfolio.csv format
- reports/ and verdicts.md output structure
Replace:
- Streamlit UI → React SPA (Vite + Tailwind + shadcn/ui)
- st.chat_message → custom ChatPanel component
- st.spinner → SSE streaming to chat bubble
- Auto-open dashboard.html → live Dashboard component
in the same page
Add a FastAPI server (main.py) with these endpoints:
POST /parse, POST /run, GET /stream/{id},
GET /verdicts, GET /report/{ticker}
UI layout: split 40/60. Left = chat, right = verdict cards.
Design: clean and minimal, Linear/Vercel aesthetic. White
background, neutral grays, verdict color pills (red/amber/green).
No emoji, no gradients. Inter font.
VerdictCard component: rounded-2xl, shadow-md, ticker name
in bold, verdict pill, one-line top reason, "Read full report"
button that opens the markdown report in a modal.
Add a ./start.sh that runs FastAPI on :8000 and Vite on :5173
in parallel.
Keep the build under 400 lines total. Print final folder tree
when done.
After a few more minutes, the new app is ready.

Let’s ask it to run it.
Run this app for me
The app is ready, so let’s test it.
Step 4: Testing
Now I could not stop myself and started talking with it.
Asked about NVDA.
It started thinking.
Waiting for the verdict. Let’s see!

And here the report is finished.

And when you click the Verdict, here is the report you’ll see.

But can we make it look better, without too much effort?
So I used this prompt.
This part is 100% up to you. Just describe what you want.
I described it like this:
Great, but I want a better UI. Please look at the current one. The markdown is not rendering properly.
Also, can you make it cleaner, neater, and more minimalist?
After a few exchanges, I think I’ve found the perfect look.

And when you click on “Audit,” it will take you there.

And when you click on NVDA, here’s how the report looks right now.

Also, I realized you’ll probably like the latest version better. So after implementing the Streamlit version, use this prompt to get there.
Upgrade my Streamlit Buffett audit app to match the editorial "wealthy minimalist"
design I built in a parallel React version. Keep the agent backend unchanged.
Replace only the Streamlit UI.
DON'T TOUCH:
intent_parser.py — Claude Haiku 4.5 wrapper, returns {action, tickers, filters}
agent_runner.py — yields stdout lines from `claude -p` subprocess
portfolio.csv — columns: ticker, pe
reports/ — agent output dir
verdicts.md — agent output table
REPLACE / ADD:
app.py — full UI rewrite
.streamlit/config.toml — minimal theme
═══════════════════════════════════════════════════════════════════
DESIGN SPEC (the React version this must mirror)
═══════════════════════════════════════════════════════════════════
FLOW
st.session_state.started controls routing.
- Not started → full-page LANDING (book-cover hero).
- Started → SPLIT VIEW (40/60 via st.columns([2, 3])).
Tiny "← COVER" link in the split-view header to return.
Verdicts are reloaded from verdicts.md on every rerun, so NVDA (or any
existing audit) persists across landing ↔ split transitions.
TYPOGRAPHY
Inject Google Fonts at the top of app.py via st.markdown(unsafe_allow_html=True):
Inter (400, 500, 600, 700)
Instrument Serif (regular + italic)
Inter for body, captions, labels.
Instrument Serif for: brand title, "Verdicts" header, ticker names (italic),
modal H1/H3, empty-state heading, Buffett quotes (italic).
Captions in Inter UPPERCASE with letter-spacing 0.14em–0.22em.
PALETTE (restrained, no accent colors)
Text: #111827 secondary #6b7280 muted #9ca3af very-muted #d1d5db
Dividers: #f3f4f6
Card bg: #ffffff
Right panel: #fafaf9 (at ~40% mix)
Landing bg: radial gradient white center → #fafaf8 edges
Verdict pills:
FAIL rose-50 / rose-800 / rose-100
WATCH amber-50 / amber-800 / amber-100
PASS emerald-50 / emerald-800 / emerald-100
LANDING SCREEN (full viewport, fades in 0.7s)
Top-left tracked caps: "No. 01 · 2026"
Top-right tracked caps: "The Buffett Creed · NotebookLM"
Center (stacked, large serif, leading 0.88, tracking -0.028em, clamp 76–144px):
Buffett
Audit ← italic
Below title, serif italic subtitle (clamp 17–20px, max-width 440px, gray-500):
"Each holding measured against the framework that built Berkshire."
40px hairline rule below subtitle.
CTA (uppercase Inter, letter-spacing 0.24em, 11px, gray-900):
BEGIN → (or CONTINUE · N AUDITS → if verdicts.md has rows)
Hover: arrow shifts right 4px, text fades to gray-500.
Bottom-left serif italic 13px gray-400:
"Price is what you pay; value is what you get."
Bottom-right tracked caps gray-400:
"— WARREN BUFFETT"
SPLIT VIEW
LEFT (chat, 40%)
Header: serif "Buffett Audit" 22px + tracked caps caption
"THE BUFFETT CREED · NOTEBOOKLM"
Top-right: "← COVER" link (gray-300, hover gray-700, tracked caps 10px)
Body: st.chat_message bubbles. Assistant bubble bg-gray-50 with ring-1 border;
user bubble bg-gray-900 white text; both rounded-2xl.
SUGGESTION CHIPS via st.pills, shown ONLY before any user message:
["Audit my full portfolio", "Just check NVDA", "Show me the FAIL stocks"]
Clicking a chip submits it as the user message. Chips vanish after first user turn.
During run: small "PROGRESS" tracked-caps label + monospace 11px log box
(last 10 lines, max-height 160px scroll). Clears on completion.
Input: pill-shaped (rounded-full) at bottom, placeholder "Ask anything…",
round 36x36 send button embedded inside on the right with "→" glyph,
gray-900 bg, white text, hover gray-700.
RIGHT (verdicts, 60%, bg #fafaf9 at low mix)
Header: serif "Verdicts" 22px + tracked caps "N TICKERS AUDITED"
Empty state (no verdicts):
48×48 dashed-ring rounded square with a 6px gray-300 dot inside
Serif italic "No audits yet" 20px
12px gray-400 hint:
"Ask in the chat to start your first audit. Verdicts will appear here as cards."
Lower (max-width 340px):
Serif italic 14px gray-400 quote
"Price is what you pay; value is what you get."
Tracked caps gray-300:
"— WARREN BUFFETT"
With verdicts: 1- or 2-column responsive grid of VerdictCard.
VERDICTCARD
Rounded-2xl white, ring-1 gray-200/70, padding 24px, hover ring-gray-300 + soft shadow.
Row 1: TICKER in Instrument Serif italic 26px (left)
+ pill (right): uppercase, letter-spacing 0.1em, rounded-full, ring-1,
text 10px font-medium; confidence appended after " · " at opacity 50%.
Row 2: One-line truncated reason, 13px gray-600.
Row 3: "Read full report →" 11px gray-400 link (hover gray-900). Opens modal.
REPORT MODAL (use @st.dialog)
Loads ./reports/[TICKER].md and renders the markdown.
Header inside the dialog:
Serif italic 28px ticker
Below: tracked caps 10px "FULL REPORT"
Markdown render rules (apply via inline-styled HTML or unsafe_allow_html):
H1 → serif 28px, tight
H2 → tracked caps 10px gray-500 (section labels — Moat / Management / Price)
H3 → serif 17px
p → 13px gray-700 leading-relaxed
ul → 13px gray-700, disc marker gray-300
blockquote → serif italic 15px gray-600, left border gray-200
table → small, clean borders, gray-100 row separator
hr → my-7 gray-100
Body scroll, max-width ~720px, max-height 85vh, custom soft shadow
0 8px 40px -8px rgba(0,0,0,0.15).
THEME (.streamlit/config.toml)
[theme]
base = "light"
primaryColor = "#111827"
backgroundColor = "#ffffff"
secondaryBackgroundColor = "#fafaf9"
textColor = "#111827"
font = "Inter"
[client]
toolbarMode = "minimal"
ANIMATIONS (inject keyframes in the CSS block)
fadeIn: opacity 0→1 + translateY(6px → 0), 0.7s ease-out.
Apply to landing on mount and to split view on first reveal.
═══════════════════════════════════════════════════════════════════
STREAMLIT IMPLEMENTATION NOTES
═══════════════════════════════════════════════════════════════════
- Target Streamlit ≥ 1.34 (st.pills + @st.dialog are required).
- No new deps beyond what's already installed (streamlit, anthropic).
- All custom typography via st.markdown(unsafe_allow_html=True) with inline
`<span style="font-family:'Instrument Serif',serif; font-style:italic; ...">`.
- A single `<style>` block at the top of app.py handles: Google Fonts import,
body font, fadeIn keyframes, landing bg gradient, and any overrides of
Streamlit's default chat bubble / button styling. Target Streamlit's
data-testid selectors when overriding (e.g. `[data-testid="stChatMessage"]`).
- Hide Streamlit's default top bar/footer with CSS:
header[data-testid="stHeader"] { display:none; }
footer { display:none; }
.block-container { padding-top: 0; padding-bottom: 0; max-width: 100%; }
- Reload verdicts from verdicts.md on every rerun (no caching) so persistence
is automatic.
- Keep the existing yes/no confirmation flow for runs (same as current app.py).
═══════════════════════════════════════════════════════════════════
DELIVERABLE
═══════════════════════════════════════════════════════════════════
- New app.py (under ~200 lines if possible — be ruthless with whitespace).
- .streamlit/config.toml.
- Verify it runs: `streamlit run app.py`.
- Open localhost:8501 in a browser and screenshot the landing + split view to
confirm visual match.
THE VIBE
Financial newspaper × Vercel. Wealthy minimalism. Tracked-out uppercase
captions, big italic serif headlines, generous whitespace, restrained
monochrome. Never flashy. The CTA is a tracked-out caps link, not a button.
Paste that as-is into a fresh session, and it will rebuild the Streamlit app to match the React version, with the same landing → split-view flow, the same Instrument Serif editorial typography, and the same NVDA persistence behavior.
What’s Next
Three layers, three prompts. The pattern is reusable. Swap Buffett for any documented thinker. Munger, Lynch, Dalio, Graham. Same three layers, different sources.
What I’m building next.
Sector audits. Point the assistant at one sector instead of one portfolio.
Multi-brain mode. Two NotebookLMs in parallel. Buffett on one side, Munger on the other. Disagreements are where the interesting picks live.
Weekly re-runs. Cron job every Monday. Verdicts in Slack before the market opens.
Pick a thinker whose framework you trust. Train the brain once. Let the agents do the reading.
Disclaimer: Educational purposes only. Not financial advice. The “Warren Buffett Tutor” is an AI system trained on publicly available Berkshire Hathaway shareholder letters. Not endorsed by, affiliated with, or representing Warren Buffett or Berkshire Hathaway Inc.