According to WatchTower Beating monitoring, Singapore's Minister of Foreign Affairs Vivian Balakrishnan has publicly revealed his self-built AI assistant system, referred to as the "Diplomat's Second Brain." The entire system runs on a Raspberry Pi 5 (a credit card-sized microcomputer), connected to his WhatsApp and Gmail, capable of transcribing voice notes, summarizing articles, drafting speeches, answering questions, and continuously accumulating knowledge through use. Balakrishnan stated that he "dare not switch it off." He later added on X: He has never used an IDE (Integrated Development Environment), and all code editing is done by Claude Code, whom he describes as "tool assembly," a concept distinct from Karpathy's "vibe coding."
The system is built on the open-source agent framework NanoClaw, running each agent in a separate Docker container (isolated execution environment) using the Claude Agent SDK, with each chat group isolated and invisible to each other. The WhatsApp integration uses Baileys (an open-source implementation of the WhatsApp Web protocol) and does not rely on commercial APIs. Voice notes are transcribed locally on the device using whisper.cpp, avoiding cloud uploads.
The knowledge storage is structured in three layers, following Andrej Karpathy's LLM Wiki model: the first layer consists of raw materials (speeches, articles) archived without modification; the second layer is the mnemon knowledge graph (a SQLite-based graph database) that extracts facts from the raw materials into separate nodes, utilizing locally-run nomic-embed-text (a 274MB vector embedding model) for semantic retrieval; the third layer is Wiki pages that compile facts into human-readable narrative documents, categorized by entity, concept, and timeline, synchronized to mobile devices via Obsidian on iCloud. Upon receiving a message, the system automatically queries the knowledge graph and injects relevant facts into the context.
In terms of security design, containers access APIs through the OneCLI credential agent, avoiding direct contact with the original keys; path mounts are restricted by a whitelist, shielding sensitive directories such as `.ssh` and `.aws`. All voice transcription and vector embedding are performed locally, ensuring that policy-sensitive content does not leave the device.
Balakrishnan has released the full architecture documentation on GitHub, stating that "diplomats who learn to collaborate with AI will have a real advantage, and I believe that advantage is now."
