feat: Stagehand natural-language browser tool

Add tools/stagehand, a browser tool built on the Stagehand Go SDK
(act/observe/extract/navigate/get_text/screenshot) with persistent named
sessions. Runs on local Chrome by default or Browserbase when an API key
is configured. Stagehand's internal inference is routed through the
harness LLMProvider via NewGenerateFunc, so it shares the agent's
provider, usage observers and admission guards.

The Stagehand SDK requires Go 1.26, so the module now declares go 1.26.0.
This commit is contained in:
sausheong committed 2026-09-28 01:25:08 +08:00
1 parent 62f3424f30
commit d47a71f779
9 files changed
+1369 -7

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
# Writing agents with harness
This guide walks you through building agents on top of `harness`. It assumes
you've read [`README.md`](./README.md) and have a Go 1.25+ project that depends
you've read [`README.md`](./README.md) and have a Go 1.26+ project that depends
on `github.com/sausheong/harness`.
> Two complete examples ship in [`examples/`](./examples) — `minimal/` (file +