# AI Question Detection in Remocode
AI coding agents are not fully autonomous. They regularly need human input: confirming a design decision, choosing between approaches, or asking permission for destructive operations. Remocode's question detection system ensures you never miss these moments.
How Question Detection Works
When Remocode detects a supported AI agent running in a terminal pane, it activates real-time output monitoring. The system watches for patterns that indicate the agent is asking a question or waiting for user input.
Each agent has distinct markers that Remocode recognizes:
Claude Code uses specific response markers and prompt markers. When Claude Code finishes generating output (signaled by response markers) and then presents a prompt marker, Remocode knows the agent is waiting for input. The content preceding the prompt is analyzed to determine whether it contains a question.
Gemini CLI follows a similar pattern with its own markers. When Gemini's response marker appears followed by a prompt marker, Remocode detects the transition and checks for questions.
Codex uses its distinctive prompt and response markers. Remocode detects when Codex switches from generating output to waiting for input.
Types of Questions Agents Ask
AI coding agents typically ask several categories of questions:
Clarification requests. The agent does not fully understand the task and needs more detail. Example: "Should the user endpoint return email addresses in the response?"
Design decisions. The agent sees multiple valid approaches and wants guidance. Example: "Should I implement this with a REST endpoint or a WebSocket connection?"
Permission requests. The agent wants to perform an action that could be destructive or significant. Example: "This will modify the database schema. Should I proceed?"
Error resolution. The agent encountered an issue and needs help deciding how to handle it. Example: "The test suite is failing. Should I fix the tests or revert the change?"
Viewing Questions in the AI Panel
Detected questions appear in the AI Panel (Cmd+Shift+A) in a dedicated pending questions display. Each question shows which agent asked it and which terminal pane it came from. You can see all pending questions across all active agent sessions in one place.
This is particularly powerful when you run multiple agents simultaneously in different panes. Instead of checking each pane individually, the AI Panel aggregates all questions.
Forwarding Questions to Telegram
In the Provider tab, configure your Telegram settings to receive question alerts on your phone. When an agent asks a question, Remocode sends a notification to your configured Telegram chat. This enables a supervisory workflow where you can:
- ●Leave agents running while attending meetings
- ●Monitor overnight coding sessions from bed
- ●Step away from your desk without agents stalling
- ●Supervise multiple agents across different projects
Dangerous Command Filtering
A special category of agent interaction is the dangerous command. When an agent proposes running a command that could be destructive (deleting files, dropping databases, modifying system configuration), Remocode's dangerous command filter intercepts it.
Configure the filter in the Agents tab. You can set the sensitivity level and choose whether to block dangerous commands outright or simply alert you for manual approval.
Configuring Detection Sensitivity
Fine-tune question detection in the Agents tab:
Enable or disable per agent. If you only use Claude Code, you can disable detection for Gemini and Codex to reduce unnecessary processing.
Alert forwarding preferences. Choose which question types trigger Telegram notifications. You might want alerts for permission requests and dangerous commands but not for routine clarifications.
Best Practices
Respond promptly. Agents stall while waiting for answers. Quick responses keep the development momentum going.
Check the AI Panel regularly. Make it a habit to glance at the AI Panel even when you are not actively interacting with agents. A pending question might be blocking progress.
Use Telegram for asynchronous supervision. If you manage long-running agent tasks, Telegram forwarding is essential. It turns Remocode into a managed AI coding environment rather than a tool that requires constant attention.
Question detection is what makes the difference between an AI agent that stalls silently and one that actively seeks your guidance when needed.
Ready to try Remocode?
Start with a 7-day Pro trial — no credit card required. Download now and start coding with AI from anywhere.
Download Remocodefor macOS