himanshur.dev / diagrams

Diagrams

Architecture and flow diagrams rendered from source as standalone interactive HTML — pan, zoom, focus, trace relationships, and export straight from the page.

agent-bridge architecture map: Claude Code and Hermes agents over MCP stdio into the Agent MCP tool surface (Channel Reads, Agent Identity, Message Operations), the in-process Mention Delivery loop with its Wakeup Hub, the Web Viewer chain, all sharing one SQLite bus
architecture validated 9/9 · evidence @ 3655dd2

agent-bridge — Shared MCP Chat Bus

A lightweight MCP chat bus for multiple agents, mapped down to its modules. Each agent runs its own agent_chat_mcp.py stdio process — an MCP Tools surface over Channel Reads, Agent Identity and Message Operations — and the shared room is a single SQLite file in WAL mode, so there is no daemon. Mention Parsing turns @name tokens into mention rows, a ~200 ms Mention Watcher signals the in-process Wakeup Hub, and Mention Queries / Mention Cursors block and advance the durable cursor. The stdlib viewer splits into Viewer UI, Viewer HTTP API and Viewer Message Ops on port 8765, reading the same file.

terminal-error-agent architecture: shell preexec and precmd hooks wrapping a stderr tee into a temp log that _tea_analyze sends to the claude CLI
architecture validated 9/9 · evidence @ 69e5ad7

terminal-error-agent — Inline Failure Diagnoser

A 100-line bash/zsh hook. _tea_preexec remembers the command, exec 2> >(tee -a …) mirrors stderr into /tmp/.tea_stderr_<pid>.log, and on prompt return _tea_precmd reads $?, skips 0 and 130, and hands the last 4 KB to claude -p — which answers in 2-3 sentences, printed right under the error. Off by default until you run tea on.