// HACKER NEWS — CYBERSECURITY
Make Claude your assistant in excalidraw
drawgent connects your own Claude Code, Codex or opencode (your install, login, config and
repo) to an Excalidraw whiteboard. Ask for a diagram in the chat panel, or write AGENT: …
next to the part of a drawing you want changed. The agent looks at the canvas (screenshot +
scene), edits it live, checks the result, and marks the note DONE.
Prerequisite: one of claude, codex or opencode installed and logged in. The Claude and
Codex bridges also need Node.js ≥ 18 (npm).
Checks everything once, fails with the exact fix when something is missing, and writes
~/.config/drawgent/config.toml:
The agent CLI. Your claude / codex / opencode on PATH.
Login. claude auth status, codex login status or opencode auth list.
Canvas tools for attached sessions. Only Codex needs a change:
codex mcp add drawgent -- drawgent mcp. Claude and opencode get the tools at attach time.
Headless Chrome for the renderer. Setup uses your Chrome/Chromium if you have one.
Otherwise it proposes:
Non-interactive: --chrome download | system | /path/to/chrome.
drawgent up refuses to start until setup succeeded for that agent, or if something setup
recorded disappeared.
The scene is kept in .drawgent/scene.json, which is git-ignored automatically.