AI-Agent Roadbook CLI
Project description
Roadbook CLI
Welcome to Roadbook, your AI agent's "Wilderness Trekking Guide" for browser automation.
Standard web automation often relies on fixed scripts that easily break when websites change—like a rigid map in a shifting landscape. Roadbook solves this by acting as an Expedition Log. It provides not just the necessary steps, but also environment diagnosis and flexible operational guidance.
When your AI Agent (the Explorer) gets lost or a script fails, Roadbook (the System/Sherpa) provides the context and semantic hints needed to autonomously find a new path, fix the script, and complete the task.
Key Concepts
- Roadbook: The Expedition Log. It records key landmarks (UI features), required paths, and actionable advice to dynamically navigate web interfaces.
- Agent: The Explorer. The AI agent that reads the Roadbook, makes decisions, and performs visual/semantic reasoning when standard scripts fail.
- Guide/CLI: The CLI and runtime system that handles the heavy lifting (browser driving, context management) and provides semantic guidance.
Installation
Install via pip (Recommended)
When Roadbook is published to PyPI, you can install the CLI directly:
pip install roadbook
Install from Source
To install the latest version from source, clone the repository and install it in editable mode:
git clone https://github.com/roadbook-site/roadbook-cli.git
cd roadbook-cli
pip install -e .
Quick Start & Examples
Roadbook is designed to be used in two main phases: Exploring (creating the roadbook) and Executing (running the task).
1. Creating a New Roadbook (Explorer Phase)
Initialize a new roadbook via the CLI. This sets up the necessary workspace and scaffolding, allowing an agent to explore a website and test interactions.
# Initialize a new roadbook for searching on Amazon
roadbook init my-first-task --description "Search for a product on Amazon" --entry-url "https://www.amazon.com"
This creates a new directory in your project containing the standard roadbook.md template and starter test scripts to begin exploration.
2. Executing a Roadbook (Executor Phase)
You can run a roadbook automatically (if a stable script exists) or in interactive guide mode where the agent gets semantic instructions to explore the environment.
# List available local roadbooks
roadbook list
# Run roadbook via script execution
# This will attempt to use pre-compiled automation scripts for fast execution.
roadbook run my-first-task
3. Managing Roadbooks
The CLI provides tools to organize and review execution logs.
# View detailed information about a single roadbook
roadbook inspect my-first-task
# Link local roadbooks to the global library to share across your machine
roadbook link
# View execution logs and history for a specific roadbook
roadbook logs list my-first-task
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file roadbook-0.1.4.tar.gz.
File metadata
- Download URL: roadbook-0.1.4.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
396208d7b9a818496b5f05b95817b19a5e9e7f29b18a130a262a4d1d0f31197c
|
|
| MD5 |
f6f2f72d666ad9c31209c9958c6e8362
|
|
| BLAKE2b-256 |
2883a5d15c19068cb543cd5ac32d8b62d9e90301db5dc9767f942216bf1f0593
|
File details
Details for the file roadbook-0.1.4-py3-none-any.whl.
File metadata
- Download URL: roadbook-0.1.4-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcd1abd2cf79bff8f477517f27f64bf38778657d9a511c554f42895573a9ece5
|
|
| MD5 |
d4010fda646bec2b9482b93272c7e5e1
|
|
| BLAKE2b-256 |
e04235aa6fd6fe25ec32400e6224b00ff203487ca641d154b98e1c9f65f359a4
|