/**
* DeveloperTools Documentation Section
*
* Covers the debug panel, agent logs tab, dev server logs,
* terminal, dev server control, and per-agent logs.
*/
import { Badge } from '@/components/ui/badge'
export function DeveloperTools() {
return (
{/* Debug Panel */}
Debug Panel
-
Press D to toggle the debug panel at the bottom of the screen
- Resizable by dragging the top edge
-
Three tabs: Agent Logs,{' '}
Dev Server Logs, and{' '}
Terminal
- Shows real-time output from agents and dev server
{/* Agent Logs Tab */}
Agent Logs Tab
-
Color-coded log levels:{' '}
Error,{' '}
Warning,{' '}
Info,{' '}
Debug,{' '}
Success
- Timestamps on each log entry
- Auto-scrolls to latest entry
- Clear button to reset log view
{/* Dev Server Logs Tab */}
Dev Server Logs Tab
-
Shows stdout/stderr from the project’s dev server (e.g.,{' '}
npm run dev)
- Useful for seeing compilation errors, hot reload status
- Clear button available
{/* Terminal */}
Terminal
-
Press T to open terminal (opens debug panel on the terminal tab)
- Full xterm.js terminal emulator with WebSocket backend
- Multi-tab support: create multiple terminal sessions
- Rename tabs by double-clicking the tab title
- Each tab runs an independent PTY (pseudo-terminal) session
- Supports standard terminal features: colors, cursor movement, history
{/* Dev Server Control */}
Dev Server Control
- Start/stop button in the header bar
-
Auto-detects project type (Next.js, Vite, CRA, etc.) and runs the appropriate dev command
- Shows the dev server URL when running
- Automatic crash detection and restart option
- Dev server output piped to the Dev Server Logs tab
{/* Per-Agent Logs */}
Per-Agent Logs
- In Agent Mission Control, click any agent card to see its individual logs
-
Logs include: what feature the agent is working on, code changes, test results
- Separate logs for coding agents and testing agents
- Real-time streaming — see agent output as it happens
)
}