How I engineered a multi-agent coding terminal with a 3D Three.js Office Floor UI published Dominique Church built Gnosis, an open-source, local-first terminal coding agent that visualizes multi-agent workflows in a 3D Three.js office floor. The TypeScript-based tool separates conversation state from the model provider, allowing users to switch between OpenRouter models mid-session, and it reduces API costs by up to 12× through structured context and prompt caching. Gnosis is MIT licensed and available via npm. I spent my summer building Gnosis , a local-first, open-source terminal coding agent designed around one idea: make multi-agent work easier to see and understand. Instead of an endless stream of terminal output, Gnosis puts agents inside an interactive Three.js office , where their location reflects what they are actually doing. Gnosis uses a TypeScript backend for agent execution, tools, processes, and session state, with React + Three.js rendering everything in real time. The conversation state is separated from the model provider, so you can switch between any OpenRouter model mid-session without losing context or tool state. Context is structured to maximize provider prompt caching. One measured request dropped from $0.0252 to $0.0021 — a 12× reduction . Agents move between five zones: The office updates as agents work, and clicking an agent opens its session. Gnosis also includes: The project has 104 automated test suites running on Windows CI . Gnosis is MIT licensed, local-first, and BYOK . npm install -g @dominquechurch/gnosis