| name | executing-learning |
| description | Build debug binary, launch headed Chrome, explore a website to learn its navigation and features, file bugs found using /creating-issues. |
| argument-hint | [url] |
| disable-model-invocation | true |
Executing Learning
Build the debug binary, launch Chrome in headed mode, and explore a website to learn how to navigate it using agentchrome. Exercise every relevant command group (navigate, page, interact, form, tabs, js, console, network, emulate, perf, dialog) against the site. Any bugs, broken commands, or missing functionality discovered during exploration should be filed as GitHub issues.
Default Target
https://www.saucedemo.com/ — a demo e-commerce site with login, inventory, cart, and checkout flows.
If an argument is provided, use that URL instead:
When to Use
- Learning how agentchrome interacts with a new website
- Exploratory testing of agentchrome against real-world sites
- Discovering bugs through hands-on usage rather than systematic testing
- Validating that agentchrome can automate a specific site's workflows
Key Constraints
- Headed mode — launch Chrome without
--headless so you can observe the browser
- Explore organically — navigate the site like a user would, don't follow a rigid script
- Exercise breadth — try as many agentchrome commands as the site allows
- Note everything — track what works, what fails, and what's missing
- File bugs as GitHub issues — use the repository's normal issue workflow for each defect found
- Do NOT fix anything — only observe, analyze, and report
- Clean up Chrome — always kill Chrome processes when done
Workflow
/executing-learning [url]
│
├─ 1. Gather context (specs, steering docs)
├─ 2. Build debug binary
├─ 3. Launch headed Chrome
├─ 4. Explore the website
│ ├─ Navigate pages
│ ├─ Take snapshots, read accessibility tree
│ ├─ Interact with elements (click, type, scroll)
│ ├─ Fill and submit forms
│ ├─ Test tabs, screenshots, JS execution
│ ├─ Monitor console, network, dialogs
│ └─ Note bugs and missing functionality
├─ 5. Clean up Chrome
├─ 6. File defect issues
└─ 7. Summary report
Step 1: Gather Context
- Read
steering/product.md for product vision and command inventory
- Read
steering/tech.md for build instructions
- Read
steering/structure.md for code organization (useful for root cause analysis)
- Determine the target URL:
- If
$ARGUMENTS is provided and is a valid URL, use it
- Otherwise, default to
https://www.saucedemo.com/
Step 2: Build Debug Binary
- Run
cargo build (debug mode)
- If the build fails, stop immediately and report the failure
- Set
CLI to ./target/debug/agentchrome for all subsequent commands
Step 3: Launch Headed Chrome
- Run
./target/debug/agentchrome connect --launch (no --headless flag)
- Verify the connection succeeded by checking the output for a port number
- If launch fails, report the error and stop
Step 4: Explore the Website
Navigate to the target URL and explore it organically. The goal is to learn the site's structure and exercise agentchrome's capabilities against real content.
4a: Initial Reconnaissance
- Navigate to the target URL:
agentchrome navigate <url>
- Take an accessibility snapshot:
agentchrome page snapshot
- Take a screenshot:
agentchrome page screenshot --file /tmp/learning-initial.png
- Extract page text:
agentchrome page text
- Read the snapshot to understand the page structure and available interactive elements
4b: Navigate the Site
Explore the site by interacting with links, buttons, and forms discovered in snapshots:
- Click navigation elements — use
interact click <uid> on links and buttons
- Fill forms — use
form fill <uid> <value> on input fields
- Navigate back/forward — test
navigate back and navigate forward
- Open new tabs — test
tabs create <url> for interesting pages
- Take snapshots at each page —
page snapshot to understand new content
- Take screenshots —
page screenshot to capture visual state
At each page, ask yourself:
- What can a user do here?
- What interactive elements exist?
- What would an AI agent need to automate this page?
4c: Exercise Command Groups
As you explore, systematically try these command groups against the site's content:
| Command Group | What to Try |
|---|
| navigate | URL, back, forward, reload |
| page | snapshot, text, screenshot, find, resize |
| interact | click, hover, scroll, key, type |
| form | fill, fill-many, clear |
| tabs | list, create, activate, close |
| js | exec various expressions against page content |
| console | read, follow (briefly) |
| network | list requests during navigation |
| emulate | set viewport, color-scheme |
| perf | vitals |
| dialog | info (if dialogs appear) |
| dom | try it even though it may not be implemented |
4d: Track Findings
As you explore, maintain a mental inventory of:
- Working commands — commands that behave correctly
- Bugs — commands that produce incorrect output, timeout unexpectedly, or crash
- Missing functionality — things you can't achieve with current commands
- Unexpected behavior — things that work but behave surprisingly
For each finding, note:
- The exact command and arguments
- stdout, stderr, and exit code
- What you expected vs what happened
- Which page/state you were on
Step 5: Clean Up Chrome
- Disconnect:
agentchrome connect disconnect
- Kill any orphaned Chrome processes:
pkill -f 'chrome.*--remote-debugging' || true
- Verify cleanup:
pgrep -f 'chrome.*--remote-debugging' || echo "clean"
Step 6: File Defect Issues
For each bug or missing functionality found in Step 4, file a GitHub issue with:
- A description of the defect or enhancement need
- The exact reproduction steps (CLI commands used)
- Expected vs actual behavior
- Root cause analysis (read source code if helpful)
Do NOT attempt to fix any issues. Only observe, analyze, and report.
Step 7: Summary Report
Output a summary of the exploration:
## Exploration Summary
**Target**: [url]
**Commands Tested**: [count]
**Pages Visited**: [count]
### Working Commands
| Command | Notes |
|---------|-------|
| navigate <url> | Navigated successfully to all pages |
| page snapshot | Accessibility tree captured correctly |
| ... | ... |
### Issues Found
| # | Title | Type |
|---|-------|------|
| #NNN | [title] | Bug |
| #NNN | [title] | Enhancement |
| ... | ... | ... |
### Missing Functionality
- [Things you couldn't do with current commands]
Total: X commands tested, Y issues filed
Tips for Effective Exploration
- Read snapshots carefully — the accessibility tree UIDs (s1, s2, ...) are your primary way to target elements
- Try edge cases — empty forms, rapid navigation, multiple tabs
- Test error paths — invalid selectors, nonexistent elements, timeouts
- Compare JSON output — check that structured output is complete and correct
- Use
--json and --plain — verify output format flags work
- Chain commands — test realistic multi-step workflows (login → browse → add to cart → checkout)