Part 0: The $0 Hedge Fund Manager: The Prompt that Turns Gemini Into My Analyst
A simple prompt with deep research via chatbot. Non-agentic.
Part 1: Using Karpathy’s Wiki: How I Turned an AI Agent into a Stock Analyst
My first experiment started out to help me “remember” everything, but it turned out to be a building block of my AI Hedge Fund Analyst.
This is part 2 of my AI Hedge Fund Analyst journey. In part 1, I started by building a compounding knowledge palace so I (and my agent “V”) don’t forget what we learned after reading the news or X feeds. What got me started was reading about bottleneck stocks during the AI buildout hype. The more I learn, the more I can’t keep track of this new knowledge, much less connect it back to something I read weeks earlier.
Four months later, it has evolved into a sophisticated and autonomous stock researcher and decision system that leverages the latest AI concepts and methodologies. Today I’m going to talk to you about Agentic Graph Engineering, one of the latest trends in agentic AI.
Before diving in, let me show you a few screenshots of the outcome from this system.
Dashboard:
Daily feed:
Macro Meter:
TLDR: an agentic graph is basically an autonomous job that processes sub-jobs in parallel and recovers from failures. In a traditional automated workflow, failure may require a human to intervene and make a decision; however, in an agentic world, agents can make most of those decisions. Similarly, agents have the ability to delegate and then consolidate separate jobs into one final result.
What is a Graph: An Automation Job Is Already a Graph
A job usually has:
Trigger → Inputs → Processing → Checks → Artifact → DeliveryEven a simple script is technically a one-lane graph:
Schedule → Fetch data → Validate → SaveA more complex research job becomes a real branching graph:
┌→ Fundamentals ─┐
Earnings trigger ───┼→ Transcript ───┼→ Checker → Decision
├→ Price action ──┤
└→ Peer reaction ─┘Each lane does one part of the research. The results meet at a checker, a critical quality checkpoint, and only then does the system produce a decision.
That sounds simple, and in fact, it’s really just a workflow with dependencies. But it changes how AI builds the system because AI is probabilistic.
Instead of asking one model to read everything and produce an answer, you can separate the research into independent lanes, check the quality of each lane, and control what is allowed into the final synthesis. Each lane can be a mix of deterministic steps and reasoning tasks.
Why I Didn’t Start With a Big Orchestration Framework
Every time I build new workflows or systems, I keep reminding my agent: don’t over-engineer. After decades of building products, I know how easy it is to chase reliability and get stuck with the maintenance overhead. Rule one of building a product is always start with an MVP, even if AI compresses build cost to almost zero.
Instead, I built “Phase 1” as a lightweight graph layer on top of the workflow I already run. When analyzing a stock, I look at many inputs:
morning market briefs
X signal scans
transcript jobs
SEC / insider scans
macro and breadth notes
earnings previews
portfolio/watchlist triggers
X scanner ─────────┐
News/calendar ─────┤
Transcripts ───────┤
Insider scanner ───┼→ Checker → Dashboard/decision output
Macro/breadth ─────┤
Portfolio/prices ──┘The graph runner then:
Finds the latest artifacts
Checks freshness, source quality, privacy, contradictions, and proof
Marks each lane pass/degraded/fail
Controls what may enter synthesis
A dynamic graph could also help the workflow recover on its own:
Earnings transcript missing?
├─ No → continue
└─ Yes → launch transcript recovery
↓
verify transcript
↓
resume earnings analysisInstead of silently continuing without the transcript or even failing the entire job, the graph can launch a recovery workflow, verify the result, and resume the analysis. The recovery process is the difference between an autonomous workflow and an agentic graph workflow.
The Three Graphs I Built
I turned three core workflows into explicit graphs:
1. Market Research → CIO Dashboard
2. Weekly Conviction IC + Explosive Radar
3. Earnings Proof-Gate
These are the core workflows I use to make investment decisions.
Market Research → CIO Dashboard
This is how I started - by researching a single stock with many inputs. It also gives me the biggest return on turning a workflow into a graph because our market system has lots of upstream sources, such as stock news, X, transcripts, SEC/insiders, macro, portfolio/price data — feeding downstream dashboard and decision surfaces. The big risk is synthesis built from stale or outdated inputs. As most investors know, a good stock can still have bad timing.
Phase 1 adds a checker gate before anything gets merged into the Chief Investment Officer (CIO) dashboard layer: freshness, source quality, proof vs hype, portfolio conflict, and public-dashboard privacy.
Weekly Conviction IC + Explosive Radar
This workflow is a diamond graph. Every week, I run an automation to source a shortlist of candidates for my “conviction list.” Candidate tickers fan out into fundamentals, catalysts, ownership/insiders, price/technicals, sentiment/X, and portfolio fit. Then the Investment Committee (IC) checker kills weak edges before anything becomes conviction.
Earnings Proof-Gate
Press release, financials, guidance, call transcript, price reaction, and peer read-through do not arrive cleanly. A stock can still go down after one bad earnings report, even when the thesis is intact. Without the graph, we risk confusing “stock up” vs “thesis proven”, or “stock down” vs “thesis broken.”
Phase 1 makes the workflow explicit: preview first, post-print fanout, proof-gate checker, then decision/logging. The main quality checker here is the proof-gate checker, which validates whether the sources have signals that break the thesis. The key output becomes: proof-driven, sentiment-driven, positioning-driven, or unclear.
Tying It All Together
Building Dashboards and Visualizations
Building “Macro Meter” was by far the hardest thing
For investors, “macro” measures uncertainty, probably one of the biggest factors affecting market sentiment.
Imagine checking the weather before going outside. Just like wind-chill, temperature, sunny/cloudy, etc. all affect “what it feels like” outside, our macro meter checks six clues about the market: how many stocks are doing well, financial conditions, borrowing stress, growth, inflation and interest rates, and how nervous markets look.
For example, some inputs include:
Iran War / Oil Prices
Election
AI / Capex spending / Debt
Interest Rates
Answering My Random Questions (backed by my knowledge graph)
The best part is that every question will compound the knowledge of my agent, powered by the knowledge graph.


