Skip to main content

agnt - Browser Superpowers

agnt gives Claude Code browser superpowers: reverse proxy, live screenshots, sketch mode, and comprehensive web application diagnostics.

Why agnt?

Real-Time Browser Debugging

Debug your web applications directly from Claude Code. No more context switching between browser DevTools and your AI assistant.

Key Features

  • 🔄 Reverse Proxy: Route browser traffic through Claude Code for debugging
  • 📸 Screenshots: Capture page states for UI review and documentation
  • ✏️ Sketch Mode: Wireframe and annotate directly on web pages
  • 🔍 Diagnostics: JavaScript error detection, performance analysis, accessibility audits
  • 🔔 Notifications: Browser notifications for file changes and task completion

Installation

# Install from marketplace
claude mcp add-dir https://github.com/standardbeagle/standardbeagle-tools
claude mcp add agnt --source ./plugins/agnt

# Or install directly
claude mcp add agnt --source ./plugins/agnt

Available Commands

CommandDescriptionExample
/setup-projectConfigure auto-start scripts and proxies/setup-project
/dev-proxyStart dev server with reverse proxy/dev-proxy
/screenshotCapture current browser page/screenshot
/sketch-modeOpen wireframing overlay/sketch-mode
/check-errorsCheck for JavaScript errors/check-errors
/audit-a11yRun accessibility audit/audit-a11y
/audit-performanceAnalyze page performance/audit-performance
/audit-seoSEO best practices check/audit-seo
/audit-securitySecurity vulnerability scan/audit-security
/analyze-uxUX heuristic analysis/analyze-ux
/qa-testComprehensive QA testing/qa-test
/review-apiReview API calls and responses/review-api
/stop-allStop all running processes/stop-all

Usage Examples

Start Development Environment

# In Claude Code session
/setup-project

# Start dev server with proxy
/dev-proxy --port 3000

Debug Frontend Issues

# Check for JavaScript errors
/check-errors

# Take a screenshot for review
/screenshot

# Analyze performance
/audit-performance

Run Accessibility Audit

# Comprehensive a11y check
/audit-a11y

# Output includes:
# - WCAG 2.2 compliance issues
# - Keyboard navigation problems
# - Screen reader compatibility
# - Color contrast violations

Use Sketch Mode

# Open sketch overlay
/sketch-mode

# Draw wireframes and annotations
# directly on the browser page

Session Management

agnt includes automatic session lifecycle management:

  • SessionStart: Connects to agnt daemon
  • PreToolUse: Heartbeat to keep session alive
  • PostToolUse: Activity tracking and notifications
  • Stop: Clean disconnect from daemon

Configuration

Project Configuration (.agnt.kdl)

Create .agnt.kdl in your project root:

scripts {
start "npm run dev"
test "npm test"
build "npm run build"
}

proxies {
frontend {
from "localhost:3000"
to "localhost:8080"
}
api {
from "localhost:3001"
to "localhost:8081"
}
}

Environment Variables

# Session code for multi-session support
export AGNT_SESSION_CODE="my-session"

# Project directory override
export CLAUDE_PROJECT_DIR="/path/to/project"

MCP Server

agnt includes an MCP server providing tools for:

  • Browser navigation and interaction
  • Screenshot capture
  • DOM inspection
  • Network traffic monitoring

NPM Package

npm install @standardbeagle/agnt

MCP Configuration

{
"mcpServers": {
"agnt": {
"command": "npx",
"args": ["-y", "@standardbeagle/agnt@latest", "mcp"]
}
}
}

Agents

browser-debugger

Specialized agent for debugging browser issues:

  • Analyzes JavaScript errors
  • Inspects network requests
  • Diagnoses performance problems
  • Suggests fixes with code examples

process-manager

Manages development processes and servers:

  • Starts/stops dev servers
  • Monitors process health
  • Handles automatic restarts

ui-designer

Provides UI design feedback:

  • Analyzes layout and composition
  • Suggests improvements
  • Creates wireframes in sketch mode

Hooks

agnt includes comprehensive lifecycle hooks:

HookScriptPurpose
SessionStartsession-start.jsInitialize session
SessionStartsession-connect.jsRegister with daemon
PreToolUsesession-heartbeat.jsKeep session alive
PostToolUsesession-activity.jsTrack activity
PostToolUsenotify-file-change.jsBrowser notifications
PostToolUseFailuresession-error.jsError handling
Stopsession-disconnect.jsCleanup

Troubleshooting

Daemon Not Running

# Start agnt daemon
agnt daemon start

# Check daemon status
agnt daemon status

Port Conflicts

# Use different port
/dev-proxy --port 3001

Screenshot Fails

  1. Ensure browser is connected via proxy
  2. Check page has finished loading
  3. Try refreshing the page

Version History

VersionChanges
0.7.12Cross-platform Node.js hooks
0.7.11Added workflow-engine hook
0.7.10Session chain support