Skip to main content

AI-Agent Roadbook CLI

Project description

Roadbook CLI

English | 简体中文

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

# Option 1: Run via Fast Path (Automatic Script Execution)
# This will attempt to use pre-compiled automation scripts for fast execution.
roadbook run my-first-task

# Option 2: Run via Interactive Guide Mode (Semantic Exploration)
# Use this when the site has changed or no script exists. It displays the full markdown Roadbook to guide the agent in completing the steps.
roadbook run --guide 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

roadbook-0.1.2.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roadbook-0.1.2-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file roadbook-0.1.2.tar.gz.

File metadata

  • Download URL: roadbook-0.1.2.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

Hashes for roadbook-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d6f0d5eecd580a0a67b2eafa9ec9c83825efecd6c3fc8123cbab80fcbb042d60
MD5 0598c80895762724b56fc3a41b05c90c
BLAKE2b-256 422612ec538095030bbfa3e209bc2675ce58d949d68ccfc1c04ff214579002ce

See more details on using hashes here.

File details

Details for the file roadbook-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: roadbook-0.1.2-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

Hashes for roadbook-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 015b34e19059fe1ae9219361f637686f50bff1bcab3fe6a155f13185976b22b1
MD5 6f8427ba97ffe7ad24bbab5e891a3c79
BLAKE2b-256 230987d3e6ab7c17ebcf5f9f664085dd96818abd27b9a74b4a8d2214475320fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page