Markdown source

sderosiaux/chrome-agent

What It Is

sderosiaux/chrome-agent is an independent Rust command-line project for agent-oriented browser automation through Chrome DevTools Protocol (CDP). Its public repository describes compact accessibility-tree snapshots, stable backend node identifiers, browser actions, inspection, and content extraction as parts of its interface.

How To Use It

The project's documented quick path is npx chrome-agent --help for a no-install run, or npm install -g chrome-agent for the prebuilt CLI. Its default loop is inspect, act, inspect: navigate with --inspect, use the returned UID, then request another inspection after an action.

Code
# Start from the built-in CLI guide, then navigate and receive an a11y snapshot.
npx chrome-agent --help
chrome-agent goto https://example.com --inspect

# Act on a returned UID and immediately inspect the next state.
chrome-agent click n12 --inspect

# Extract content without writing a selector.
chrome-agent read
chrome-agent extract

# Obtain structured output when another program or agent consumes it.
chrome-agent --json inspect --urls --filter link

For a real application, use inspect to get current UIDs, fill or select by UID, wait for an observable condition instead of sleeping, then inspect again. UIDs remain useful while their underlying DOM node exists, but a navigation or re-render can invalidate them.

Effective Use Cases

SituationUseful approachWhy this tool fits
LLM-driven browsing where context size mattersUse goto ... --inspect, then operate on compact a11y UIDs.The project is designed to reduce page-state tokens and avoid hand-authored selectors for ordinary interactions.
Repeated list, feed, card, or table extractionStart with extract; for React-style pages, use extract --a11y --scroll --limit N.The CLI provides built-in repeated-content extraction before requiring site-specific scripts.
Readable article captureUse read, then scope or cap output with text when needed.Its Readability-based command is a concise alternative to inspecting an entire application DOM.
Fast interaction loopsAdd --inspect to actions; use batch or pipe for a sequence of commands.It combines state observation with actions and can avoid repeated process startup.
UI and API debuggingUse console --level error, network --filter, and wait network-idle.The CLI exposes browser-visible errors, requests, and an observable readiness condition.

Operating Tricks And Guardrails

Why It Appears In This Wiki

This project was found accidentally during third-party validation of the similarly named chrome agent associated with Corey Gallon's scheduled World's Fair session. The initial repository match was wrong: this Rust project is not Corey Gallon's work. It is retained as a clearly labeled alternative because the name collision and technical overlap are useful comparison context.

Comparison Context

The scheduled chrome agent is Corey's Python CDP CLI at captivus/chrome-agent. This project is a separate Rust implementation at sderosiaux/chrome-agent; neither repository establishes facts about the other's author, release line, or World's Fair session. The implementation delta records the distinction.

Source Boundary

No official World's Fair schedule, speaker record, event recording, transcript, slide, or official AI Engineer source connects this repository to Corey Gallon or to the 2026 event. This page is supporting external comparison context from the project's public GitHub repository only, not first-class AIE evidence.

Public Sources

Related Pages