Integrated Browser
Open a web page in an editor tab with the Open Browser button in the title bar or Open Integrated Browser in the Command Palette. For a local app, enter its dev-server URL in the address bar. The agent’s browser pages appear in a panel above the chat composer.
If an agent-started dev server cannot launch, the tool result shows the launch failure reason. A server that launches but does not serve the expected port reports a separate readiness failure.
Agent browsing
Section titled “Agent browsing”When the agent first uses the browser, a compact panel appears on top of the chat input: Browsing, the page title and address, and two icon buttons, Open in editor and Close (hover them for their names). When the chat has several pages, the panel folds them into one line that names the page the agent is on and how many more there are; expand it to see every page with its own buttons. A site’s permission request stays visible while the list is folded. It says Waiting for you during a sign-in handoff. Browsing runs in a hidden page; your editor stays in place. Open in editor reveals that exact live page, including its current form values, without opening a duplicate or reloading it. Each page has its own controls, including sign-in popups and pages opened by sub-agents; a worker’s name identifies its pages in the parent chat.
New page starts a separate page, even when another page already has the same address. Earlier pages and their forms stay in the panel. Continue existing page selects an earlier page for the agent to work on without reloading it. Ask the agent to start a new page for separate work, or to continue a particular page when you want it to use an existing form.
Browser actions appear in chat like other tools, each marked with a globe. A screenshot shows under its action as a thumbnail; click it to see it over the whole window. Scroll over the picture to zoom in and out around the pointer, drag the picture to move it at any zoom, and click the percentage (or double-click the picture) to fit it again. Close it with the X, by pressing Escape or by clicking outside the viewer; a click in the space around the picture keeps it open. A failed action is shown in red.
Approvals appear on the action in chat. The selected permission policy still applies; opening a page does not approve an action. When a hidden page asks for something like your location, the panel shows the request with Allow and Block. A sign-in handoff keeps the panel available while the page waits for you.
When the agent finishes its reply, the panel shows Completed and keeps the pages available. A browser Stop, cancelled reply, error or completed sub-agent also keeps owned pages and their unsaved forms. You can use each page’s Open in editor while the chat is idle or after later browser runs have finished. Closing one page leaves the others available. Completed sub-agents’ pages remain accessible from their parent’s panel.
Stop cancels browser automation and pending input while keeping an owned page open. Close, closing its editor tab, or the agent’s explicit close action ends the page. Once the last page is closed, the panel disappears, even while the agent keeps working on other tools; it comes back when the agent uses the browser again. An agent-requested close follows the action permission policy. A browser-started dev server keeps running while its owner still has an owned page; closing the last owned page stops that server.
Deleting the owning chat also cleans up its completed sub-agents’ browser resources. Pages you already opened in the editor and shared user tabs stay open.
To share your own tab, select it in the editor and ask the agent to use it. The confirmation shows the tab, site origin, and chat that will receive access. Select Share Tab to let that chat read and interact with the page. The panel offers Release to end that access. Release and browser Stop remove the chat’s automation access while leaving your tab open. Pages in another chat stay separate.
Form retention lasts while that live document remains open in the running app. Save or submit important drafts before reloading the page, using Reload Window or restarting Kodik, because those operations can recreate the document. When the agent shares a picture through show_widget, that widget remains in chat after the browser closes and after Reload Window, and can use a saved browser capture without taking another screenshot.
The browser tool works in the background. It finds controls by their accessible role or label, including names supplied by aria-labelledby and controls inside frames or open shadow roots. Text targeting uses the smallest matching element; two matching targets require a more specific locator, and the error names the matches and the accessible name it searched for.
Before clicking or filling, the agent waits up to five seconds for the target to be visible, enabled and steady. A disabled or covered control fails instead of reporting a successful click. Taking control or cancelling a browser operation prevents pending input from continuing.
The agent sees a popup or download once, in the result of the action that caused it. An open dialog or file chooser appears in every result until the agent answers it.
When a page fails to load, for example because nothing is listening on that port, the page snapshot shows the load error. The agent can open another page right away, without going back first.
Large snapshots remain bounded. The agent can read omitted content with snapshot and a strict selector, locator or current ref, restrict the read with frame, or request interactive: true to show only controls. Each changed observation supplies fresh refs. A scoped snapshot reads without moving the page or focusing a control. It also works while the browser page is hidden, without waiting for the page to repaint.
Text the agent enters in a sign-in, password, code or unlabeled field stays hidden as [redacted] in what it reads from that page afterwards, until the page is closed. Ordinary fields such as names, search, comments and text keep their values visible.
Opening a page in your external browser
Section titled “Opening a page in your external browser”The toolbar beside the address bar uses an element-picker icon to select page content, an image icon to add a screenshot to chat, and a terminal icon to add browser logs. The arrow opens the current page externally, and the three dots open more browser actions.
When a page is open, click Open in External Browser beside the address bar to open its current URL in your external browser. The button is hidden on an empty browser tab.
Find text on a page
Section titled “Find text on a page”With a browser tab active, press Ctrl+F (Cmd+F on macOS) or choose Find in Page from the browser’s three-dot menu. Enter the text to highlight matches. Use Enter or Shift+Enter to step through them, and Escape to close Find.
Device emulation
Section titled “Device emulation”Open a page, then choose Device Emulation from the browser’s three-dot menu. Set the viewport width and height, drag the viewport handles, or choose Apply Preset. The toolbar also controls scale, mobile input, and the user agent. The chosen viewport stays in place as you navigate in the tab. Close the toolbar to return to the normal viewport.
Sign-in windows
Section titled “Sign-in windows”When you click a sign-in button that opens a popup, Kodik shows it in a separate small window at the size the site requested. It can return the sign-in result to the original page and close itself. The original page remains available and can open another sign-in window afterwards.
Agent-opened popups stay hidden until you choose Open in editor in the browser panel, which shows the popup once it opens. The live opener and sign-in result are preserved.
Popups a site tries to open without a click are blocked.
Saved credentials
Section titled “Saved credentials”Run Kodik: Save Browser Credential from the Command Palette to save a label, username and password for an exact http:// or https:// origin. Kodik keeps the password in secret storage; the agent sees only the credential’s label and opaque ID. When the agent fills a saved credential, it reports whether it filled the username and password or only the password.
To delete a saved credential, run Kodik: Remove Browser Credential and select it by its label and origin. Kodik confirms the removal. Cancelling the picker keeps your credentials, and removing one leaves the others available.
Searching from the address bar
Section titled “Searching from the address bar”The address bar takes a search as well as an address. Anything that reads as an address is opened as one — a scheme (https://, file:), localhost:3000, an IP address, a host with a port or a known suffix, a path with a trailing slash. Anything else is searched.
Set the engine in Settings under workbench.browser.searchEngine:
- Google (default), Bing, Yahoo!, DuckDuckGo
- None — never search: what you type is opened as an address, as it was before.
History
Section titled “History”Browser: History in the Command Palette lists the pages visited in the browser, newest first, each under the title it reported and beside its address. Pick one to go back to it, or pick Clear browsing history to empty the list. The default limit is 200 entries per storage scope. Set Maximum History Entries under Kodik Settings → Browser to change it.
History follows the same storage as the cookies of those pages (see below), and Browser: Clear Storage clears it along with them.
Reloading a local file automatically
Section titled “Reloading a local file automatically”A page opened from a file:// path reloads itself when that file changes on disk, so an HTML file edited beside the browser shows its new state without a Reload. A burst of writes reloads once, and a hidden tab waits until you come back to it.
- Browser: Toggle Auto Reload on File Change turns it off (or back on) for the current tab only.
workbench.browser.autoReloadOnFileChangeturns it off everywhere.
Pages served over the network are never watched: a dev server reloads its own pages.
Network domain policy
Section titled “Network domain policy”Network filtering is off by default. To restrict Integrated Browser requests, enable kodik.browser.networkFilter and configure kodik.browser.allowedNetworkDomains and kodik.browser.deniedNetworkDomains in Settings. These settings apply to the whole application.
Use domains such as example.com or *.example.com; the wildcard also includes the domain itself. Denied domains take precedence. With filtering enabled and both lists empty, all network domains are blocked. With only denied domains configured, other domains remain allowed. Local files are unaffected.
Explicit restrictions supplied by native Browser callers remain enforced even when the global filter is off. Stored chat.agent.networkFilter and chat.agent.sandbox.network.* settings from the removed stock Chat agent are ignored; they are not copied into the native Browser policy.
Site permissions
Section titled “Site permissions”Pages ask for capabilities the same way they do in Chrome: a location lookup, a camera or microphone stream, desktop notifications, reading the clipboard.
The first time a site asks, a prompt appears above the page naming the site and what it wants, with Allow and Block. The answer is recorded for that site’s origin — scheme, host and port — so the site is asked once, and every page of it is covered.
| Capability | Before you answer |
|---|---|
| Location | Denied |
| Camera | Denied |
| Microphone | Denied |
| Notifications | Denied |
| Clipboard (reading) | Denied |
| Sensors | Allowed |
Full-screen, pointer lock and writing to the clipboard are always allowed and are never recorded, as in Chrome. Hardware devices — USB, serial, HID and Bluetooth — are not available to pages at all.
A prompt nobody answers within 30 seconds is left undecided, which the page sees as a refusal, and the site is asked again next time.
Reviewing and changing a decision
Section titled “Reviewing and changing a decision”Run Browser: Site Permissions from the Command Palette while a page is open. The list shows every capability and what it currently resolves to for that site — Allowed, Blocked, or Ask every time. Pick one to change it; choosing Ask every time forgets the recorded decision, so the next request prompts again.
Where decisions are stored
Section titled “Where decisions are stored”Set Data Storage in Kodik Settings → Browser (workbench.browser.dataStorage). The choice applies to site data, browser history, and permission decisions.
- global — the default. Browser tabs share a persistent session across workspaces.
- workspace — tabs in the current workspace share a persistent session. A window without a workspace uses temporary storage in this mode.
- ephemeral — each tab uses temporary storage that is cleared when it closes. Untrusted workspaces always use this option.
Browser: Clear Storage clears recorded decisions along with the rest of the site data.
Browser automation preserves line breaks when filling or typing multiline text into a textarea, including blank lines and Unicode characters. Pressing Enter in a textarea inserts a new line unless the page handles the key itself.
Browser automation supports native HTML drag and drop. After a drop, the page continues accepting regular mouse input.
For browser automation scroll actions, positive vertical distances scroll down and positive horizontal distances scroll right. Negative distances scroll up or left; the action card shows the same direction.


