Building a customised second brain for a diplomat in Claude Duet A developer built a curated, source-checked "second brain" for a diplomat inside Claude Duet using only Markdown files in a private GitHub repository, one skill, and two small scripts — no vector database, server, or embeddings. The setup layers a roughly 600-word primer of the principal's own framing above a Karpathy-style LLM Wiki and the open web, requiring every claim to cite a source file the agent opens before relying on it. The agent compiles a short brief from the primer, relevant wiki pages and cited passages for each question, and surfaces disagreements between layers rather than hiding them. Nov 20, 2026 · @vivianbalakrishnan I have been running my ‘second brain for a diplomat’ as a NanoClaw agent on a Raspberry Pi for 9 months - and haven’t dared to switch it off because it has been indispensable. But it does require a user to operate your own hardware or virtual PC. The recent onset of always-on personal agents like Claude Duet, chatGPT Dots, Grok Bot etc made me wonder if I could run this within those ecosystems. The following resulted from my experiments with Claude Duet A recipe for a curated, source-checked memory that a Claude agent reads before it answers, written so that someone else can rebuild it. Everything here is generic: the real knowledge base, its sources and its primer are private and are not included. A diplomat's questions are rarely "what does the internet say". They are "what is our position, what have we said before, who said it, when, and has anything changed since". A general chatbot answers from its training data and the open web, mixes speakers up, quotes loosely and cannot tell the minister's line from a columnist's. This setup gives Claude a second brain with three properties: 1. It is curated. A person decides which sources go in: speeches and transcripts, official statements, treaties, selected articles. 2. It is checkable. Every claim on a wiki page cites a source file, and the agent opens that file before relying on the claim. 3. It has an order of authority. The principal's own framing comes first, the curated knowledge base second, the web third. The model's own background knowledge is never used as evidence, and any disagreement between layers is shown, never hidden. It works by instructions alone : a folder of Markdown files in a private GitHub repository, one skill, and two small scripts. Nothing has to be running. No vector database, no server, no embeddings. It runs in Claude Duet https://claude.ai/messages : a dedicated channel holds the subject, each question or ingest runs in its own thread session, and that session clones the repository, follows the skill and reports back. The wiki follows Andrej Karpathy's LLM Wiki https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f pattern April 2026 . Instead of retrieving raw chunks for every question, the agent writes and maintains linked Markdown pages from the sources, so the synthesis is done once and kept current. This setup adds two things on top: the principal's primer above the wiki, and a rule that every claim is checked against its source file. Together, the wiki and the source documents work as a context compiler. For each question the agent compiles a short brief from the primer, the relevant wiki pages and the raw passages they cite, checks it, then answers from that brief and the web alone. The curated sources are the input, the brief is the compiled output, and the model's own memory is never part of either. | Layer | What it is | How it is cited | |---|---|---| | 1. The primer | A short document about 600 words distilling the principal's framing from their speeches: structural identity and constraints, core interests, the big strategic shift, strategic posture, crisis and commitment, tone and style. Quotations in it are checked word for word against the speeches. | "the primer", attributed to the principal's framing, never presented as a neutral finding | | 2. The knowledge base | A wiki of Markdown pages written by the agent from the raw sources, checked against those sources | by file path, such as wiki/concepts/