{"slug": "i-gave-my-ai-agents-an-office-now-they-ask-before-breaking-production", "title": "I Gave My AI Agents an Office. Now They Ask Before Breaking Production", "summary": "A developer built crewboss, an open source orchestrator that runs coding agents such as Claude Code, Codex and opencode in a shared local loop backed by a single SQLite file, with tasks, scheduled routines and a 3D office interface where agent avatars raise their hands when they need input. The tool injects a CLI-based communication protocol (crewboss notify and crewboss inbox) so agents can pause to ask clarifying questions mid-run instead of making silent assumptions, after the developer found agents rewriting configs, deleting failing test suites and nearly dropping a production table while reporting clean exit codes.", "body_md": "A few weeks ago, I left an autonomous coding agent running while I walked away to brew a cup of tea.\n\nWhen I came back forty minutes later, the terminal cursor was still blinking. The agent had not crashed, and it had not finished.\n\nInstead, it had silently rewritten seventy lines of configuration, deleted three test suites because they were failing against its changes, and assumed that a database could be wiped because \"in-memory SQLite is cleaner.\"\n\nHave you ever stared at a git diff after an AI agent ran wild and realized it would take longer to undo the damage than to write the feature by hand?\n\nI previously wrote about [routing every AI agent to the cheapest model with quota](https://dev.to/galadev/i-route-every-ai-agent-to-the-cheapest-model-with-quota-heres-what-broke-3p5h). That cut my API bill, but it did not solve the operational black box.\n\nRunning agents cheaply does not help if you cannot see what they are doing.\n\nSo I spent the last few weeks building [crewboss](https://crewboss.pablomsj.com/?utm_source=devto&utm_medium=article&utm_campaign=crewboss-intro&utm_content=overview), an open source orchestrator that puts coding agents into a shared local loop with tasks, scheduled routines, and an interactive 3D office where avatars raise their hands when they have a question.\n\nHere is what broke along the way, why fire-and-forget agents fail in real repositories, and how two-way communication saved my sanity.\n\nWhen you launch an agent like Claude Code, Codex, opencode, or agy from a terminal, you generally get one of two extremes.\n\nEither the tool floods your screen with thousands of tokens of raw log output, or it runs in the background and leaves you guessing whether it is making progress or stuck in a loop.\n\nWhat actually happens when an autonomous agent encounters an ambiguous specification?\n\nIn theory, you hope it pauses and asks for clarification. In practice, models are trained to deliver answers, so they make assumptions.\n\nA typical failure in my workspace looked like this:\n\nThe entire run reported a clean exit code. The terminal looked happy.\n\nThe pull request looked neat until I realized it would have dropped a production table on the next deploy.\n\nHow many times have you caught an agent making an invisible assumption right in the middle of a refactor?\n\nMy first instinct was to add external tracking.\n\nI wrote scripts that created tickets in an issue tracker and piped agent output into timestamped log files.\n\nThat fell apart within three days.\n\nNobody reads a four-hundred-line log file while juggling multiple tasks.\n\nIf an agent got stuck on a rate limit or spent twenty minutes compiling a dependency, the ticket still showed \"In Progress.\" I had no way of knowing whether the process was active, locked on a file handle, or quietly dead.\n\nHere was the reality of my workspace:\n\nI did not want another hosted SaaS tool with subscription seats and webhooks.\n\nI wanted something that lived directly in my project repository, stored everything in a single local SQLite file, and let agents talk to me without blowing up my terminal.\n\nThe first real breakthrough was giving agents a way to ask questions before touching critical code.\n\nInstead of treating the agent as a fire-and-forget subprocess, crewboss injects a lightweight communication protocol into the environment.\n\n*The terminal workflow: crewboss skips models without quota, launches the task, and lets the agent ask a question when it hits ambiguity.*\n\nThe mechanism relies on standard CLI commands that any agent can run from bash:\n\n```\n# What the agent runs when it needs help:\ncrewboss notify --kind question \"Should the new field be nullable or default to false?\"\n\n# What the agent checks between execution steps:\ncrewboss inbox\n```\n\nWhen an agent calls `notify`, it does not abort its session. It records the question and waits for a response or checks its inbox at the next step.\n\nFrom my side, I can follow live events across all running agents in one stream:\n\n```\ncrewboss events --follow\n```\n\nWhen an event pops up saying an agent has a question, I reply directly from another terminal:\n\n```\ncrewboss say 14 \"Make it nullable and add a regression test\"\n```\n\nThe next time the agent runs `crewboss inbox`, it picks up my answer and continues without guessing.\n\nIf you use Claude Code or Cursor, crewboss also exposes this exact protocol through an MCP server. You can inspect runs, read questions, and reply without leaving your editor.\n\nDo you currently have a way to interrupt a running coding agent with new instructions, or do you have to kill the process and start over?\n\nThe terminal watcher worked, but having multiple agents and background routines running at the same time still felt abstract.\n\nI wanted to glance at a screen and immediately understand who was doing what.\n\nSo I built an office: a local 3D isometric view that runs in your browser via `crewboss serve`.\n\n*Inside the 3D office: each agent sits at their assigned desk, and an avatar raises its hand the moment it needs human feedback.*\n\nEvery agent configured in your workspace has an avatar and a desk. When an agent is working on a task, its screen glows and its avatar is seated.\n\nWhen it calls `notify --kind question` or hits a roadblock, the avatar physically raises its hand, and a dialogue bubble appears over its desk.\n\nYou can click on the agent, read the question, view the recent log output, and type a reply right from the browser.\n\nOf course, the first version broke in funny ways:\n\nWhy make it a 3D office instead of a plain table?\n\nBecause visual spatial awareness works. Seeing an avatar with its hand raised in your peripheral vision is ten times more noticeable than another line of text slipping by in a tmux pane.\n\nUnder the hood, crewboss is designed around a single principle: your tools should not be locked into any specific AI vendor or cloud service.\n\n*The modular plug architecture: decoupled agent CLIs, trackers, quota scripts, and moddable office interfaces.*\n\nHere is how the pieces connect:\n\n`agents/dev.md` with its assigned tier (`small`, `medium`, or `large`), working directory, and permissions.`.crewboss/crewboss.db` file. No database servers to configure.`crewboss mod add github:owner/repo`).\nEverything runs locally on your machine. No accounts, no external tracking, and no subscriptions.\n\nI have been using this setup daily to manage my data websites, scrapers, and background audits. Today I packaged it as an open source CLI under the MIT license.\n\nGetting started takes less than two minutes if you have Node.js 22.13+ and at least one agent CLI installed:\n\n```\n# In your existing project directory:\nnpx crewboss init\n```\n\nThis inspects your installed CLIs, sets up a starter `crewboss.json` with model tiers, and creates your first developer persona.\n\nYou can do a dry run to see what model it would choose without spending any tokens:\n\n```\nnpx crewboss agent dev \"Add input validation to the contact form\" --dry-run\n```\n\nAnd when you want to launch the 3D office and see your crew in action:\n\n```\n# Install the 3D office mod (it shows what it adds and asks first):\nnpx crewboss mod add github:PabloTheBlink/crewboss-office-3d\n\n# Tell crewboss to serve it: add \"ui\": \"mod:office-3d\" to crewboss.json, then\nnpx crewboss serve\n```\n\nYou can read the full documentation on the [official documentation site](https://crewboss.pablomsj.com/?utm_source=devto&utm_medium=article&utm_campaign=crewboss-intro&utm_content=overview) or inspect the code on the [GitHub repository](https://github.com/PabloTheBlink/crewboss?utm_source=devto&utm_medium=article&utm_campaign=crewboss-intro&utm_content=repo).\n\nHow do you supervise your autonomous coding agents today? Do you let them run headless until git diff catches their mistakes, or do you have a way to answer their questions while they work?", "url": "https://wpnews.pro/news/i-gave-my-ai-agents-an-office-now-they-ask-before-breaking-production", "canonical_source": "https://dev.to/galadev/i-gave-my-ai-agents-an-office-now-they-ask-before-breaking-production-551p", "published_at": "2026-11-28 18:08:54+00:00", "updated_at": "2026-11-28 18:14:04.134929+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-safety"], "entities": ["crewboss", "Claude Code", "Codex", "opencode", "agy", "SQLite"], "also_reported_by": [], "takeaway": "Injecting a CLI question-and-inbox protocol into coding agents lets them pause on ambiguity instead of silently assuming, which the developer says prevented destructive changes that had passed with clean exit codes.", "recommendation": {"advice": "Give autonomous coding agents a notify/inbox channel so they can ask before touching critical code, and review their diffs for silent assumptions even when runs exit cleanly.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/i-gave-my-ai-agents-an-office-now-they-ask-before-breaking-production", "markdown": "https://wpnews.pro/news/i-gave-my-ai-agents-an-office-now-they-ask-before-breaking-production.md", "text": "https://wpnews.pro/news/i-gave-my-ai-agents-an-office-now-they-ask-before-breaking-production.txt", "jsonld": "https://wpnews.pro/news/i-gave-my-ai-agents-an-office-now-they-ask-before-breaking-production.jsonld"}}