diff --git a/README.md b/README.md index 4e6301669..1a91e9b3a 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,38 @@ await browser.disconnect(); ``` +### Agent mode + +`lightpanda agent` lets you drive the browser with a native agent. Describe what +you want in plain English or with slash commands, and it controls the browser: +navigating pages, clicking through flows, filling forms, extracting structured +data. Think of it as a robot you're directing to use the web, more than a +chatbot you're having a conversation with. + +Because the agent runs inside the same process as the browser, every tool call +is a direct operation and you retain Lightpanda's speed and memory advantage. + +The output of an agent session is a +[PandaScript](https://lightpanda.io/docs/usage/pandascript): vanilla JavaScript +with a small set of native browser primitives built directly into Lightpanda. +Run `/save` to export one from your current session, then replay it with +`lightpanda agent