| Dimension | Winner | Why |
| --------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Direct AI criticality | **MU** | HBM and server DRAM feed accelerators directly and address the memory-bandwidth bottleneck. NAND stores datasets, checkpoints and inference content—important, but farther from the scarce compute path.[3][5] |
| Technology moat | **MU** | Micron is shipping HBM4 in volume, sampling multiple customers, developing 1-gamma HBM4E for 2027, and shipping complementary server DRAM and Gen6 SSDs.[3] The stacking, packaging and qualification burden creates a stronger moat than NAND bits alone. |
| End-market breadth | **MU** | DRAM, HBM and NAND across cloud, data center, mobile, client, automotive and embedded. Its two data-center units generated about **61% of fiscal-Q3 revenue**.[3] |
| Storage purity/torque | **SNDK** | Datacenter revenue grew **437% in FY26** and reached approximately **33% of Q4 revenue**. Sandisk has also signed ten longer-term “New Business Model” customer agreements.[1] |
| Cycle durability | **MU** | DRAM has fewer major producers, while HBM absorbs considerable wafer capacity. NAND faces more suppliers, relentless cost-per-bit improvement and harsher price competition.[2][4][5] |
| Manufacturing control | **MU** | Sandisk obtains all its flash wafers through the Kioxia JVs and generally funds approximately half the required JV investment—efficient, but strategically dependent.[2] Micron spends much more directly, but controls its manufacturing and process roadmap.[4] |The real difference between using wiki-backed research and using a ChatGPT session is that the knowledge gets compounded every time there’s new research. So my random questions will get “saved” into the knowledge base when it makes sense.
Monitoring Stock and Market Changes
My monitoring system monitors more than price. It starts with a thesis.
Every weekday, a cheap mover/news scan identifies where something may be happening. The Re-rate Monitor then reads a scarce queue of dormant, waitlisted, or proof-gated ideas and removes companies already owned by the canonical Event Trigger Fleet.
For the remaining names, it searches recent filings, earnings, customer contracts, policy developments, estimate revisions, insider activity, valuation, and peer behavior. Price and technicals can trigger investigation, but they cannot pass the gate alone.
If the underlying business or thesis has not materially changed, the system stays silent. If it has, the output is a ranked local candidate—Watch, Tiny Scout, Starter, or Add-Size Review—with dated evidence, a sizing ceiling, and explicit invalidation.
Only promoted candidates graduate into the canonical Event Trigger Fleet and become eligible for direct alerts. Discovery stays broad; notifications stay scarce.
Traditional Workflow vs Agentic Graph
Traditional Workflow Agentic Graph
────────────────────────────── ─────────────────────────────────
Fixed sequence Dynamic branching
One failure can stop the job Retries, recovers, or uses fallback
Research mostly runs in order Research can run in parallel
Human handles exceptions Agent handles bounded exceptions
Inputs may be trusted as-is Checks freshness and quality
Everything flows to synthesis Only verified inputs move forward
Best for predictable automation Better for uncertain AI workflowsCheck out what I built: AI Hedge Fund analyst
Trade-offs and Boring Stuff Worth Considering
In another post, I will go into the learnings from building my agentic AI Hedge Fund Analyst. Topics will include:
Over Engineering & Maintenance
Deterministic vs LLM workflows
Operational Monitoring
Model evals using the same wiki-backed dataset
You can also follow me on X for random thoughts and opinions.











