How to Structure a Local 'Investing Brain' for Claude: Folder Taxonomy and Selective Retrieval
Kevin describes a four-folder architecture (inbox, raw, wiki, state) and a five-step query mechanism that lets Claude retrieve only the files needed to answer an investment question, avoiding both context-window overload and the limitations of chat memory or single-company projects.
Kevin, writing on the Invest with AI Substack, identifies a concrete gap in how people currently use Claude for investment research. A blank chat starts from nothing. AI chat memory, he notes, is "a summary of who you are and what you're into"—useful for personalization but "not enough to make sure Claude becomes a real junior analyst who helps you make investment decisions." Even Claude Projects, which bundle company files and notes, are typically scoped to one company at a time. Investing decisions require learning from all past discussions, mistakes, and portfolio-level context simultaneously.
His solution is a local folder structure that Claude can read and write into, which he calls "The Vault." Inside a folder he labels SecondBrain, Kevin describes four subfolders. The inbox holds all data added manually. The raw folder stores original files, each tagged with an ID card that tells Claude what the file contains and what type it is. The wiki folder compiles raw data into dated records—earnings updates or analyses that the user validated and filed away. The state folder contains documents that can change over time: a list of decisions, the portfolio. It evolves as new decisions are made.
Kevin argues that this structure gives Claude persistent, focused context alongside its own intelligence. Without a high-quality brain, he writes, "all these systems would produce rubbish" because the tracker, hunter, and research systems all depend on reading from and writing back to the same knowledge base.
The query mechanism demonstrates how to avoid loading the entire knowledge base into context. Kevin walks through a specific example: asking the brain to assess capital allocation history for a company called PDEX. Claude follows five steps. First, it invokes a skill that defines how to assess capital allocation. Second, it reads an index file to see what documents exist on PDEX. Third, it notices a concept page on capital allocation in the wiki and reads that too. Fourth, the skill needs more information, so Claude follows references from the wiki page into specific raw filings. Fifth, it writes the output back to the state folder.