header-langage
简体中文
繁體中文
English
Tiếng Việt
한국어
日本語
ภาษาไทย
Türkçe
Scan to Download the APP
Partnered With:

Singaporean Foreign Minister Assembles AI Diplomatic Assistant on Raspberry Pi Using Claude Code

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."

举报 Correction/Report
RelatedRecommended
Anthropic Bets Earlier on AI Programming, OpenAI Strategic Tempo Misaligned
The code directly responsible for calling the AI model's API accounts for only 1.6% of the total.
Anthropic chose the harder path, getting stuff done with your terminal, your environment, your config, instead of "writing some code in a clean room and then copy-pasting it over."
Anthropic's Chief Product Officer Mike Krieger Latest Interview
Correction/Report
Submit
Add Library
Visible to myself only
Public
Save
Choose Library
Add Library
Cancel
Finish