bak lets a human set up a real Chromium browser for an agent through an auto-managed local runtime, a paired extension, and explicit session-owned browser state.
If you want to install bak for your own agent:
If you are handing this repo to an agent:
If you are onboarding as a contributor:
- Install, upgrade, and verify the auto-managed runtime: docs/user/quickstart.md
- Learn the day-to-day CLI surface: docs/user/cli-guide.md
- Recover from runtime or targeting problems: docs/user/troubleshooting.md
- Browse the full docs map: docs/README.md
bak session ...is the default agent surface for dedicated browser state.bak session resolveis the normal way to find-or-create that state from a stable client identity, andbak session close-tabis the normal way to close a session-owned tab.- Browser-affecting commands auto-resolve a session with this precedence:
--session-id>BAK_SESSION_ID>--client-name>BAK_CLIENT_NAME>CODEX_THREAD_ID. bak page,bak element,bak context,bak debug,bak network,bak table,bak inspect,bak capture,bak keyboard,bak mouse, andbak fileoperate on the current resolved session tab by default.bak tabs list,bak tabs get, andbak tabs activeremain browser-wide diagnostics.bak tabs new,bak tabs focus, andbak tabs closeare recovery-only compatibility commands that operate on the resolved session, not arbitrary browser tabs.- Closing the last tab in a session auto-closes that session. When all sessions are closed, the managed background runtime auto-stops. Foreground
bak serveremains an advanced debug path and does not auto-stop. - Explicit
sessionIdvalues are still useful for handoff, debugging, and cross-process reuse, but they are no longer the default agent workflow. bak callremains the fallback for protocol-only methods.
Public terminology is session plus tabs. Older workspace wording is obsolete in the user-facing CLI.
- Runtime recovery and visibility:
bak doctor --fixrepairs safe local runtime/config drift, andbak session dashboardgives one JSON view of runtime health plus per-session tab ownership and current frame or shadow depth. - Multimodal page verification:
bak page snapshot --annotateandbak debug dump-state --include-snapshot --annotate-snapshotreturn numbered@eNrefs plusactionSummary, and--diff-withadds structured before/after interaction diffs. - Policy workflow:
bak policy status,bak policy preview,bak policy audit, andbak policy recommendexpose the current safety posture, dry-run decisions, recent policy traces, and conservative rule suggestions without silently rewriting.bak-policy.json. - Dynamic data intelligence:
bak inspect page-datanow reportsdataSources,sourceMappings, andrecommendedNextActions, whilebak table list/schema/rows/exportsurfaceintelligenceorextractionmetadata so agents can tell whether a virtualized table read is complete or partial.