Compare commits

...

1269 Commits

Author SHA1 Message Date
Nikhil Sonti
b0e3c29f86 test: clarify sdk suite disable message 2026-04-15 17:06:54 -07:00
Nikhil Sonti
0da424675a test: temporarily skip sdk suite 2026-04-15 17:01:13 -07:00
Nikhil Sonti
94d55f5cf1 fix: address PR review comments for 0415-fix_all_tests_and_issues 2026-04-15 16:53:59 -07:00
Nikhil Sonti
5374b6a90c fix: run full root test suite and repair sdk browser context 2026-04-15 16:38:57 -07:00
Nikhil Sonti
93d080b646 fix: time out ACL semantic fixture subprocess 2026-04-15 15:56:09 -07:00
Nikhil Sonti
3c2232ffef fix: isolate ACL semantic tests from Bun teardown crash 2026-04-15 15:41:05 -07:00
Nikhil
dc26ff2554 chore: bump server, offset & patch for release (#715) 2026-04-15 14:43:22 -07:00
Nikhil
718902a4c7 test(server): reap orphaned test browsers before spawn (#714)
Pre-kill BrowserOS processes whose --user-data-dir path contains the
browseros-test- prefix before each spawnBrowser, and in the test:cleanup
hook. This prevents a crashed prior test run from leaving a headless
BrowserOS attached to a stale port, without touching the developer's
regular BrowserOS.app instance (its user-data-dir is
~/Library/Application Support/BrowserOS, which does not match).
2026-04-15 14:20:21 -07:00
Nikhil
357821de6f feat: support changing proxy port via pref (#712) 2026-04-15 14:15:20 -07:00
Nikhil
d34bc64a67 feat: extension alpha support + refactor (#713)
* feat: support override alpha extension

* chore: rename the constexpr for agent
2026-04-15 14:14:48 -07:00
Nikhil
3423b31aa8 fix(openclaw): normalize openrouter model slug and stream gateway logs in dev (#711)
OpenRouter's public model slugs use dots in version numbers
(e.g. `anthropic/claude-haiku-4.5`), but openclaw's model registry only
recognises the dashed form (`claude-haiku-4-5`). Passing the dotted form
makes openclaw's registry lookup miss silently — the agent turn completes
with `stopReason=stop payloads=0` and the UI shows no reply. Rewrite dots
to dashes in the model portion for openrouter providers only so
copy-pasted OpenRouter slugs resolve correctly.

Also, in development mode:
  - Inject `logging.level: debug` into generated openclaw.json so the
    gateway emits debug-level entries to its file log.
  - Patch an existing openclaw.json on start/restart so already-provisioned
    users pick up the debug setting without a reset.
  - Tail the gateway container's logs into the browseros server logger so
    they appear in the same stream as the rest of dev output.
2026-04-15 12:59:44 -07:00
Dani Akash
f1c108b2ed feat: mcp acl guard (#710)
* feat: guard MCP actions with persisted ACL rules

* chore: add safe OpenClaw lifecycle logging
2026-04-16 01:11:13 +05:30
Nikhil
bf643c68f4 refactor: remove redundant context-overflow middleware (#708)
* refactor: remove redundant context-overflow middleware

The middleware caught provider overflow errors and re-tried with a
naive prompt truncation, but its `nonSystem.slice()` had no awareness
of tool_use/tool_result pairing — a cut between an assistant tool_use
and the matching tool_result produces an orphaned tool_use that
providers reject with a different error.

Compaction (`createCompactionPrepareStep`) already handles this safely:
`findSafeSplitPoint` walks past tool messages to preserve pair
integrity, and the pipeline (strip binary → prune → reduce outputs →
LLM summarize → sliding window) handles every overflow path before
the request leaves the agent.

Drops 426 lines: the middleware itself, its wiring in ai-sdk-agent,
and the matching test block + helpers in compaction.test.ts.

* docs: document BROWSEROS_AI_SDK_DEVTOOLS in .env.example

Surfaces the opt-in dev flag so contributors know it exists. Captures
every LLM call to .devtools/generations.json for post-hoc inspection.
2026-04-15 11:47:12 -07:00
Felarof
1c8edee557 feat: add project-level Claude Code skills for team (#709)
* chore: add auctor configuration

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: add project-level Claude Code skills for team

Adds 14 development workflow skills (brainstorming, planning, debugging,
TDD, code review, subagent-driven development, etc.) to .claude/skills/
so all team members get them automatically on pull.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 11:20:47 -07:00
Nikhil
1cca265427 fix: prepare wxt before typecheck in browseros-agent (#706)
The typecheck and compile scripts failed on fresh checkouts with
TS5083 because tsconfig.json extends .wxt/tsconfig.json, which is
gitignored and only generated by 'wxt prepare'. Run wxt prepare
before tsgo so the extended config and wxt.d.ts are always in place.
2026-04-15 09:24:25 -07:00
Nikhil
2171e71e8e feat: reimplement shared background klavis proxy (#694)
* feat: reimplement shared background klavis proxy

* fix: address review comments for 0413-klavis_connect_timeout_replan

* fix: address PR review comments for 0413-klavis_connect_timeout_replan
2026-04-15 09:22:55 -07:00
Dani Akash
aff8afd9a4 feat: role aware agents (#704)
* feat: add role aware agent creation

* feat: support custom role aware agents

* feat: add plain agent creation mode

* fix: validate custom role arrays
2026-04-14 19:13:23 +05:30
Dani Akash
0c96002cf5 fix: complete openclaw gateway recovery UX (#703)
* fix: complete openclaw gateway recovery ui

* fix: guard unknown gateway ui state

* fix: guard unknown openclaw status badge
2026-04-14 18:22:47 +05:30
Dani Akash
76e5dcb801 fix: harden openclaw gateway recovery (#702) 2026-04-14 17:53:33 +05:30
shivammittal274
a85f94de40 feat(cli): add strata commands for Klavis MCP integrations (#700)
Expose the 7 Klavis Strata MCP tools as CLI subcommands under
`browseros-cli strata`, so CLI users (claude-code, gemini-cli) can
discover and execute actions on 40+ external services.

Commands: check, discover, actions, details, exec, search, auth.
Includes discovery flow guidance in help text, integration tests,
and an "Integrations:" group in the root help output.
2026-04-14 17:32:05 +05:30
Dani Akash
6708ab834b fix: restore openai compatible openclaw providers (#699) 2026-04-14 14:15:11 +05:30
shivammittal274
007208d54b feat: add connector_mcp_servers tool for strata MCP server discovery (#698)
Agents connecting over MCP URL/CLI (like claude-code) had no way to know
which Klavis connectors were available or authenticated, causing them to
fall back to browser automation. This adds a connector_mcp_servers tool
that checks connection status and returns an auth URL when needed.
2026-04-14 13:09:30 +05:30
shivammittal274
dd85ae503f fix(openclaw): compose file path and extension auth (#697)
* fix(openclaw): compose file path after service dir move, loopback auth fallback

- Fix COMPOSE_RESOURCE path: services moved to api/services/openclaw/
  so the relative path needs one more parent directory traversal
- Fix requireTrustedAppOrigin middleware: Chrome extensions cannot set
  the Origin header (forbidden header name). When Origin is absent,
  fall back to checking the Host header is a loopback address. The
  server only binds to loopback so only local processes can reach it.
  Requests with an explicit non-trusted Origin are still rejected.

* fix: request header check

* chore: remove setup openclaw button

---------

Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>
2026-04-14 12:53:02 +05:30
Dani Akash
452906d3ca fix: first time run (#696)
* fix: openclaw creation

* fix: request formats

* ci: extend code quality to dev
2026-04-14 12:29:53 +05:30
Nikhil
0397d3e393 chore: release alpha: 0.0.83 (#695) 2026-04-13 18:00:52 -07:00
Nikhil
edd681012c refactor: consolidate services under api/services/ (#693)
Move openclaw/ and terminal/ service modules from src/services/ into
src/api/services/ so all server-side services live in one directory
alongside chat-service, klavis, mcp, and sdk. Update relative imports
in moved files and all callers.
2026-04-13 17:21:45 -07:00
Nikhil
ce7c209ba6 feat: add OpenClaw agent command center and terminal (#692)
* feat: agent command center new tab with OpenClaw conversation history

* feat: add web terminal for Podman container shell access

* feat: align agent command center with new tab

* fix: simplify agent command center styling

* style: polish agent terminal layout and theming

* style: simplify agent terminal styling

* fix: address PR review comments for OpenClaw routes

* fix: handle OpenClaw client start and error states

* fix: resolve remaining OpenClaw review comments
2026-04-13 17:06:48 -07:00
Nikhil
6548220bcb chore: merge pull request #690 (feat/acls-approvals)
feat: acl approvals
2026-04-13 09:45:46 -07:00
Neel Gupta
14eeba7c20 Feat: Improved ACL robustness with semantic and fuzzy matching (#665)
* feat: Add enhanced python-based ACL

* fix: Port enhanced ACL to TypeScript

* fix: greptile suggested bugs
2026-04-13 09:43:33 -07:00
Nikhil Sonti
3c629c5929 feat: tool approvals, governance dashboard, and execution history
- Add tool approval system with per-category approval configuration
- Build unified Governance dashboard (renamed from Admin) with pending
  approvals view and execution audit log
- Move execution history tracking into the app shell
- Extract buildChatRequestBody helper and add newtab system prompt
- Add approval config change detection for mid-conversation rebuilds
2026-04-13 09:43:30 -07:00
Nikhil
77dcd37000 feat: ACLs and support enforcing (#583)
* feat: add ACL rules for per-site element-level agent restrictions

Implement Access Control List (ACL) rules that let users block the agent
from interacting with specific elements on specific websites. Rules are
defined in a new Settings > ACL Rules page and enforced server-side in
executeTool() before any input tool handler runs.

- Shared ACL types and site pattern matching (packages/shared)
- Extension storage, settings UI with rule cards and add dialog
- Server-side guard in executeTool() checking tool+page+element
- Browser class extensions for element property resolution via CDP
- Visual overlay injection (red "BLOCKED" mask) via Runtime.evaluate
- Rules transported in chat request body alongside declinedApps

* fix: address review comments for ACL rules

- Add selector-to-property matching in matchesElement (tag, id, class)
- Remove scroll from guarded tools set (read-like action)

* fix: ACL site pattern matching fails on multi-segment URL paths

The glob-to-regex conversion used [^/]* for wildcard (*) which only
matches a single path segment. "*.amazon.com/*" failed to match
"www.amazon.com/cart/smart-wagon" because the trailing * couldn't
cross the slash between "cart" and "smart-wagon".

Fix: Split URL matching into hostname vs path parts. Path wildcards
now use .* to match across slashes. Also add simple domain matching
so users can just type "amazon.com" instead of "*.amazon.com/*".

* fix: wire up ACL overlay injection after take_snapshot

applyAclOverlays was defined but never called. Now triggers after
take_snapshot completes on pages matching ACL rules, so the agent
sees red "BLOCKED" overlays on restricted elements.

* refactor: rework 0326-acl_rules based on feedback
2026-04-13 09:42:45 -07:00
Nikhil
6d0dff7b1a feat: claw integration with browseros (#688)
* feat(openclaw): add foundation — paths constant, browseros-dir helper, static compose file

Add OPENCLAW_DIR_NAME to shared paths constant, getOpenClawDir() to
browseros-dir.ts, and a static docker-compose.yml resource file that
uses native .env variable substitution instead of YAML template strings.

* feat(openclaw): add PodmanRuntime container engine abstraction

Manages Podman CLI interactions: machine lifecycle (init/start/stop),
availability checks, command execution with streaming output, and
running container enumeration. Linux skips machine ops since Podman
runs natively.

* feat(openclaw): add config builder and container runtime

openclaw-config.ts: pure functions to build openclaw.json and .env files
from BrowserOS settings. Maps provider keys, sets permissive defaults
(full exec, cron, web search, MCP bridge to BrowserOS).

container-runtime.ts: compose-level abstraction over PodmanRuntime for
the browseros-openclaw project. Handles up/down/restart/pull, health
checks, .env file writes, and safe machine shutdown.

* feat(openclaw): add OpenClawService orchestrator

Main service managing the single OpenClaw container. Handles full
lifecycle (setup/start/stop/restart/shutdown), agent CRUD with config
rewrites and gateway restarts, chat proxy to /v1/chat/completions,
provider key updates, auto-start on BrowserOS boot, and status reporting.

* feat(openclaw): add API routes and server wiring

Add /api/claw/* routes for container lifecycle (setup/start/stop/restart),
agent CRUD (list/create/delete), chat proxy with SSE streaming, provider
key management, and log retrieval. Register routes in server.ts, add
OpenClaw auto-start on BrowserOS boot and graceful shutdown in main.ts.

* fix(openclaw): resolve type errors in service and podman runtime

Fix TIMEOUTS.TOOL_EXECUTION → TIMEOUTS.TOOL_CALL to match shared
constants. Fix ReadableStream undefined/null type mismatch in
PodmanRuntime.runCommand stream draining.

* feat(openclaw): add agents page UI with chat, create, and lifecycle controls

Add /agents route with AgentsPage showing OpenClaw status, agent list,
create dialog, and per-agent chat. Includes useOpenClaw hook for
server communication, AgentChat component with SSE streaming, and
sidebar navigation entry.

* feat(openclaw): add provider selector to setup flow

Add LLM provider selector using useLlmProviders hook. Filters out
OAuth-only providers, pre-selects the user's default, and passes
providerType/apiKey/modelId to the setup endpoint so OpenClaw gets
a working LLM configuration on first setup.

* feat(openclaw): per-agent provider selection

Each agent can now have its own LLM provider. The Create Agent dialog
includes a provider selector that passes providerType/apiKey/modelId
to the backend. The service writes per-agent model config to
openclaw.json and merges the API key into the container's .env file.

* fix(openclaw): write gateway auth token to openclaw.json

The gateway was returning 401 because auth.mode was set to "token"
without providing the actual token value. Now the token is written
to gateway.auth.token in openclaw.json so the gateway and our chat
proxy agree on the same token.

* feat(openclaw): add GatewayClient WebSocket RPC client

Persistent WS client for the OpenClaw Gateway protocol. Handles the
challenge → connect → hello-ok handshake (as openclaw-control-ui with
operator.admin scope), JSON-RPC with pending map + timeouts, and
auto-reconnect. Exposes typed methods for agents.list, agents.create,
agents.delete, and health.

* refactor(openclaw): simplify config to bootstrap-only, add /readyz health

Config no longer contains agents.list — agent CRUD is handled via WS RPC.
buildOpenClawConfig → buildBootstrapConfig, removed makeAgentEntry and
AgentEntry (agents managed by OpenClaw runtime). Added isReady() and
waitForReady() using /readyz for gateway readiness checks.

* refactor(openclaw): agent CRUD via WS RPC, per-agent chat targeting

Replace JSON mutation + restart with GatewayClient WS RPC calls for
agents.create, agents.delete, agents.list. Chat proxy now uses
model: "openclaw/<agentId>" for per-agent targeting. Setup writes
bootstrap config once then creates "main" agent via WS after gateway
starts. Container restarts only when a new provider env var is added.

* fix(openclaw): use agentId field in setup response mapping

Fix type error: GatewayAgentEntry uses agentId not id.

* fix(openclaw): log service progress through server logger

* feat(openclaw): WS streaming, device auth, MCP port fix (#687)

* feat(openclaw): WS streaming, device auth, MCP port fix

- Fix GatewayClient WS handshake: add Ed25519 device identity signing,
  Origin header, mode: cli (mode: ui requires device identity always)
- Add auto device pairing flow: generate client identity, attempt WS
  connect (triggers pending), approve via openclaw CLI, reconnect
- Replace HTTP /v1/chat/completions proxy with WS-based streaming that
  surfaces tool calls, thinking blocks, and text deltas
- Add chatStream() to GatewayClient returning ReadableStream of typed
  OpenClawStreamEvent (text-delta, thinking, tool-start/end, lifecycle)
- Update chat route to stream WS events as SSE to the extension
- Pass actual server port to OpenClaw config (fixes MCP bridge in dev)
- Rewrite AgentChat.tsx with turn-based model using Message/MessageContent
  components matching sidepanel pattern, with tool batching logic that
  groups consecutive tools and breaks on text/thinking (same as sidepanel)
- Add execInContainer() to ContainerRuntime for CLI commands
- Fix gateway response field mapping (id→agentId, agents.list/create)
- Skip creating main agent if gateway auto-creates it

* fix(openclaw): retry WS connect on signature expired (Podman clock skew)

Podman VM clock drifts when Mac sleeps, causing Ed25519 signature
validation to fail with "device signature expired" on auto-start.
Add connectGatewayWithRetry() that restarts the container (resyncs
clock) and re-approves the device if needed.

* fix(openclaw): address PR review — stream cleanup, error handling

- Fix silent catch in setup(): only swallow "pairing required" and
  "signature expired" errors, re-throw everything else
- Guard JSON.parse in approvePendingDevice(): check exit code and
  wrap parse in try/catch with descriptive error messages
- Add try/finally in chat SSE route: reader.cancel() on disconnect
- Add cancel callback to chatStream ReadableStream: restores
  ws.onmessage when stream is cancelled (prevents handler leak)

---------

Co-authored-by: shivammittal274 <56757235+shivammittal274@users.noreply.github.com>
2026-04-13 09:13:40 -07:00
Felarof
f78068bb9d chore: add .omc/ to gitignore (#682)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 20:53:24 -07:00
github-actions[bot]
6b18ebb1d8 docs: update agent extension changelog for v0.0.99 (#660)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-04-10 09:53:44 -07:00
shivammittal274
1f2e783ab9 fix: enable agent interaction with elements inside iframes (#667)
* fix: enable agent interaction with elements inside iframes

Fetch accessibility trees from all frames via Page.getFrameTree() +
per-frame Accessibility.getFullAXTree(frameId), so iframe elements
appear in snapshots with valid backendNodeIds. Pages without iframes
take the original single-call path with zero overhead.

Update snapshot tree builders to walk multiple RootWebArea roots from
merged multi-frame trees. Extract same-origin iframe content in the
markdown walker; show [iframe: url] placeholder for cross-origin.

* fix: namespace AX nodeIds by frameId to prevent cross-frame collisions

CDP AXNodeId values are frame-scoped — each frame's accessibility tree
starts its own counter from 1. Prefix nodeId and childIds with frameId
before merging so the nodeMap in snapshot builders never overwrites
nodes from a different frame.
2026-04-09 23:14:53 +05:30
Felarof
df7873562d Revert Kimi partnership UI, restore daily limit survey (#663)
* docs: add uBlock Origin install info to getting started and ad-blocking pages

Chrome dropped support for the full uBlock Origin extension — highlight
that BrowserOS brings it back and make it easy to install from both the
getting started guide and the dedicated ad-blocking page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: revert Kimi partnership UI, restore daily limit survey

Remove Kimi/Moonshot AI partnership branding from the rate limit
banner, provider card, provider templates, and LLM hub. Restore
the original survey CTA on daily limit errors. Moonshot AI remains
as a regular provider template without the "Recommended" badge.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address Greptile review comments

- Guard survey CTA with !isCreditsExhausted to avoid showing it for
  credits-exhausted users who already see "View Usage & Billing"
- Remove dead kimi-launch feature flag files (kimi-launch.ts,
  useKimiLaunch.ts)
- Remove unused KIMI_RATE_LIMIT analytics events
- Remove VITE_PUBLIC_KIMI_LAUNCH from env schema and .env.example

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 16:39:00 -07:00
shivammittal274
412386b489 fix: ensure custom model entry is always visible in model selector (#662)
The merged PR (#661) injected custom entries into filteredModels, but
cmdk auto-scrolls to its first selected CommandItem, pushing the custom
entry out of view. Fix by using forceMount on a separate CommandGroup
and resetting scroll to top on every keystroke via requestAnimationFrame.
2026-04-09 02:40:38 +05:30
shivammittal274
33617ba9e7 feat: show custom model ID as first option in model selector (#661)
* feat: show custom model ID as first option in model selector

When typing in the model dropdown, the user's exact input now appears as the
first selectable row, followed by fuzzy search suggestions. This makes entering
custom model IDs intuitive — previously the option was hidden behind a
zero-results-only Enter shortcut that fuzzy search almost always prevented.

* fix: correct is_custom_model flag and prevent duplicate analytics events

- Use modelInfoList check instead of hardcoding is_custom_model: true in
  the Enter key handler
- Add stopPropagation to prevent cmdk's root keydown handler from also
  firing onSelect, which caused duplicate MODEL_SELECTED_EVENT emissions
2026-04-09 01:44:17 +05:30
Nikhil
6712e1d321 chore: bump server and extension version (#659) 2026-04-08 10:18:24 -07:00
Dani Akash
94540d9e87 chore(agent): remove workflows feature (#656) 2026-04-08 08:42:22 +05:30
Nikhil
bb62213e84 fix: install linux sysroot in configure, not via gclient hook (#653)
* fix: install linux sysroot in configure, not via gclient hook

`gn gen` was failing on the arm64 leg with `Missing sysroot
(//build/linux/debian_bullseye_arm64-sysroot)`. The previous design
relied on `git_setup` writing `target_cpus` to `.gclient` so that
`gclient sync`'s DEPS hook would download the cross-arch sysroot. That
chain breaks for any chromium_src that was synced before cross-arch
support landed (the hook is gated on .gclient state at sync time) and
for partial pipeline runs that skip git_setup entirely. Nothing in
configure declared or verified its sysroot precondition.

Make configure self-healing: on Linux, invoke
`build/linux/sysroot_scripts/install-sysroot.py --arch=<target>`
directly before `gn gen`. install-sysroot.py is idempotent (stamp file
+ SHA check), fast when already installed, and decoupled from .gclient
— it's exactly what the failing assertion's error message recommends.
The script accepts our arch names directly: `x64` translates to `amd64`
internally via ARCH_TRANSLATIONS, and `arm64` is a valid pass-through.

Also temporarily pin release.linux.yaml to x64 only while we validate
the sysroot bootstrap end-to-end. Flip back to `[x64, arm64]` once
arm64 is green.

* chore: pin release.linux.yaml to arm64-only for sysroot bootstrap test

x64 already builds cleanly — the failing leg is arm64 cross-compile from
an x64 host. Pin the config to arm64 to exercise the new
install-sysroot.py path in configure without burning time on x64.
Flip back to [x64, arm64] once arm64 is green.
2026-04-07 11:12:21 -07:00
Nikhil
dee3086a48 feat(server): cache klavis createStrata to unblock /chat hot path (#654)
* feat(server): cache klavis createStrata to unblock /chat hot path

Conversation creation in /chat was blocking on a Worker-proxied
klavisClient.createStrata round-trip every time the user had any
managed Klavis app connected. The 5s KLAVIS_TIMEOUT_MS in the
ai-worker proxy existed specifically to bound this latency, but
the same cap also caused user-visible 504s on /klavis/servers/remove
since Strata DELETE operations routinely take >5s. Without caching
we couldn't raise the timeout without regressing chat creation.

This adds an in-process cache for Strata createStrata responses,
keyed by (browserosId, hashed sorted-server-set) and gated by a 1h
TTL. The cache stores only immutable JSON metadata (strataServerUrl,
strataId, addedServers); per-session MCP clients continue to be
opened and disposed by AiSdkAgent exactly as before, which keeps
the cache concurrency-safe by construction.

Cache invalidation has two layers: (a) the cache key embeds the
server set, so adding/removing apps naturally produces a different
key; (b) POST /klavis/servers/add and DELETE /klavis/servers/remove
explicitly call invalidate(browserosId) after their underlying
Klavis API call succeeds, as defense-in-depth.

Other changes:
- Consolidates klavis-related services into a new
  apps/server/src/api/services/klavis/ directory; moves
  register-klavis-mcp.ts -> strata-proxy.ts and adds strata-cache.ts
  there. lib/clients/klavis/ stays unchanged.
- Refactors KlavisClient.removeServer into a low-level
  deleteServersFromStrata(strataId, servers) primitive. The
  cache-lookup + delete + invalidate orchestration moves up into
  routes/klavis.ts where it belongs, eliminating the lib->api
  layering inversion the original removeServer would have introduced.
- Uses Bun.hash (xxhash64) for fixed-width 16-hex-char keys, with
  serverKey verified on read to make collision risk strictly zero.
- Dedupes concurrent fetches via in-flight Promise sharing, with
  identity-checks before delete to avoid races between invalidate()
  and a racing replacement insert.

Follow-up (separate PR): bump KLAVIS_TIMEOUT_MS to 30000 in
ai-worker/wrangler.toml so /klavis/servers/remove stops 504-ing.

* fix: address greptile review comments for klavis strata cache

- Drop dead `invalidated` field on InflightEntry. It was added to
  support a "discard post-resolution if invalidated" check that I
  later replaced with identity-checked deletes during self-review,
  but I forgot to remove the field and the misleading comment
  referencing it. Simplify Map<string, InflightEntry> to plain
  Map<string, Promise<CacheEntry>>.
- Lower cache miss log from info to debug. Misses fire on every new
  conversation; matching the existing debug-level for hits.
- Stop routing the /klavis/servers/remove handler through
  klavisStrataCache.getOrFetch. The chat hot path keys its cache by
  the user's full enabled-server set (e.g. hash('Gmail,Linear')),
  so a single-server lookup here (hash('Gmail')) is guaranteed to
  miss, write a spurious entry, and then have it immediately
  cleared by invalidate() on the next line. Call createStrata
  directly to recover the strataId, mirroring the original
  removeServer flow.
2026-04-07 11:11:41 -07:00
Nikhil
8de2bf984f feat: build linux x64 + arm64 in a single invocation (#652)
`release.linux.yaml` now declares `architecture: [x64, arm64]` and the
runner loops the entire pipeline once per architecture. depot_tools
fetches both Linux sysroots automatically — `git_setup` idempotently
ensures `target_cpus = ['x64', 'arm64']` is in `.gclient` before
`gclient sync`, so cross-compiling arm64 from an x64 host just works.

The resolver returns `List[Context]` (single-element for the common
single-arch case), and `build/cli/build.py` loops `execute_pipeline` over
the per-arch contexts. Modules stay 100% arch-agnostic — no new
orchestration module, no new YAML schema beyond the list form.

Also fix a cross-compile bug in `build/modules/package/linux.py`: the
appimagetool binary must match the BUILD machine's arch (it executes
locally), not the target arch. Split into a host-keyed
`LINUX_HOST_APPIMAGETOOL` lookup vs the existing target-keyed
`LINUX_ARCHITECTURE_CONFIG`. Target arch is still passed to appimagetool
via the `ARCH` env var.

- build/common/resolver.py: scalar OR list `architecture` -> List[Context]
- build/cli/build.py: loop pipeline per arch, log multi-arch headers
- build/config/release.linux.yaml: `architecture: [x64, arm64]`
- build/modules/setup/git.py: idempotent `target_cpus` edit on Linux
- build/modules/package/linux.py: host vs target appimagetool split
- build/modules/package/linux_test.py: cover the host/target split
2026-04-06 13:08:06 -07:00
Nikhil
1b8720740c feat: add linux arm64 release support (#651)
* feat: support linux arm64 release artifacts

* fix: address PR review comments for 0406-linux_arm64_support
2026-04-06 10:20:38 -07:00
Nikhil
91be726381 refactor: remove --compile-only flag, consolidate into --ci (#646)
The --compile-only and --ci flags served overlapping purposes for CI
builds. Remove --compile-only entirely since --ci already handles the
CI use case (skip R2, skip prod env validation, local zip packaging)
and --no-upload covers the upload-skipping use case for full builds.
2026-04-03 14:58:52 -07:00
Nikhil
ff5386a24a fix: agent storage issue on update (#643)
* fix: agent storage erase issue fix

* fix: remove the guard against remote
2026-04-03 14:50:14 -07:00
Nikhil
a5f3c4da65 fix: skip windows exe patching in ci mode to avoid wine dependency (#645)
The server release CI workflow fails on ubuntu-latest because
patch-windows-exe.ts requires Wine to run rcedit. Thread the existing
--ci flag through compileServerBinaries so Windows PE metadata patching
is skipped in CI mode with a warning log.
2026-04-03 14:46:33 -07:00
Nikhil
e5a852dd3d chore: update server version (#644) 2026-04-03 14:29:07 -07:00
Felarof
aee30ce8e1 Update README.md (#638) 2026-04-02 13:00:11 -07:00
Nikhil
0833c8d42d fix: windows app-data location fix (#637) 2026-04-02 08:53:04 -07:00
Nikhil
036c7f280b fix: tab-grouping cdp crash (#635)
* fix: tab group crash + history fix

* fix: tab group crash + history fix
2026-04-01 15:06:41 -07:00
Nikhil
000429277d fix: isolate server release packaging to ci mode (#629)
* fix: relax compile-only release env requirements

* refactor: add ci mode for server release builds
2026-03-31 20:57:44 -07:00
Nikhil
f8535fd96d fix: exclude eval framework from language stats via gitattributes (#630) 2026-03-31 20:44:06 -07:00
Nikhil
f0cbf77924 feat: add server release workflow (#627)
* feat: add server release workflow

* fix: address PR review comments for 0331-add_server_release_workflow

* refactor: rework 0331-add_server_release_workflow based on feedback

* refactor: rework 0331-add_server_release_workflow based on feedback
2026-03-31 17:37:06 -07:00
Nikhil
17be06eb2f fix: report release cli version correctly (#626) 2026-03-31 16:17:57 -07:00
Nikhil
0e90785500 fix: accept port-only input in CLI init command (#625)
Users can now run `browseros-cli init 9000` in addition to the full URL.
Updated default example port from 9004 to 9000.
2026-03-31 16:16:30 -07:00
Nikhil
2bb432b0f2 feat: use hidden pages for scheduled tasks (#624)
* feat: use hidden pages for scheduled tasks

* refactor: rework 0331-use_hidden_pages_for_scheduled_tasks based on feedback
2026-03-31 16:02:47 -07:00
shivammittal274
565ce18eba feat: add npm/npx distribution for BrowserOS CLI (#618)
* feat(cli): skip self-update prompts for package manager installs

Checks BROWSEROS_INSTALL_METHOD env var (npm, brew) and skips automatic
update checks. Users should use their package manager's update mechanism.
FormatNotice now shows the appropriate upgrade command based on install method.

* feat(cli): add npm bin wrapper for browseros-cli

* feat(cli): add npm postinstall script to download platform binary

Downloads the correct platform binary from GitHub releases during npm
install, verifies SHA256 checksums, and extracts to .binary directory.

* feat(cli): add npm package metadata and README

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: move npm package files to correct monorepo path

The bin wrapper and postinstall were created at apps/cli/npm/ instead of
packages/browseros-agent/apps/cli/npm/. Moves them to the correct location.

* style: use node: protocol for builtin module imports

* feat(cli): add Makefile npm targets and release workflow npm publish step

Adds npm-version and npm-publish Makefile targets for version sync.
Adds Node.js setup and npm publish step to the release workflow.
Adds npm/npx install instructions to release notes template.

* fix(cli): fail on missing checksum entry and limit redirect depth

- Abort if checksums.txt downloaded but archive entry is missing
- Warn if checksums.txt itself failed to download
- Cap redirect depth at 5 to prevent stack overflow on circular redirects

* fix(cli): match install.sh checksum behavior — warn instead of abort

The existing shell installer (install.sh) warns and continues when the
checksum entry is missing from checksums.txt. Match that behavior in the
npm postinstall to avoid unnecessary install failures. Both files come
from the same GitHub release, so the checksum is a corruption check,
not a strong security boundary.

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 22:30:58 +05:30
shivammittal274
81350c0d7f feat: replace model picker with shadcn Combobox + fuse.js fuzzy search (#617)
The model picker in NewProviderDialog rendered inline, causing dialog
resizing and lacked keyboard navigation. Replace it with a Popover +
Command (shadcn Combobox) pattern and add fuse.js for fuzzy search.

- Replace custom ModelPickerList with Popover + Command dropdown
- Add fuse.js for fuzzy model search (replaces string.includes)
- Add MODEL_SELECTED_EVENT and AI_PROVIDER_UPDATED_EVENT analytics
- Enrich PROVIDER_SELECTED_EVENT with model_id in chat sessions
2026-03-30 16:38:21 +05:30
Nikhil
9bdb2413ec feat: clean-up - remove obsolete controller extension (#610)
* refactor(server): remove obsolete controller extension backend

* fix: address review feedback for PR #610
2026-03-27 17:01:04 -07:00
Nikhil
ace9307878 feat: add browseros-cli self-updater (#605)
* feat: add browseros-cli self-updater

* fix: address review comments for 0327-cli_self_updater

* fix: address PR review comments for 0327-cli_self_updater

* fix: replace goreleaser with Makefile-based release build

Remove .goreleaser.yml (required Pro license for monorepo field) and
consolidate cross-compilation into `make release`. CI now uses the same
Makefile target, fixing a bug where POSTHOG_API_KEY was missing from
release ldflags.

* fix: address critical self-updater bugs from code review

- Fix SHA256 checksum mismatch: verify archive checksum before extraction
  instead of verifying extracted binary against archive hash (was always
  failing). Add VerifyChecksum() and integration test.
- Fix JSON field name mismatch: TypeScript was emitting camelCase
  (publishedAt, archiveFormat) but Go expected snake_case
  (published_at, archive_format). Manifest parsing was silently broken.
- Add decompression size limit (256 MB) to prevent zip/gzip bombs.
- Don't update LastCheckedAt on transient errors so retry happens on
  next CLI invocation instead of waiting 24h.
2026-03-27 14:52:54 -07:00
Nikhil
83a25ad301 fix: make SDK navigation tolerate unfocused startup tabs (#607) 2026-03-27 14:34:36 -07:00
github-actions[bot]
4b191a759c docs: update agent extension changelog for v0.0.98 (#609)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-03-27 14:34:02 -07:00
Nikhil
d02b3f74e6 chore: update agent version (#608) 2026-03-27 13:58:42 -07:00
Nikhil
86c62f14a5 chore: fix version number for extension (#606) 2026-03-27 13:18:10 -07:00
Nikhil
42c3e8fe01 fix: standardize release names to "BrowserOS <Product> - vX.Y.Z" format (#604)
Update workflow release titles for Extension, Agent SDK, and CLI to use
consistent branding. Existing GitHub releases also renamed via gh CLI.
2026-03-27 13:17:56 -07:00
Nikhil
517750e880 feat: add PostHog to CLI (#603)
* feat: add PostHog usage analytics to CLI

Add anonymous command-level analytics to browseros-cli using the PostHog
Go SDK. Tracks which commands are executed, their success/failure status,
and duration — no PII or person profiles.

- New analytics package with Init/Track/Close singleton
- Distinct ID resolves from server's browseros_id (server.json), falls
  back to CLI-generated UUID (~/.config/browseros-cli/install_id)
- API key injected at build time via ldflags (dev builds = silent no-op)
- Server now writes browseros_id into server.json for cross-surface
  identity correlation

* fix: address PR review feedback for #603

- Return "unknown" for unrecognized args in commandName to avoid
  sending arbitrary user input to PostHog
- Revert goreleaser to {{ .Env.POSTHOG_API_KEY }} (intentional hard
  fail — release builds must have the key set)
- go mod tidy to fix posthog-go direct/indirect marker
- Add POSTHOG_API_KEY to .env.production.example
2026-03-27 12:05:34 -07:00
Nikhil
6c053a5f29 feat: upload CLI binaries to CDN and gate release to core team (#602)
* feat: upload CLI binaries to CDN during release and gate workflow to core team

- Extend scripts/build/cli/upload.ts with uploadCliRelease() that pushes
  archives + checksums to R2 under versioned (cli/v{VERSION}/) and latest
  (cli/latest/) paths, plus a version.txt for lightweight latest resolution
- Update scripts/build/cli.ts entry point with --release/--version/--binaries-dir
  flags (existing no-args behavior preserved for upload:cli-installers)
- Rewrite install.sh and install.ps1 to fetch from cdn.browseros.com instead of
  GitHub releases API — eliminates rate limits and API dependency
- Add environment: release-core to release-cli.yml for core-team gating via
  GitHub environment protection rules
- Add Bun setup + CDN upload step to the workflow between build and GitHub release

* fix: address review feedback for PR #602

- Make loadProdEnv return empty map when .env.production is absent so
  pickEnv falls through to process.env in CI (Greptile P1)
- Add semver format validation for version string in install.sh and
  install.ps1 to guard against malformed CDN responses
- Pass inputs.version via env var instead of inline ${{ }} interpolation
  to prevent command injection in workflow shell
2026-03-27 11:47:31 -07:00
Nikhil
1c5ffdf878 fix: harden cli installer bootstrap (#601)
* fix: harden cli installer bootstrap

* refactor: rework 0327-harden_cli_installers based on feedback
2026-03-27 11:24:16 -07:00
Nikhil
39a7d49c25 feat: add workspace-centric bdev cli (#585)
* fix: clean-up bdev

* feat: add workspace-centric bdev cli

* fix: address review comments for 0326-bdev_cli_redesign

* fix: address review feedback for PR #585

* fix: address review feedback for PR #585
2026-03-27 08:48:23 -07:00
shivammittal274
ed948f4b59 Feat/cli launch ready v2 (#600)
* test: temporarily allow release workflow on any branch

* fix(cli): restore main-only guard, remove goreleaser dependency

Replaces GoReleaser (Pro-only monorepo feature) with plain go build.
Tested: RC release created successfully on branch with all 6 binaries.

* fix(cli): fix hdiutil mount detection, update README with install/launch/init flow
2026-03-27 20:20:17 +05:30
shivammittal274
aad5bc16fd Feat/cli launch ready v2 (#599)
* test: temporarily allow release workflow on any branch

* fix(cli): restore main-only guard, remove goreleaser dependency

Replaces GoReleaser (Pro-only monorepo feature) with plain go build.
Tested: RC release created successfully on branch with all 6 binaries.

* fix(cli): remove -quiet from hdiutil so mount point is detected
2026-03-27 20:17:13 +05:30
Dani Akash
cee318a40b fix: improve chat history freshness and reduce query payload (#598)
* fix: add refresh indicator to chat history when fetching latest conversations

Show a non-blocking "Fetching latest conversations" indicator at the top
of the history list while the cached data is being refreshed. Users can
still interact with the cached conversation list during the refresh.

* perf: reduce chat history query payload — fetch last 2 messages instead of 5

The conversation list only displays the last user message as a preview.
Fetching 5 messages per conversation was wasteful — each message contains
the full UIMessage object (tool calls, reasoning, etc.) multiplied by
50 conversations per page. Reduced to last 2 which is sufficient to
find the last user message in a user→assistant exchange.

* perf: use first+DESC instead of last+ASC to push LIMIT down to SQL

PostGraphile's `last: N` doesn't map to SQL LIMIT — it uses a padded
LIMIT 10 and slices in application code. Changing to `first: 2` with
ORDER_INDEX_DESC generates a true SQL LIMIT 2, reducing rows scanned
from 500 to 100 per page (50 conversations × 2 vs 10 messages each).

No UX impact — extractLastUserMessage() filters by role regardless
of message order.

* chore: update react query packages

* feat: replace localforage with idb-keyval
2026-03-27 19:49:47 +05:30
Dani Akash
febaf58f91 fix: guard filesystem tools behind workspace selection and handle mid-conversation changes (#595)
* fix: remove filesystem tools when no workspace is selected

- Make workingDir optional on ResolvedAgentConfig
- Remove resolveSessionDir() fallback that always created a session dir,
  masking the no-workspace state and keeping filesystem tools available
- Gate buildFilesystemToolSet() on workingDir being defined
- Add workspace change detection mid-conversation — rebuilds the agent
  session when workspace is added, removed, or switched (same pattern
  as existing MCP server change detection)
- download_file falls back to tmpdir() when no workspace is set
- Memory/soul tools are unaffected — they use ~/BrowserOS/ paths

* fix: sanitize message history when session rebuilds with different tools

When a session is rebuilt due to workspace or MCP changes, the carried-over
message history may contain tool parts for tools that no longer exist in
the new session. The AI SDK validates messages against the current toolset
and rejects parts with no matching schema.

- Add toolNames getter to AiSdkAgent exposing registered tool names
- Add sanitizeMessagesForToolset() to strip tool parts referencing
  removed tools from carried-over messages
- Apply sanitization in both MCP and workspace session rebuilds

* fix: prepend tool-change context to user message on session rebuild

When workspace or MCP integrations change mid-conversation, prepend a
[Context: ...] block to the user's message explaining what changed.
This prevents the LLM from hallucinating tool usage based on patterns
in the carried-over conversation history.

Context messages vary by change type:
- Workspace removed: lists unavailable filesystem tools, suggests
  selecting a working directory
- Workspace added: confirms filesystem tools are available with path
- Workspace switched: notes the new working directory
- MCP changed: notes that some integration tools may have changed

Only fires on the first message after a rebuild. Invisible in the UI.

* fix: make MCP change context specific about which apps were added/removed

Diff the old and new MCP server keys to produce specific context like:
- "The following app integrations were disconnected: Gmail, Slack."
- "The following app integrations were connected: Linear."
instead of a generic "some tools may no longer be available" message.

* refactor: extract shared rebuildSession helper in ChatService

Eliminates the duplicated 20-line dispose→create→sanitize→store flow
that existed separately in both the MCP and workspace change-detection
blocks.

Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>

* test: add sanitizeMessagesForToolset test suite

Tests for the message sanitization that runs when a session rebuilds
with a different toolset (workspace or MCP change mid-conversation):

- Preserves messages with no tool parts
- Preserves tool parts when tool is in the toolset
- Strips tool parts when tool is NOT in the toolset
- Strips multiple removed tool parts from same message
- Keeps browser tools while removing filesystem tools
- Removes messages that become empty after stripping
- Preserves non-tool parts (reasoning, step-start, file)
- Returns same references when no filtering needed
- Handles empty message array and empty toolset

* style: fix biome formatting in chat-service.ts

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
2026-03-27 18:30:25 +05:30
Dani Akash
aacb47f7ee feat: isolate new-tab agent navigation from origin tab (#593)
* feat: isolate new-tab agent navigation from origin tab

Add origin-aware navigation isolation so the agent never navigates
away from the new-tab chat UI. This is a two-layer defense:

1. Prompt adaptation: When origin is 'newtab', the system prompt's
   execution and tool-selection sections are rewritten to prohibit
   navigating the active tab and default all lookups to new_page.

2. Tool-level guards: navigate_page and close_page reject attempts
   to act on the origin tab when in newtab mode, returning an error
   that teaches the agent to self-correct.

The client now sends an `origin` field ('sidepanel' | 'newtab')
instead of injecting a soft NEWTAB_SYSTEM_PROMPT that LLMs could
ignore. Backwards compatible — defaults to 'sidepanel'.

Closes TKT-592, addresses TKT-564

* test: add newtab origin navigation guard tests

- 14 new prompt tests verifying the system prompt adapts correctly
  for newtab vs sidepanel origin (execution rules, tool selection table,
  absence of conflicting single-tab guidance)
- 6 new integration tests for navigate_page and close_page guards:
  rejects origin tab in newtab mode, allows non-origin tabs, allows
  all tabs in sidepanel mode, backwards compatible with no session
2026-03-27 12:06:32 +05:30
Dani Akash
b3003542d8 docs: overhaul READMEs across all major packages (#594)
* docs: overhaul READMEs across all major packages

- Root README: restructure with feature table, LLM provider table,
  comparison matrix, architecture map, and docs link
- New: packages/browseros/README.md (Chromium fork build system)
- New: apps/server/README.md (MCP server + agent loop)
- New: packages/cdp-protocol/README.md (CDP type bindings)
- Polish: agent-sdk (badges, prerequisites, multi-step example, links)
- Polish: cli (badges, install section, MCP server section, links)
- Polish: agent extension (badges, WXT mention, architecture context)
- Polish: eval (badges, paper links)

* fix: address review — consistent tool count and correct default port

- CLI README: "54 MCP tools" → "53+ MCP tools" to match root and server docs
- Agent SDK README: localhost:3000 → localhost:9100 to match documented default

* docs: add detailed comparison links to How We Compare section

* docs: update comparison table with verified competitor data

Research all 5 competitors via official websites and docs:
- Chrome: no AI agent, Gemini Nano only, MV3 weakening ad blocking
- Brave: BYOM feature, local models via BYOM, Shields ad blocking, MV2+MV3
- Dia: Skills-based AI, no BYOK, cloud AI, acquired by Atlassian
- Comet: full cloud-based agent, built-in ad blocking, extensions on desktop
- Atlas: standalone Chromium browser with Agent Mode, 30-day cloud memory

Renamed Arc/Dia column to just Dia (Arc is sunset).

* docs: simplify comparison table with clean checkmarks and key differentiators

* docs: update browseros-agent README — remove submodule note, add missing packages
2026-03-27 11:59:04 +05:30
Nikhil
aba7a10430 chore: server release (#592) 2026-03-26 19:13:56 -07:00
Nikhil
b7462aa042 fix(cli): move install instructions below What's Changed in release notes (#591)
The installer block was appearing above the changelog. Reorder so
What's Changed comes first and install instructions follow.
2026-03-26 18:16:23 -07:00
Nikhil
883bcc9670 fix: clean up README CLI wording and add Vertical Tabs feature (#590)
- Simplify CLI section: remove confusing MCP jargon, clarify it works
  from terminal and AI coding agents
- Replace "point the CLI at your MCP server" with plain language
- Add Vertical Tabs to the features list
2026-03-26 18:05:54 -07:00
Nikhil
279b41fdc4 feat(cli): add install commands to GitHub release notes (#589)
* feat(cli): add install commands to release notes

* fix(cli): add install header to release workflow
2026-03-26 18:04:58 -07:00
Nikhil
220577b41c feat: add CDN-hosted CLI installer flow (#588)
* feat: add CDN upload flow for cli installers

* fix: move cli install docs to top-level readme

* fix: bun.lock update
2026-03-26 17:41:03 -07:00
Nikhil
03b45013a6 feat(cli): add install scripts for macOS, Linux, and Windows (#587)
* feat(cli): add install scripts for macOS, Linux, and Windows

Bash script (install.sh) for macOS/Linux and PowerShell script
(install.ps1) for Windows. Both download the correct platform binary
from GitHub Releases with checksum verification, version resolution,
and PATH setup.

* fix(cli): address PR review comments for install scripts

- Add checksum verification to install.ps1 using Get-FileHash
- Add warnings on all checksum skip paths in install.sh
- Use grep -F (fixed-string) instead of regex for filename matching
- Add ?per_page=100 to GitHub API call in install.ps1
- Use random temp directory name in install.ps1 to avoid collisions

* fix(cli): address installer review feedback
2026-03-26 17:05:21 -07:00
shivammittal274
aa85907212 Feat/cli launch ready v2 (#582)
* fix(cli): use full path for dist artifacts in release step

* test: temporarily allow release workflow on any branch

* fix(cli): restore main-only guard, remove goreleaser dependency

Replaces GoReleaser (Pro-only monorepo feature) with plain go build.
Tested: RC release created successfully on branch with all 6 binaries.
2026-03-27 01:28:04 +05:30
Nikhil
085352a6f0 fix(ui): resolve MCP promo banner dismiss button overlapping with text (#581)
Move dismiss button from absolute positioning to inline flex child,
preventing it from overlapping with the "Set up" button.
2026-03-26 12:54:00 -07:00
shivammittal274
c0578d0e53 Feat/cli launch ready v2 (#580)
* fix(cli): update goreleaser tag_prefix to match browseros-cli-v* format

* fix(cli): replace goreleaser with plain go build for releases

GoReleaser free version cannot parse prefixed tags (browseros-cli-v*).
monorepo.tag_prefix is a Pro-only feature.

Replaced with direct go build + gh release create:
- Builds all 6 targets with go build (verified locally)
- Creates tar.gz/zip archives with checksums
- Uses gh release create to publish
- No external tool dependency
2026-03-27 01:12:25 +05:30
shivammittal274
663c18ee97 fix(cli): update goreleaser tag_prefix to match browseros-cli-v* format (#579) 2026-03-27 01:07:36 +05:30
Dani Akash
48727750b4 fix: change CLI tag format from cli/v* to browseros-cli-v* (#578)
GoReleaser free cannot parse slash-prefixed tags (cli/v0.0.1) as semver.
Switch to browseros-cli-v0.0.1 format which is valid semver after
stripping the prefix. Remove the monorepo config (GoReleaser Pro only).
2026-03-27 00:58:13 +05:30
Dani Akash
30a3a96a57 fix: add monorepo tag prefix for goreleaser to parse cli/ tags (#576) 2026-03-27 00:50:38 +05:30
shivammittal274
6773ce39da ci(cli): manual dispatch release workflow (#574)
* ci(cli): change release workflow to manual dispatch from main

- Trigger via Actions UI with a version input (e.g. "0.1.0")
- Only runs on main branch
- Creates git tag cli/v<version> automatically
- Then GoReleaser builds all 6 binaries and creates the GitHub Release

* feat: add scoped release notes, changelog PR, and idempotent tags to CLI workflow

- Add concurrency group to prevent parallel releases
- Add scoped release notes from commits touching the CLI directory
- Pass release notes to goreleaser via --release-notes flag
- Make tag creation idempotent for safe re-runs
- Tag the saved release SHA, not HEAD after branching
- Add CHANGELOG.md and auto-update via PR with auto-merge
- Add pull-requests: write permission

---------

Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>
2026-03-27 00:41:08 +05:30
github-actions[bot]
342a3e4a07 docs: update agent extension changelog for v0.0.52 (#573)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-03-26 19:01:46 +00:00
Dani Akash
09406ea794 feat: add release workflow for agent extension (#572)
* feat: add release workflow for agent extension

Adds a workflow_dispatch workflow that builds the WXT extension,
creates a .zip for sideloading, generates scoped release notes with
contributors and PR links, creates a GitHub release with the zip
attached, and opens an auto-merge PR to update CHANGELOG.md.

* fix: correct API URL to api.browseros.com

* fix: remove duplicate PR numbers and contributors from extension release notes

Apply the same fixes from the agent-sdk workflow:
- Skip PR number if already in commit subject (squash merges)
- Remove custom Contributors section (GitHub auto-generates one)
- Clean up unused variables

* fix: use absolute path for extension zip in release upload

* fix: wxt zip already builds, use correct output path

- Remove separate build step since wxt zip runs the build internally
- Fix zip path from .output/*.zip to dist/*-chrome.zip

* fix: run codegen before wxt zip to generate graphql types
2026-03-27 00:29:47 +05:30
Dani Akash
1f00cbc9cc feat: add release workflow for agent extension (#566)
* feat: add release workflow for agent extension

Adds a workflow_dispatch workflow that builds the WXT extension,
creates a .zip for sideloading, generates scoped release notes with
contributors and PR links, creates a GitHub release with the zip
attached, and opens an auto-merge PR to update CHANGELOG.md.

* fix: correct API URL to api.browseros.com

* fix: remove duplicate PR numbers and contributors from extension release notes

Apply the same fixes from the agent-sdk workflow:
- Skip PR number if already in commit subject (squash merges)
- Remove custom Contributors section (GitHub auto-generates one)
- Clean up unused variables

* fix: use absolute path for extension zip in release upload

* fix: wxt zip already builds, use correct output path

- Remove separate build step since wxt zip runs the build internally
- Fix zip path from .output/*.zip to dist/*-chrome.zip
2026-03-27 00:23:04 +05:30
Dani Akash
422a829f5e fix: remove duplicate PR numbers and contributors from release notes (#571)
- Skip adding PR number if already present in the commit subject
  (squash merges include "(#123)" automatically)
- Remove custom Contributors section since GitHub auto-generates one
  with avatars at the bottom of every release
2026-03-27 00:07:13 +05:30
github-actions[bot]
ed109fcedf docs: update agent-sdk changelog for v0.0.7 (#570)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-03-26 18:31:39 +00:00
Dani Akash
19af96d08e chore: bump @browseros-ai/agent-sdk to 0.0.7 (#569) 2026-03-27 00:00:35 +05:30
Dani Akash
e0304b203c chore: bump @browseros-ai/agent-sdk to 0.0.6 (#568) 2026-03-26 23:53:35 +05:30
Nikhil
af65bdbcfb feat(build): add build:server:ci script with --compile-only flag (#567)
Add a compile-only mode to the server build pipeline for CI/CD
environments that don't have R2 credentials. The --compile-only flag
skips resource staging and upload, producing only compiled binaries.
2026-03-26 11:21:39 -07:00
Dani Akash
d79c2a4123 feat: create GitHub release with changelog on agent-sdk publish (#564)
* feat: create GitHub release with changelog on agent-sdk publish

After publishing to npm, the workflow now:
- Tags the commit as agent-sdk-v<version>
- Generates release notes from commits that modified the agent-sdk
  directory since the last agent-sdk release tag
- Creates a GitHub release with those notes

First release will show "Initial release" since no previous tag exists.

* feat: update CHANGELOG.md on agent-sdk release

Add a CHANGELOG.md for @browseros-ai/agent-sdk and update the release
workflow to prepend a versioned entry with the release notes before
creating the GitHub release. The changelog is committed to main
automatically.

* fix: address review issues in agent-sdk release workflow

- Add explicit permissions: contents: write
- Replace sed with head/tail for safe CHANGELOG insertion (fixes
  double-quote and backslash corruption in commit messages)
- Handle empty release notes with "No notable changes." fallback
- Make git tag idempotent for workflow reruns (2>/dev/null || true)

* fix: use PR with auto-merge for changelog updates

Direct push to main fails due to branch protection requiring PRs.
Instead, create a branch, open a PR, and auto-merge via squash.

* feat: add contributors and PR links to agent-sdk release notes

Release notes now include PR numbers (linked automatically by GitHub),
GitHub usernames for each commit author, and a contributors section
at the bottom. All scoped to commits that modified the agent-sdk path.

* fix: reorder release steps and fix tag/idempotency issues

- Capture release SHA before any branching so the tag always points
  to the main commit that was built and published to npm
- Reorder: generate notes → publish → tag/release → changelog PR
  (changelog is lowest-stakes, runs last)
- Make tag push and release create idempotent for safe re-runs
  (fall back to gh release edit if release already exists)
- Add || true to gh pr merge --auto in case auto-merge is not enabled
- Explicit git checkout main before creating changelog branch

* fix: explicit error handling for tag/release and contributor dedup

- Replace silent || true guards with explicit checks that log what's
  happening (tag exists, remote tag exists, release exists) so errors
  are visible instead of swallowed
- Fix contributor dedup: use grep -qw (word match) instead of grep -qF
  (substring match) so "dan" isn't excluded when "dansmith" exists

* fix: exclude current version tag when finding previous release

On re-runs, the current version's tag already exists on the remote, so
PREV_TAG resolves to it and git log produces empty output. Filter it
out so release notes are generated against the actual previous version.

* ci: prevent concurrent agent-sdk release runs

Add concurrency group so multiple dispatches queue instead of racing
on the same tag/release/PR.
2026-03-26 23:38:14 +05:30
shivammittal274
e3d57e5347 feat(cli): production-ready CLI with auto-launch, install, and cross-platform builds (#555)
* feat(cli): production-ready CLI with auto-launch, install, and cross-platform builds

- init: accept URL argument and --auto flag for non-interactive setup
- install: new command to download BrowserOS app for current platform
- launch: auto-detect and launch BrowserOS when server is not running
- discovery: prefer server.json (live) over config.yaml (may be stale)
- errors: actionable messages guiding users to init/install
- goreleaser: cross-platform builds for 6 targets (darwin/linux/windows × amd64/arm64)
- ci: GitHub Actions workflow to release CLI binaries on cli/v* tag push

* fix(cli): check health status code and add progress dots during launch

- Health check in newClient() now verifies HTTP 200, not just no error
- waitForServer prints dots during the 30s poll so users know it's working

* refactor(cli): make launch an explicit command, remove auto-launch from newClient

- launch: new explicit command to find and open BrowserOS app
- launch: probes server.json, config, and common ports before launching
- launch: if already running, reports URL instead of launching again
- init --auto: uses port probing to find running servers
- install --deb: errors on non-Linux instead of silently downloading DMG
- error messages: guide users to launch/install/init explicitly
- removed: auto-launch from newClient() — CLI never does something surprising

* fix(cli): platform-native detection, launch, and install for all OSes

Detection (isBrowserOSInstalled):
- macOS: uses `open -Ra` to query Launch Services (no hardcoded paths)
- Linux: checks /usr/bin/browseros (.deb), browseros.desktop, AppImage search
- Windows: checks %LOCALAPPDATA%\BrowserOS\Application\BrowserOS.exe
  and HKCU/HKLM uninstall registry keys

Launch (startBrowserOS):
- macOS: `open -b com.browseros.BrowserOS` (bundle ID, not path)
- Linux: `browseros` binary, AppImage, or `gtk-launch browseros`
  (fixed: was using xdg-open which opens by MIME type, not desktop files)
- Windows: runs BrowserOS.exe from known Chromium per-user install path
  (fixed: was using `cmd /c start BrowserOS` which doesn't resolve)

Install (runPostInstall):
- macOS: hdiutil attach → cp -R to /Applications → hdiutil detach
- Linux: chmod +x for AppImage, dpkg -i instruction for .deb
- Windows: launches installer exe
- --deb flag now errors on non-Linux platforms

Removed auto-launch from newClient() — CLI never does surprising things.

Sources verified from:
- packages/browseros/build/common/context.py (binary names per platform)
- packages/browseros/build/modules/package/linux.py (.deb structure, .desktop file)
- packages/browseros/chromium_patches/chrome/install_static/chromium_install_modes.h
  (Windows base_app_name="BrowserOS", registry GUID, install paths)
- /Applications/BrowserOS.app/Contents/Info.plist (bundle ID)
2026-03-26 23:12:55 +05:30
Dani Akash
392312f203 ci: only run PR title validation on open and edit (#565)
Remove synchronize and reopened triggers since this workflow only
validates the PR title, which doesn't change on new commits or reopen.
2026-03-26 23:06:11 +05:30
Dani Akash
0f193055c7 fix: broaden connection error detection for main page and sidepanel (#563)
* fix: broaden connection error detection for main page and sidepanel

The connection error check required both "Failed to fetch" AND
"127.0.0.1" in the error message. On the main page, the browser
only produces "Failed to fetch" without the IP, so users saw a
generic "Something went wrong" instead of the troubleshooting link.

Broaden detection to also match "localhost" and bare "Failed to fetch"
errors that don't contain an external URL. Also pass providerType in
NewTabChat so provider-specific errors render correctly.

Closes #526

* fix: simplify connection error detection

All chat requests go through the local BrowserOS agent server, so any
"Failed to fetch" error is always a local connection issue. Remove the
unnecessary 127.0.0.1/localhost/URL checks.

* fix: pass providerType to agentUrlError ChatError instances
2026-03-26 20:55:40 +05:30
Dani Akash
f45cb58889 fix: stop sending port-in-use errors to Sentry (#558)
Port conflicts are expected — Chromium retries with a different port.
These errors were flooding Sentry (14k+ events) without user impact.

- handleStartupError: move Sentry.captureException below the
  port-in-use check so it only fires for unexpected startup errors
- handleControllerStartupError: skip Sentry capture for port errors
- index.ts: exit early for port errors before Sentry capture
2026-03-26 09:32:18 +05:30
shivammittal274
37ead6d129 fix: add cursor-pointer to credit badge in sidepanel (#554) 2026-03-26 00:09:58 +05:30
Nikhil
5ea9463030 fix: widen scheduled task results dialog and add horizontal scroll for tables (#549)
- Change dialog width from sm:max-w-2xl (672px) to sm:w-[70vw] sm:max-w-4xl
  so it takes 70% of viewport width, capped at 896px
- Add overflow-x-auto on table wrappers so wide tables scroll horizontally
  instead of being clipped

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 16:27:46 -07:00
shivammittal274
dde35ccbd5 feat: integrate models.dev for dynamic LLM provider/model data (#547)
* feat: integrate models.dev for dynamic LLM provider/model data (#TKT-657)

Replace hardcoded model lists with data sourced from models.dev so new
providers and models appear automatically when the community adds them.

- Add build script (scripts/generate-models.ts) that fetches models.dev/api.json
  and outputs a compact JSON with 10 providers and 520 models
- Replace hardcoded MODELS_DATA (50 models) with dynamic models.dev lookups
- Add searchable model combobox (Popover + Command) replacing plain Select dropdown
- Enrich provider templates with models.dev metadata (context window, image support)
- Keep chatgpt-pro, qwen-code, browseros, openai-compatible as hardcoded providers

* fix: address review — remove ollama-cloud mapping, fix default models, remove dead code

- Remove ollama from PROVIDER_MAP (ollama-cloud has cloud models, not local)
- Add ollama to CUSTOM_PROVIDER_MODELS with empty list (users type custom IDs)
- Update defaultModelIds to ones that exist in models.dev data:
  openrouter → anthropic/claude-sonnet-4.5
  lmstudio → openai/gpt-oss-20b
  bedrock → anthropic.claude-sonnet-4-6
- Remove dead isCustomModel export
- Regenerate models-dev-data.json (9 providers, 486 models)

* fix: model suggestion list focus/dismiss behavior

- List only opens when input is focused or user types
- Clicking a model selects it and closes the list
- Clicking outside (blur) dismisses the list
- onMouseDown preventDefault on list items prevents blur race condition

* refactor: extract ModelPickerList component with proper open/close UX

- Collapsed state: Select-like trigger showing selected model + chevron
- Expanded state: search input + scrollable filtered list, inline
- Click outside or Escape to close, Enter to submit custom model
- Extracted as separate component (reduces dialog nesting, testable)
- No more setTimeout hacks for blur handling

* chore: remove plan doc from repo
2026-03-25 02:41:07 +05:30
Dani Akash
7f20319272 docs: add OAuth provider setup guides for ChatGPT Pro, GitHub Copilot, and Qwen Code (#545)
* docs: add setup guides for ChatGPT Pro, GitHub Copilot, and Qwen Code

Add individual OAuth setup guide pages with step-by-step screenshots
for each provider. Add "Use Your Existing Subscription" section to the
Bring Your Own LLM page with card links to each guide. Register pages
in docs navigation.

* docs: add ChatGPT Pro setup screenshots

* docs: use custom provider icons for OAuth setup cards

* docs: inline SVG icons in provider cards for dark mode support

* docs: place provider icons above card titles
2026-03-24 18:29:20 +05:30
shivammittal274
c8204efab6 feat: improve rate limit UX, usage page, and provider selector (#544)
* feat: improve rate limit UX, usage page, and provider selector

- Show "Add your own provider for unlimited usage" CTA when BrowserOS
  credits are exhausted or daily limit is reached
- Fix credit exhaustion detection to match actual error message
- Improve Usage page: remove disabled Add Credits button, add "Coming
  soon" badge, add "Want unlimited usage?" section linking to providers
- Add "+ Add Provider" button at bottom of chat provider selector dropdown

* fix: use asChild pattern for Button+anchor in usage page

Replace nested <a><Button> (invalid HTML) with Button asChild
pattern per shadcn/ui convention.
2026-03-24 18:01:42 +05:30
shivammittal274
fb5143b563 feat: UI improvements for OAuth dialog, provider badges, and events docs (#543)
* feat: UI improvements for OAuth dialog, provider badges, and events docs

- Replace OAuth device code toast with a proper Dialog showing the code
  prominently with a copy button (GitHub Copilot, Qwen Code, ChatGPT Pro)
- Add "New" badge on provider template cards for ChatGPT Plus/Pro,
  GitHub Copilot, and Qwen Code with orange border highlight
- Add events.md documenting all analytics events across the platform

* fix: add verificationUri to DeviceCodeDialog for popup-blocked fallback

Add verificationUri to PendingDeviceCode interface and pass it from
both handleClientAuth and handleServerAuth. Render a fallback "Open
verification page" link in DeviceCodeDialog so users can navigate
to the auth page if the popup was blocked.
2026-03-24 17:27:27 +05:30
Dani Akash
fe257cd8d1 feat: only parse browseros provider errors (#542) 2026-03-24 14:43:05 +05:30
shivammittal274
890d3406dd feat: promote BrowserOS as MCP with UI improvements (#541)
- Add MCP promo banner on AI providers page with "New" badge and
  "66+ tools" highlight, linking to /settings/mcp
- Add Quick Setup section on MCP settings page with copy-paste
  commands for Claude Code, Gemini CLI, Codex, Claude Desktop, OpenClaw
- Consolidate MCP settings: move restart button inline with server URL,
  remove separate MCP Server Settings card
- Add analytics event for promo banner clicks
2026-03-24 03:08:08 +05:30
shivammittal274
c316e09c11 feat: add source tag to tool_executed PostHog events (#538)
Add `source: 'mcp' | 'chat'` property to all `tool_executed` metrics
events so we can distinguish tool calls from external MCP clients
(Claude Code, Cursor) vs the built-in BrowserOS agent in PostHog.

- register-mcp.ts: source='mcp' (browser tools via MCP endpoint)
- register-klavis-mcp.ts: source='mcp' (Klavis tools via MCP endpoint)
- tool-adapter.ts: source='chat' (browser tools via chat agent)
- ai-sdk-agent.ts: source='chat' (Klavis/external MCP tools via chat agent, previously untracked)
- filesystem/utils.ts: source='chat' (filesystem tools via chat agent)
2026-03-24 02:03:18 +05:30
shivammittal274
65547c60c0 fix(eval): clean up eval configs and add test-clado-api script (#540)
Consolidate 13 configs down to 7 with uniform settings:
- 3 weekly (CI): browseros-agent, browseros-oe-agent, browseros-oe-clado
- 4 test (local): test_gemini-computer-use, test_yutori-navigator, test_webvoyager, test_mind2web
- All configs: headless=false, captcha block, full browseros ports, restart_server_per_task

Deleted: debug-test, mind2web-test, tool-loop-test, orchestrator-executor-test,
orchestrator-executor-clado-test, fireworks-minimax-m2, webvoyager-test

Added: test-clado-api.ts script, browseros-oe-agent-weekly.json (OE with AI SDK executor)
2026-03-24 01:28:05 +05:30
shivammittal274
0babc05077 feat(eval): NopeCHA CAPTCHA solver integration (#537)
* feat(eval): show mean score instead of pass/fail in report and viewer

* feat(eval): integrate NopeCHA CAPTCHA solver into eval pipeline

Add CAPTCHA detection and waiting so screenshots capture post-solve state.
Run headed with xvfb on CI since headless breaks extension content scripts.

- Add CaptchaWaiter module (detect reCAPTCHA/hCaptcha/Turnstile, poll until solved)
- Add optional `captcha` config block to EvalConfigSchema
- Wait for CAPTCHA solve before screenshot in single-agent and orchestrator-executor
- Patch NopeCHA manifest with API key before launching workers
- Fix CAPTCHA_EXT_DIR path (was pointing one level too high)
- Remove --incognito (extensions don't run in incognito; fresh user-data-dir isolates)
- CI: install xvfb, run headed via xvfb-run, pass NOPECHA_API_KEY secret
2026-03-24 00:14:16 +05:30
Nikhil
1270b5b55c feat: new manifest perms (#536)
* feat: new manifest perms

* fix: minor

* fix: minor
2026-03-23 09:31:07 -07:00
Nikhil
e97d8bc1cb fix: remove daily rate-limit middleware (#535)
* fix: remove daily rate-limit middleware

The daily conversation rate limit is no longer needed. Remove the
middleware, RateLimiter class, fetch-config, error type, shared
constants, DB schema table, and integration tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: remove unused getDb() method

No longer needed after rate-limiter removal.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 08:31:20 -07:00
Dani Akash
5109ca4347 feat: added scope in server error logs (#533)
* feat: added scope in server error logs

* fix: prevent double capture on chat request
2026-03-23 20:47:28 +05:30
shivammittal274
f14942c6f9 feat(eval): show mean score instead of pass/fail in report and viewer (#534) 2026-03-23 20:28:34 +05:30
Dani Akash
86ec88ed80 feat: sentry improvements (#532)
* feat: process request record from sentry locally

* feat: added analytics for logged in users
2026-03-23 19:45:28 +05:30
Dani Akash
4928b7e84b fix: no current window and sentry context (#531)
* fix: error reporting and better breadcrumbs

* fix: lint issues
2026-03-23 18:46:39 +05:30
shivammittal274
94a1a701f6 fix(eval): include browser context in agent prompt (#530)
The eval's single-agent was passing raw task.query as the prompt,
without browser context (active tab URL, title). The agent didn't
know which page it was on, causing it to ask "which website?" instead
of browsing.

Use formatUserMessage() (same as chat-service.ts) to include browser
context in the prompt. Re-export formatUserMessage from agent/tool-loop.
2026-03-23 17:42:03 +05:30
Dani Akash
ecf2efa857 fix: add unlimited storage permission to agent (#529) 2026-03-23 17:36:26 +05:30
shivammittal274
026c6a03a3 feat(eval): auto-trigger eval on agent/tools changes pushed to main (#528) 2026-03-23 16:52:30 +05:30
Nikhil
2b53daf641 fix: prevent deleted scheduled tasks from reappearing after sync (#518)
* fix: prevent deleted scheduled tasks from reappearing after sync

When a scheduled task was deleted, the sync function would see the
remote job missing locally and re-add it, undoing the delete. Fix by
tracking pending deletions in storage so the sync function deletes
them from the backend instead of re-adding them locally.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: use read-modify-write for pending deletions to prevent concurrent clobber

Re-read pendingDeletionStorage before write-back and only remove
resolved IDs, preserving any new entries added by concurrent
removeJob calls during the sync's network I/O.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 11:31:57 -07:00
Nikhil
3cc946ded8 fix(ci): report test pass/fail status on PRs (#520)
The test workflow captured exit codes but never failed the job, so PR
checks always showed green even when tests failed. Exit with the
captured code in the summarize step so each suite properly reports
pass/fail. Not a required check, so failures remain non-blocking.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 11:31:23 -07:00
shivammittal274
70be5c5c21 fix(eval): log agent errors in task progress for CI visibility (#523) 2026-03-21 23:33:19 +05:30
shivammittal274
0f9d93058f chore(eval): remove unused env vars from workflow (OPENROUTER, OPENAI) (#522) 2026-03-21 23:22:03 +05:30
shivammittal274
cafed57832 fix(eval): use CLAUDE_CODE_OAUTH_TOKEN for performance grader auth (#521) 2026-03-21 23:14:23 +05:30
shivammittal274
f157436e7d feat(eval): switch to Linux GitHub-hosted runner (#519)
* feat(eval): switch to ubuntu-latest runner, add OE-Clado config

- Switch workflow from self-hosted Mac Studio to ubuntu-latest
- Install BrowserOS Linux .deb in CI (no self-hosted runner needed)
- Add browseros-oe-clado-weekly.json config for orchestrator-executor
- Fix report chart to show date+time (not just date)
- Make BROWSEROS_BINARY configurable via env var

* feat(eval): add NopeCHA captcha solver extension to eval runs

- Auto-load NopeCHA extension in eval Chrome instances
- Works in incognito + headless mode
- CI workflow downloads NopeCHA before eval
- extensions/ directory gitignored (downloaded at runtime)

* feat(eval): per-config concurrency — different configs run in parallel

* feat(eval): remove concurrency limit — all runs execute in parallel
2026-03-21 23:04:45 +05:30
Nikhil
ba7892322b ci: run BrowserOS test suites on PRs (#514)
* ci: run browseros tests on pull requests

* refactor: rework 0320-github_action_for_tests based on feedback

* refactor: rework 0320-github_action_for_tests based on feedback

* chore: add CI artifacts to .gitignore

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: remove mikepenz/action-junit-report to fix check suite misattribution

The JUnit report action creates check runs that GitHub associates with the
CLA check suite instead of the Tests check suite, causing test reports to
appear under "CLA Assistant" in the PR checks UI.

Remove the action and rely on job status + step summary + artifact upload
for test result visibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 09:46:36 -07:00
shivammittal274
4e90b4561a feat(eval): weekly eval pipeline with R2 uploads and trend dashboard (#516)
* feat(eval): weekly eval pipeline with R2 uploads and trend dashboard

Add infrastructure for running weekly evaluations and tracking score
trends over time:

- Auto-generated output dirs: results/{config-name}/{timestamp}/
  Each eval run gets its own timestamped folder, nothing is overwritten.

- upload-run.ts: uploads eval results to Cloudflare R2. Supports
  uploading a specific run or all un-uploaded runs for a config.

- weekly-report.ts: generates an interactive HTML dashboard from R2
  data. Config dropdown, trend chart with hover tooltips, searchable
  runs table. Groups runs by config name.

- viewer.html: client-facing 3-column run viewer (task list,
  screenshots with autoplay, agent stream with messages.jsonl).
  Shows performance grader axis breakdown with per-axis scores.

- browseros-agent-weekly.json: weekly benchmark config (kimi-k2p5,
  webbench-2of4-50, 10 workers, performance grader, headless).

- eval-weekly.yml: GitHub Actions workflow with cron (Saturday 6am)
  and manual trigger. Runs on self-hosted Mac Studio runner.
  Concurrency group ensures only one eval runs at a time.

- Dashboard updates: load previous runs, messages.jsonl viewer,
  grade badges show percentages, async stream loading.

- Grader updates: timeout 30min, max turns 100, DOM content
  verification guidance for performance grader.

* fix(eval): address Greptile review — injection, nested dirs, escaping

- Fix script injection in eval-weekly.yml: pass github.event.inputs
  through env var instead of interpolating into shell
- Fix /api/runs to enumerate nested results/{config}/{timestamp}/ dirs
- Fix /api/load-run to allow single-slash run names (config/timestamp)
- Add HTML escaping for R2-sourced values in weekly-report.ts
- Escape axis names in viewer.html renderAxesBreakdown

* fix(eval): fix biome lint — non-null assertion, template literals

* fix(eval): fix biome errors — replace var with let, fix inner function declaration

* fix(eval): address Greptile P2 issues

- isRunDir: check all subdirs for metadata.json, not just first 3
- eval-runner: guard configPath for dashboard-driven runs (fallback to 'eval')
- load-run: default unknown termination_reason to 'failed' not 'completed'

* feat(eval): make BROWSEROS_BINARY configurable via env var
2026-03-21 22:12:52 +05:30
shivammittal274
86eed82350 fix: lazy OAuth callback server with cancel+retry (Codex CLI pattern) (#515)
The OAuth callback server on port 1455 was bound eagerly at startup,
crashing the server if another BrowserOS instance was already running.

Rewrite as a lazy class (OAuthCallbackServer) that:
- Only binds port 1455 when the user initiates a ChatGPT Pro login
- Sends GET /cancel to any existing server on the port first, then
  retries up to 5 times (follows Codex CLI's cancel+retry pattern)
- Exposes /cancel endpoint so other instances/tools can cancel us
- Releases the port after the OAuth callback arrives
- Device-code providers (GitHub Copilot, Qwen) never touch port 1455

This allows running eval, dev instances, and multiple BrowserOS
instances without port conflicts. OAuth login works on whichever
instance initiates it — the others continue without OAuth.
2026-03-21 16:44:03 +05:30
Nikhil
be6ed22af4 test: fix BrowserOS tool test harness regressions (#513)
* test: fix browseros tool test harness regressions

* test: align working directory naming in page action tests
2026-03-20 12:05:39 -07:00
Nikhil
149cde118d chore: bump server version, offset and patch for release (#512) 2026-03-20 11:45:12 -07:00
Nikhil
9bc5e666c4 feat: auto-discover server port via ~/.browseros/server.json (#504)
* feat: auto-discover server port via ~/.browseros/server.json

Server writes its port to ~/.browseros/server.json on startup so the CLI
can auto-discover the server URL without requiring `browseros-cli init`.

Discovery chain: BROWSEROS_URL env > config.yaml > server.json > error

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: address review feedback for PR #504

- Use synchronous unlinkSync in stop() since process.exit() fires
  immediately after, abandoning any pending async operations
- Wrap writeServerConfig in try/catch so a write failure doesn't crash
  a healthy server for a convenience feature

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* feat: type server discovery config and add version metadata

Add ServerDiscoveryConfig interface to @browseros/shared and enrich
server.json with server_version, browseros_version, and chromium_version.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: normalize URL from server.json for consistency

All other URL sources (env var, config.yaml) pass through
normalizeServerURL; apply the same to the server.json path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 11:37:00 -07:00
Nikhil
2271277b4d feat: add voice input to new tab search bar (#509)
* feat: add voice recording UI with waveform overlay to new tab search bar

Add a microphone button to the NewTab search bar that opens a fullscreen
recording overlay powered by react-voice-visualizer. The overlay shows a
real-time waveform visualization during recording, recording time, and a
stop button. On completion, the audio is transcribed via the existing
gateway endpoint and the transcript auto-navigates to inline chat.

Changes:
- Extract transcribeAudio() to shared lib/voice/transcribe-audio.ts
- Add VoiceRecordingOverlay component with react-voice-visualizer
- Add Mic button to NewTab search bar
- Track analytics via existing NEWTAB_VOICE_* events
- Handle cancel (backdrop click) vs submit (stop button) correctly

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: address PR review comments for voice recording overlay

- Reset processingRef on transcription error to prevent stuck state
- Use stable callback refs to prevent useEffect re-runs from inline
  arrow function props (fixes timer reset and unnecessary re-processing)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: replace voice overlay with inline sidepanel-style voice UI

Remove react-voice-visualizer dependency and VoiceRecordingOverlay.
Instead use the same inline voice pattern as the sidepanel ChatInput:
- Waveform bars replace the search input during recording
- Mic/stop/loading button states in the search bar
- Transcript populates the search input on completion
- Voice error shown inline below the search bar

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 11:33:01 -07:00
Nikhil
f865d301a2 test: add build smoke test to catch compile failures (#511)
* test: add build smoke test to catch compile failures

Compiles the server binary (darwin-arm64) and verifies --version outputs
the correct version from package.json. Uses an empty resource manifest
and stub env vars so the test runs without R2 access or real secrets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: address review feedback for PR #511

- Derive build target from process.platform/arch for CI portability
- Include binary stderr in --version assertion for better diagnostics

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 11:16:57 -07:00
Nikhil
6f398f0b36 fix: replace sharp with jimp to fix compiled binary crash (#510)
sharp is a native C module (libvips) whose .node binaries can't be
embedded in Bun compiled executables. It was imported at the top level
in copilot-fetch.ts, crashing the entire server at startup.

Replace with jimp (pure JavaScript, zero native deps) which bundles
cleanly into compiled binaries. Same resize algorithm preserved.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 11:06:05 -07:00
shivammittal274
8548bcf50a feat: credit-based tracking for BrowserOS provider (#489)
* feat: add credit-based tracking for BrowserOS provider

Send X-BrowserOS-ID header on all LLM requests through the BrowserOS
gateway for per-installation credit tracking. Handle 429 CREDITS_EXHAUSTED
as non-retryable. Add GET/PUT /credits endpoints to check and manage
credit balance.

* docs: add credits tracking UI design

Design for showing credit balance in side panel chat header (color-coded
badge) and a dedicated Usage & Billing settings page. Credits refresh
after each completed message turn or on exhaustion error.

* docs: add credits tracking UI implementation plan

8-task plan covering useCredits hook, CreditBadge component, ChatHeader
integration, message completion refresh, ChatError CREDITS_EXHAUSTED
handling, Usage & Billing settings page, and route/sidebar registration.

* feat: add useCredits React Query hook

* feat: add CreditBadge component with color thresholds

* feat: show credit badge in chat header for BrowserOS provider

* feat: refresh credits after chat message completion and on error

* feat: handle CREDITS_EXHAUSTED error in chat

* feat: add Usage & Billing settings page

* feat: register usage page route and sidebar entry

* fix: lint and formatting fixes for credit tracking UI

* fix: separate credits exhausted from Kimi rate limit in ChatError, redesign Usage page

* chore: remove PUT /credits endpoint and setCredits function

* fix: extract shared credit colors, add error state to UsagePage, use dailyLimit from gateway

* fix: make dailyLimit required in CreditsInfo (gateway always returns it)

* feat: gate credits UI behind CREDITS_SUPPORT feature flag (server >= 0.0.78)
2026-03-20 22:49:00 +05:30
shivammittal274
e3601bfdc1 feat: gate Qwen Code behind server version 0.0.77 (#508) 2026-03-20 20:07:39 +05:30
Dani Akash
2b4fdf1aad feat: improved multi tab agent workflow (#507)
* feat: updated multitab workflow

* fix: updated prompt with fix for test cases

* fix: active agent glow

* fix: review comments
2026-03-20 18:31:36 +05:30
shivammittal274
11d15d079f feat: alibaba qwen oauth (#506)
* feat: add Qwen Code as OAuth LLM provider with refactored OAuth hooks

Add Alibaba Qwen Code as a third OAuth provider using Device Code flow
with PKCE. Free tier: 2,000 requests/day, up to 1M token context.

Refactoring:
- Extract useOAuthProviderFlow hook (eliminates ~180 lines of duplicated
  OAuth logic from AISettingsPage for ChatGPT Pro + Copilot + Qwen)
- Extract resolveOAuthConfig in config.ts (shared resolver for all OAuth
  providers, parameterized by provider name, default model, refresh flag)
- Generalize token-manager device code flow to support PKCE
  (code_challenge/code_verifier) and form-urlencoded content type

New code:
- Qwen Code provider config with PKCE + form encoding flags
- Provider factories (both provider.ts and provider-factory.ts)
- Extension UI (template card, models, analytics, dialog)

* fix: use portal.qwen.ai as API base URL for OAuth tokens

DashScope (dashscope.aliyuncs.com) expects Alibaba Cloud API keys,
not OAuth tokens from chat.qwen.ai. The correct endpoint for OAuth
Bearer tokens is portal.qwen.ai/v1.

* fix: correct Qwen Code model IDs and context windows

- coder-model (1M context): virtual alias that routes to best model
- qwen3-coder-plus (1M): was incorrectly 131K
- qwen3-coder-flash (1M): new, speed-optimized variant
- qwen3.5-plus (1M): was incorrectly 1048576 (power-of-two vs decimal)
- Removed qwen3-coder-next (local/self-hosted, not available via OAuth)
- Default model changed to coder-model (auto-routes server-side)

* fix: move Qwen device code request to extension (bypasses WAF)

Alibaba WAF blocks server-side requests to chat.qwen.ai. Move the
initial device code request to the extension (browser context with
cookies), then hand off the deviceCode + codeVerifier to the server
for background polling via new POST /oauth/:provider/poll endpoint.

* fix: persist OAuth flow-started flag in sessionStorage

The flowStartedRef was lost when the component remounted (e.g. user
navigated to onboarding then back to settings). Use sessionStorage
to persist the flag so auto-create works after navigation.

* revert: remove sessionStorage for OAuth flow flag

Revert to simple useRef pattern matching the original ChatGPT Pro
implementation. The auto-create works when the user stays on the
AI settings page during auth.

* revert: move Qwen back to server-side device code flow

WAF block was temporary (rate-limiting), not permanent. Server-side
fetch to chat.qwen.ai now works. Reverted client-side device code
approach — Qwen now uses the same clean server-side flow as Copilot.

Removed: clientSideDeviceCode config, startClientSideDeviceCode(),
POST /oauth/:provider/poll endpoint, startDeviceCodePolling().

* feat: add WAF detection, rate-limit protection, and token storage endpoint

- Detect WAF captcha responses (HTML instead of JSON) in device code
  request and token polling, with user-friendly error messages
- Add 30s cooldown on "USE" button to prevent rapid clicks triggering WAF
- WAF-blocked poll requests silently retry instead of aborting
- Add POST /oauth/:provider/token endpoint for storing externally-provided
  tokens (useful for future fallback flows)
- Add storeTokens() method to OAuthTokenManager
- Pass server error messages through to extension toast notifications

* refactor: remove 30s cooldown, simplify OAuth hook

The hook is now identical for all providers — server handles retries
via activeDeviceFlows.delete(). Removed flowStartedAtRef cooldown
that was blocking legitimate retries.

* feat: client-side OAuth for Copilot and Qwen Code

Move device code OAuth flow to the extension for GitHub Copilot and
Qwen Code. The extension makes requests using Chrome's network stack,
which bypasses Alibaba WAF TLS fingerprint detection that blocks
server-side Bun/Node.js fetch.

New files:
- client-oauth.ts: Client-side device code + PKCE + token polling

Changes:
- useOAuthProviderFlow: handleClientAuth() for providers with clientAuth
  config, handleServerAuth() for others (ChatGPT Pro)
- AISettingsPage: clientAuth config for Copilot and Qwen Code
- WAF detection: opens provider site for captcha solving on block

Server-side device code flow preserved as fallback (token-manager.ts,
providers.ts). Token storage via POST /oauth/:provider/token endpoint.

* fix: export OAuthProviderFlowConfig type, fix typecheck errors

- Export OAuthProviderFlowConfig interface so AISettingsPage can use it
  instead of duplicating the type inline
- Fix string | null → string | undefined for agentServerUrl parameter
2026-03-20 17:46:48 +05:30
Nikhil
9257832acf feat: gate ChatGPT Pro and GitHub Copilot behind server version 0.0.77 (#503)
Add CHATGPT_PRO_SUPPORT and GITHUB_COPILOT_SUPPORT feature flags gated
on minServerVersion 0.0.77. Hide template cards and provider type
dropdown options when the server doesn't support the OAuth endpoints.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 16:43:09 -07:00
Nikhil
7bde0d59fa chore: bump chromium version (#502) 2026-03-19 16:22:13 -07:00
Nikhil
1c737b0f02 chore: bump server version (#501) 2026-03-19 16:17:50 -07:00
Nikhil
5d0a2b9bfe feat: add model selector to newtab search bar (#499)
* feat: add model selector to newtab search bar

Add AI provider/model selector button to the newtab homepage footer bar,
matching the existing button aesthetics (Workspace, Tabs, Apps). Reuses
ChatProviderSelector popover from sidepanel. Users can now see and change
their AI provider before starting a conversation from the newtab page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: clean up newtab footer with icon-only buttons

Reduce visual clutter in the search bar footer by converting Provider,
Workspace, and Tabs buttons to compact icon-only buttons (8x8). Text
labels and chevron indicators are removed — native title tooltips
provide discoverability on hover. Apps button on the right keeps its
text label per user preference.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: add hover-expand labels to newtab footer icon buttons

Replace static title tooltips with smooth hover-expand animation —
buttons show icon-only by default, text label slides out on hover
via max-w transition. Gives a clean compact look while keeping
labels discoverable.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: revert workspace/tabs to full text, keep provider hover-expand only

Restore full text labels for Workspace and Tabs buttons. Only the
provider selector uses the compact icon + hover-expand pattern.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: simplify provider selector to plain icon button

Remove hover-expand animation, use a simple icon-only button with
native title tooltip for the provider selector.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 16:14:15 -07:00
shivammittal274
720baaed3e feat: add GitHub Copilot as OAuth LLM provider (#500)
* feat: add GitHub Copilot as OAuth-based LLM provider

Add GitHub Copilot as a second OAuth provider using the Device Code flow
(RFC 8628). Users authenticate via github.com/login/device, and the server
polls for token completion. Supports 25+ models through a single Copilot
subscription.

Key changes:
- Device Code OAuth flow in token manager (poll with safety margin)
- Custom fetch wrapper injecting Copilot headers + vision detection
- Provider factory using createOpenAICompatible for Chat Completions API
- Extension UI with template card, auto-create on auth, and disconnect

* fix: address PR review comments for GitHub Copilot OAuth

- Validate device code response for error fields (GitHub can return 200
  with error payload)
- Store empty refreshToken instead of access token for GitHub tokens
- Add closeButton to Toaster for dismissing device code toast

* fix: add github-copilot to agent provider factory

The chat route uses a separate provider-factory.ts (agent layer) from the
test-provider route (llm/provider.ts). Added createGitHubCopilotFactory
to the agent factory so chat works with GitHub Copilot.

* fix: add github-copilot to provider icons, models, and dialog

- Add Github icon from lucide-react to providerIcons map
- Add 8 Copilot models (GPT-4o, Claude, Gemini, Grok) to models.ts
- Add github-copilot to NewProviderDialog zod enum, validation skip,
  canTest check, and OAuth credential message

* fix: reorder copilot models with free-tier models first

Put models available on Copilot Free at the top (gpt-4o, gpt-4.1,
gpt-5-mini, claude-haiku-4.5, grok-code-fast-1), followed by
premium models that require paid Copilot subscription.

* fix: set correct 64K context window for Copilot models

Copilot API enforces a 64K input token limit regardless of the
underlying model's native context window. Updated all model entries
and the default template to 64000 so compaction triggers correctly.

* fix: use actual per-model prompt limits from Copilot /models API

Queried api.githubcopilot.com/models for real max_prompt_tokens values.
GPT-4o/4.1 have 64K, Claude/gpt-5-mini have 128K, GPT-5.x have 272K.
Also updated model list to match what's actually available on the API
(e.g. claude-sonnet-4.6 instead of 4.5, added gpt-5.4/5.2-codex).

* feat: resize images for Copilot using VS Code's algorithm

Large screenshots cause 413 errors on Copilot's API. Resize images
following VS Code's approach: max 2048px longest side, 768px shortest
side, re-encode as JPEG at 75% quality. Uses sharp for server-side
image processing.

* fix: address all Greptile P1 review comments

- Add .catch() on fire-and-forget pollDeviceCode to prevent unhandled
  rejection crashes (Node 15+)
- Add deduplication guard (activeDeviceFlows Set) to prevent concurrent
  device code flows for the same provider
- Add runtime validation of server response in frontend before calling
  window.open() and showing toast
- Remove dead GITHUB_DEVICE_VERIFICATION constant from urls.ts

* fix: upgrade biome to 2.4.8, fix all lint errors, and address review bugs

- Upgrade biome from 2.4.5 to 2.4.8 (matches CI) and migrate configs
- Fix image resize: only re-encode when dimensions actually change
- Fix device code polling: retry on transient network errors instead of aborting
- Allow restarting device code flow (clear old flow instead of throwing 500)
- Fix pre-existing noNonNullAssertion and noExplicitAny lint errors globally

* fix: address Greptile P2 review — image resize and config guard

- Fix early-return guard: check max/min sides against their respective
  limits (MAX_LONG_SIDE/MAX_SHORT_SIDE) instead of both against SHORT
- Preserve PNG alpha: detect hasAlpha and keep PNG format instead of
  unconditionally converting to lossy JPEG
- Keep browserosId guard in resolveGitHubCopilotConfig consistent with
  ChatGPT Pro pattern (safety check that caller context is valid)

* feat: update Copilot models to full list from pricing page, default to gpt-5-mini

Added all 23 models from GitHub Copilot pricing page. Ordered with
free-tier models first (gpt-5-mini, claude-haiku-4.5), then premium.
Changed default from gpt-4o to gpt-5-mini since it's unlimited on
Pro plan and has 128K context (vs gpt-4o's 64K limit).
2026-03-20 02:33:09 +05:30
shivammittal274
cee9c764b1 fix(skills): read-only view mode for built-in skills (#494)
* fix(skills): read-only view mode for built-in skills

- SkillCard shows Eye icon + "View" for built-in, Pencil + "Edit" for user
- SkillDialog in read-only mode: disabled fields, no toolbar on markdown
  editor, "View Skill" title, "Close" button, no "Update Skill"
- Hide tip section in read-only mode

* fix(skills): use react-markdown for read-only skill view

Replace MDXEditor with react-markdown for viewing built-in skills.
MDXEditor chokes on code fences, angle brackets, and image syntax
causing content truncation. react-markdown handles standard markdown
correctly with no rendering issues.
2026-03-19 23:48:51 +05:30
Nikhil
7bdeeb85d5 fix: revert: convert settings to popup dialog (#477) (#498)
* Revert "feat: convert settings to popup dialog (#477)"

This reverts commit 42aa0ff1ef.

* fix: address review feedback for PR #498

- Remove erroneous SETTINGS_PAGE_VIEWED_EVENT tracking from SidebarLayout
  (was firing on every non-settings page navigation)
- Fix mobile settings sidebar not closing on route change by merging
  setMobileOpen(false) into the pathname-dependent analytics useEffect

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 11:13:14 -07:00
Dani Akash
19069cb9c4 fix: newtab layout (#497) 2026-03-19 20:40:38 +05:30
Dani Akash
5bb6143373 feat: display selected text from page in sidepanel (#496)
* feat: select text and pass to sidepanel

* fix: lint issues

* fix: persist selection across tabs

* fix: review comments

* fix: change when the selection is cleared

* feat: sanitize url
2026-03-19 20:21:31 +05:30
Dani Akash
f4d4b73a24 fix: improved memory tools (#495)
* fix: new prompt update tool

* fix: memory search tool

* fix: all review comments

* chore: remove dead code
2026-03-19 19:01:25 +05:30
Dani Akash
d965698905 fix: biome & tsc setup across repo (#493)
* fix: biome lint issues

* fix: code quality workflow

* fix: all lint issues

* chore: test lefthook pre-commit hook

* chore: test lefthook with agent file

* chore: revert test comment from lefthook verification

* feat: setup tsgo for typechecking agent

* fix: typecheck cli command

* fix: early return to prevent errors
2026-03-19 18:18:24 +05:30
shivammittal274
50b2f45590 fix(skills): UI section separation and fix find-alternatives rendering (#492)
* fix(skills): UI section separation and fix find-alternatives rendering

- Split skills page into "My Skills" (user) and "BrowserOS Skills" (built-in) sections
- Fix find-alternatives SKILL.md — replace angle bracket placeholders with curly
  braces to prevent MDXEditor from parsing them as JSX and rendering empty content

* fix(skills): bump find-alternatives to v1.1 for CDN sync
2026-03-19 17:38:28 +05:30
Dani Akash
1b88ade021 feat: updated homepage chat (#481)
* feat: updated chat ui from homepage

* fix: vertical scroll

* fix: horizontal scroll issue

* fix: lint issues

* fix: header width

* fix: message input from home to chat

* feat: created sidebar header support in new tab chat

* fix: remove history from new tab chat

* fix: remove the shared element transition

* fix: lint issues

* fix: review comments

* fix: defer the sendMessage callback

* fix: all code concerns

* fix: preserve state of chat on homepage

* fix: review comments
2026-03-19 15:24:05 +05:30
shivammittal274
079a254fa4 fix(skills): separate built-in and user skills into distinct directories (#487)
* fix(skills): separate built-in and user skills into distinct directories

- Move built-in skills to ~/.browseros/skills/builtin/, user skills stay in root
- Unify seed + sync into single syncBuiltinSkills() function, delete seed.ts
- Preserve user's enabled/disabled state during remote sync version updates
- Add catalog reconciliation — remove built-in skills dropped from remote catalog
- Fallback to bundled defaults per-skill when remote sync fails
- One-time migration moves existing default skills from root to builtin/
- Add builtIn field to SkillMeta, determined by directory (not metadata)
- UI shows "Built-in" badge, hides delete button for built-in skills
- Reject deletion of built-in skills in service layer
- Check both dirs for ID collision on skill creation

* fix(skills): address review — dedup by id, guard applyEnabled regex

- loader.ts: deduplication now keys on skill.id (directory slug) not
  skill.name (display name), preventing silent drops on name collision
- remote-sync.ts: applyEnabled checks if regex matched before writing,
  logs warning if remote content lacks an enabled field

* fix(skills): reconciliation preserves bundled defaults, delete returns 403

- reconcileRemovedSkills now keeps DEFAULT_SKILLS IDs in the safe set,
  preventing delete-then-reinstall cycle that lost enabled:false state
- DELETE /skills/:id returns 403 for built-in skills instead of 500

* refactor(skills): simplify syncBuiltinSkills to single clean pass

Build content map (bundled + remote), iterate once, preserve enabled,
reconcile deletions. Removes 7 helper functions, 70 lines of code.

* refactor(skills): extract syncOneSkill, patch content before writing

- syncBuiltinSkills is now 15 lines: build map, iterate, clean up
- syncOneSkill: flat, patches enabled state before writing (single write)
- setEnabled: pure function for content patching
- removeObsoleteSkills: extracted from inline block
2026-03-19 13:35:47 +05:30
Felarof
42aa0ff1ef feat: convert settings to popup dialog (#477)
* feat: convert settings page to popup dialog, move workflows to main nav

Replace the dedicated settings page layout (SettingsSidebarLayout) with a
modal dialog (SettingsDialog) that opens on top of the current page. Settings
are now accessible via a dialog triggered from the main sidebar, eliminating
the confusing dual-sidebar navigation pattern.

- Create SettingsDialog with tabbed left panel and content area
- Move Workflows into main sidebar navigation (feature-gated)
- Remove /settings/* routes (except /settings/survey)
- Delete SettingsSidebarLayout and SettingsSidebar components
- Update backward compatibility redirects

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: setup new urls for the dialog box

* fix: dialog close button

* fix: settings analytics

* fix: address review comments

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>
2026-03-18 23:26:13 +05:30
shivammittal274
4000f094f6 Feat/chatgpt pro polish (#484)
* fix: ChatGPT Pro UI polish — fix undefined display and add icon

- Fix "gpt-5.3-codex · undefined" — hide baseUrl when not set
- Add OpenAI icon for chatgpt-pro provider in icon map

* chore: rename ChatGPT Pro to ChatGPT Plus/Pro (supports both plans)

* chore: remove accidentally committed files
2026-03-18 22:51:22 +05:30
shivammittal274
151be81cee fix: ChatGPT Pro UI polish — fix undefined display and add icon (#483)
- Fix "gpt-5.3-codex · undefined" — hide baseUrl when not set
- Add OpenAI icon for chatgpt-pro provider in icon map
2026-03-18 22:23:28 +05:30
shivammittal274
46a8326140 feat: add ChatGPT Pro OAuth as LLM provider (#476)
* feat: add ChatGPT Pro OAuth as LLM provider

Adds OAuth 2.0 (Authorization Code + PKCE) flow so users can authenticate
with their ChatGPT Pro subscription to power BrowserOS's agent, matching
the pattern used by Codex CLI, OpenCode, and Pi.

Server:
- OAuth token lifecycle (PKCE, exchange, refresh, SQLite storage)
- Dedicated callback server on port 1455 (Codex client ID registration)
- Codex fetch wrapper routing API calls to chatgpt.com/backend-api
- Config resolution + provider factories for all code paths (chat, test, refine)

Extension:
- ChatGPT Pro template card with OAuth flow trigger
- Status polling hook + auto-create provider on auth success
- Model list with Codex-supported models (gpt-5.x-codex family)

* fix: address Greptile PR review comments

- Wire OAuth callback server stop handle into onShutdown (P1: port 1455 leak)
- Guard against missing refresh token + clear stale tokens on failed refresh (P1)
- Add logger.warn to silent catch in codex-fetch body mutation
- Document JWT trust assumption in parseAccessTokenClaims
- Source model ID from provider template instead of hard-coding

* simplify: remove unnecessary OAuth shutdown wiring and useCallback

- Revert OAuthHandle interface — callback server port releases on process exit
- Remove stopCallbackServer from shutdown flow (dead code)
- Remove all useCallback from useOAuthStatus per CLAUDE.md guidance

* style: add readonly modifiers and braces per TS style guide

* docs: add E2E test screenshots for ChatGPT Pro OAuth

* fix: strip item IDs from Codex requests to fix multi-turn conversations

* fix: preserve function_call_output IDs in Codex requests

* fix: resolve Codex store=false + tool-use incompatibility

- Pass providerOptions { openai: { store: false } } to ToolLoopAgent
  so the AI SDK inlines content instead of using item_reference
- Strip item IDs and previous_response_id in codex-fetch (safety net)
- Use .responses() model (Codex only speaks Responses API format)

* fix: remove non-Codex model gpt-5.2 from chatgpt-pro model list

* fix: strip unsupported Codex params and update model list

- Strip temperature, max_tokens, top_p from Codex requests (unsupported)
- Add all available Codex models including gpt-5.4, gpt-5.2, gpt-5.1

* chore: remove screenshots containing email

* feat: enable reasoning events for ChatGPT Pro Codex models

* chore: set reasoning effort to high for ChatGPT Pro

* feat: add configurable reasoning effort and summary for ChatGPT Pro

- Add reasoningEffort (none/low/medium/high) and reasoningSummary
  (auto/concise/detailed) dropdowns in the Edit Provider dialog
- Pass through extension → chat request → agent config → providerOptions
- Defaults: effort=high, summary=auto

* fix: strip max_output_tokens from Codex requests (fixes compaction)

* fix: address Greptile P1 issues

- Fix default model fallback: gpt-4o → gpt-5.3-codex (Codex endpoint)
- Clear stale tokens on refresh failure (prevents infinite retry loop)
- Only auto-create provider after explicit OAuth flow, not on page load
- Add catch block to auto-create effect with error toast
2026-03-18 22:07:43 +05:30
Dani Akash
4b18723a21 fix: undo shortcut in rewrite button (#472)
* fix: undo shortcut in rewrite button

* fix: address reviews
2026-03-18 07:04:48 +05:30
Nikhil
4909927c03 chore: bump PATCH and OFFSET (#479) 2026-03-17 17:41:45 -07:00
Nikhil
22c5e85707 chore: bump server version (#478) 2026-03-17 17:12:23 -07:00
shivammittal274
59b00a6837 feat: remote skill download and auto-sync (#468)
* feat: add remote skill download and auto-sync

Download default skills from remote catalog on first setup with
bundled fallback when offline. Background sync every 45 minutes
checks for new/updated skills without overwriting user-customized
ones. Tracks installed defaults via content hashes in a local
manifest file.

* feat: make skills catalog URL configurable and add generation script

Add SKILLS_CATALOG_URL env var (following CODEGEN_SERVICE_URL pattern)
with fallback to the default constant. Add script to generate
catalog.json from bundled defaults for static hosting.

* feat: add R2 upload script and use cdn.browseros.com for catalog URL

Add upload-skills-catalog.ts that generates and uploads catalog.json
to Cloudflare R2 (same infra as existing build artifacts). Update
default catalog URL to cdn.browseros.com/skills/v1/catalog.json.

* test: add E2E tests for remote skill sync against live CDN

* fix: address code review findings — security, validation, DRY

- Add path traversal protection via safeSkillDir in writeSkillFile
  and readSkillContent (reuses existing validation from service.ts)
- Add runtime type guards for catalog JSON and manifest JSON parsing
- Fix seedFromRemote to return false on partial failure so bundled
  fallback kicks in
- Add per-skill error handling in syncRemoteSkills so one bad skill
  doesn't crash the entire sync
- Wire stopSkillSync into Application.stop() shutdown path
- Extract version from frontmatter in seedFromBundled instead of
  hardcoding '1.0'
- Consolidate duplicated logic: reuse installSkill/writeSkillFile/
  contentHash/saveManifest from remote-sync.ts in seed.ts
- Extract shared catalog generation into scripts/catalog-utils.ts

* test: add flow tests for all four sync scenarios against live CDN

* refactor: remove redundant scripts and inline catalog generation

Drop generate-skills-catalog.ts, catalog-utils.ts, and
e2e-remote-sync.test.ts (covered by flows.test.ts). Inline
catalog generation into upload-skills-catalog.ts.

* test: add full E2E server flow test against live CDN

Tests all 7 steps of the real server lifecycle: fresh seed from CDN,
no-op sync, user edit preservation, skill reinstall, custom skill
protection, background timer firing, and second startup skip.

* chore: remove e2e-server-flow test

* fix: address Greptile review — entry validation, size limit, DRY, no-op saves

- Validate individual skill entries in catalog (id, version, content
  must all be strings) not just the top-level shape
- Add 1MB response size limit on catalog fetch to prevent resource
  exhaustion from compromised/misconfigured CDN
- Skip manifest save when sync cycle had no changes (avoids
  unnecessary disk I/O every 45 minutes)
- Share extractVersion via remote-sync.ts export, remove duplicate
  from seed.ts

* fix: prevent bundled fallback from overwriting partial remote seeds

When seedFromRemote partially fails, the bundled fallback now skips
skills already in the manifest (installed by the partial remote
seed). Also adds Content-Length early check before downloading the
full catalog response body.

* fix: run sync immediately on startup, not just on interval

Previously the first sync fired 45 minutes after boot. Now
startSkillSync runs one sync immediately so returning users
get skill updates right away.

* refactor: simplify sync — remote always wins, remove manifest

Remote catalog is the source of truth. If a skill exists in the
catalog, its version is compared against local frontmatter and
overwritten when newer. No manifest file, no content hashes.

User-created skills (IDs not in catalog) are never touched.

* fix: skip bundled skills already installed by partial remote seed

* chore: remove unreliable Content-Length check

* chore: remove size limit checks, fetch timeout is sufficient
2026-03-17 21:40:45 +05:30
Nikhil
44af9aea6d fix: clean-up old scripts (#474)
* fix: remove old scripts

* fix: remove vscode
2026-03-17 08:56:55 -07:00
Nikhil
1779e1e7bd fix: create user-data dir if missing (#473) 2026-03-17 08:30:39 -07:00
shivammittal274
2597cdbc70 feat: add Rewrite with AI for scheduled task prompts (#465)
* feat: add "Rewrite with AI" prompt refinement for scheduled tasks

Add a lightweight /refine-prompt endpoint that uses generateText to
rewrite rough scheduled task prompts into clear, actionable instructions.
The UI adds a sparkle-icon button next to the Prompt label in the
NewScheduledTaskDialog with loading state, undo support, and disabled
state when the textarea is empty.

* fix: clear stale undo ref on dialog re-open and pass providerId to refinePrompt

- Reset originalPromptRef when dialog opens and on form submit to
  prevent stale "Undo rewrite" button on re-open
- Accept optional providerId in refinePrompt() so the form's selected
  provider is used for refinement instead of always the system default

* fix: hide undo rewrite link while refinement is in flight

* fix: reset isRefining state on dialog re-open

* fix: ignore stale refine-prompt responses after dialog re-open

Use a request generation counter so that if the dialog is closed and
re-opened while a rewrite is in flight, the stale response is silently
discarded instead of overwriting the fresh form state.

* fix: invalidate stale refine requests on dialog reopen and rename to kebab-case

- Increment refineRequestIdRef on dialog open so in-flight requests
  from a previous session are discarded when they complete
- Rename refinePrompt.ts to refine-prompt.ts per CLAUDE.md file naming
2026-03-17 19:40:56 +05:30
shivammittal274
515ad44826 fix: resolve biome v2 config and lint errors (#471)
Migrate `files.ignore` to `files.includes` for Biome v2 compatibility,
fix forEach callback return value, unused variable, import ordering,
and formatting violations.
2026-03-17 19:14:01 +05:30
Dani Akash
2a6848bc1d feat: improved system prompt (#466)
* feat: added ai-sdk dev tools

* feat: new system prompt section

* feat: tests to maintain prompt integrity

* feat: update mcp sync to use react query

* fix: refetch logic for sync

* chore: remove limits on fetching integrations

* fix: refetch integrations on delete

* fix: review comment

* chore: update tests

* fix: improved memory classification

* fix: lint issues

* fix: core memory prompts

* fix: handle scenario where soul file is empty
2026-03-17 19:01:10 +05:30
Dani Akash
74f6a2dff1 fix: issue with fill tool (#469) 2026-03-17 18:58:17 +05:30
Dani Akash
58adac17db feat: new workflows (#470) 2026-03-17 18:56:55 +05:30
shivammittal274
e67c17a0f8 feat: add voice input to agent chat sidebar (#467)
* feat: add voice input to agent chat sidebar

Allow users to record voice and transcribe to text in the chat input.
Mic button shows when input is empty, waveform visualizer during recording,
transcription via OpenAI (llm.browseros.com/api/transcribe).

- Extract shared useVoiceInput hook to lib/voice/
- Time-domain waveform bars that bounce per-frequency-band
- Bar height capped to fit input container
- Analytics events for recording lifecycle

* fix: address review — add fetch timeout, await stopRecording, deduplicate VoiceInputState

- Add AbortSignal.timeout(30s) to transcription fetch
- Await stopRecording() and track analytics after completion
- Export VoiceInputState from useVoiceInput, import in consumers

* fix: await startRecording before tracking, narrow SurveyChat effect deps

- Await startRecording() so analytics only fires after mic permission granted
- Narrow SurveyChat useEffect dependency from [voice] to [voice.transcript, voice.isTranscribing]

* fix: analytics only tracks on success, clean up stream on failure, type API response

- startRecording returns boolean; track(RECORDING_STARTED) only fires on success
- Catch block cleans up MediaStream tracks and AudioContext on partial failure
- Type transcription API response with TranscribeResponse interface

* fix: keep mic button always visible alongside send button

Mic and send are now separate buttons, both always visible.
Mic is disabled while AI is streaming. Send is disabled during
recording/transcribing. Buttons are no longer absolutely positioned
inside the textarea — they sit beside it in the flex row.

* fix: keep mic button always visible inside input alongside send

Both mic and send buttons are always visible inside the input field,
positioned on the right side (ChatGPT-style). Mic is disabled while
AI is streaming. Send is disabled during recording/transcribing.

* fix: remove unreachable CSS branch in recording waveform div
2026-03-17 18:28:19 +05:30
shivammittal274
94e3f99adb feat: add test-ui skill for visual testing of agent extension via CDP (#464)
* feat: add CDP UI inspector script for dev self-testing

* fix: address code review feedback for inspect-ui script

- Use Delete key (not Backspace) to match server's keyboard.ts clearField
- Add windowId resolution to open-sidepanel (chrome.sidePanel.open requires it)
- Make target matching case-insensitive
- Replace process.exit(1) in eval with thrown error for proper cleanup
- Add comment referencing DEV_PORTS source of truth

* docs: add self-testing workflow for UI changes via CDP inspector

* fix: runtime fixes for inspect-ui discovered during live testing

- Remove Input.enable (domain has no enable method)
- Add DOM.getDocument before DOM operations (required by protocol)
- Use BrowserOS-specific sidePanel.browserosToggle API instead of
  standard chrome.sidePanel.open (side panel starts disabled)
- Enable side panel with setOptions before toggling

* feat: add test-ui skill for visual testing of agent extension UI

Adds a Claude Code skill that lets the agent visually test both
surfaces of the BrowserOS extension:
- New tab page (app.html) — left sidebar with Home, Scheduled Tasks,
  Settings, Skills, Memory, Soul, Connect Apps
- Right side panel (sidepanel.html) — chat interface

Includes all gotchas discovered through real testing: randomized ports,
fresh profile onboarding redirect, stale element IDs after navigation,
BrowserOS-specific sidePanel APIs, DOM.getDocument requirement.

* feat: add press_key, scroll, hover, select_option, wait_for to inspect-ui

Brings inspect-ui.ts to parity with server's MCP input tools:
- press_key: key combos like Enter, Control+A, Meta+Shift+P
  (ported from keyboard.ts pressCombo)
- scroll: up/down/left/right with configurable amount
- hover: hover over element by ID for tooltip/hover state testing
- select_option: select dropdown option by value or visible text
  (ported from browser.ts selectOption)
- wait_for: poll for text or CSS selector with 10s timeout

Updated skill documentation with new commands and examples.

* docs: prefer snapshot over screenshot, add holistic debugging guidance

- Add snapshot vs screenshot guidance table — prefer snapshot for
  structural checks, screenshot only for visual/layout verification
- Add server log checking instructions ([agent], [server], [build] tags)
- Add JS error checking via eval
- Add API connectivity verification
- Add common issues troubleshooting table
- Update all examples to use snapshot as default verification

* fix: address Greptile review feedback

- Replace process.exit(1) with process.exitCode + return in cmdWaitFor
  to allow async CDP cleanup in finally blocks
- Fix cmdScroll enabling Runtime instead of Page domain
- Add BROWSEROS_EXTENSION_ID env var override for extension ID
- Align CLAUDE.md dev server command with SKILL.md canonical command
2026-03-17 15:18:00 +05:30
Nikhil
e2069bc999 chore: bump server version (#459) 2026-03-16 16:42:54 -07:00
shivammittal274
2d51c82722 fix: detect custom clickable elements in take_snapshot (#452)
take_snapshot only used the AX tree, which misses custom components
(cursor:pointer divs, onclick handlers, etc.) that lack ARIA roles.
These elements appeared as role="generic" and were invisible to the agent.

Changes:
- Merge findCursorInteractiveElements into snapshot() so take_snapshot
  catches cursor:pointer, onclick, and tabindex elements
- Add DisclosureTriangle to INTERACTIVE_ROLES for <summary> elements
- Use aria-label as text fallback in cursor detection for icon-only buttons
- Fix dedup bug in enhancedSnapshot that was silently dropping all
  cursor-detected elements by checking against all AX node IDs instead
  of only already-included output IDs
2026-03-17 02:01:15 +05:30
shivammittal274
29056226bb feat: add eval framework and coordinate-based input tools (#453)
- Add hover_at, type_at, drag_at coordinate tools to server
- Add hoverAt, typeAt, dragAt methods to Browser class
- Export server internals (browser, tool-loop, registry) for eval imports
- Copy eval app from enterprise repo with agents, graders, runner, dashboard
- Nest eval-targets inside apps/eval
- Adapt sessionExecutionDir → workingDir for current server API
- Add biome ignore for dashboard HTML to prevent lint breaking onclick handlers
2026-03-16 23:12:23 +05:30
shivammittal274
d1d2074abc feat: add get_console_logs tool for browser console output (#454)
* feat: add get_console_logs tool to surface browser console output

Captures Runtime.consoleAPICalled, Runtime.exceptionThrown, and
Log.entryAdded CDP events per page with a FIFO ring buffer (500 entries).

- ConsoleCollector: per-page buffers with O(1) session routing via Map lookup
- Session-aware CDP event dispatching (onSessionEvent) in CdpBackend
- Log.enable() added alongside Runtime.enable() in attachToPage
- Single tool with level hierarchy, text search, limit, and clear params
- Buffer clears on main-frame navigation, cleaned up on page close

* fix: address review — handle session re-attach, remove dead code

- ConsoleCollector.attach() now updates session mapping on re-attach
  instead of early-returning, preventing silent event drops after
  target detach/re-attach (e.g. tab crash, cross-process navigation)
- Remove unused clearConsoleLogs() and ConsoleCollector.clear()
2026-03-16 22:20:40 +05:30
shivammittal274
41c9b1547c feat: add per-task LLM provider selection for scheduled tasks (#450)
* feat: add per-task LLM provider selection for scheduled tasks

Allow users to choose which AI provider a scheduled task runs with,
using the same ChatProviderSelector component from the new-tab page.
Falls back to the global default provider when none is selected or
if the selected provider has been deleted.

* fix: lint issues

* chore: updated to latest schema.graphql file

---------

Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>
2026-03-16 18:03:21 +05:30
shivammittal274
8b0e6dbfd3 Merge pull request #448 from browseros-ai/fix/filter-empty-conversation-messages
fix: filter empty messages from conversation history
2026-03-16 13:30:42 +05:30
github-actions[bot]
07a2d13f16 docs: shivammittal274 signed the CLA in browseros-ai/BrowserOS#$pullRequestNo 2026-03-15 12:27:03 +00:00
shivammittal274
46031ed573 fix: filter empty messages from conversation history to prevent validation errors
The AI SDK can produce assistant messages with empty parts (parts:[]) when
a stream is aborted, and providers reject assistant messages with empty text
content. This adds a validation utility that filters both cases before
sending messages to createAgentUIStreamResponse and when persisting them.
2026-03-15 17:42:34 +05:30
Nikhil
ecd31efcb0 fix: remove Git LFS tracking for docs images so Mintlify can serve them (#446)
Mintlify deploys docs by cloning the repo but does not run `git lfs
pull`. The `.gitattributes` rule `docs/images/** filter=lfs` caused
all doc images to be stored as ~130-byte LFS pointer files, which
Mintlify served as-is — breaking every image on the site.

Removing the LFS rule and re-adding the files as regular git blobs
fixes all images without changing any paths or MDX files.

Also fixes broken Slack link placeholder in troubleshooting page.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 21:29:26 -07:00
Nikhil
c79c775fb8 fix: co-locate troubleshooting images to fix broken CDN rendering (#444)
Images in docs/images/ are served as broken 130-byte placeholders by
Mintlify CDN. Co-locating images with the MDX file (matching the
working pattern in features/workflow/ and features/cowork/) bypasses
this issue. Also fixes the Slack link placeholder.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 21:12:26 -07:00
Felarof
4bee76253d fix: prevent undefined provider in chat requests on fresh install (#442)
* fix: fallback to default BrowserOS provider when provider is null

When the extension first loads, provider config is loaded async from
storage. If a chat request fires before loading completes (race
condition), provider is null and the server receives provider: undefined,
causing a Zod validation error. This adds a fallback to
createDefaultBrowserOSProvider() in both chat paths (sidepanel and
scheduled tasks) so provider.type is always defined.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: fallback to first provider when default provider ID is stale

When defaultProviderId in storage doesn't match any loaded provider
(e.g. after Kimi/Moonshot rollout), selectedProvider was null causing
provider: undefined in chat requests. Now falls back to providers[0].

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: repair stale defaultProviderId in storage on load

When the stored default provider ID doesn't match any loaded provider,
write back the corrected ID (providers[0].id) to storage so it doesn't
silently persist across sessions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 09:05:27 -07:00
Felarof
5b1b4e22cb chore: disable Canva and Exa from Klavis MCP server list
Comment out non-working Canva and Exa integrations from the OAuth MCP
servers list and remove their imports/icon mappings from the UI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:30:50 -07:00
Felarof
439acc8b12 feat: add worktrunk setup for browseros-agent development
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 13:17:08 -07:00
Felarof
95c855a091 feat: replace rate limit CTAs with Kimi/Moonshot partnership links (#437)
* feat: replace rate limit CTAs with Kimi/Moonshot partnership links

Comment out old "Learn more" and "take a quick survey" links on the
daily limit error banner. Replace with Kimi API key docs link and
direct Moonshot AI platform link for conversion tracking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: remove partnership tagline from rate limit banner

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 12:45:41 -07:00
Felarof
5ad6581f6d Merge pull request #436 from browseros-ai/feat/pr1
fix: use BookOpen icon for Docs button in settings sidebar
2026-03-13 09:36:43 -07:00
Felarof
2c04d79830 fix: use BookOpen icon for Docs button in settings sidebar
The Docs link in the settings sidebar was using the Info icon (circle
with "i"). Changed it to BookOpen which is the standard icon for
documentation links.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 09:36:19 -07:00
Nikhil Sonti
304b3b3289 chore: remove update submodule sync 2026-03-13 09:14:57 -07:00
Dani Akash
96b0a7cfc8 Merge pull request #435 from browseros-ai/chore/replace-agent-submodule-with-subtree
chore(repo): replace agent submodule with subtree
2026-03-13 21:30:12 +05:30
Dani Akash
290ee91a8b Add 'packages/browseros-agent/' from commit '90bd4be3008285bf3825aad3702aff98f872671a'
git-subtree-dir: packages/browseros-agent
git-subtree-mainline: 8f148d0918
git-subtree-split: 90bd4be300
2026-03-13 21:22:09 +05:30
Dani Akash
8f148d0918 chore(repo): remove BrowserOS-agent submodule 2026-03-13 21:21:51 +05:30
Dani Akash
e7680d4972 chore(repo): move docs media to LFS and stop tracking downloaded build tools (#434)
- Track docs/images/** and docs/videos/** with Git LFS
- Add packages/browseros/build/tools/ to .gitignore
- Remove appimagetool-x86_64.AppImage from version control (downloaded on demand by build script)
2026-03-13 21:07:22 +05:30
Nikhil Sonti
90bd4be300 chore: Merge branch 'main' 2026-03-13 07:48:40 -07:00
Felarof
6405639d36 chore: rename Chat & Hub Provider to Chat & Council Provider
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:25:48 -07:00
Nikhil
2d1e989a1c fix: remove duplicate hidden window and improve scheduled task prompt (#496)
* fix: scheduled task agent not using hidden window for new pages

The agent prompt only told the agent to pass windowId with `new_page`
but not `new_hidden_page`, which the agent prefers for background work.
The agent also had no instruction against closing or replacing its
dedicated hidden window, causing pages to scatter across uncontrolled
windows.

Expanded the scheduled task prompt rules to:
- Cover both `new_page` and `new_hidden_page` windowId requirement
- Forbid closing the dedicated hidden window
- Forbid creating new windows
- Added `new_hidden_page` to tool reference for MCP consumers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: remove duplicate hidden window creation from scheduled task frontend

The server's ChatService already creates a hidden window for scheduled
tasks (chat-service.ts:99-126), but the frontend (scheduledJobRuns.ts)
was also creating a minimized Chrome window that the server immediately
overwrote. This caused two windows to be created per scheduled task run,
with only one being used.

Removed from scheduledJobRuns.ts:
- chrome.windows.create() call
- 1-second race condition delay hack (FIXME)
- chrome.windows.remove() cleanup
- windowId/activeTab params to getChatServerResponse()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 17:11:51 -07:00
Nikhil
7c89198dcf fix: remove dead getCdpToolReference and unused prompt exports (#493)
* chore: bump server version

* fix: remove dead getCdpToolReference and unused prompt exports

The getCdpToolReference function was always excluded by the AI SDK agent
(tool schemas are injected by the SDK itself) and never used by the MCP
server (which has its own MCP_INSTRUCTIONS). Also removes unused exports
getSystemPrompt and PROMPT_SECTION_KEYS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 16:49:42 -07:00
Nikhil
8a38e90e24 fix: move session dirs to ~/.browseros/sessions and update skill paths (#494)
* chore: bump server version

* fix: move session dirs to ~/.browseros/sessions and update skill paths

Session directories now live under ~/.browseros/sessions/{conversationId}/
instead of executionDir/sessions/. Adds 30-day cleanup for stale sessions
at server startup. Updates 6 default skills to reference the working
directory instead of hardcoding ~/Downloads/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: rename sessionExecutionDir to workingDir across server

Consistent naming for the per-conversation working directory:
- ResolvedAgentConfig.sessionExecutionDir → workingDir
- ToolDirectories.executionDir → workingDir
- resolveExecutionPath() → resolveWorkingPath()
- buildBrowserToolSet param: executionDir → workingDir

Server-level executionDir (DB, logs) unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address PR review — restore emoji folder name, refresh session mtime

- Revert "Read Later" back to "📚 Read Later" to avoid creating
  duplicate bookmark folders for existing users
- Touch session dir mtime on each message via utimes() so cleanup
  correctly reflects last activity, not just directory creation time

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address PR review round 2 — remove dead executionDir, fix emoji

- Remove executionDir from ChatServiceDeps and ChatRouteDeps since
  resolveSessionDir now uses getSessionsDir() directly
- Fix missed emoji in notification format template

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 16:41:47 -07:00
Nikhil Sonti
2c8cbbb77f chore: update patch 2026-03-12 14:24:07 -07:00
Nikhil Sonti
b96d8e6c29 chore: bump server version 2026-03-12 14:15:31 -07:00
Nikhil
32dd42cc6b fix: skills CRUD broken on Windows due to hardcoded path separator (#492)
safeSkillDir() used a hardcoded `/` in the startsWith path traversal
check. On Windows, path.resolve() returns backslash paths, so the check
always failed — blocking getSkill, createSkill, updateSkill, deleteSkill.

Replace `${skillsDir}/` with `${skillsDir}${sep}` using path.sep from
node:path, which returns `\` on Windows and `/` on POSIX.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 14:10:20 -07:00
Nikhil
b94e9c411d fix: persist default kimi hub provider to BrowserOS prefs on first load (#491)
* fix: persist default kimi hub provider to BrowserOS prefs on first load

When VITE_PUBLIC_KIMI_LAUNCH is enabled, loadProviders() returned default
Kimi provider in-memory but never saved it to the BrowserOS pref. The
browser's C++ code reads the pref directly and found it empty, so Kimi
didn't appear in the toolbar until the user manually edited and saved.

Now loadProviders() persists defaults and ensureKimiFirst() additions to
the pref, keeping the browser in sync with what the extension UI shows.

Fixes #428

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: use reference equality for ensureKimiFirst change detection

Address PR review: reference check (normalized !== providers) is more
semantically precise than length comparison since ensureKimiFirst returns
the same reference when unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 14:02:17 -07:00
Nikhil
bde80fedd6 feat: add GET /mcp health check endpoint (#490)
Return a friendly JSON response when users curl GET /mcp instead of
an opaque 503. Narrows the catch-all .all() to .post() since the MCP
Streamable HTTP transport only needs POST for stateless servers.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:45:26 -07:00
Nikhil
39ddabf3a7 fix: only show skills in 43 (#489) 2026-03-12 13:38:09 -07:00
Felarof
47d32dbc7d chore: reduce kimi k2.5 default context length to 200k
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:22:29 -07:00
Felarof
d9b593afa2 feat: redesign sidebar navigation (#487)
* feat: redesign sidebar navigation

* fix: adjust settings sidebar sections

* fix: refine settings sidebar labels

* fix: move docs into settings help
2026-03-12 10:50:21 -07:00
Dani Akash
29356c3df6 feat: docs update for new settings (#427) 2026-03-12 20:56:03 +05:30
Dani Akash
cc5bc3fff7 fix: incorrect tab got the active tab glow (#484) 2026-03-12 18:46:40 +05:30
Dani Akash
f02fecf732 feat: friendlier markdown editing (#483)
* feat: mdxeditor package install

* feat: new markdown editor

* fix: markdown editor ui

* fix: scroll of the markdown editor

* fix: checklist style and tool style

* feat: copy markdown button

* fix: text formatting on paste

* fix: copy markdown button positioning

* fix: markdown display

* fix: markdown editor scroll

* fix: address code reviews

* fix: restore htmlFor label associations for MarkdownEditor

Add id prop to MarkdownEditor and forward it to the outer wrapper div,
so Labels in SkillsPage and Personalize can reference the editor element.

Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
2026-03-12 18:21:05 +05:30
Nikhil Sonti
a12b3b4ffc chore: bump PATCH and OFFSET 2026-03-11 17:22:42 -07:00
Nikhil Sonti
038ae259f0 feat: show updates immediaately on macos 2026-03-11 17:01:14 -07:00
Nikhil Sonti
4041aeb01c chore: bump server version 2026-03-11 16:52:14 -07:00
Nikhil Sonti
90400e3fcf fix: sparkle notification for update fix duplication 2026-03-11 16:38:48 -07:00
Nikhil
58a216fde3 fix: sparkle crash + notification fix for macos (#425)
* fix: sparkle crash

* feat: sparkle notification fix

* feat: new tab focus fix
2026-03-11 14:50:54 -07:00
Nikhil
38cc388894 feat: add missing patches and split sparkle in features.yaml (#424)
* feat: add missing patches to features.yaml

Add 37 patch files from chromium_patches/ that were not tracked in
features.yaml. Creates 3 new features (cdp-api, vertical-tabs,
crash-reporter) and adds missing files to 3 existing features
(chromium-ui-fixes, side-panel-fixes, first-run).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test: split sparkle third-party from mac-sparkle-updater

Move third_party/sparkle/ into its own feature since the Sparkle
framework is downloaded on-the-fly during build, not a permanent
patch in the tree.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: minor

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 14:32:53 -07:00
Nikhil
418fa879ee feat: gate skills page behind server version 0.0.73 (#481)
Skills page navigation is now hidden when the server version is below
0.0.73, matching the gating pattern used for Memory, Soul, and Workflows.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 13:39:21 -07:00
Nikhil
bcc1c54ccc fix: remove typed lint warnings from compaction tests (#479) 2026-03-11 13:21:39 -07:00
Nikhil
8173a443ff feat: move skills into main page navigation (#480)
* feat: move skills into main page navigation

Mirror the soul move pattern (166f6e1b) — promote Skills from
settings sidebar to primary navigation at /home/skills. Adds
backward-compat redirect from /settings/skills.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: remove missing dismiss-popups skill reference

The SKILL.md file doesn't exist on disk, causing a module
resolution error at server startup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 13:20:01 -07:00
Nikhil
2da099797e feat: refresh agent skills settings UI + seed skills (#478)
* feat: bootstrap 12 default agent skills for new users

Seed common browser automation skills (summarize, research, extract data,
fill forms, dismiss popups, screenshots, organize tabs, compare prices,
save page, monitor changes, read later, manage bookmarks) into
~/.browseros/skills/ on first startup when no user skills exist.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: populate skill edit dialog with existing content

The edit dialog form fields were empty because Radix Dialog's
onOpenChange doesn't fire when the open prop changes programmatically.
Replace the handleOpenChange wrapper with a useEffect that syncs form
state whenever editingSkill changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: correct tool names in default skill instructions

- memory_save → memory_write (actual tool name in memory toolset)
- delete_bookmark → remove_bookmark (actual tool name in registry)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: move skill content from TS template literals to separate SKILL.md files

Replace the monolithic defaults.ts (738-line file with escaped template
literals) with individual SKILL.md files per skill. Uses Bun's text
import (`with { type: 'text' }`) to inline content at bundle time.
Adds md.d.ts for TypeScript module resolution.

Much easier to read and edit skill content as plain markdown.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: add build:server:test and start:server:test scripts for local binary testing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: refresh agent skills settings UI

* fix: address PR review comments for 0311-skills_ui_refresh

* feat: enhance default skills with file persistence, HTML reports, and add find-alternatives

Rewrite deep-research, extract-data, compare-prices, manage-bookmarks, and
read-later skills to follow a structured phase-based workflow. Key changes:

- All research skills now save data incrementally to disk instead of
  accumulating in memory
- Add HTML report generation (light theme) with source links for
  deep-research, extract-data, and compare-prices
- Use hidden windows and parallel tabs (max 10) for multi-source extraction
- Simplify read-later to just bookmark + PDF save
- Simplify manage-bookmarks to max 3-5 top-level folders with confirmation
- Add new find-alternatives skill for product alternative research with
  1-5 star ranking

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: simplify skills page rendering

* fix: clean-up skill

* fix: address review feedback for PR #478

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 13:05:14 -07:00
Nikhil
d04a1f7e2a feat: add core memory viewer and editor to newtab (#476)
* feat: add core memory viewer and editor to newtab

Adds a new Memory page (/home/memory) that lets users view and
inline-edit their agent's core memories (CORE.md). Includes server
API endpoints (GET/PUT /memory) with Zod validation, React Query
hook with optimistic updates, and example prompts to teach the
agent through conversation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: improve memory examples with browser-aware prompts

Replace tech-specific examples with universal ones that leverage
the agent's browser tools — learning from bookmarks, summarizing
browsing history, reading open tabs, and setting communication
preferences.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: hide focus grid on memory page, same as soul page

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: reword history example to understand user, not just summarize

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: reset stale save error on edit/cancel, surface server errors

Address Greptile review:
- Reset mutation state in handleEdit/handleCancel/handleCreate to
  prevent stale error from reappearing on re-entry to edit mode
- Parse server response body on save failure to show actual error
  message (e.g. Zod validation) instead of generic "Failed to save"



* fix: cap memory viewer height with internal scroll

Long CORE.md content now scrolls within the card (max 480px) instead
of expanding the entire page. Applies to both read and edit modes.


* fix: polish memory viewer scroll UX

- Use viewport-relative max height (60vh) instead of fixed 480px
- Add styled-scrollbar for thin, themed scrollbar in both modes
- Add bottom fade gradient to hint at more content below
- Fixes width misalignment caused by system scrollbar stealing space
2026-03-11 11:45:02 -07:00
Dani Akash
40d0a6982e feat: set personality during onboarding (#477)
* feat: customize agent personality

* fix: reset soul with right types

* chore: use rpc client for setting personality

* fix: validation for new endpoint
2026-03-11 23:45:14 +05:30
Nikhil
ef9eebfd94 feat: refine new tab suggestion overflow (#472) 2026-03-11 09:37:51 -07:00
Nikhil
355392ca14 feat: update tips (#474) 2026-03-11 09:34:38 -07:00
Nikhil
166f6e1b9e feat: move agent soul into main page navigation (#471)
* feat: move agent soul into main page navigation

* fix: preserve soul page UI on main page

* fix: remove home focus fade from soul page
2026-03-11 09:31:32 -07:00
Dani Akash
9b996c5752 fix: performance issue with rendering chat (#469)
* fix: performance issue with saving conversation

* fix: scroll compete issue

* fix: address code review

* fix: typechecks
2026-03-11 18:18:23 +05:30
Dani Akash
c7dde92960 feat: personalized onboarding (#468)
* feat: update onboarding steps

* chore: customize demo page

* fix: prompt display on onboarding

* fix: use styled scrollbar

* feat: show appicon on prompt

* fix: lint issues
2026-03-11 17:30:28 +05:30
Nikhil Sonti
32ce02b59f fix: hidden windows fix 2026-03-10 18:40:10 -07:00
Nikhil Sonti
7566f0ee82 fix: sidepanel request focus fix 2026-03-10 18:39:19 -07:00
Nikhil Sonti
ffe1f8a469 chore: server ota 2026-03-10 18:31:37 -07:00
Nikhil Sonti
a5e7c359e3 chore: Merge branch 'main' 2026-03-10 18:22:19 -07:00
Nikhil Sonti
3f4cccdf12 chore: bump PATCH and OFFSET 2026-03-10 18:22:15 -07:00
Nikhil
866fe88acd feat: fix hidden window and tab tools (#417) 2026-03-10 18:21:10 -07:00
Nikhil Sonti
385cf03227 chore: bump server version 2026-03-10 18:19:21 -07:00
Nikhil
a824078f6d fix: compaction config for small context windows (≤32K) (#466)
* fix: compaction config for small context windows (≤32K)

Raise COMPACTION_SMALL_CONTEXT_WINDOW from 16K to 32K so models like
Haiku 4.5 (30K context) use proportional 50% reserve instead of the
fixed 20K reserve. Also scale fixedOverhead for small contexts (capped
at 40% of context window) to prevent the doom loop where overhead alone
triggers compaction on every step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: add compaction tuning guidance to limits constants

Explain the relationship between SMALL_CONTEXT_WINDOW and
FIXED_OVERHEAD so devs know the 24K minimum constraint when
tweaking these values.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 18:12:20 -07:00
Nikhil
3e23796724 fix: auto-focus chat input when side panel opens (#465)
Add window focus listener in ChatFooter that focuses the textarea when
the side panel receives focus. Handles both initial open (via
document.hasFocus check on mount) and re-focus scenarios (via window
focus event). Guards against stealing focus from other interactive
elements.

Companion Chromium fix: side_panel_coordinator.cc now always calls
RequestFocus() in PopulateSidePanel(), not just when there's no
previous entry — ensuring the side panel WebContents receives focus
on every open/toggle.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 17:29:15 -07:00
Nikhil Sonti
ae49da6e09 fix: sidepanel request focus fix 2026-03-10 17:27:54 -07:00
Nikhil Sonti
bcd91a8e03 chore: Merge branch 'main' 2026-03-10 17:23:27 -07:00
Nikhil
2d6d08c9fe fix: move tool-result media normalization into agent (#460)
* fix: sanitize media during compaction

* fix: normalize content outputs in compaction helpers

* fix: move tool-result media normalization into agent

* chore: rename compaction orchestrator file
2026-03-10 17:21:09 -07:00
Nikhil Sonti
4472c2b890 chore: bump PATCH and OFFSET 2026-03-10 15:12:18 -07:00
Nikhil Sonti
2477063673 chore: bump server version 2026-03-10 15:08:17 -07:00
Felarof
146b9af17c Update README.md (#416) 2026-03-10 13:33:47 -07:00
Nikhil
de70525889 fix: grab handle size (#414) 2026-03-10 12:26:08 -07:00
Nikhil
f81e73f6a4 fix: avoid crashing on controller startup failure (#458)
* fix: avoid crashing on controller startup failure

* fix: address PR review comments for remove_controller_startup_crash
2026-03-10 11:53:11 -07:00
Nikhil
4fc68b5264 feat: use execution dir for tool temp output (#456)
* feat: use execution dir for tool temp output

* fix: harden execution dir temp staging

* refactor: use temp files for transient tool output
2026-03-10 10:57:00 -07:00
Nikhil
5b27933c63 feat: add 2-stage pruning to compaction pipeline (#455)
* feat: add 2-stage pruning to compaction pipeline before LLM summarization

Add two new lightweight stages to the compaction prepareStep pipeline that
recover context tokens cheaply before falling back to expensive LLM
summarization:

- Stage 2: Use AI SDK's pruneMessages to remove old tool call/result
  pairs beyond the last 6 messages entirely
- Stage 3: Replace remaining tool output values with short placeholders
  ("[Cleared — N chars]") while preserving tool call structure and IDs

Both stages re-estimate tokens from message content (not stale step
usage) after modifying messages. The existing LLM summarization and
sliding window fallback remain as Stage 4.

Also adds estimateTokensForThreshold() helper, clearToolOutputs()
function, and COMPACTION_PRUNE_KEEP_RECENT_MESSAGES /
COMPACTION_CLEAR_OUTPUT_MIN_CHARS constants.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: reorder compaction pipeline — truncate before clear, protect recent tools

- Stage 0: Check threshold, return untouched when under (no data loss)
- Stage 1: Prune old tool call/result pairs beyond last 6 messages
- Stage 2: Truncate large tool outputs to 15K chars (keeps partial content)
- Stage 3: Clear old tool outputs with placeholders, protect last 2
- Stage 4: LLM-based compaction with sliding window fallback

clearToolOutputs now accepts keepRecentCount parameter (default 2) to
skip the N most recent tool messages from clearing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: limits fixes

* fix: address review — preserve toKeep context, derive test values from constants

- When Stage 3 (clearToolOutputs) doesn't resolve overflow, pass
  truncated (not cleared) messages to Stage 4 so toKeep retains
  meaningful tool outputs for the agent's immediate context
- Add comment explaining intentional conservatism in post-prune
  token estimation (step usage is stale, must re-estimate safely)
- Refactor computeConfig tests to derive expected values from
  AGENT_LIMITS constants instead of hardcoding magic numbers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 10:41:34 -07:00
shivammittal274
d1937b3280 fix: replace stale browser_open_tab tool name with new_page in prompt (#454)
The system prompt referenced `browser_open_tab` which was renamed to
`new_page`. This caused models to infer a `browser_*` naming convention
and call non-existent tools like `browser_navigate`, resulting in
MCP error -32602.

Fixes TKT-540
2026-03-10 22:21:21 +05:30
Nikhil
15755a84d9 feat: use execution dir in browser tool context (#453) 2026-03-10 09:38:36 -07:00
Nikhil
7d20768d8e feat: persist large tool outputs to disk (#452)
* feat: persist large tool outputs to disk

* fix: address PR review comments for tool output limits

* chore: raise filesystem read line limit to 500
2026-03-10 09:25:19 -07:00
Felarof
cd6ca756c1 docs: rename Local Model Guide to Bring Your Local Model
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 08:42:54 -07:00
Felarof
da137cbb97 docs: wrap example prompts in accordion for clearer separation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 08:42:10 -07:00
Felarof
91995854fa docs: add OpenClaw as MCP client with connection instructions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 08:34:10 -07:00
Felarof
e312f29138 docs: add v0.42.0 changelog entry with release images
Add changelog entry for BrowserOS v0.42.0 featuring SOUL.md, vertical tabs,
long-term memory, and Chromium 146 update. Include screenshots from the
GitHub release.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 08:30:45 -07:00
Nikhil Sonti
a2eb965759 chore: Merge branch 'main' of https://github.com/browseros-ai/BrowserOS-agent 2026-03-10 07:50:11 -07:00
Dani Akash
e1a9174de1 feat: setup docs for skills and nudges (#412) 2026-03-10 20:08:04 +05:30
Felarof
1e6b5ac7a8 chore: sync packages/browseros-agent submodule (to f35ac0d) 2026-03-10 12:20:28 +00:00
Dani Akash
f35ac0ddd3 feat: new onboarding tools (#385)
* feat: new tools for breadcrumbs

* feat: setup scheduled task card

* feat: added dismiss cooldown

* chore: update prompt

* fix: support api key tool

* fix: prompt text to limit nudges

* fix: scheduled tasks card

* fix: update nudges prompt

* feat: skip nudges when user dismisses nudge

* fix: ensure nudges only show if they are not dismissed

* Revert "fix: ensure nudges only show if they are not dismissed"

This reverts commit d825254698829b8e9941aae7873bd440027d0c74.

* Revert "feat: skip nudges when user dismisses nudge"

This reverts commit 12b552b454d10ec4209b88668fc48681423ff6fc.

* Revert "fix: update nudges prompt"

This reverts commit 80b7520b953b4d3cbed2ed477b9e508e39938dca.

* feat: update agent with mcp when new mcp connection is added

* feat: created connect apps option as a blocking card system

* feat: schedule tasks passive without dismiss

* fix: nudges and prompt texts

* fix: biome lint errors

* fix: review comments

* fix: resolve comments

* fix: review comments

* fix: review comments

* fix: auto resolve state

* fix: eliminate the race where the async delete could resolve after the
new session

* feat: track ignored apps list

* fix: empty response text object on message reply

* feat: sync previously connected mcps

* feat: sync integrations with klavis

* feat: account for unauthenticated connections

* fix: analytics events

* fix: typescript issues

* fix: klavis client issue

* fix: invalid mcps causing entire responses from failing

* fix: prompt with card for integrations when the integration fails

* fix: prompt structure to support declined apps

* fix: refresh session on mcp changes
2026-03-10 17:44:10 +05:30
shivammittal274
b6b45404ee feat: add agent skills system with catalog, loader, and UI (#450)
* feat: add agent skills system with catalog, loader, and UI

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: return 500 for server errors in PUT/DELETE skill routes

Previously both handlers returned 404 for all errors, masking filesystem
failures (disk full, permission denied) as "not found". Now only
"not found" errors return 404; everything else returns 500.

* fix: align SKILL.md format with agentskills.io spec

- Move `enabled` and `version` into `metadata` field (spec only allows
  name, description, license, compatibility, metadata, allowed-tools)
- Frontmatter `name` now matches directory name (lowercase kebab-case)
- Human-readable name stored in `metadata.display-name`
- Add index signature to SkillMetadata for arbitrary string keys
- Validate frontmatter with type guard in getSkill (remove unsafe cast)
- updateSkill now preserves existing frontmatter fields (license, etc.)
- Tighten buildSkillMd param from Record<string, unknown> to SkillFrontmatter

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 17:24:05 +05:30
Nikhil Sonti
ca777dd2fd chore: bump server version 2026-03-09 16:25:43 -07:00
Felarof
797c75baee chore: sync packages/browseros-agent submodule (to 44071cb) 2026-03-09 21:13:22 +00:00
shivammittal274
44071cb0f4 fix: fix compaction tool output truncation and token estimation (#448)
- truncateToolOutputs: handle all output.type variants (text, json,
  content) by checking output.value directly instead of branching on
  type. The old code missed type 'content' (array of content parts),
  causing 1M+ char tool results to pass through untouched.

- estimateTokens: change chars/4 to chars/3 — HTML/Markdown content
  tokenizes at ~3.14 chars/token empirically, not 4.

- COMPACTION_FIXED_OVERHEAD: 5K → 12K to account for system prompt
  (~2.5K tokens) + tool definitions as JSON Schema (~8-9K tokens).

- Apply truncateToolOutputs in prepareStep (Stage 0) before token
  estimation, not just during summarization.
2026-03-10 02:39:54 +05:30
Nikhil
b035278ad9 fix: OTA binary discovery for artifact-extracted structure (#411)
* fix: support artifact-extracted directory structure in OTA binary discovery

The download_resources system now extracts server binaries into
platform-specific subdirectories (e.g., darwin-arm64/resources/bin/),
but the OTA module only looked for flat binary names. This adds
find_server_binary() which checks both layouts, keeping backward
compatibility with --binaries while supporting the new structure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: download server binaries from R2 instead of requiring --binaries

Remove the --binaries flag from `ota server release`. The module now
downloads artifact zips from artifacts/server/latest/ in R2, extracts
them, then signs and packages as before. This eliminates the need to
have mono build output locally.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 13:20:08 -07:00
Felarof
04ca38c93b chore: sync packages/browseros-agent submodule (to 09bd10c) 2026-03-09 19:20:33 +00:00
Nikhil Sonti
09bd10cb56 chore: bump server version 2026-03-09 12:04:20 -07:00
Nikhil Sonti
3e3ffb3f51 feat: vertical tabs docs 2026-03-09 09:34:54 -07:00
Felarof
93b59633c7 chore: sync packages/browseros-agent submodule (to 3808faf) 2026-03-09 09:24:07 +00:00
shivammittal274
3808faf94d fix: robust compaction with Pi-style token counting + overflow middle… (#444)
* fix: robust compaction with Pi-style token counting + overflow middleware

Root cause: getCurrentTokenCount() returned stale inputTokens from the
previous step, ignoring new tool results added to messages since that
step. A large tool output (DOM snapshot, page content) caused a token
jump that bypassed the compaction threshold check, leading to
context_length_exceeded errors (322K tokens sent, model max 262K).

Layer 1 — Accurate token counting (proactive):
- Adopt Pi coding agent's additive approach: base(inputTokens) +
  outputTokens + estimate(trailing tool results)
- Trailing tool results are estimated by walking backwards from end of
  messages array until a non-tool message is found
- Falls back to full estimation with safety multiplier when no real
  usage data is available (first step of a turn)

Layer 2 — Context overflow middleware (reactive):
- LanguageModelV3Middleware that wraps doGenerate/doStream
- Catches context_length_exceeded errors at the model call level
- Truncates prompt (keeps system messages + most recent non-system
  messages targeting 60% of context window)
- Retries the model call once

Verified end-to-end with real model (Gemini Flash Lite via OpenRouter)
on 16K context window: 4 compactions triggered correctly across 8
steps, no context_length_exceeded errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: adopt Pi-style overflow detection patterns + fix truncation edge case

- Replace 6 generic substring matches with 17 provider-specific regex
  patterns from Pi coding agent (Anthropic, OpenAI, Google, xAI, Groq,
  OpenRouter, Bedrock, Copilot, llama.cpp, LM Studio, MiniMax, Kimi,
  Mistral, z.ai)
- Fix truncatePrompt edge case: when the last message alone exceeds the
  target, keepFrom was never updated → empty non-system messages. Now
  always keeps at least the most recent non-system message.
- Add runtime guard for LanguageModelV3 cast in ai-sdk-agent.ts
- Add tests for false-positive rejection and truncation edge case

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 14:22:35 +05:30
Felarof
a94d6d918c chore: sync packages/browseros-agent submodule (to eb208b0) 2026-03-08 18:11:51 +00:00
Felarof
eb208b0515 feat: update new tab placeholder copy (#441)
* feat: update new tab placeholder copy

* fix: simplify new tab placeholder logic
2026-03-08 11:06:41 -07:00
Felarof
c7990566d9 chore: sync packages/browseros-agent submodule (to 60a4167) 2026-03-08 03:06:57 +00:00
Felarof
60a4167a0e fix: update Kimi K2.5 context window from 128K to 256K (#440)
The Kimi K2.5 model supports a 256,000 token context window, not
128,000. Updated the provider template and model config to reflect
the correct value.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 17:58:52 -08:00
Felarof
6ce0fd35a0 chore: sync packages/browseros-agent submodule (to c8a674f) 2026-03-07 11:07:29 +00:00
shivammittal274
c8a674fe93 feat: return element coordinates in tool responses and DPR in screens… (#437)
* feat: return element coordinates in tool responses and DPR in screenshots

- click, hover, fill, drag now return resolved coordinates in response text
- take_screenshot returns devicePixelRatio for mapping coordinates to pixels
- Coordinates are in CSS pixels; multiply by DPR to get screenshot pixels

* fix: use Promise.allSettled in screenshot to prevent DPR eval from aborting capture

Runtime.evaluate for devicePixelRatio can fail on PDF pages or
chrome-extension pages. Using Promise.allSettled ensures the screenshot
still succeeds, falling back to DPR=1.
2026-03-07 16:29:13 +05:30
Nikhil Sonti
135fa65a2e chore: bump PATCH and OFFSET 2026-03-06 17:06:13 -08:00
Felarof
5c774501f3 chore: sync packages/browseros-agent submodule (to 2e79933) 2026-03-07 00:39:44 +00:00
Nikhil
65b5e74a75 fix: windows header (#407) 2026-03-06 16:08:51 -08:00
Nikhil
2e79933cae refactor: flatten server agent directory (#435) 2026-03-06 16:07:14 -08:00
Felarof
d2fd02e72e chore: sync packages/browseros-agent submodule (to db3d38a) 2026-03-06 23:11:18 +00:00
Nikhil
db3d38ae3c feat: gate Moonshot AI provider behind Kimi launch flag (#432)
* feat: gate Moonshot AI provider behind VITE_PUBLIC_KIMI_LAUNCH flag

Hide all Moonshot/Kimi provider UI when the launch flag is off:
- Filter moonshot from provider templates and type dropdown
- Gate Kimi flare badges in HubProviderRow
- Gate Kimi auto-insertion in LLM hub storage
- Add analytics events for Kimi API key configuration and guide clicks

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: allow editing existing moonshot providers when launch flag is off

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 14:21:34 -08:00
Felarof
7f39f95c8e chore: sync packages/browseros-agent submodule (to dafad1d) 2026-03-06 21:11:43 +00:00
Nikhil
dafad1dd14 feat: add vertical tabs customization toggle (#430) 2026-03-06 12:44:10 -08:00
Dani Akash
c38ceb49c1 feat: update docs (#404)
* docs: update bring your own llm section

* docs: update mcp clients info

* chore: updated docs with comparison page

* docs: fix tool count

* docs: updated cowork section

* feat: connect apps screen

* feat: setup sync to cloud section

* feat: added soul.md

* feat: memory section

* feat: open claw comparison section

* feat: scheduled tasks page

* fix: info text

* feat: provide link to llms.txt

* fix: kimi section
2026-03-07 02:09:29 +05:30
Nikhil Sonti
577de3bad3 chore: Merge branch 'main' 2026-03-06 12:16:44 -08:00
Felarof
a9bb4602cd chore: sync packages/browseros-agent submodule (to fb2ad66) 2026-03-06 20:12:19 +00:00
Nikhil
fb2ad66c91 feat: add search provider settings page (#429)
* feat: add search provider settings page with 5 engine options

Allow users to select their preferred search engine (Google, DuckDuckGo,
Bing, Brave Search, Yahoo) from a new settings page. The selected provider
drives search suggestions, search URL navigation, placeholder text, and
analytics tracking. Replaces all hardcoded Google references with the
stored preference. Adds Brave Search support, replacing Yandex.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add error handling for search provider storage writes

Write to storage before updating React state so UI never diverges from
persisted value on failure. Add try/catch in the settings page to show
an error toast if the write fails.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 12:08:39 -08:00
Nikhil Sonti
d6d024fcea bump offset & version 2026-03-06 11:51:40 -08:00
Nikhil Sonti
7dbf645457 chore: bump server version 2026-03-06 11:37:00 -08:00
Felarof
b3ec17b4ff chore: sync packages/browseros-agent submodule (to bc53ff5) 2026-03-06 18:19:01 +00:00
Nikhil
7759d6769f feat: download latest bundled BrowserOS server resources (#401)
* feat: download latest bundled BrowserOS server resources

* fix: guard artifact metadata root type
2026-03-06 09:30:15 -08:00
Nikhil
bc53ff52e5 feat: remove legacy /chat endpoint (#428)
* feat: remove legacy chat endpoint alias

* refactor: rename chat-v2 to chat
2026-03-06 09:29:42 -08:00
github-actions[bot]
6ecf7ca3e4 docs: DaniAkash signed the CLA in browseros-ai/BrowserOS#$pullRequestNo 2026-03-06 16:18:38 +00:00
Felarof
5bcf3fe875 chore: sync packages/browseros-agent submodule (to 9b0c484) 2026-03-06 14:18:02 +00:00
shivammittal274
9b0c484d06 fix: migrate stale 400k context window for browseros provider (#427)
* fix: migrate stale 400k context window for browseros provider

Existing installations cached the old 400k default in extension storage.
Always normalize the browseros provider's contextWindow to 200k on load,
matching the current default and preventing compaction from failing.

* fix: add browseros-auto model with 200k context length

* fix: setup migrations using the migrations api for context window size

---------

Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>
2026-03-06 18:58:23 +05:30
Felarof
9336ede323 chore: sync packages/browseros-agent submodule (to d778cd6) 2026-03-06 12:18:26 +00:00
shivammittal274
d778cd6ba9 fix: anchor agent to active tab page ID from browser context (#426)
* fix: anchor agent to active tab page ID from browser context

Generalize the scheduled-task page anchoring instruction to all tasks.
The agent now always uses the page ID from Browser Context instead of
calling get_active_page or list_pages, preventing it from operating
on the wrong tab.

* fix: add chatMode guard and scope windowLine to scheduled tasks

- Skip page-context section in chat mode where list_pages is allowed
- Only show windowId instruction for scheduled tasks (hidden window)
2026-03-06 17:11:22 +05:30
Felarof
4807f533cd chore: sync packages/browseros-agent submodule (to 3477772) 2026-03-06 04:38:03 +00:00
Nikhil Sonti
3477772e4e chore: bump server version 2026-03-05 19:52:45 -08:00
Felarof
402d9c0538 chore: sync packages/browseros-agent submodule (to 696d520) 2026-03-06 03:04:47 +00:00
Felarof
696d520199 Revert "feat: integrate models.dev registry for model defaults (#425)"
This reverts commit ddc376a026.
2026-03-05 17:48:12 -08:00
Felarof
00922aadc4 chore: sync packages/browseros-agent submodule (to c561861) 2026-03-06 00:44:49 +00:00
Nikhil
c56186111e fix: avoid CSP-unsafe MCP SDK usage in settings (#423)
* fix: avoid CSP-unsafe MCP SDK usage in settings

* fix: handle paginated MCP tool listings

* fix: restore MCP SDK tool listing for settings
2026-03-05 16:40:57 -08:00
Nikhil
cc075e7770 fix: resolve active page IDs from MCP response (#424)
* fix: resolve active page IDs from MCP response

* fix: tighten active page ID parsing tests
2026-03-05 16:32:59 -08:00
Felarof
48a0efeb81 feat: fix macOS icon size to match Apple HIG padding (#396)
The app icon was oversized in the macOS Dock because the source icon
filled the entire 1024x1024 canvas with no padding. Apple's macOS Big
Sur+ HIG requires ~100px padding on each side (artwork at 824x824
within 1024x1024 canvas). Resized the source icon and regenerated all
platform icons.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 16:30:59 -08:00
Felarof
ddc376a026 feat: integrate models.dev registry for model defaults (#425)
* feat: integrate models.dev registry for auto-populated model defaults

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: fall back to upstream provider for model registry lookup

When the browseros meta-provider is used, the registry lookup now
also tries the upstream provider (e.g., openrouter, anthropic) so
that BrowserOS-hosted models get correct context window and image
support defaults.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add Object.hasOwn guards to prevent prototype chain lookup

Addresses Greptile review: bracket notation on the registry object
could return prototype-chain properties for keys like __proto__ or
constructor, bypassing the 404 guard in the route handler.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 16:27:14 -08:00
Nikhil
64b25c1610 fix: resolve dev runner port conflicts (#422)
* fix: resolve dev runner port conflicts

* fix: address PR review comments for dev_runner_port_fallback
2026-03-05 15:52:12 -08:00
Felarof
6f99d14e78 chore: sync packages/browseros-agent submodule (to b7e63a4) 2026-03-05 23:28:50 +00:00
Nikhil
b7e63a4a1f feat: add browseros-cli Go CLI for browser automation (#421)
* feat: add browseros-cli Go CLI for browser automation

Implements a full-featured CLI that communicates with the BrowserOS MCP
server over JSON-RPC 2.0 / StreamableHTTP. Covers all 54 MCP tools across
10 categories with a hybrid command structure (flat verbs for hot-path
commands, grouped noun-verb for resource management).

- MCP client with initialize + tools/call pattern, thread-safe request IDs
- Dual output: human-readable default, --json for structured/piped usage
- Implicit active page resolution with --page override
- 21 command files: open, nav, snap, click, fill, scroll, eval, ss, pdf,
  dom, wait, dialog, pages, window, bookmark, history, group, health, info
- Cobra CLI framework with fatih/color for terminal formatting

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test: add end-to-end integration tests for browseros-cli

Go integration tests gated by `//go:build integration` that exercise the
CLI binary against a running BrowserOS server. Tests build the binary,
run commands via exec.Command, and verify JSON output.

Covers: health, version, page lifecycle (open → text → snap → eval →
screenshot → nav → reload → close), active page, info, error handling,
and invalid page ID rejection. Skips gracefully when no server is running.

Run with: go test -tags integration -v ./...

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: add init command and fix MCP client bugs

- Add `browseros-cli init` command that prompts for the server URL,
  verifies connectivity, and saves to ~/.config/browseros-cli/config.json
- Config priority: --server flag > BROWSEROS_URL env > config file > default
- Fix Accept header: include text/event-stream (required by StreamableHTTPTransport)
- Fix nil args: send empty object {} instead of null for tools with no params
- Update error messages to suggest `browseros-cli init` on connection failure

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: add README for browseros-cli with setup, usage, and testing guide

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: always send arguments object in MCP tools/call

Go's json omitempty omits empty maps, causing the arguments field to be
missing from tools/call requests. The MCP SDK requires arguments to be
an object (even empty {}), not undefined. Remove omitempty from the tag.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: update help menu to be have groups

* refactor: replace hand-rolled MCP client with official Go SDK

Switch from custom JSON-RPC implementation to the official
github.com/modelcontextprotocol/go-sdk. This removes all hand-rolled
protocol types (jsonrpcRequest, jsonrpcResponse, RPCError, etc.) and
uses the SDK's StreamableClientTransport with DisableStandaloneSSE
for clean CLI process lifecycle.

Also adds URL normalization/validation, config command, and
updates init/README to reference YAML config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 14:49:45 -08:00
Nikhil
9fdb361d67 feat: build prod server resource artifact pipeline (#417)
* feat: build prod server resource artifacts with cloudflare r2

* fix: address PR review comments for prod_server_resources_cloudflare

* feat: fix prod server build setup and CLI ergonomics

* fix: prevent build env secret inlining and template fallback

* fix: read from fileenv

* feat: add ripgrep

* feat: upload prod artifacts to latest and version prefixes
2026-03-05 14:26:46 -08:00
Felarof
706c0768a7 chore: sync packages/browseros-agent submodule (to e37d19d) 2026-03-05 22:11:50 +00:00
Nikhil
e37d19da51 feat: add structured MCP tool outputs and schemas (#420)
* feat: add structured MCP outputs for browser tools

* fix: address PR review comments for mcp_structured_content
2026-03-05 13:19:01 -08:00
Felarof
909c430988 chore: sync packages/browseros-agent submodule (to 88cb227) 2026-03-05 21:14:56 +00:00
shivammittal274
88cb227444 feat: add MCP server instructions for external AI clients (#419)
Add server-level instructions that get injected into the LLM system
prompt when external MCP clients (Claude Desktop, Cursor, Gemini CLI)
connect. Covers browser automation workflow, Klavis integration
discovery, and auth flow guidance.
2026-03-06 02:28:09 +05:30
Felarof
93c75e354f chore: sync packages/browseros-agent submodule (to 2b605bd) 2026-03-05 20:16:47 +00:00
Felarof
2b605bdaa3 feat: add inline chat experience to new tab page (#418)
* feat: add inline chat experience to new tab page

Bring the full sidepanel chat experience to the new tab page. When
users select an AI suggestion from the search bar, the page transitions
inline to a full chat view instead of opening the sidepanel.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: remove unnecessary comments from NewTab.tsx

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address PR review comments

- Move NEWTAB_CHAT_STARTED_EVENT tracking to startInlineChat where it
  actually fires (was dead code in NewTabChat handleSubmit)
- Add NEWTAB_CHAT_RESET_EVENT tracking to handleNewConversation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: gate newtab chat behind NEWTAB_CHAT_SUPPORT feature flag

When the flag is off (BrowserOS < 0.40.0), falls back to opening the
sidepanel via openSidePanelWithSearch (previous behavior). In dev mode
all features are enabled, so inline chat works during development.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: add newtab origin context to chat system prompt

When chatting from the new tab page, the AI is instructed to open
content in new tabs rather than navigating the current tab, keeping
the user's new tab page accessible.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 12:02:39 -08:00
Nikhil
ec725b3781 fix: restrict browser tools in chat mode for AI SDK agent (#414)
The AI SDK agent (v2) was allowing all 54 browser tools in chat mode,
while the Gemini agent correctly restricted to 6 read-only tools.
Extract CHAT_MODE_ALLOWED_TOOLS to a shared constant and filter
browser tools in AiSdkAgent.create() when chatMode is true.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 11:59:00 -08:00
Felarof
c0e5ffb378 chore: sync packages/browseros-agent submodule (to 52570bd) 2026-03-05 19:31:56 +00:00
Nikhil
52570bd6aa feat: make server tests use dynamic browser runtime allocation (#416)
* feat: use dynamic runtime allocation for server test browser startup

* fix: address PR review comments for sdk_test_dev_runner_migration
2026-03-05 11:19:31 -08:00
Felarof
5a1fc2285f chore: sync packages/browseros-agent submodule (to fb58a6e) 2026-03-05 18:43:03 +00:00
shivammittal274
fb58a6ee1c feat: expose Klavis MCP tools to external MCP clients (#411)
* feat: expose Klavis MCP tools to external MCP clients

Connect to Klavis Strata at server startup and register discovered tools
on each per-request McpServer instance. This lets external MCP clients
(Claude Code, Gemini CLI) access Klavis-proxied integrations (Gmail,
Slack, GitHub, etc.) alongside browser tools.

- Add register-klavis-mcp.ts with connectKlavisProxy() and registerKlavisTools()
- Wire KlavisProxyHandle through server.ts -> mcp routes -> mcp-server
- Use structured logging and proper type imports

* fix: forward Klavis tool schemas and add shutdown cleanup

- Use zod-from-json-schema to convert Strata's JSON Schema to Zod,
  so MCP clients see proper parameter names, types, and required fields
- Close Klavis proxy transport on server shutdown
- Move per-request Klavis tool registration logging to debug level
- Use proper type imports instead of inline import() types
- Fix connectKlavisProxy return type (never returns null)

* fix: add timeout to Klavis MCP connect/listTools and log shutdown errors

* fix: clear timeout timer and pre-compute Klavis tool schemas at startup

* fix: use client.close() instead of transport.close() for proper cleanup
2026-03-06 00:04:57 +05:30
Nikhil
a91bef1cd1 feat: remove legacy gemini agent and provider adapter (#415)
* feat: remove legacy gemini agent and provider adapter

* fix: remove redundant run graph schema refine
2026-03-05 10:34:43 -08:00
Nikhil
05887026fb feat: rename bros CLI tool to bdev (#394) 2026-03-05 10:06:41 -08:00
Felarof
7d65603e14 chore: sync packages/browseros-agent submodule (to 915ab12) 2026-03-05 16:23:52 +00:00
Dani Akash
915ab12c40 fix: prevent sending multiple messages when chat is running (#409) 2026-03-05 21:01:57 +05:30
Felarof
12ceeb81e6 chore: sync packages/browseros-agent submodule (to 2bc5d6f) 2026-03-05 03:05:05 +00:00
Nikhil
12228a9392 feat: chromium 146 upgrade (#393)
* feat: update to 146, fix clean

* fix: update all 16 failed patches for Chromium 146.0.7680.31

- Update BASE_COMMIT to 4d3225104176d (Chromium 146)
- Shift BrowserOS command IDs to avoid upstream 40300-40302 conflict
- Fix settings BUILD.gn and menu patches for upstream removals
- Shift syncable prefs IDs to 100379-100380 after upstream additions
- Migrate theme patch from theme_service_factory.cc to theme_service.cc
  (RegisterProfilePrefs moved upstream)
- Fix toolbar_actions_model.cc for upstream API changes
- Fix toolbar_pref_names.cc for upstream base::ListValue usage
- Fix ui_features.cc/.h for removed kPopupBrowserUseNewLayout
- Fix api_sources.gni for new upstream entries
- Shift infobar delegate ID to 132
- Shift extension histogram values by +4 (1961-1985)
- Shift api_permission_id kBrowserOS to 265
- Update histogram enums.xml to match shifted values
- Delete chromium_install_modes.cc patch (file removed in 146)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: enable vertical tabs

* feat: default browseros theme

* chore: bump PATCH and OFFSET

* fix: update extensions-manifestv2 series patch for Chromium 146

Regenerated the patch from a clean diff against 146.0.7680.31 to fix
line number offsets and context mismatches in extensions_ui.cc.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: update vertical_tab_strip_state_controller patch for Chromium 146

Upstream refactored includes and renamed NotifyStateChanged to
NotifyModeChanged. Regenerated patch with correct context.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: update default theme to neutral gray (136,136,136)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: rename base::Value::Dict/List to base::DictValue/ListValue for Chromium 146

Chromium 146 moved base::Value::Dict and base::Value::List to top-level
classes base::DictValue and base::ListValue. Updated all 23 patch files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: regenerate browseros_prefs.cc patch (fix corrupt trailing newline)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: update patches for Chromium 146 build API changes

- browseros_action_utils.h: remove nonexistent base/containers/contains.h include
- chrome_content_browser_client.cc: PrivateNetworkRequestPolicyOverride → LocalNetworkAccessRequestPolicyOverride
- extension_updater.cc: InstallStageTracker::Get → InstallStageTrackerFactory::GetForBrowserContext
- toolbar_actions_model.cc: base::Contains → std::ranges::contains

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 18:31:20 -08:00
Nikhil
2bc5d6f5e4 fix: gate Soul page behind server version 0.0.67 (#407)
Add SOUL_SUPPORT feature flag to capabilities system requiring
minServerVersion 0.0.67. Hides "Agent Soul" nav item in settings
sidebar for older servers that lack the /soul endpoint.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 18:20:40 -08:00
Felarof
61776cb0d6 Merge pull request #408 from browseros-ai/feat/kimi-launch-fixes
feat(agent): update kimi launch provider branding
2026-03-04 18:17:08 -08:00
Felarof
a21efd7325 feat(agent): update kimi launch provider branding 2026-03-04 18:16:42 -08:00
Felarof
609341a445 feat: add Kimi/Moonshot partnership branding with feature flag
## Summary
- Add `VITE_PUBLIC_KIMI_LAUNCH` feature flag controlling Kimi partnership branding
- BrowserOS provider card shows "Powered by Kimi K2.5 from Moonshot AI" badge and "Extended usage limits for the next 2 weeks!" when flag is on
- Moonshot/Kimi highlighted as "Recommended" in provider templates
- LLM Hub defaults to Kimi, ChatGPT, Claude, Gemini (with legacy defaults migration)
- Kimi hub row shows "Powered by Moonshot AI" flare
- Model selector locked to kimi-k2.5
- "How to get a Kimi API key" link in provider dialog
- Moonshot provider fully integrated across frontend and backend
2026-03-04 17:55:40 -08:00
Felarof
fc785b4f77 chore: sync packages/browseros-agent submodule (to 3969660) 2026-03-04 22:11:52 +00:00
Nikhil
3969660906 fix: refactor SDK BrowserService to use Browser class directly (#406)
* fix: refactor SDK BrowserService to use Browser class directly

The tools system was completely rewritten with new tool names and response
formats. BrowserService was calling non-existent MCP tools (browser_get_active_tab,
browser_navigate, etc.) that returned structuredContent which no longer exists.

Replaced MCP HTTP client calls with direct Browser class method calls:
- getActiveTab → browser.getActivePage() / browser.listPages()
- getPageContent → browser.contentAsMarkdown()
- getScreenshot → browser.screenshot()
- navigate → browser.goto() with tabId/windowId resolution
- getPageLoadStatus → browser.listPages() with isLoading check
- getInteractiveElements → browser.snapshot() / browser.enhancedSnapshot()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address PR review — consistent tabId guard and remove dead PageContent type

- Change `if (tabId)` to `if (tabId !== undefined)` in navigate() to match
  the guard style used for windowId and elsewhere in the file
- Remove orphaned PageContent interface no longer imported after refactor

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 14:08:18 -08:00
Felarof
72dd429825 chore: sync packages/browseros-agent submodule (to 010fb88) 2026-03-04 20:13:52 +00:00
Nikhil
010fb88b56 fix: handle SIGQUIT in dev:watch to prevent runtime crash on macOS (#405)
SIGQUIT (Ctrl+\) was not in the signal notify list, causing Go's default
handler to dump goroutines. On macOS ARM64 this triggers a known runtime
bug where semasleep panics on the signal stack.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 12:09:19 -08:00
Felarof
51505e1de6 feat: add "don't show again" checkbox to survey popup (#404)
* feat: add "don't show again" checkbox to JTBD survey popup

Mirrors the ImportDataHint pattern — adds a checkbox that permanently
suppresses the survey popup when checked and dismissed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: persist dontShowAgain when user clicks Take Survey

Addresses Greptile review — if the checkbox is checked and the user
clicks "Take Survey", persist the flag before opening the survey so
the popup won't reappear if the survey tab is closed without starting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: show "don't show again" only after 2nd popup, increase interval to 10 msgs

- Track shownCount in storage, only show checkbox on 3rd+ appearance
- Increase MESSAGE_THRESHOLD from 5 to 10 messages between popups
- Add DONT_SHOW_AGAIN_AFTER constant (2) for configurability
- Pass showDontShowAgain through the component chain

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: thread dontShowAgain through onTakeSurvey to avoid duplicate analytics

Addresses Greptile review — previously clicking "Take Survey" with the
checkbox checked would fire both dismissed and clicked events. Now the
dontShowAgain flag is threaded through onTakeSurvey, which persists it
without firing a dismiss event.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 11:20:55 -08:00
Felarof
6396c41bb5 chore: sync packages/browseros-agent submodule (to acb7dfc) 2026-03-04 19:19:57 +00:00
Nikhil
acb7dfc624 fix: pass user data dir to WXT when using dev:watch --new (#403)
The --new flag creates a fresh temp profile directory but WXT's
chromiumProfile was hardcoded to /tmp/browseros-dev, ignoring it.
Pass BROWSEROS_USER_DATA_DIR env var from the Go dev tool and read
it in web-ext.config.ts.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 10:58:43 -08:00
Felarof
167fa2f1e4 chore: sync packages/browseros-agent submodule (to 92c20ee) 2026-03-04 18:20:56 +00:00
Nikhil
92c20eef73 fix: filter empty-parts messages to prevent follow-up conversation crash (#402)
* fix: filter out messages with empty parts to prevent follow-up crash

When an assistant response is interrupted or errors before producing content,
a UIMessage with empty parts remains in the chat state. On the next send, the
AI SDK validates all messages and rejects the empty-parts message with
"Message must contain at least one part". This filters them out when not
streaming and adds a safety guard in formatConversationHistory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: filter empty-parts messages before persisting to storage

Addresses race condition where the save effect could persist messages
with empty parts before the cleanup effect's state update applies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 10:20:36 -08:00
Nikhil Sonti
7922a668a1 fix: add 40 in change log 2026-03-04 09:55:26 -08:00
Nikhil Sonti
9b2d8b197d chore: Merge branch 'main' 2026-03-04 08:41:56 -08:00
Nikhil Sonti
56f471978f chore: docs update changelog 2026-03-04 08:40:13 -08:00
Felarof
17be074b35 chore: sync packages/browseros-agent submodule (to ad4c0af) 2026-03-04 14:20:13 +00:00
Dani Akash
ad4c0af4fe fix: limit claude code review to PR creation and @claude comments (#393)
* fix: limit claude code review to PR creation and @claude comments

Reduces unnecessary action runs and token usage by only triggering the
review on initial PR open, and re-running when @claude is mentioned.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: restrict @claude trigger to trusted contributors

Only repo owners, org members, and collaborators can invoke the review
via @claude comments, preventing external users from consuming token quota.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: consolidate claude workflows and auto-run on PR creation

Remove separate claude-code-review.yml and add pull_request trigger
to claude.yml so it runs automatically on PR open without needing
@claude in the body.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: restore author_association guard on issue_comment trigger

The consolidation commit dropped the author_association check from the
issue_comment condition. Without it, any external commenter could invoke
Claude and consume token quota. Restores the guard to limit triggers to
OWNER, MEMBER, and COLLABORATOR.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: apply author_association guard to review comment triggers

Extends the OWNER/MEMBER/COLLABORATOR check to pull_request_review_comment
and pull_request_review events, preventing external users from triggering
Claude via review comments.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 19:26:12 +05:30
Dani Akash
52f9dfb2e4 feat: soul and memory (#401)
* feat: install fuse.js

* feat: implement soul and basic memory system

* fix: memory recall

* fix: memory search pattern

* feat: create soul.md file progressively

* fix: soul vs core memory

* fix: provide a soul read tool

* feat: display soul on settings page

* feat: refresh soul document

* fix: chat mode avoids memory and soul tools

* fix: date construction on memory cleanup

* fix: atomicity of write operation

* chore: upgrade biome
2026-03-04 19:12:47 +05:30
Nikhil Sonti
a63ce24d70 feat: default browseros theme 2026-03-03 17:30:43 -08:00
Nikhil Sonti
02bccccf99 feat: enable vertical tabs 2026-03-03 17:30:21 -08:00
Felarof
91522bca51 chore: sync packages/browseros-agent submodule (to 6d736e9) 2026-03-04 00:40:21 +00:00
Nikhil Sonti
78cf2a3e96 chore: bump PATCH and OFFSET 2026-03-03 16:04:59 -08:00
Nikhil
6d736e9158 fix: gate previousConversation array format for older servers (#400)
* fix: gate previousConversation array format behind BrowserOS 0.41.0.0

Older servers reject the array format for previousConversation with a
ZodError ("Expected string, received array"). Gate the feature behind
BrowserOS >= 0.41.0.0 which bundles server >= 0.0.64 that accepts both
array and string formats.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: use minServerVersion 0.0.64 for previousConversation gate

Server version is the direct indicator of schema support, more accurate
than using BrowserOS version as a proxy.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: fall back to string format for previousConversation on old servers

Instead of omitting previousConversation entirely on servers < 0.0.64,
serialize the conversation history as a "role: content" string which
old servers accept via their z.string() schema.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 15:58:59 -08:00
Nikhil Sonti
5a99e0f9ff chore: bump PATCH and OFFSET 2026-03-03 13:35:43 -08:00
Nikhil Sonti
5944677420 chore: bump PATCH and OFFSET 2026-03-03 13:35:34 -08:00
Nikhil Sonti
6bccbb00e5 chore: Merge branch 'main' 2026-03-03 13:32:06 -08:00
Nikhil
2f8ba0817a fix: ship AppArmor profile in .deb for Ubuntu 23.10+ (#392)
* chore: bump PATCH and OFFSET

* fix: add AppArmor profile and improve .deb packaging for Ubuntu 23.10+

Ship an AppArmor profile with the .deb package that grants the
`userns` permission, fixing the fatal sandbox crash on Ubuntu 23.10+
and other distros that restrict unprivileged user namespaces via
AppArmor (closes #165).

Also adds: Qt5/Qt6 shim libraries for native file dialogs on KDE,
update-alternatives registration for default browser selection,
prerm cleanup script, and Provides/Recommends metadata.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: correct CDN download path for .deb and add multi-size icons

Update .deb download path from lowercase "browseros.deb" to "BrowserOS.deb"
to match the URL advertised in README (cdn.browseros.com/download/BrowserOS.deb).
Also install icons at all available sizes instead of only 256x256.

Closes #368

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: add multi-size icons and AppStream metainfo to .deb package

Install product icons at all standard hicolor sizes (16, 22, 24, 32,
48, 64, 128, 256) instead of only 256px, so desktop environments can
pick the appropriate resolution for panels, menus, and task switchers.

Ship AppStream metainfo at /usr/share/metainfo/browseros.metainfo.xml
so GNOME Software, KDE Discover, and other software centers can
discover and display BrowserOS in their catalogs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: guard postinst update-alternatives with $1=configure check

Matches prerm's pattern — only register alternatives during normal
configure, not during dpkg error-recovery paths (abort-upgrade, etc.)
where /usr/bin/browseros may not exist yet.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 12:35:20 -08:00
Felarof
6b8802c699 chore: sync packages/browseros-agent submodule (to 12f8407) 2026-03-03 20:13:26 +00:00
Nikhil Sonti
12f8407fd6 chore: update bun.lock 2026-03-03 12:01:33 -08:00
Nikhil Sonti
d4447adf65 chore: bump server version 2026-03-03 12:01:14 -08:00
Nikhil Sonti
c66227e697 chore: bump PATCH and OFFSET 2026-03-03 12:00:33 -08:00
Nikhil
f97d74661b feat: ship bun runtime with binary signing (#391)
* feat: add bun binary signing for macOS and Windows

Register the bun runtime binary in the code signing pipelines so it gets
properly signed and notarized alongside browseros_server and codex.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: add bun runtime download and copy resource configs

Add bun binary entries for all platform/arch combos (macOS arm64/x64,
Linux arm64/x64, Windows x64) to download from R2 and copy into the
Chromium build output alongside browseros_server.

Also adds the server bundle (index.js) download and copy entries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 11:59:23 -08:00
Nikhil
ae2c216321 feat: add get_dom and search_dom tools (#398)
* feat: add get_dom and search_dom tools for HTML DOM inspection

Add two new observation tools:
- get_dom: Returns raw HTML of a page or scoped element via CSS selector
- search_dom: Fuzzy searches DOM elements by text, attributes, IDs, and
  class names using Fuse.js with extended search syntax support

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: use CDP DOM protocol instead of injected scripts for DOM tools

Replace Runtime.evaluate-based approach with native CDP DOM methods:
- get_dom uses DOM.getDocument + DOM.querySelector + DOM.getOuterHTML
- search_dom uses DOM.performSearch + DOM.getSearchResults + DOM.describeNode
- Remove fuse.js dependency (CDP performSearch handles text/CSS/XPath natively)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test: add comprehensive tests for get_dom and search_dom tools

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: resolve text nodes to parent elements in searchDom

CDP performSearch returns text nodes (nodeType 3) for plain text queries.
describeNode does not populate parentId, so use resolveNode + callFunctionOn
to get parentElement, then requestNode to obtain the parent's nodeId.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add limit bounds validation and searchId leak prevention

- Add .int().min(1).max(200) to search_dom limit parameter
- Wrap searchDom result processing in try/finally to ensure
  discardSearchResults is always called

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 11:35:09 -08:00
Felarof
d33a1745b4 chore: sync packages/browseros-agent submodule (to 20bb4cb) 2026-03-03 19:20:57 +00:00
Nikhil
20bb4cb21e fix: use pageIds instead of tabIds in tab group tests (#397)
Tests were passing raw Chrome tabIds to group_tabs and ungroup_tabs tools,
but the Zod schemas expect pageIds (MCP-layer page IDs). The tabIds field
was silently stripped during validation, causing both tests to fail.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 10:54:49 -08:00
Nikhil
14ab8fe97e feat: add new CDP tools and improve tool ergonomics (#396)
* feat: add new CDP tools for links, hidden pages/windows, show/move

- get_page_links: extract deduplicated links from a page via evaluate
- new_hidden_page: open a hidden tab for background automation
- create_hidden_window: create a hidden window for background automation
- show_page: restore a hidden page back into a visible window
- move_page: move a tab to a different window or position
- Default includeLinks to false in get_page_content

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: use AX tree for get_page_links, add tests, fix test scripts

- Refactor get_page_links to use accessibility tree instead of raw JS
  evaluate — more reliable for role="link" elements and shadow DOM
- Add extractLinkNodes() to snapshot.ts and getPageLinks() to browser.ts
- Add tests for get_page_links (constructed HTML with dedup/filtering),
  new_hidden_page, show_page, move_page, create_hidden_window
- Fix root package.json test scripts to match server's actual scripts
- Update CLAUDE.md test docs to reflect current structure

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 10:38:23 -08:00
Felarof
ebaa7ae371 chore: sync packages/browseros-agent submodule (to 36b9a78) 2026-03-03 18:21:59 +00:00
Nikhil
36b9a78d56 fix: move ChatV2Service to API services layer and add resolvePageIds (#394)
* feat: move ChatV2Service to api/services layer and add resolvePageIds

Move ChatV2Service from agent/tool-loop/ to api/services/ where it
belongs as a service-layer concern. Add resolvePageIds() to convert
Chrome tab IDs to internal page IDs before they reach the agent,
fixing undefined pageId issues in browser automation tools.

Clean up server.ts by removing the USE_TOOL_AGENT flag, SessionManager,
and old chat route import — both /chat and /chat-v2 now directly use
createChatV2Routes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address review comments for chat-v2-service

- Fix TOCTOU race: derive isNewSession inside the creation block
  instead of separate has()/get() calls
- Log warning when resolvePageIds can't map a tab ID
- Deduplicate tab IDs with Set before resolving
- Remove redundant null check on session in onFinish
- Add license header

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: update bun.lock

* fix: skip resolvePageIds for scheduled tasks to prevent pageId corruption

Scheduled tasks build browserContext with internal page IDs from
browser.newPage(), not Chrome tab IDs. The unconditional second
resolvePageIds() call was passing these internal IDs to resolveTabIds()
which expects Chrome tab IDs, causing the lookup to fail and overwrite
correct pageIds with undefined.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 10:18:44 -08:00
Nikhil
f449162699 fix: suppress biome lint warnings with biome-ignore directives (#395)
Add biome-ignore comments for noExcessiveCognitiveComplexity on compaction.ts
and grep.ts, and noExplicitAny on filesystem test helpers.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 10:12:07 -08:00
Felarof
55bf44de38 chore: sync packages/browseros-agent submodule (to de52afb) 2026-03-03 12:19:45 +00:00
shivammittal274
de52afbc55 feat: generalized compaction prompts with split turn handling (#391)
* feat: generalized compaction prompts with split turn handling

Replace browser-specific XML prompts with domain-agnostic markdown format.
Add split turn detection and parallel summarization for large single-turn
conversations. Switch compaction from generateText to streamText for
Fireworks API compatibility. Add comprehensive unit and E2E tests (84 total).

* fix: address code review issues for compaction (PR #391)

Enforce COMPACTION_MAX_SUMMARIZATION_INPUT cap, extract shared
callSummarizer helper, add runtime type guard for experimental_context,
move magic constants to AGENT_LIMITS, and remove dead constants.

* fix: cap truncatedTurnPrefix input to maxSummarizationInput

Apply the same sliding window cap to turn prefix messages that was
already applied to toSummarize, preventing unbounded LLM input for
long single-turn conversations with many tool calls.

* fix: reduce browseros-auto default context window to 200K

The 400K setting caused compaction to trigger at ~383K, but the actual
model limit is 262K. Conversations hit the hard limit before compaction
could kick in.
2026-03-03 17:20:18 +05:30
Felarof
282d17d616 chore: sync packages/browseros-agent submodule (to d84feb1) 2026-03-03 03:08:01 +00:00
Nikhil Sonti
f3949e901b chore: Merge branch 'main' 2026-03-02 18:25:39 -08:00
Nikhil Sonti
b474a50b42 chore: bump PATCH and OFFSET 2026-03-02 18:25:05 -08:00
Nikhil
d84feb105c feat: add different signal for sigterm and sigint (#390) 2026-03-02 18:23:22 -08:00
Nikhil Sonti
053480d753 feat: add shutdown reason 2026-03-02 18:17:16 -08:00
Nikhil
f74c353698 feat: remove tab-grouping instructions from agent prompt (#388)
* feat: remove tab grouping from agent prompt

* fix: address PR review comments for remove_tab_grouping
2026-03-02 17:53:15 -08:00
Felarof
5e2b2e00e5 chore: sync packages/browseros-agent submodule (to 899d322) 2026-03-03 01:39:56 +00:00
Nikhil
899d322a8b feat: unified browseros-dev CLI for dev & test workflows (#389)
* feat: replace flaky TypeScript dev:watch with Go CLI (devwatch)

The Bun-based scripts/dev/start.ts orchestrator had fundamental issues with
WXT when launched via `bun run --filter` with cwd manipulation. This replaces
it with a Go CLI at tools/devwatch/ that provides:

- Process supervision with auto-restart on crash
- Colored log streaming with [tag] prefixes
- Automatic port discovery (--new flag)
- Fresh user-data directory creation
- Process group management for clean shutdown (SIGTERM → SIGKILL escalation)
- CDP readiness polling before starting the server

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: run agent codegen before wxt and add force-kill on double Ctrl+C

- Run graphql-codegen if generated/graphql/ doesn't exist, matching the
  agent's own `dev` script behavior
- Second Ctrl+C sends SIGKILL to all process groups and exits immediately,
  so you're never stuck in a restart loop

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add run.sh wrapper that checks for Go and prompts to install

If Go isn't installed, shows a clear message with install instructions
(brew install go / go.dev/dl). Also skips rebuilding if the binary
already exists and main.go hasn't changed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: show double Ctrl+C hint at startup

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: swap ANSI escape codes for fatih/color

Adds proper TTY detection, NO_COLOR env var support, and cleaner
color API. Also improves help output with bold/dim styling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: restructure devwatch into browseros-dev CLI with cobra subcommands

Expands the single-file devwatch into a modular CLI with three subcommands:
- `watch` — dev environment with process supervision (port of devwatch)
- `test` — start test env, run bun test, clean up (replaces TS test helpers)
- `cleanup` — kill ports + remove orphaned temp dirs (replaces cleanup.sh)

Shared Go packages for browser lifecycle (CDP polling, arg building),
server health checks (health + extension status), and process management
(managed proc, port killing, streaming, monorepo root finding).

Fixes PR #389 feedback:
- Add timeout after SIGKILL in Stop() to prevent indefinite hang
- Fix run.sh freshness check to detect changes in all .go files
- Add double Ctrl+C force-kill to test command
- Guard test cleanup with sync.Once to prevent race condition

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: replace run.sh freshness logic with Makefile

Make handles timestamp-based dependency tracking natively. The Makefile
rebuilds only when any .go file, go.mod, or go.sum is newer than the
binary. run.sh just checks for Go, calls make, and execs the binary.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 16:45:59 -08:00
Felarof
daba2d4d57 chore: sync packages/browseros-agent submodule (to 54f7e90) 2026-03-03 00:42:26 +00:00
Nikhil Sonti
1880bba9dd chore: Merge branch 'main' 2026-03-02 15:33:46 -08:00
Nikhil Sonti
bc8f874579 chore: bump PATCH and OFFSET 2026-03-02 15:33:42 -08:00
Nikhil Sonti
54f7e90a61 chore: bump server version 2026-03-02 15:23:08 -08:00
Nikhil
793d35c5e5 fix: create default tab which is browseros tab in onboarding (#387) 2026-03-02 15:13:18 -08:00
Felarof
ecc02fd2e7 chore: sync packages/browseros-agent submodule (to c5afcea) 2026-03-02 23:09:49 +00:00
shivammittal274
c5afcea1fb fix: per-request MCP server+transport for SDK 1.26.0 security fix (#386)
* fix: use fresh browser context for selected tabs on each message

Previously, session.browserContext (set on the first message) always
took precedence via the nullish coalescing operator. On subsequent
messages with different tab selections, the new selectedTabs from the
request were silently ignored.

Now normal messages always use request.browserContext so freshly
selected tabs are included. Scheduled tasks still use the stored
session context to preserve the hidden window's pageId/windowId.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: use singleton transport for MCP route

MCP SDK 1.26.0 added a strict guard in Protocol.connect() that throws
"Already connected to a transport" if called when already connected.
The previous code created a new transport per request and called
connect() each time, causing every request after the first to fail
with -32603 Internal server error.

Move transport creation outside the request handler and add
isConnected() check per @hono/mcp docs pattern.

* fix: per-request MCP server+transport for SDK 1.26.0 compat

MCP SDK 1.26.0 patched a security vulnerability (GHSA-345p-7cg4-v4c7)
where sharing a singleton McpServer across requests could leak
cross-client response data via message ID collisions.

Create fresh McpServer + StreamableHTTPTransport per request:
no shared state, no race conditions, no ID collisions.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 15:03:14 -08:00
Nikhil Sonti
e8ea4d1858 fix: llm chat shortcuts 2026-03-02 15:02:43 -08:00
Nikhil Sonti
3717ab4fe8 chore: create new tmp user-data-dir when --new with bun run dev:watch 2026-03-02 14:48:01 -08:00
Nikhil Sonti
6d19db73d5 fix: first run url 2026-03-02 14:42:08 -08:00
Nikhil Sonti
b57c7480f4 fix: onboarding url 2026-03-02 14:40:27 -08:00
Nikhil Sonti
bd4b176db2 feat: update browseros-first-run to browseros-welcome 2026-03-02 14:07:35 -08:00
Nikhil Sonti
3e1c567425 fix: clean-up old nxtscape settings page 2026-03-02 14:07:05 -08:00
Nikhil Sonti
954dd7c06a feat: bundle install support 2026-03-02 14:06:30 -08:00
Nikhil Sonti
1de49a63f5 fix: clean-up old clawd support 2026-03-02 14:06:05 -08:00
Nikhil Sonti
b0795ab217 fix: update extension manifest url 2026-03-02 14:02:23 -08:00
Nikhil Sonti
21ecaa084e chore: bump patch version 2026-03-02 10:56:41 -08:00
Nikhil Sonti
2a7bebaf46 chore: Merge branch 'main' 2026-03-02 10:41:35 -08:00
Nikhil Sonti
cfac2e3227 fix: cdp port resolve issue 2026-03-02 10:41:31 -08:00
Nikhil Sonti
713ad8f64a chore: Merge branch 'main' 2026-03-02 09:26:35 -08:00
Felarof
7b55226651 chore: sync packages/browseros-agent submodule (to 2988bf3) 2026-03-02 11:19:05 +00:00
shivammittal274
2988bf3640 feat: add workspace directory awareness to agent system prompt (#383)
The agent had no knowledge of its working directory, so it couldn't
reference created files by absolute path or help users locate them.

Pass sessionExecutionDir into buildSystemPrompt for both AiSdkAgent
and GeminiAgent so the prompt includes a <workspace> section with
the resolved directory path.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 16:12:18 +05:30
shivammittal274
3aca3a6f5c fix: use fresh browser context for selected tabs on each message (#384)
Previously, session.browserContext (set on the first message) always
took precedence via the nullish coalescing operator. On subsequent
messages with different tab selections, the new selectedTabs from the
request were silently ignored.

Now normal messages always use request.browserContext so freshly
selected tabs are included. Scheduled tasks still use the stored
session context to preserve the hidden window's pageId/windowId.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 16:12:04 +05:30
Felarof
e92c28be82 chore: sync packages/browseros-agent submodule (to 61cd98c) 2026-03-02 08:20:18 +00:00
Dani Akash
61cd98cbd6 feat: update wxt version (#382) 2026-03-02 13:37:01 +05:30
Dani Akash
80fe2493e7 fix: resolve all bun audit vulnerabilities with package overrides (#338)
* fix: resolve all bun audit vulnerabilities with package overrides

Add overrides for 8 vulnerable transitive dependencies: qs, markdown-it,
lodash-es, @modelcontextprotocol/sdk, axios, diff, @isaacs/brace-expansion,
and hono. This resolves 11 security vulnerabilities including DoS, ReDoS,
prototype pollution, XSS, and data leak issues.

https://claude.ai/code/session_01D3vmc2S4564FJSFqsRaTfM

* fix: vulnerabilites

* fix: remove overrides

* fix: vulnerable versions

* fix: versions

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-02 13:30:14 +05:30
Dani Akash
8f01c614dd feat: simplified onboarding (#381)
* feat: new onboarding flow

* feat: co-ordinate the sign in and import hints

* fix: ux on step one

* fix: make custom option friendlier

* feat: added required fields

* feat: setup step two redirection

* fix: remove copy url button

* feat: store profile info from onboarding

* feat: sync onboarding profile to api

* feat: show confetti when the onboarding completes

* fix: change the options in onboarding demo

* feat: setup missing analytics events

* fix: lint issues

* ci: fix typescript error

* fix: sign in hint
2026-03-02 12:59:02 +05:30
Felarof
dbd44a2535 chore: sync packages/browseros-agent submodule (to 91cb030) 2026-02-28 22:07:55 +00:00
Nikhil Sonti
d65246e43a chore: Merge branch 'main' 2026-02-28 13:57:16 -08:00
Nikhil
91cb0300d4 fix: make CDP discovery resilient on localhost-only setups (#378)
* chore: bump server version

* feat: add loopback fallback for cdp discovery
2026-02-28 13:56:56 -08:00
Nikhil
bc7bf8140d feat: improve bros patch sync pull/push workflows (#386)
* feat: improve bros pull/push sync and patch safety

* fix: address PR review comments for go_cli_patch_sync

* test: add mock-repo unit and e2e coverage for bros operations
2026-02-28 08:57:57 -08:00
Nikhil Sonti
6cd68605ab chore: bump server version 2026-02-27 18:16:56 -08:00
Nikhil Sonti
1600978cc6 chore: bump patch 2026-02-27 18:16:25 -08:00
Felarof
ad606fe0d9 chore: sync packages/browseros-agent submodule (to a3cbcb1) 2026-02-27 18:19:40 +00:00
Nikhil
a3cbcb16df fix: restore glow overlay for CDP-based tools (#375)
* fix: restore glow overlay for CDP-based tools

After migrating to CDP tools, glow broke because the hook looked for
input.tabId (controller tools) while CDP tools use input.page (pageId).

- Server: add getTabIdForPage() to Browser, include tabId in tool output
- Client: extract tabId from output, fall back to active Chrome tab

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: use ToolResultMetadata for tabId resolution

Move tabId resolution from tool-adapter into the framework layer:
- response.ts: add ToolResultMetadata interface with tabId field
- framework.ts: auto-resolve pageId→tabId after tool execution
- tool-adapter.ts: just forward metadata (no domain logic)

This makes metadata available to all ToolResult consumers, not just
the AI SDK adapter, and the metadata bag is extensible for future fields.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add todo

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 10:16:06 -08:00
Nikhil
47a70b43de feat: improve scroll reliability and tool response latency (#374)
* feat: improve scroll reliability and tool response latency

* fix: address PR review comments for fix_scroll_tool
2026-02-27 09:24:29 -08:00
Felarof
338649319a chore: sync packages/browseros-agent submodule (to 3060411) 2026-02-27 16:16:20 +00:00
Nikhil Sonti
3060411b7b chore: Merge branch 'main' 2026-02-27 07:47:55 -08:00
Felarof
6bdc1d170d chore: sync packages/browseros-agent submodule (to 1cba45e) 2026-02-27 05:28:12 +00:00
Nikhil
1cba45e7b7 fix: stabilize cdp connect and reconnect lifecycle (#373)
* chore: bump server

* fix: harden cdp connect and reconnect flow
2026-02-26 20:48:41 -08:00
Felarof
13faa47383 chore: sync packages/browseros-agent submodule (to 96797ed) 2026-02-27 04:39:03 +00:00
Nikhil Sonti
afcf4d9e00 chore: bump patch version 2026-02-26 19:25:00 -08:00
Nikhil Sonti
3cf222fb36 chore: bump server 2026-02-26 19:23:14 -08:00
Nikhil
96797ed101 fix: remove health check remove (#371) 2026-02-26 19:22:18 -08:00
Nikhil Sonti
032e1e57c9 chore: Merge branch 'main' 2026-02-26 19:09:43 -08:00
Nikhil Sonti
b790da199e chore: bump patch version 2026-02-26 19:09:37 -08:00
Felarof
19555cea78 chore: sync packages/browseros-agent submodule (to f9fb2f8) 2026-02-27 03:04:37 +00:00
Nikhil Sonti
f9fb2f8a02 chore: bump server version 2026-02-26 18:23:36 -08:00
Nikhil
e02ba395f9 feat: fix input key (#370)
* feat: fix input key

* fix: more tests
2026-02-26 18:22:53 -08:00
Nikhil Sonti
5eb6968c41 Merge branch 'main' of https://github.com/browseros-ai/BrowserOS 2026-02-26 17:55:55 -08:00
Nikhil Sonti
04bb55fdd1 fix: hidden window fix 2026-02-26 17:55:30 -08:00
Felarof
1aaf9de2ba chore: sync packages/browseros-agent submodule (to 0009675) 2026-02-27 01:39:29 +00:00
Nikhil Sonti
00096752b5 chore: lefthook make branch names as warning 2026-02-26 17:26:04 -08:00
Nikhil Sonti
618b35b460 chore: bump server version 2026-02-26 17:23:52 -08:00
Nikhil Sonti
e4aee822ff feat: save_screenshot tool 2026-02-26 16:58:50 -08:00
Nikhil Sonti
534e890a41 Merge branch 'main' of https://github.com/browseros-ai/BrowserOS 2026-02-26 15:55:32 -08:00
Nikhil Sonti
e4d39e2ec1 chore: bump patch version 2026-02-26 15:55:27 -08:00
Nikhil
1939aa1e89 feat: incremental bros pull sync with orphan cleanup (#383)
* feat: add incremental bros pull sync with base-aware fallback

* fix: require base match for incremental pull state
2026-02-26 15:33:01 -08:00
Felarof
6108e94d0f chore: sync packages/browseros-agent submodule (to 1f5dcba) 2026-02-26 23:13:13 +00:00
Nikhil
1f5dcba976 chore: bump server version (#368) 2026-02-26 15:08:28 -08:00
Nikhil
19c4175631 feat: replace pi-mono filesystem tools with native implementation (#366)
* feat: replace pi-mono filesystem tools with native Bun/Node.js implementation

Remove @mariozechner/pi-coding-agent and @mariozechner/pi-agent-core
dependencies that caused bun compile issues (tree traversal, package.json
resolution). Reimplement all 7 filesystem tools (read, write, edit, bash,
grep, find, ls) using only Bun and Node.js built-in libraries.

- No external binary dependencies (no ripgrep, fd, etc.)
- Cross-platform: Linux, macOS, Windows
- 107 tests covering all tools and utilities
- Pure JS grep/find using Bun.Glob and async directory walking
* fix: add explicit ENOENT handling in grep tool stat() call
2026-02-26 14:56:25 -08:00
Felarof
64e43f5d8c feat: add citation section to README (#382)
Add a BibTeX @software citation block to README.md between
Credits and Stargazers sections, with authors Nithin Venkat Sonti,
Nikhil Venkat Sonti, and the BrowserOS team.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 14:54:14 -08:00
Nikhil Sonti
45c086c1e8 fix: gitignore update 2026-02-26 14:31:42 -08:00
Felarof
dfd309a1bc chore: sync packages/browseros-agent submodule (to d7bb80e) 2026-02-26 22:13:20 +00:00
Nikhil
d7bb80e04e feat: cdp keep alive and exit strategy (#365)
* feat: cdp keep alive and exit strategy

* fix: self-kill if health checks don't arrive

* fix: timer cdp race

* fix: stale this
2026-02-26 13:52:15 -08:00
Felarof
37bfc6c62e chore: sync packages/browseros-agent submodule (to 5d082de) 2026-02-26 19:21:38 +00:00
Dani Akash
5d082deca3 fix: typescript checks in ci (#364)
* feat: setup schema file as fallback for codegen

* ci: included codegen build script

* fix: biome lint issues

* ci: fix heap memory
2026-02-27 00:22:59 +05:30
Nikhil Sonti
99ec199335 fix: gitignore 2026-02-25 17:47:15 -08:00
Felarof
111c38a455 chore: sync packages/browseros-agent submodule (to 1322638) 2026-02-24 13:35:46 +00:00
Dani Akash
1322638681 feat: update scheduled tasks to run in background (#359)
* feat: ensure scheduled tasks open in hidden tab

* fix: update scheduled task result in the UI

* fix: remove unnecessary useEffect

* fix: race condition with deleteSession
2026-02-24 18:31:00 +05:30
Felarof
02368e79d1 chore: sync packages/browseros-agent submodule (to 8c9c5d0) 2026-02-24 01:39:57 +00:00
Nikhil Sonti
8c9c5d0d9a fix: bun compile fix 2026-02-23 17:26:51 -08:00
Nikhil Sonti
31efbf9f0c chore: Merge branch 'main' 2026-02-23 17:18:29 -08:00
Nikhil Sonti
1ea3128ed8 feat: sentry crash dumps 2026-02-23 17:18:24 -08:00
Nikhil Sonti
796112c3d6 fix: replace __VERSION__ at compile time 2026-02-23 17:07:53 -08:00
Felarof
285a686291 chore: sync packages/browseros-agent submodule (to 46674fb) 2026-02-24 00:39:13 +00:00
Nikhil Sonti
614b47de4a chore: bump patch version 2026-02-23 16:26:50 -08:00
Nikhil Sonti
46674fb952 chore: bump server version 2026-02-23 16:25:37 -08:00
Nikhil Sonti
11154bde75 chore: Merge branch 'main' 2026-02-23 16:14:38 -08:00
Nikhil Sonti
e3efb5a376 chore: bump patch 2026-02-23 16:14:32 -08:00
Nikhil
cb8aa6c60e feat: fix new cdp tests for tools (#358)
* feat: new tools tests

* fix: lint warnings by disabling or TODO

* fix: minore update to branch cleaner
2026-02-23 16:08:34 -08:00
Nikhil
f27858f9a7 fix: cdp retry on disconnect and crash (#357)
* fix: cdp retry on disconnect and crash

* fix: review comments

* fix: review comments
2026-02-23 15:17:40 -08:00
Felarof
b171c0a188 chore: sync packages/browseros-agent submodule (to 1615f2a) 2026-02-23 23:17:35 +00:00
Nikhil Sonti
1615f2ab42 fix: minor prompt comment 2026-02-23 15:02:42 -08:00
Nikhil Sonti
8138081ca1 fix: don't inject tool referneces for tool loop agent 2026-02-23 15:02:03 -08:00
Nikhil Sonti
52f2ebeffd fix: default context window to 200k 2026-02-23 14:59:07 -08:00
Nikhil
c675c18c65 feat: fixes to cdp tools (#356)
* fix: use page-ids in tab-groups

* fix: auto include context prompt

* feat: includePages auto context
2026-02-23 14:50:05 -08:00
Nikhil Sonti
a8db192675 chore: Merge branch 'main' 2026-02-23 14:30:32 -08:00
Nikhil Sonti
88c9665dda fix: start cdp earlier 2026-02-23 14:30:27 -08:00
Felarof
4b03bc6620 chore: sync packages/browseros-agent submodule (to b83f50b) 2026-02-23 22:20:29 +00:00
Nikhil
b83f50b8f6 feat: generate cdp types based on protocol" (#355)
* feat: gen cdp types

* feat: move apis to use typed cdp

* fix: lint errors on scripts/codegen

* fix: lint errors on scripts/codegen
2026-02-23 13:47:57 -08:00
Felarof
fd53ee1f89 chore: sync packages/browseros-agent submodule (to d9ac4b2) 2026-02-23 21:21:12 +00:00
Nikhil Sonti
d9ac4b24c5 Revert "fix: update to using browseros cdp port arg"
This reverts commit 9bcf54c5c1.
2026-02-23 12:33:23 -08:00
Nikhil Sonti
9bcf54c5c1 fix: update to using browseros cdp port arg 2026-02-23 12:32:12 -08:00
Felarof
af454327e4 chore: sync packages/browseros-agent submodule (to ff0e71e) 2026-02-23 20:19:02 +00:00
Nikhil Sonti
ff0e71efbd fix: enable tool loop agent by default 2026-02-23 12:10:55 -08:00
Felarof
6c3731c5e2 chore: sync packages/browseros-agent submodule (to 16eaa90) 2026-02-23 19:29:20 +00:00
Dani Akash
16eaa90932 feat: ToolLoopAgent (#354)
* fix: lint issues

* chore: upgrade ai sdk

* fix: typescript errors

* feat: created tool loop agent route

* feat: session store

* feat: agent compaction logic

* feat: make chat use the new endpoint

* chore: pulled main

* chore: refactor chat v2 route with toolloop agent (#348)

* chore: refactor chat v2 route with toolloop agent

* refactor: move agent runtime files into agent/tool-loop module

---------

Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>

* feat: added support for filesystem tools (#352)

* feat: tool adapter

* chore: error handling and log metrics

* fix: tool adapter format

* feat: install pi agent

* feat: setup filesystem tools

* fix: types in pi-tool-adapter

* feat: update adapter for new cdp tools

* chore: use old chat endpoint

* chore: eliminate dead code

---------

Co-authored-by: shivammittal274 <mittal.shivam103@gmail.com>
Co-authored-by: shivammittal274 <56757235+shivammittal274@users.noreply.github.com>
2026-02-23 10:36:08 -08:00
Felarof
e9df04c72e chore: sync packages/browseros-agent submodule (to 81a6d20) 2026-02-23 16:24:40 +00:00
Nikhil
81a6d20fe8 feat: cdp tools (#353)
* feat: unified CDP + controller tools architecture

Merge CDP and controller tools into a single Browser abstraction with
backend-agnostic tool definitions. Replaces old separate cdp/controller
tool registries with unified registry, adds new tools (bookmarks,
tab-groups, history, keyboard, mouse, snapshot, content-markdown).

* feat: fix bookmarks and history, move browseros-info tool

* chore: bump server version

* fix: increase console truncate limit

* fix: previous conversation fix

* chore: bump server version

* fix: tab-group cdp

* fix: update types based on pdl

* fix: enable tab grouping

* fix: prompt enable tab grouping

* chore: bump server version
2026-02-23 07:28:45 -08:00
Felarof
aa1faf5003 chore: sync packages/browseros-agent submodule (to 0b38310) 2026-02-23 00:42:52 +00:00
Felarof
0b38310ae0 feat: assign daily limit survey users to random experiment buckets (#350)
Instead of a hardcoded experimentId=daily_limit, randomly assign users
to one of four survey direction buckets (competitor, switching, workflow,
activation) matching the round 2 survey pattern.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 16:41:54 -08:00
Nikhil Sonti
741d3ac40c chore: bump build version 2026-02-21 17:26:00 -08:00
Nikhil Sonti
221d2a0ee8 fix: clean third_party/ also now 2026-02-21 15:55:21 -08:00
Nikhil Sonti
968ccf80ad chore: bump patch 2026-02-21 15:42:10 -08:00
Nikhil Sonti
bed1a31b74 fix: use last profile when context not available 2026-02-21 15:24:55 -08:00
Nikhil Sonti
3274c55131 chore: bump patch 2026-02-21 14:20:52 -08:00
Nikhil Sonti
d8e9813934 feat: new cdp domains for bookmarks, tab-groups and history 2026-02-21 14:20:34 -08:00
Nikhil Sonti
e5539e0801 feat: bump patch 2026-02-21 12:17:18 -08:00
Nikhil Sonti
d15d3902d4 feat: New cdp functions in browser.* domain 2026-02-21 12:17:01 -08:00
Nikhil Sonti
491d705771 chore: Merge branch 'main' 2026-02-21 12:16:05 -08:00
Nikhil Sonti
82ed0661ce feat: getTargetForTab CDP command 2026-02-21 12:16:00 -08:00
Nikhil Sonti
bd64a87c7c fix: cdp race condition on start 2026-02-21 12:15:06 -08:00
Felarof
669932adfd chore: sync packages/browseros-agent submodule (to 38471f6) 2026-02-21 00:39:35 +00:00
Felarof
38471f6b6a fix: resume conversation (#346) 2026-02-20 16:23:15 -08:00
Felarof
f5c0765457 chore: sync packages/browseros-agent submodule (to 3955d6e) 2026-02-20 23:11:58 +00:00
Felarof
3955d6ee62 feat: add tool loop agent skills to the repo 2026-02-20 14:58:29 -08:00
Felarof
a89d511100 chore: sync packages/browseros-agent submodule (to 1f5d9ec) 2026-02-20 17:18:32 +00:00
Felarof
1f5d9ec55c feat: add project-level Claude Code skills for dev workflow
Copy dev workflow skills (dev, dev1-start through dev7-pr, dev-debug,
ts-style-review) to project .claude/skills/ so they're available to all
contributors. Excludes twitter agent and browseros browser skills.

Update .gitignore to track .claude/skills/ and .claude/commands/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 08:56:48 -08:00
Felarof
424384457d chore: sync packages/browseros-agent submodule (to 1204697) 2026-02-20 16:16:38 +00:00
Felarof
1204697873 fix: minor text change 2026-02-20 07:45:00 -08:00
Felarof
e133e35527 chore: sync packages/browseros-agent submodule (to 2e1fc2e) 2026-02-20 14:20:29 +00:00
Felarof
2e1fc2e8f9 feat: add API key auth flow for Klavis MCP servers (#343)
* feat: update to support more klavis MCP servers

* fix: minor icon fix

* fix: normalize klavis mcp auth flow compatibility

* feat: add API key auth flow for Klavis MCP servers

Servers that use API key authentication (Stripe, Cloudflare, Brave
Search, Exa, Mem0, Resend, Mixpanel, PostHog, Postman, Zendesk,
Intercom) were failing with "Failed to add app" because the frontend
only handled OAuth flows. This adds the complete API key auth path:

- Backend: apiKeyUrls in StrataCreateResponse, submitApiKey() method,
  /servers/submit-api-key route
- Frontend: ApiKeyDialog component, useSubmitApiKey hook, ConnectMCP
  updated to show dialog for API-key servers instead of opening OAuth

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: remove broken success check in Klavis submitApiKey

The Klavis /mcp-server/instance/set-auth endpoint returns
{ message: "Authentication updated successfully." } without a
success field. Our code checked `data.success` which was always
undefined, causing API key auth to fail even when Klavis accepted
the key. The request() method already throws on non-2xx responses,
so the explicit check was redundant and incorrect.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 19:31:59 +05:30
Felarof
5fb6496217 chore: sync packages/browseros-agent submodule (to d775cad) 2026-02-20 03:05:47 +00:00
Felarof
d775cadc17 feat: move connect apps into main sidebar (#344) 2026-02-19 18:35:31 -08:00
Felarof
a169f74d11 feat: add Round 2 direction parameter to JTBD survey (#342)
* feat: add Round 2 direction parameter to JTBD survey frontend

Thread direction parameter from popup trigger through URL params to the
survey chat API. Randomly assign one of 4 investigation directions
(competitor, switching, workflow, activation) when the in-app popup
triggers, encoding it as experimentId=r2_{direction} for analytics.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: remove direction param, encode in experimentId instead

Direction is now encoded entirely in experimentId (e.g., "r2_competitor").
Remove the separate direction URL param and prop threading — the backend
derives direction from experimentId. Simplifies the frontend to only
set experimentId with a random direction on popup trigger.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 18:27:32 -08:00
Felarof
5e4187a294 feat: collapse workflow generation tidbits in place (#341)
* fix: setup

* fix: compact workflow tidbits within streamed assistant parts

feat: collapse workflow tidbit status messages in graph chat

* Revert "fix: compact workflow tidbits within streamed assistant parts"

This reverts commit f5fa6d6b7a480dfc001ede6de7949f45c7777f37.

* fix: collapse workflow tidbit status messages in graph chat

Tidbit messages (jokes/status ending with ...) during workflow execution
now replace each other in place instead of stacking as separate chat
bubbles. Handles both consecutive tidbit messages and multiple tidbit
text parts within a single streamed message.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: compact multi-line tidbits within a single text part

Tidbits arrive as text-deltas accumulated into a single text part
(e.g. "Generating workflow…\nReticulating splines…\n..."). The previous
fix only handled separate parts and separate messages but not multiple
tidbit lines within one part. Added compactTidbitLinesInPart to trim
multi-line tidbit text to just the last line.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 17:42:10 -08:00
Felarof
44951cc5a6 docs: add small line before videos 2026-02-19 15:39:58 -08:00
Felarof
a5e82f992c docs: added videos 2026-02-19 15:39:27 -08:00
github-actions[bot]
2dfb730571 docs: Sireeshreddy01 signed the CLA in browseros-ai/BrowserOS#$pullRequestNo 2026-02-19 21:43:30 +00:00
Nikhil Sonti
8843883b09 chore: bump patch 2026-02-18 12:33:49 -08:00
Nikhil Sonti
dbf92bdea1 feat: add tabId and windowId in each targetInfo 2026-02-18 12:31:47 -08:00
Nikhil Sonti
1feadebaff chore: bump patch 2026-02-17 16:10:26 -08:00
Nikhil Sonti
eae3e91d15 feat: getTabForTarget CDP implementation 2026-02-17 16:10:00 -08:00
Nikhil Sonti
a8f1545b04 fix: update base commit 2026-02-17 07:44:50 -08:00
Nikhil Sonti
908a82e07e chore: Merge branch 'main' 2026-02-16 17:10:26 -08:00
Nikhil Sonti
be83e728ea fix: debug builds not fail on un-used args 2026-02-16 17:09:12 -08:00
Nikhil Sonti
c6e0572630 fix: windows handle fix 2026-02-16 12:26:43 -08:00
Felarof
0192033e81 chore: sync packages/browseros-agent submodule (to f35ed67) 2026-02-16 19:17:40 +00:00
Nikhil
f35ed67617 fix: add scroll support to dialog when content overflows (#340)
Added max-h-[85vh] and overflow-y-auto to DialogContent component
to enable scrolling when dialog content exceeds viewport height.
This fixes the scheduled task dialog not showing scroll when
content is too long.

https://claude.ai/code/session_01CP8aUnunJpW9mYwTbt3gpt

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-16 10:44:31 -08:00
Felarof
433f4e1d88 chore: sync packages/browseros-agent submodule (to 3b393f0) 2026-02-16 17:19:10 +00:00
Nikhil
3b393f0639 feat: increase tips show probability to 0.3 (#336)
https://claude.ai/code/session_01EwJaviDJJM3jugajAff4Y4

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-16 08:45:21 -08:00
Felarof
a4ffe89a99 chore: sync packages/browseros-agent submodule (to c7a72b5) 2026-02-16 13:33:43 +00:00
shivammittal274
c7a72b5164 fix: resolve stale closure bug in LLM Hub provider management (#333)
* chore: baseline setup

* fix: resolve stale closure bug in LLM Hub provider management

saveProvider and deleteProvider were wrapped in useCallback with
[providers] dependency, building updated arrays from the closure-captured
providers state. When adding a provider then deleting another, the delete
callback could have a stale providers array that didn't include the newly
added one — causing the new provider to be lost when written to storage.

Fix: read current state from persistent storage via loadProviders()
before every mutation, matching the pattern used in useLlmProviders.ts.
Remove useCallback wrappers since they no longer depend on providers state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: inject stop button to pages controlled by agent (#334)

* chore: baseline setup

* feat(agent): When the agent is running, right now we inject an orange glow. See the `apps/age

Task ID: TOiaMuDz

* fix: clean up agent storage

* fix: improve the stop button style

* fix: type issues with stopAgentStorage

---------

Co-authored-by: BrowserOS Coding Agent <coding-agent@browseros.com>
Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>

* fix: resolve stale closure bug in LLM Hub provider management

saveProvider and deleteProvider were wrapped in useCallback with
[providers] dependency, building updated arrays from the closure-captured
providers state. When adding a provider then deleting another, the delete
callback could have a stale providers array that didn't include the newly
added one — causing the new provider to be lost when written to storage.

Fix: read current state from persistent storage via loadProviders()
before every mutation, matching the pattern used in useLlmProviders.ts.
Remove useCallback wrappers since they no longer depend on providers state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: BrowserOS Coding Agent <coding-agent@browseros.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>
2026-02-16 18:34:05 +05:30
Felarof
aa29a29570 chore: sync packages/browseros-agent submodule (to 2c8c6f6) 2026-02-16 12:21:34 +00:00
shivammittal274
2c8c6f6120 feat: inject stop button to pages controlled by agent (#334)
* chore: baseline setup

* feat(agent): When the agent is running, right now we inject an orange glow. See the `apps/age

Task ID: TOiaMuDz

* fix: clean up agent storage

* fix: improve the stop button style

* fix: type issues with stopAgentStorage

---------

Co-authored-by: BrowserOS Coding Agent <coding-agent@browseros.com>
Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>
2026-02-16 17:42:32 +05:30
Felarof
a5e7677af0 chore: sync packages/browseros-agent submodule (to 509451a) 2026-02-13 20:15:20 +00:00
Felarof
509451ac2f fix: hub provider list goes stale after add then delete (#331)
saveProvider and deleteProvider used useCallback with [providers]
dependency, causing a stale closure bug. When adding a new provider
then deleting another, the delete callback still referenced the old
providers array (before the add), losing the newly added provider.

Now reads current state from storage before each mutation, matching
the pattern used in useLlmProviders. Also removes unnecessary
useCallback wrappers per project conventions.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 12:03:17 -08:00
Nikhil
e3d25892a9 feat: login session import fix (#364)
* feat: cookie import fix

* chore: bump offset + version

* feat: fixes to keychain macos signing
2026-02-12 13:56:40 -08:00
Nikhil Sonti
613bca5222 fix: gignore 2026-02-12 13:41:15 -08:00
Nikhil
ba52e92517 feat/new go cli (#363)
* feat: bros dev cli for better management

* fix: minor

* fix: review fixes
2026-02-12 13:40:41 -08:00
Nikhil Sonti
f585fc13fc feat: update features.yaml 2026-02-11 14:19:51 -08:00
Nikhil Sonti
3b362fa770 feat: series patch enable 2026-02-11 14:18:49 -08:00
Nikhil Sonti
bd1c851a09 fix: update series windows patch 2026-02-11 14:18:23 -08:00
Nikhil Sonti
cb4368ecad feat: update manifestv2 patch 2026-02-11 14:16:58 -08:00
Nikhil Sonti
448882a251 fix: update patch no 2026-02-11 14:14:48 -08:00
Nikhil
478a35e4ef feat: chromium 145 upgrade (#362)
* feat: new apply --force

* chore: update chromium version

* feat: chromium 145 updated patches

* fix: disable series patches for nwo

* chore: bump offset + version

---------

Co-authored-by: Nikhil <shadowfax@mac.local.meter>
2026-02-11 14:03:02 -08:00
Felarof
79b0adb69c chore: sync packages/browseros-agent submodule (to d6b0270) 2026-02-11 19:27:14 +00:00
Nikhil Sonti
d6b02703df fix: minor fixes to tips 2026-02-11 10:58:32 -08:00
Nikhil Sonti
27c9a9748e fix: dismiss duration 7 days 2026-02-11 10:52:58 -08:00
Felarof
e532876194 chore: sync packages/browseros-agent submodule (to be4ab73) 2026-02-11 13:36:29 +00:00
Dani Akash
be4ab73d61 fix: adds a don't ask again option for sync prompt (#326) 2026-02-11 18:49:36 +05:30
Dani Akash
f4f92053f7 feat: enable posthog app connection support (#313)
* fix: dev scripts

* feat: setup posthog mcp

* feat: api auth UI

* chore: remove agent command

* feat: setup posthog connection

* fix: better error handling

* chore: refactor to use llm proxy

* feat: auto update authenticate status for posthog

* feat: integrate posthog to the app selector

* feat: update biome

* chore: update server restart

* chore: update codegen process

* feat: install klavis in server project

* feat: update posthog icon

* fix: updated review comment

* feat: address code reviews
2026-02-11 18:28:45 +05:30
Felarof
53135bd960 chore: sync packages/browseros-agent submodule (to 9508e23) 2026-02-10 18:30:24 +00:00
shivammittal274
9508e2334b fix: previous conversation history never injected on resume (#314)
Check session existence in ChatService before passing previousConversation
to the agent. Only pass it for new sessions — existing sessions already
have real conversation history in the GeminiClient.
2026-02-10 23:15:13 +05:30
Felarof
426cd9e344 chore: sync packages/browseros-agent submodule (to 5fe94f7) 2026-02-09 16:26:29 +00:00
Dani Akash
5fe94f74ac feat: make dev commands easier to run (#311)
* feat: process compose

* chore: run install on process compose

* docs: updated README

* chore: added agent-codegen step

* docs: updated README
2026-02-09 21:33:50 +05:30
Felarof
98dd4cfa9a chore: sync packages/browseros-agent submodule (to 2539f13) 2026-02-07 03:01:30 +00:00
Felarof
2539f13c65 fix: prompt changes to use XML (#310)
* fix: prompt changes to use XML

fix: use xml tags in prompt

fix: xml

* fix(prompt): keep security boundary XML-only
2026-02-06 17:50:49 -08:00
Nikhil
b2a6dc5478 feat: udpate docs adblock (#355) 2026-02-06 17:02:15 -08:00
Nikhil
55eb204dea feat: update docs for local model guide (#354) 2026-02-06 16:56:59 -08:00
Felarof
5a612c8536 Merge branch 'main' of github.com:browseros-ai/BrowserOS 2026-02-06 16:10:29 -08:00
Felarof
8ade3d0a6d fix: change hub to council 2026-02-06 16:10:26 -08:00
Felarof
2e5f9e5ede chore: sync packages/browseros-agent submodule (to a31056f) 2026-02-06 22:08:12 +00:00
Nikhil Sonti
a31056f9f1 chore: bump server version 2026-02-06 13:25:32 -08:00
Nikhil Sonti
f9933ccedc fix: move const to shared for cdp timeout 2026-02-06 13:24:47 -08:00
Nikhil
3fa732c23e fix: add time out for cdp connect (#308) 2026-02-06 13:23:34 -08:00
Felarof
89585ee357 chore: sync packages/browseros-agent submodule (to 23abfdf) 2026-02-06 18:21:52 +00:00
shivammittal274
23abfdf6f4 feat: add MCP transport auto-detection for custom servers (#307)
Automatically detect whether custom MCP servers use Streamable HTTP or
SSE transport by probing with a POST request before creating the config.

- Add detectMcpTransport() utility that probes the server endpoint
- If POST returns 200 with JSON/event-stream, use Streamable HTTP
- If POST returns 404/405 or fails, fall back to SSE transport
- Cache detection results per URL with 1-hour TTL
- Skip caching for transient errors (5xx, network failures)

Known servers (browseros-mcp, klavis-strata) skip detection and use
Streamable HTTP directly.
2026-02-06 23:24:27 +05:30
Felarof
5de08db949 chore: sync packages/browseros-agent submodule (to e35cb6c) 2026-02-06 14:21:29 +00:00
Dani Akash
e35cb6cd16 feat: browseros info tool (#306) 2026-02-06 19:20:56 +05:30
Felarof
2b17059168 chore: sync packages/browseros-agent submodule (to b5a4c38) 2026-02-06 13:31:06 +00:00
Dani Akash
b5a4c3804b fix: controller context tool fixes (#305)
* fix: incorrect tool call for getting page snapshot

* feat: let llm know the page is loaded after enrichment is complete

* feat: improve prompt to prevent calling getActiveTab

* feat: added enrichment to the get_load_status tool
2026-02-06 18:53:57 +05:30
Felarof
be7912b4e9 chore: sync packages/browseros-agent submodule (to 9f3562e) 2026-02-05 23:10:09 +00:00
Nikhil
9f3562eb85 feat: new tab tips section (#304)
* fix: tips

* fix: show tips only 1/5 times

* fix: guard against empty tips array in getRandomTip

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: biome exhaustive deps in SurveyChat voice effect

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 15:04:08 -08:00
Felarof
5fd99b54f6 chore: sync packages/browseros-agent submodule (to d242add) 2026-02-05 18:24:26 +00:00
Dani Akash
d242adde26 feat: scoped controller context (#301)
* feat: remove wrapped controller tools and enrich context with windowid

* refactor: remove windowid from all the tools

* feat: pass window id to mcp server via request headers

* feat: enrich possible toolcalls to reduce roundtrip
2026-02-05 10:18:58 -08:00
Felarof
9385f8b2f2 chore: update docs on models 2026-02-04 14:51:54 -08:00
Felarof
71b2b5ea94 chore: minor update to docs 2026-02-04 10:53:04 -08:00
Felarof
6d1ab5cb05 chore: update docs
feat: docs v0.1

feat: better ocmponents

fix: better cowork docs

fix: docs
2026-02-04 10:51:43 -08:00
Felarof
04700a99a4 chore: sync packages/browseros-agent submodule (to d7be752) 2026-02-04 17:22:21 +00:00
Dani Akash
d7be7520b8 fix: pending check before updating session storage (#302) 2026-02-04 21:55:35 +05:30
Felarof
a6b3a46dc4 chore: sync packages/browseros-agent submodule (to e7ab1b6) 2026-02-04 11:17:43 +00:00
Dani Akash
e7ab1b6b6d feat: scheduled tasks ux improvement (#300)
* feat: show scheduled tasks tab if job runs are empty

* chore: switch tabs after creating new tasks

* feat: provide option to cancel and retry scheduled tasks

* feat: provide option to retry and cancel jobs on the popups

* chore: fix minor race condition between window cleanup and job status
update
2026-02-04 16:37:12 +05:30
Felarof
5349966ec9 chore: sync packages/browseros-agent submodule (to 3345271) 2026-02-04 00:38:58 +00:00
Nikhil Sonti
33452715ba fix: shortcuts update for llm chat/hub 2026-02-03 16:22:18 -08:00
Nikhil Sonti
ccd5ab146e fix: codgen graphql build 2026-02-03 16:19:39 -08:00
Felarof
4e68bba5ba chore: sync packages/browseros-agent submodule (to 862cd94) 2026-02-03 21:15:10 +00:00
Nikhil
862cd944b5 feat: tab-picker with @ on newtab (#298) 2026-02-03 12:51:31 -08:00
Felarof
f0d3a7822f chore: sync packages/browseros-agent submodule (to f8221e9) 2026-02-03 20:15:34 +00:00
Nikhil Sonti
f8221e95a4 feat: update shortcuts 2026-02-03 12:12:32 -08:00
Felarof
2d92c9bd1a chore: sync packages/browseros-agent submodule (to b36d746) 2026-02-03 18:25:04 +00:00
Nikhil
b36d74638c feat: tab-picker + tab-popover merged with simple ui (#296)
Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>
2026-02-03 09:53:09 -08:00
Dani Akash
7788695230 feat: added new events across agent (#297)
* chore: update claude.md

* feat: setup analytics for new tab page

* feat: added events to workflows

* feat: added analytics events for sidepanel

* chore: remove emoji from new label
2026-02-03 23:16:12 +05:30
Felarof
02e4f12447 chore: sync packages/browseros-agent submodule (to 163e27a) 2026-02-03 14:22:45 +00:00
Dani Akash
163e27ac12 fix: added loading indicator to ensure chat history is consistent when loading from history (#295)
* fix: keep previous data in chat history

* feat: use react query for restoring conversation messages

* fix: loading issue with chat history

* fix: use state instead of ref for the restoredConversationId

* fix: handle not found scenario on both local and remote restoration

* Revert "fix: handle not found scenario on both local and remote restoration"

This reverts commit d4725134087af047fe18bc6519f5ad5244104544.

* fix: handle conversation not found scenario

* chore: added a loading indicator for the chat history page

* chore: reset restored conversation id state
2026-02-03 19:18:42 +05:30
Felarof
2454bb8c87 chore: sync packages/browseros-agent submodule (to a6e2845) 2026-02-03 13:31:33 +00:00
Dani Akash
a6e2845778 feat: usability updates for the mcp page (#291)
* feat: added new mcp icons

* feat: added missing icons

* feat: change mcp text to apps

* feat: added custom app tip

* fix: airtable icon color

* feat: display unauthenticated apps in add mcp dialog

* feat: app selector for the Newtab search

* chore: update apps dropdown to use plug zap icon

* feat: setup app selector on sidepanel chat

* feat: compact apps selector dropdown

* fix: settings url in the app selector

* feat: added tooltip for app selector

* feat: added new label to the apps section
2026-02-03 18:20:33 +05:30
Dani Akash
09b71c02ce fix: standardize workspace selector dropdown style (#294)
* fix: standardize workspace selector

* fix: set the position to bottom on the workspace selector
2026-02-03 18:18:19 +05:30
Felarof
5da4a82c27 chore: sync packages/browseros-agent submodule (to 882c227) 2026-02-02 23:11:08 +00:00
Nikhil Sonti
9119f7d684 chore: bump PATCH and OFFSET 2026-02-02 14:49:10 -08:00
Nikhil Sonti
15d41d9d2e feat: update keyboard shortcut for llm chat/hub, support disabling 2026-02-02 14:48:51 -08:00
Felarof
882c227ee0 feat: added new tab opened metric (#293) 2026-02-02 14:01:28 -08:00
Nikhil Sonti
4cb6282a8d chore: bump PATCH and OFFSET 2026-02-02 11:45:58 -08:00
Nikhil Sonti
4227c77f18 chore: Merge branch 'main' 2026-02-02 11:45:33 -08:00
Nikhil Sonti
6e47345647 feat: fix server crash, port resue 2026-02-02 11:45:28 -08:00
Nikhil
a6171ebbcf feat: new proxy port in mcp section (#292)
* feat: proxy port support + capabilities

* fix: wxt for dev mode with proxy
2026-02-02 10:35:09 -08:00
Felarof
a7d2f8cb7b chore: sync packages/browseros-agent submodule (to f28d1de) 2026-02-02 17:19:34 +00:00
Dani Akash
f28d1dea66 feat: do not create tab groups when running scheduled tasks (#289)
* feat: do not create tab groups for scheduled tasks

* chore: simplify system prompt to make excluding steps easier

* chore: consistent prompt composer
2026-02-02 22:33:48 +05:30
Felarof
7f546bc507 chore: sync packages/browseros-agent submodule (to acca31c) 2026-02-02 14:20:54 +00:00
Dani Akash
acca31cb54 fix: use similar commands across all workflow files (#267) 2026-02-02 19:46:48 +05:30
Felarof
fed0067d9f chore: sync packages/browseros-agent submodule (to 24971a1) 2026-02-02 11:20:03 +00:00
Dani Akash
24971a144a feat: improved scheduled task results (#290)
* feat: new scheduled task results

* feat: run missed tasks in scheduled tasks

* fix: added a missed job guard to prevent duplicate runs
2026-02-02 15:58:21 +05:30
Felarof
ddbae62d7e chore: sync packages/browseros-agent submodule (to a5ac1ed) 2026-02-02 07:27:46 +00:00
Dani Akash
a5ac1ed054 fix: improve dev and build command to run codegen (#288) 2026-02-02 12:38:34 +05:30
Dani Akash
303d593bb9 fix: minor race condition on sign in prompt (#287)
* feat: account for race condition in sign in hint

* fix: signin race condition
2026-02-02 12:18:43 +05:30
Nikhil
43dae82293 feat: new server proxy port (#349)
* feat: new server proxy port

* chore: bump PATCH and OFFSET
2026-01-31 16:59:07 -08:00
Felarof
cdf4e8534e chore: sync packages/browseros-agent submodule (to 561466c) 2026-02-01 00:48:05 +00:00
Nikhil Sonti
561466c51a chore: bump server version 2026-01-31 16:34:11 -08:00
Nikhil
24b46f664b feat: server port fixes (#286)
* feat: new start script with manual and watch mode

* fix: disable sentry in dev builds

* feat: remove bind with retry

* feat: verify port exists
2026-01-31 16:31:21 -08:00
Nikhil Sonti
e85fecffcb chore: Merge branch 'main' 2026-01-31 12:35:10 -08:00
Nikhil Sonti
c577db48d2 feat: update docs with trouble shooting + install instructions 2026-01-31 12:35:05 -08:00
Felarof
4f71d917f0 chore: sync packages/browseros-agent submodule (to b262962) 2026-01-30 19:16:33 +00:00
Dani Akash
b262962c08 fix: missing useeffect in auth provider (#285) 2026-01-30 23:47:43 +05:30
Felarof
da6621ba58 chore: sync packages/browseros-agent submodule (to 8639f2b) 2026-01-30 18:16:47 +00:00
Dani Akash
8639f2b20a feat: browseros API (#284)
* feat: created auth client

* feat: created login page for testing auth

* feat: setup logout page

* feat: setup graphql codegen

* feat: setup graphql + react query utils

* feat: setup queryprovider with localforage

* feat: created auth provider

* feat: update claude.md

* feat: documents for bulk conversation upload

* chore: install missing package

* fix: setup codegen to scan for .ts files

* chore: setup check conversation query

* feat: upload conversation by profileId

* chore: upload messages in batches

* feat: account for edge cases in conversation upload

* feat: delete uploaded conversations from localstorage

* feat: load conversation history from api

* feat: implement delete conversation using graphql

* feat: delete confirmation for conversation history

* fix: issue with clearing conversations after upload

* feat: implement pagination for graphql chat history

* chore: update CLAUDE.md

* chore: update claude.md

* feat: save conversations to server

* fix: handle streaming check on remote conversation save

* feat: restore conversation from graphql

* fix: timestamp issue on the chat history page

* feat: sync llm providers from background script

* feat: update llm providers on change via background script

* chore: added a try catch block

* feat: display incomplete providers in separate UI

* feat: delete provider on server when initiated by user

* feat: setup scheduled tasks storage to sync to graphql

* feat: auto run sync in background script

* fix: sync all keys of scheduled tasks based on updatedAt timestamp

* feat: added login dropdown on the sidebar

* feat: simplify sidenav header

* feat: update header design after login

* feat: setup profile page

* feat: added back button to profile page

* fix: scrollbar flash in profile page

* feat: finish login handshake

* feat: clear storage on logout

* fix: logout page style

* feat: added tooltip to encourage user to sign in

* feat: added back button to login page

* fix: upload logic for profile picture

* feat: account for profile name in sidebar branding

* chore: set file upload url from backend request

* chore: remove default placeholder from profile component

* chore: sync with main

* Revert "chore: sync with main"

This reverts commit 77e06b894ce30235d1bfa31c8e2699b34df423a5.

* Reapply "chore: sync with main"

This reverts commit dd921d97cc9794d1872e13689c881f68e4dfee47.

* chore: updated lock file

* fix: run codegen before build:ext

* fix: run codegen before build:gent

* fix: remove hardcoded localhost header in magic link

---------

Co-authored-by: Nikhil Sonti <nikhilsv92@gmail.com>
2026-01-30 23:33:57 +05:30
Nikhil Sonti
b4d0a53f8f chore: bump server version 2026-01-30 10:00:35 -08:00
Nikhil Sonti
36fe8790b0 fix: remove watchdog constants 2026-01-30 09:59:00 -08:00
Nikhil
06dd421776 feat: remove watchdog (#283) 2026-01-30 09:57:54 -08:00
Nikhil Sonti
db54661ee9 Merge branch 'main' of https://github.com/browseros-ai/BrowserOS 2026-01-29 11:07:03 -08:00
Nikhil Sonti
3535a6c2de fix: fix perf patch 2026-01-29 11:06:58 -08:00
Felarof
818b2ef645 chore: sync packages/browseros-agent submodule (to 89a53ee) 2026-01-29 16:17:25 +00:00
Dani Akash
89a53eec5e Revert "fix: show only last received loading message on workflow creation (#282)"
This reverts commit 5a74215af1.
2026-01-29 21:29:40 +05:30
Dani Akash
5a74215af1 fix: show only last received loading message on workflow creation (#282)
* chore: change placeholder text

* feat: simplify agent response to single line in workflow chat

* chore: fix deepscan issue

* chore: fix deepscan issue
2026-01-29 21:08:05 +05:30
Felarof
3e3e676fc4 Update README.md 2026-01-28 15:47:53 -08:00
Felarof
206ff61a38 Update README.md 2026-01-28 15:47:42 -08:00
Felarof
64bb615227 Update README.md 2026-01-28 15:46:07 -08:00
Felarof
a184fc87b5 chore: add gitattributes file 2026-01-28 15:26:06 -08:00
Nikhil Sonti
e2a116c7dc chore: bump PATCH and OFFSET 2026-01-28 15:16:55 -08:00
Nikhil
8549015d7f fix: screenshot api in browseros api (#344) 2026-01-28 15:16:08 -08:00
Nikhil Sonti
970321e593 chore: Merge branch 'main' 2026-01-28 15:14:09 -08:00
Nikhil Sonti
aa8fdad4de fix: memory saver disabled by default 2026-01-28 15:12:10 -08:00
Nikhil Sonti
c51c6f7c31 fix: llm chat blanking issue 2026-01-28 15:09:36 -08:00
Felarof
5ee86d74b5 chore: sync packages/browseros-agent submodule (to 6fd90ec) 2026-01-27 20:09:39 +00:00
Nikhil Sonti
63342e708b chore: bump PATCH and OFFSET 2026-01-27 11:41:28 -08:00
Nikhil Sonti
6fd90ec235 chore: Merge branch 'main' 2026-01-27 11:27:51 -08:00
Nikhil Sonti
ecee03cb55 chore: bump server version 2026-01-27 11:27:25 -08:00
Nikhil
b459f4c952 feat: /shutdown API integration for health check and better restart handling (#340) 2026-01-27 10:16:16 -08:00
Felarof
fbcfcd1844 chore: sync packages/browseros-agent submodule (to ec91d69) 2026-01-27 18:14:32 +00:00
shivammittal274
ec91d69b1d feat: added bookmarks tool and instructions in prompt (#276)
* feat: added bookmarks tool and instructions in prompt

* feat: added bookmarks tool and instructions in prompt
2026-01-27 09:56:57 -08:00
Nikhil
69e159f886 feat: new /shutodwn route + refactor (#281)
* feat: /shutdown API

* fix: rename extension status to status
2026-01-27 09:45:01 -08:00
Nikhil
4a129e403b feat: clawdbot integration (#339)
* fix: server update bug

* fix: agent setting url + remove ublock by default

* feat: clawdbot enabled by feature flag

* fix: add clawd bot feature enable

* chore: Update offset and patch
2026-01-26 18:53:31 -08:00
Felarof
e9446b6aa7 chore: sync packages/browseros-agent submodule (to 9cc2b02) 2026-01-27 02:51:48 +00:00
Felarof
17432c30d4 docs: information for agent crash 2026-01-26 18:44:25 -08:00
Felarof
9cc2b02fb7 fix: show link to doc when MCP server has crashed (#275) 2026-01-26 18:35:58 -08:00
Nikhil
1ab26c4175 fix/server fixes (#331)
* feat: new browseros server

* fix: unit tests

* bump offset and version

* fix: implement server state pid

* chore: update PATCH
2026-01-26 16:58:03 -08:00
github-actions[bot]
d2cb8b93aa docs: Suhaib3100 signed the CLA in browseros-ai/BrowserOS#$pullRequestNo 2026-01-26 18:54:06 +00:00
Felarof
ed76fe4cb5 chore: sync packages/browseros-agent submodule (to 8354ad5) 2026-01-23 17:11:32 +00:00
shivammittal274
8354ad5ab5 fix: close window tool (#262)
* fix: close window tool

* fix: close window tool
2026-01-23 09:05:10 -08:00
Dani Akash
aeb1fb37e7 fix: remove default theme prompt in theme-provider 2026-01-23 21:58:00 +05:30
Nikhil Sonti
a8ace83a9c chore: Merge branch 'main' of https://github.com/browseros-ai/BrowserOS 2026-01-22 12:40:05 -08:00
Nikhil Sonti
5cee158876 feat: update top issues action to include RFCs 2026-01-22 12:39:47 -08:00
Felarof
dd67a02267 chore: sync packages/browseros-agent submodule (to ee29881) 2026-01-22 18:11:33 +00:00
Felarof
ee29881669 feat: onboarding fixes (#272)
* feat: improve onboarding page

* fix: new media urls

* fix: re-arrange grid

* fix: add expolore features to sidebar

* fix: lint & typecheck

---------

Co-authored-by: Nikhil Sonti <nikhilsv92@gmail.com>
2026-01-22 09:56:27 -08:00
Felarof
a55cd49cb5 chore: sync packages/browseros-agent submodule (to 51c6ef8) 2026-01-22 17:13:02 +00:00
Nikhil
51c6ef8163 fix: update shortcuts on feature page (#273) 2026-01-22 08:57:53 -08:00
Nikhil Sonti
101a04a097 fix: update workflow url 2026-01-22 08:17:39 -08:00
Nikhil Sonti
814c82d1b8 fix: update docs 2026-01-22 08:13:56 -08:00
Felarof
866a495897 chore: sync packages/browseros-agent submodule (to edfdaae) 2026-01-22 16:12:45 +00:00
Nikhil Sonti
9a917397e6 fix: docs minor 2026-01-22 07:55:53 -08:00
Nikhil Sonti
7527f50afd Merge branch 'main' of https://github.com/browseros-ai/BrowserOS 2026-01-22 07:54:46 -08:00
Nikhil Sonti
69ba8fe782 fix: rename workspaces -> cowork 2026-01-22 07:54:41 -08:00
Felarof
edfdaaeaf5 feat: onboaring page fix it and other minor issues (#270)
* fix: use source files for agent-sdk during development

Export src/index.ts directly in workspace mode so the server can import
without requiring a build step. publishConfig overrides exports to use
dist/ when publishing to npm.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: onboarding try it

* fix: summarize current page

* fix: ask browser os opens in agent mode

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 07:48:32 -08:00
Felarof
074dba6c20 chore: sync packages/browseros-agent submodule (to cfbb99f) 2026-01-22 11:10:03 +00:00
shivammittal274
cfbb99faa0 fix: typecheck issue (#269) 2026-01-22 16:19:40 +05:30
Felarof
eaa11a940c chore: sync packages/browseros-agent submodule (to 36656f4) 2026-01-22 06:13:02 +00:00
Dani Akash
36656f4c1d feat: delay the loading text in create graph (#268)
* feat: delay the loading text in create graph

* fix: biome version in biome.json
2026-01-22 11:21:44 +05:30
Dani Akash
a0df1ae0bb fix: race condition in capabilities check (#266) 2026-01-22 10:52:17 +05:30
Felarof
b9efc3781f chore: sync packages/browseros-agent submodule (to 1fdc0c1) 2026-01-22 01:37:12 +00:00
Nikhil
1fdc0c1b9e fix: bug in storage selector from side panel (#265) 2026-01-21 16:52:57 -08:00
Nikhil Sonti
410184b0d7 chore: udpate docs 2026-01-21 14:11:44 -08:00
Felarof
0303801f7b chore: sync packages/browseros-agent submodule (to 49f603a) 2026-01-21 22:09:41 +00:00
Nikhil Sonti
49f603a3a6 chore: change log for 0.0.55 update 2026-01-21 13:46:47 -08:00
Nikhil
205cef3ceb feat: workspaces docs (#328) 2026-01-21 13:45:15 -08:00
Felarof
fefee6af82 fix: survey link (#264) 2026-01-21 13:32:21 -08:00
Felarof
9a33fdabaa chore: sync packages/browseros-agent submodule (to 38e2bd7) 2026-01-21 21:12:50 +00:00
Felarof
38e2bd7e50 feat: created new Chat Mode pill and exclude tools when in chatMode (#263)
* feat: agent mode on or off

* fix: cleaner whitelist for chat mode

* fix: cleaner whitelist for chat mode

* feat: agent mode with tooltip

* feat: agent mode chat mode final UI

* feat: previous conversation history

* fix: re-enable the DELETE endpoint

* fix: make bun run start:server show lgos

* fix: minor text change

* fix: keep 16k context window size

* fix: use message ref to get access to full restored messages (when create prev conversation history)

* fix: don't run watchdog in dev-mode

* Revert "fix: re-enable the DELETE endpoint"

This reverts commit 9cbbbab6768c7c412c8f65bd88643e2856fa5169.

---------

Co-authored-by: Nikhil Sonti <nikhilsv92@gmail.com>
2026-01-21 13:04:22 -08:00
Felarof
8a60947967 chore: sync packages/browseros-agent submodule (to 7fd8616) 2026-01-21 20:12:34 +00:00
Nikhil Sonti
7fd8616203 chore: Merge branch 'main' 2026-01-21 11:59:10 -08:00
Nikhil Sonti
892a1304e8 fix: don't run watchdog in dev-mode 2026-01-21 11:59:03 -08:00
Felarof
d1da6e0b6e chore: sync packages/browseros-agent submodule (to 37360b0) 2026-01-21 19:14:31 +00:00
Nikhil Sonti
a2073d8c76 Merge branch 'main' of https://github.com/browseros-ai/BrowserOS 2026-01-21 11:03:34 -08:00
Nikhil Sonti
f3aacd1c82 chore: remove appcast 2026-01-21 11:03:29 -08:00
shivammittal274
37360b0ff9 fix: add timeout and window based mutex to improve speed (#260)
* fix: add timeout and window based mutex to improve speed

* fix: add timeout and window based mutex to improve speed

* fix: add timeout and window based mutex to improve speed

* fix: add timeout and window based mutex to improve speed

* fix: add timeout and window based mutex to improve speed

* fix: add timeout and window based mutex to improve speed

* fix: add timeout and window based mutex to improve speed

* fix: add timeout and window based mutex to improve speed

* fix: add timeout and window based mutex to improve speed
2026-01-21 23:59:42 +05:30
Felarof
bc7355a5a9 chore: sync packages/browseros-agent submodule (to 6c68f6c) 2026-01-21 18:19:31 +00:00
Dani Akash
6c68f6c9dd feat: added help icons to workflows and schedule pages (#261)
* feat: added help icons to workflows and schedule pages

* fix: lint issue
2026-01-21 23:24:31 +05:30
Dani Akash
8657146fb6 fix: reduce suspense boundary depth and improve background color speed (#259)
* fix: move suspense boundary closer to corresponding pages

* fix: pre-resolve the client via singleton to speed up the clientPromise

* feat: apply theme background faster with plain script

* chore: update biome version

* feat: make rpc client persist promise with useMemo and remove loading
text

* fix: replace dvh with vh

* fix: replace dvh with vh in create graph
2026-01-21 23:09:58 +05:30
Felarof
59be124b16 chore: sync packages/browseros-agent submodule (to e71a3c1) 2026-01-21 16:14:18 +00:00
Felarof
e71a3c1a9e fix: disable conversation delete on reset for now (#258) 2026-01-21 08:04:41 -08:00
Felarof
f8ea2943e5 chore: sync packages/browseros-agent submodule (to 0d3ed6a) 2026-01-21 07:14:09 +00:00
Dani Akash
0d3ed6a841 fix: vulnerable package versions (#257) 2026-01-21 12:43:14 +05:30
Felarof
bc9f4b649c chore: sync packages/browseros-agent submodule (to e83af38) 2026-01-21 01:37:37 +00:00
Nikhil Sonti
e562b0f39c chore: Merge branch 'main' 2026-01-20 17:26:18 -08:00
Nikhil Sonti
a7eb2e865e chore: bump PATCH and OFFSET 2026-01-20 17:26:12 -08:00
Nikhil Sonti
e83af388f2 chore: bump server version 2026-01-20 17:24:21 -08:00
Felarof
f0f15a5328 chore: sync packages/browseros-agent submodule (to ad4e391) 2026-01-21 00:35:32 +00:00
Nikhil
ad4e391b9c feat: health watch to self terminate process on crash (#256)
* feat: health watch to self terminate process on crash

* feat: add tests
2026-01-20 16:09:57 -08:00
Felarof
c98e1dd708 chore: sync packages/browseros-agent submodule (to c09a444) 2026-01-20 23:08:05 +00:00
Nikhil Sonti
c09a44418c fix: update to prompt to group tabs better 2026-01-20 14:41:51 -08:00
shivammittal274
f308e7e542 feat: tab grouping (#254) 2026-01-20 14:30:52 -08:00
Nikhil Sonti
8499346d69 chore: bump server version 2026-01-20 14:29:53 -08:00
Nikhil
45bab813ac fix: inject zod into executor (#255)
* fix: inject zod into executor

* fix: add TODO
2026-01-20 14:28:41 -08:00
Felarof
d2963d3496 chore: sync packages/browseros-agent submodule (to 3588585) 2026-01-20 22:09:05 +00:00
Nikhil
3588585f20 feat: support bookmark folders (#253) 2026-01-20 14:04:50 -08:00
Felarof
571601651b chore: sync packages/browseros-agent submodule (to fd3cdac) 2026-01-20 21:08:39 +00:00
shivammittal274
fd3cdace91 feat: new APIs for eval mode support (#250)
* feat: eval mode

* feat: eval mode
2026-01-20 13:06:58 -08:00
Nikhil Sonti
a4bae1f0c7 feat: analytics for graph 2026-01-20 12:39:50 -08:00
Felarof
be8b7b6e91 chore: sync packages/browseros-agent submodule (to 1180ba9) 2026-01-20 20:27:11 +00:00
Nikhil Sonti
4a785b6e77 chore: Merge branch 'main' 2026-01-20 12:25:46 -08:00
Nikhil
1180ba9458 feat: improve tools + better codegen execution (#252)
* fix: import clean-up + unit test for transformCode

* feat: improve formatter

* feat: grep interactive tool

* fix: simple, detailed, full formatter options

* fix: viewport legend

* fix: add vscode launch.json for debugging

* fix: grep show before and after, also click before type/clear
2026-01-20 12:18:30 -08:00
Dani Akash
78f0834124 fix: make combobox input value uncontrolled (#251) 2026-01-21 01:14:29 +05:30
Nikhil Sonti
63c89c1712 fix: import clean-up + unit test for transformCode 2026-01-20 10:36:17 -08:00
Felarof
820ebec027 chore: sync packages/browseros-agent submodule (to bf86fc2) 2026-01-20 13:23:02 +00:00
Dani Akash
bf86fc2496 fix: added missing focus grid to the newtab page (#249) 2026-01-20 18:41:40 +05:30
Dani Akash
fa1c5040e9 feat: sidepanel ux improvements (#248)
* chore: update bun lock

* feat: created unified app component

* feat: created unified app directory

* feat: refactor all html files

* feat: setup sidebar

* feat: simplify theme toggle

* feat: setup collapsible sidebar

* feat: remove navigation label

* feat: use smoother animation for sidebar collapse

* fix: collapsible sidebar on theme toggle

* chore: hide sign in button

* chore: persist collapsible state

* feat: make sidebar logo larger

* feat: added personalize screen to navbar

* fix: personalize layout

* feat: added keyboard shortcuts to the sidebar

* fix: update sidebar navigation capabilities

* feat: separate sidebar for the settings page

* fix: settings sidebar layout

* feat: hide the footer links in the newtab page

* chore: slightly reduce the width of the scheduled tasks

* feat: persist scheduled task collapsible state

* fix: sidebar accent on light mode

* fix: isActive state for the sidebar navigation
2026-01-20 18:28:51 +05:30
Felarof
308f29e1d2 chore: sync packages/browseros-agent submodule (to 9194d33) 2026-01-20 02:47:51 +00:00
Nikhil Sonti
ddd50004a1 chore: Merge branch 'main' 2026-01-19 17:52:34 -08:00
Nikhil Sonti
57ee2d8cf5 chore: bump PATCH 2026-01-19 17:52:28 -08:00
Nikhil Sonti
9194d3360c chore: bump server version 2026-01-19 17:50:56 -08:00
Nikhil
132ca01151 feat: add page load wait for /nav (#247) 2026-01-19 17:45:15 -08:00
Felarof
a2b08b16e5 chore: sync packages/browseros-agent submodule (to b859700) 2026-01-20 01:37:15 +00:00
Nikhil Sonti
b859700440 chore: bump agent-sdk version 2026-01-19 17:06:38 -08:00
Nikhil
6f30dc748e fix: improve graph execution (#246)
* fix: [remove] debug logs

* feat: add stateful act() support

* fix: [TMP] always load tmp/current_code

* feat: interactive snapshot structured content and adding that api in browseros service for sdk

* fix: verify pass interactive elements

* feat: refactored agent sdk with act having verify options

* fix: verify uses simplified snapshot

* fix: remove testing code, lint fixes

* fix: remove debug logs
2026-01-19 16:58:22 -08:00
Felarof
2946fc08d6 chore: sync packages/browseros-agent submodule (to 5bd63e8) 2026-01-19 21:07:49 +00:00
Nikhil Sonti
216c06f07c chore: Merge branch 'main' 2026-01-19 12:45:05 -08:00
Nikhil Sonti
04bb24e6c8 chore: bump PATCH 2026-01-19 12:44:58 -08:00
Nikhil Sonti
5bd63e89c0 chore: bump server version 2026-01-19 12:41:03 -08:00
Nikhil
f472b2f13a feat: file selection ui fixes, and to sidepanel too (#245)
* fix: workspace no folder better naming

* fix: remove tab selector hiding for agent
2026-01-19 12:21:00 -08:00
Felarof
99289cdf6c chore: sync packages/browseros-agent submodule (to 826c6f6) 2026-01-19 20:08:37 +00:00
Nikhil
826c6f6946 fix: shell error fix (#244)
* feat: move to bun plugin to intercept WASM

* feat: new build/server.ts with refactored

* fix: clean-up source map dirs before build

* fix: remove elide for build

* fix: clean-up source map ordering
2026-01-19 11:40:59 -08:00
Dani Akash
a497ac4f0d feat: new sidepanel (#243)
* chore: update bun lock

* feat: created unified app component

* feat: created unified app directory

* feat: refactor all html files

* feat: setup sidebar

* feat: simplify theme toggle

* feat: setup collapsible sidebar

* feat: remove navigation label

* feat: use smoother animation for sidebar collapse

* fix: collapsible sidebar on theme toggle

* chore: hide sign in button

* chore: persist collapsible state

* feat: make sidebar logo larger
2026-01-19 11:17:21 -08:00
Felarof
f093a60001 chore: sync packages/browseros-agent submodule (to eacdfaf) 2026-01-17 01:36:07 +00:00
Nikhil
eacdfaf579 feat: config + codegen env handling (#242)
* feat: better INLINE & PROD env handling

* chore: bump server version

* feat: refactor config ts better
2026-01-16 16:53:06 -08:00
Nikhil
4a8fd5f12a feat: support windows ota signing on macos (#323) 2026-01-16 16:23:06 -08:00
Felarof
8dd389b214 chore: sync packages/browseros-agent submodule (to f63af69) 2026-01-16 18:11:57 +00:00
Felarof
f63af69883 fix: change max turns to 20 2026-01-16 09:51:59 -08:00
Felarof
81184a5498 chore: sync packages/browseros-agent submodule (to 1f55966) 2026-01-16 01:36:56 +00:00
Nikhil Sonti
c26dd2b96e chore: bump PATCH and OFFSET 2026-01-15 17:34:29 -08:00
Nikhil Sonti
1f55966c8a fix: add codegen servide to required in build 2026-01-15 17:31:29 -08:00
Nikhil Sonti
8d28ca0e01 fix: minor docs/changelog update 2026-01-15 16:50:03 -08:00
Nikhil Sonti
39ceee79b7 feat: changelog for 0.36.3 agent history support docs 2026-01-15 16:46:36 -08:00
Felarof
ce3e8b2ccc chore: sync packages/browseros-agent submodule (to 85ab5e9) 2026-01-16 00:35:15 +00:00
Nikhil
85ab5e9d3d feat: gate graphmode workflow for new server version (#240) 2026-01-15 16:34:42 -08:00
Nikhil
aba5745709 feat: show changelog url on update when set (#239) 2026-01-15 16:16:44 -08:00
Felarof
b3d4d668b4 docs: add changelog page (#322)
Add a changelog page documenting BrowserOS releases from v0.30.0 to v0.36.2.
Each version includes date and summary of changes, with links to GitHub
releases for full history.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 15:37:09 -08:00
Felarof
296022278d chore: sync packages/browseros-agent submodule (to 5cfd0a7) 2026-01-15 23:08:11 +00:00
Nikhil
5cfd0a7511 feat: workspace folder selection (#238)
* feat: v1 ui for the file selector

* feat: integrate with browseros.choosePath API

* feat: gate workspace folder for 0.36.0.4 as requires new browserOS.choosePath API

* fix: add default folder option

* fix: clean-up old code
2026-01-15 15:06:13 -08:00
Felarof
1453058e99 chore: sync packages/browseros-agent submodule (to f977257) 2026-01-15 22:08:27 +00:00
shivammittal274
f977257e3e fix: graph execution on different window (#233)
* fix: graph execution on different window

* fix: pass screenshot tools only if support images (#237)
2026-01-15 13:22:18 -08:00
Nikhil Sonti
0bd6458259 chore: bump PATCH and OFFSET 2026-01-15 12:38:29 -08:00
Nikhil
5b04e0b26e feat: new choosePath browseros API (#321) 2026-01-15 12:37:50 -08:00
Felarof
bf975b438a chore: sync packages/browseros-agent submodule (to be01c1d) 2026-01-15 20:09:07 +00:00
Dani Akash
be01c1d1a9 feat: conversation history (#235)
* feat: create conversations storage hook

* feat: save conversation hook

* feat: created chat layout

* feat: created chat history button

* feat: setup chat history view links

* chore: updated placeholder

* fix: width of the chat history screen

* feat: provide navigation from history page back to conversation page

* fix: issue with restoring conversation id

* chore: do not update history when content doesn't change

* feat: mark active conversation id

* fix: syncing the conversation id ref
2026-01-16 01:21:09 +05:30
Nikhil
ef9362f84c fix: windows use base::span directly (#320) 2026-01-15 11:02:27 -08:00
Felarof
4e36a331b6 chore: sync packages/browseros-agent submodule (to 9f87d81) 2026-01-15 18:14:49 +00:00
Dani Akash
9f87d817ff feat: provide workflow canvas background (#236)
* feat: provide a dotted background on the graph canvas

* fix: zoom controls diappearing on page resize

* fix: even out the header heights
2026-01-15 23:00:38 +05:30
Felarof
c688660f48 chore: sync packages/browseros-agent submodule (to 9bb0686) 2026-01-15 14:09:43 +00:00
Dani Akash
9bb0686865 feat: new graph mode setup (#234)
* feat: improve the logic for node width

* feat: use dagre to display loops

* chore: use animated dots for loops

* feat: create graph using cytoscape

* feat: use cytoscape html label

* feat: setup dynamic label height and width

* feat: set reasonable zoom levels

* feat: use theme colors for nodes

* feat: use mutation observer to change color schemes

* feat: implement dark mode with pure css

* chore: remove unused libraries

* fix: sanitize label with dompurify
2026-01-15 19:30:11 +05:30
Felarof
3fd7a715b3 chore: sync packages/browseros-agent submodule (to 5bd45f0) 2026-01-15 02:46:21 +00:00
Felarof
5bd45f0658 feat: graph mode better blank state screen (#232)
* feat: add simple welcome message

* Revert "feat: add simple welcome message"

This reverts commit 3e19114303b8a877b85864e6d610dd932745cb5a.

* feat: show better UI for initial workflow chat page
2026-01-14 17:37:59 -08:00
Felarof
5c8a58680a chore: sync packages/browseros-agent submodule (to 8d2c706) 2026-01-15 01:36:45 +00:00
Felarof
8d2c70689a feat: fixes to the jtbd agent (#231)
* feat: add support for jtbd agent to accept max turns and experiment id as query params

* fix: add jtbd agent integration with workflow

* fix: change message threshold to 5
2026-01-14 17:30:39 -08:00
Felarof
f0f20ce0fb chore: sync packages/browseros-agent submodule (to d9a6bb1) 2026-01-15 00:34:57 +00:00
Felarof
d9a6bb173f Merge pull request #228 from browseros-ai/feat/graph-mode-fixes-2
chore: refactor JTBD agent to have follow naming conventions and add conventions to claude.md
2026-01-14 15:43:46 -08:00
Felarof
9ea236dbb4 Merge pull request #229 from browseros-ai/feat/graph-mode-fixes
fix: default zoom level in workflow
2026-01-14 15:42:31 -08:00
Felarof
e3e3965b42 chore: refactor JTBD agent to have follow naming conventions and add conventions to claude.md 2026-01-14 15:41:53 -08:00
Felarof
5025e4c207 fix: default zoom level in workflow 2026-01-14 15:37:13 -08:00
Nikhil
4d77a02e9e feat: gemini supports file write and shell (#225)
* fix: tempDir is executionDir and create per session execution dir

* fix: move create() in gemini-agent to top

* fix: log(debug) directories

* fix: chat routes bug

* feat: support userSessionDir in /chat request schema

* fix: clean-up un-used types

* fix: lint errors
2026-01-14 15:26:17 -08:00
Nikhil
07745799db fix: tables should remaining within container width (#227) 2026-01-14 15:24:28 -08:00
Felarof
05a3b5ab6b chore: sync packages/browseros-agent submodule (to 6e3bc75) 2026-01-14 23:07:56 +00:00
Felarof
6e3bc75d5f Merge pull request #226 from browseros-ai/feat/graph-mode-fixes-2
feat: add chat header to workflows chat -- that is a better UX
2026-01-14 15:07:38 -08:00
Felarof
64cd2b9dd9 fix: import 2026-01-14 15:07:00 -08:00
Felarof
01e91defc3 Merge pull request #224 from browseros-ai/feat/graph-mode-fixes
fix: pass apiKey and baseUrl when running workflow in graph mode
2026-01-14 14:59:04 -08:00
Felarof
dbfe70a0cf feat: add chat header to workflows chat -- that is a better UX
- moved chatprovider selector to a shared component

- reimplement chat header as it was simple and we can have graph mode specific options there instead of reusing chat header from sidepanel
2026-01-14 14:51:36 -08:00
Felarof
b55217dd63 fix: pass apiKey and baseUrl when running workflow in graph mode 2026-01-14 14:36:26 -08:00
Felarof
33c575cac9 chore: sync packages/browseros-agent submodule (to 2309295) 2026-01-14 19:07:53 +00:00
Nikhil Sonti
9eeec4adfc chore: Merge branch 'main' 2026-01-14 10:45:53 -08:00
Nikhil Sonti
29559669f4 fix: update import patch to fix build issue 2026-01-14 10:45:47 -08:00
Dani Akash
230929587b fix: prevent input field flowing out of view (#223)
* fix: prevent input field flowing out of view

* chore: use styled-scrollbar for chat view
2026-01-15 00:08:49 +05:30
Dani Akash
e7a302f919 fix: prevent graph node from resetting on agent replies (#222) 2026-01-14 23:59:21 +05:30
Nikhil Sonti
58a6114511 fix: update .env.example to include codegen service url 2026-01-14 10:12:47 -08:00
Felarof
76685f56e6 chore: sync packages/browseros-agent submodule (to 50f64a7) 2026-01-14 16:11:01 +00:00
Dani Akash
50f64a715b feat: workflow graph UI (#220)
* feat: custom node component

* feat: create resizable panels for graph ui

* feat: setup hono rpc on agent

* feat: created getClient util

* feat: created rpc client provider

* chore: reafctor agent sdk

* chore: created usechat hook

* chore: graph create update endpoint return ai sdk stream

* chore: graph create update endpoint return ai sdk stream

* chore: graph create update endpoint return ai sdk stream

* chore: graph create update endpoint return ai sdk stream

* feat: graph chat component

* feat: integrate input field

* feat: make getActionForMessage optional

* feat: integrate chat messages ui

* feat: update graph canvas with latest message

* feat: support editing graph with new message

* feat: create chat test function

* fix: created chat test api integration

* chore: remove background window state

* chore: improve agent ui stream

* chore: print error

* feat: create workflow storage

* feat: created workflows screen on options page

* feat: added error handling to workflows chat

* chore: ignore graph code generation folder

* fix: provide a better header title name

* fix: buttons accessibility on graph canvas

* feat: improve test and save workflow button state

* chore: provide autofocus to the workflow header

* feat: setup save and edit options on the workflow

* feat: open the workflow in edit mode

* fix: use sentry to capture server exception

* feat: integrate run workflow using dialog box

* feat: display errors in the run dialog box

* fix: use rpc client to delete workflows

* feat: fix panel sizes on graph creation

* fix: provide suspense fallback boundary for the options page

* feat: auto fitview on graph updates

* fix: node colors in the graph

* chore: make minimap movable

* feat: provide styling to react flow controls

* fix: missing imports

* fix: pass personalization to workflow runs

* feat: provide back button in workflow page

* feat: added confirmation when leaving workflow page without saving

* feat: provide animation to nodes

* feat: autofit canvas to resizepanel size

* feat: added workflows to newtab page

* fix: typescript lint errors

* feat: enforce bun version

* fix: typecheck command

---------

Co-authored-by: shivammittal274 <mittal.shivam103@gmail.com>
2026-01-14 21:30:17 +05:30
Felarof
9478abfdd4 chore: sync packages/browseros-agent submodule (to 472147d) 2026-01-14 08:11:24 +00:00
shivammittal274
472147db25 chore: refactor agent sdk (#215)
* chore: reafctor agent sdk

* chore: graph create update endpoint return ai sdk stream (#216)

* chore: graph create update endpoint return ai sdk stream

* chore: graph create update endpoint return ai sdk stream

* chore: graph create update endpoint return ai sdk stream

* chore: graph create update endpoint return ai sdk stream

* chore: improve agent ui stream

* chore: improve agent ui stream

* chore: improve agent ui stream

* chore: refactored llm config and ui stream based on bun version

* chore: refactored llm config and ui stream based on bun version
2026-01-14 13:00:32 +05:30
Nikhil Sonti
3a04fb7ec3 chore: bump PATCH and OFFSET 2026-01-13 18:25:27 -08:00
Nikhil Sonti
0d62e4fdc2 fix: features.yaml upate 2026-01-13 18:24:18 -08:00
Nikhil
fe0d76ba0b feat: support better imports (#316)
* feat: new browseros importer

* fix: update features.yaml

* fix: spliting across files

* fix: update logs
2026-01-13 18:23:35 -08:00
Felarof
3f7cbacd3b chore: sync packages/browseros-agent submodule (to 850560c) 2026-01-14 01:37:38 +00:00
Felarof
850560cdfb fix: update links to docs (#218)
* fix: update links to docs

* fix: update links to include links to sections
2026-01-13 16:49:05 -08:00
Felarof
3cb1ca38d1 Merge pull request #315 from browseros-ai/docs1
docs: add links to sections
2026-01-13 16:48:15 -08:00
Felarof
5020a1997d docs: add links to sections 2026-01-13 16:47:45 -08:00
Felarof
27f565e3fc Merge pull request #314 from browseros-ai/docs1
docs: deleted unused docs
2026-01-13 16:35:17 -08:00
Felarof
52c07890d0 fix: update broken doc links
- docs/index.mdx: /llm-setup-guide -> /features/bring-your-own-llm
- README.md: browseros-mcp/how-to-guide -> /features/use-with-claude-code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 16:28:34 -08:00
Felarof
35e161695d docs: deleted unused docs 2026-01-13 16:17:08 -08:00
Felarof
51f07195b6 Update docs.json 2026-01-13 16:03:54 -08:00
Felarof
6f55b0f61f Update docs.json 2026-01-13 16:03:21 -08:00
Felarof
ca5ca1ba4e Merge pull request #313 from browseros-ai/docs2
docs: byollm page, onboarding page, getting started doc
2026-01-13 16:01:34 -08:00
Felarof
e346ba3999 Merge branch 'main' into docs2 2026-01-13 16:01:12 -08:00
Felarof
9e989d6a03 docs: change to default closed state 2026-01-13 15:57:46 -08:00
Felarof
61c599ca75 docs: update BYOLLM and onboarding page 2026-01-13 15:57:46 -08:00
Felarof
c5c41007a6 docs: update byollm page 2026-01-13 15:57:46 -08:00
Felarof
5d205e9ee1 docs: updated getting started doc
docs: update docs for n8n
2026-01-13 15:57:46 -08:00
Felarof
d469208d66 Merge pull request #311 from browseros-ai/docs1
docs: update contributor docs
2026-01-13 15:22:32 -08:00
Felarof
8ac9a4488f docs: update contributor docs 2026-01-13 15:19:58 -08:00
Felarof
57e5d87930 chore: sync packages/browseros-agent submodule (to e4830f4) 2026-01-13 23:08:17 +00:00
Felarof
03d0455b47 Merge pull request #310 from browseros-ai/docs1
docs: added docs for scheduled tasks and updated other docs
2026-01-13 14:55:55 -08:00
Felarof
5ea064b99b docs: update docs for n8n 2026-01-13 14:49:13 -08:00
Felarof
3a9391b2e3 docs: add scheduled tasks and browseros as mcp 2026-01-13 14:34:52 -08:00
Nikhil
e4830f485a feat: tab at selector (#217)
* feat(agent): add @ tab mention support in chat input

* fix: tab-selector and tab-popover share components

* fix: remove usecallback, sort by last accessed

* fix: focus issues

* fix: better @tabs tips

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-13 14:25:43 -08:00
Felarof
ee9770d562 Merge pull request #309 from browseros-ai/docs1
chore: update docs -- llm chat and hub
2026-01-13 13:50:03 -08:00
Felarof
12cdd82b3c docs: core features LLM chat and hub 2026-01-13 13:48:07 -08:00
Felarof
53cf184f94 chore: added claude skill to write docs 2026-01-13 13:22:02 -08:00
Felarof
8fed516b0b docs(browseros-mcp): add remove command (#308) 2026-01-12 20:06:57 -08:00
Felarof
e4488eb54e chore: sync packages/browseros-agent submodule (to 552558e) 2026-01-13 03:36:22 +00:00
Felarof
552558e2fd feat: jtbd popup in sidepanel (#214)
* feat: v0.1 jtbd popup for users

* feat: v0.2 jtbd popup based on messages sent

* fix: clean up previous chat status and added comment

* chore: change threshold to 15

* fix: show popup only when every N messages

* fix: set survey taken only after clicking start on welcome page
2026-01-12 18:48:19 -08:00
Felarof
401b8e39b3 chore: sync packages/browseros-agent submodule (to 752f431) 2026-01-13 00:30:50 +00:00
Nikhil
752f4319b6 feat: refactor better structure for apps/server (#213) 2026-01-12 15:47:16 -08:00
Felarof
1fffe4ff4a chore: sync packages/browseros-agent submodule (to 7cfe55a) 2026-01-12 23:06:44 +00:00
Felarof
7cfe55a360 feat: jtbd agent add transcription support (#212)
* feat: v0.1 of voice transcription for JTBD survey

Add voice input capability to the JTBD Product Survey chat:
- useVoiceInput hook for audio recording and transcription
- VoiceInputButton component for mic/stop/loading states
- Waveform visualization during recording
- Integration with BrowserOS gateway transcription endpoint

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* style: make voice button orange like send button

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: refactor jtbd agent

* chore: udpate text

* fix: clean up stop recording if stopped midway

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 15:03:13 -08:00
Nikhil Sonti
dc2535436e chore: Merge branch 'main' 2026-01-12 13:37:52 -08:00
Felarof
2c2776e7a9 chore: sync packages/browseros-agent submodule (to c5f29c6) 2026-01-12 20:09:06 +00:00
Nikhil Sonti
c5f29c67f6 fix: add postinstall to build agent-sdk 2026-01-12 11:52:33 -08:00
Nikhil Sonti
481161e7d9 fix: fix agent sdk from dev-depencies to dependencies 2026-01-12 11:43:49 -08:00
shivammittal274
3546a125cb feat: code graph endpoint (#209)
* feat: added code and graph gen apis

* feat: added code and graph gen apis

* feat: added code and graph gen apis

* fix: abort execution fixed

* fix: added if abort execution null very edge case

* chore: added agent sdk stream in code execution stream

* chore: resolved comments

* ci: fix issue with typecheck action

* fix: remove llmconfig param

* chore: added codegen as env var only

* chore: refactor server rpc types (#210)

* chore: refactor server rpc types

* chore: refactor server rpc types

* chore: refactor server rpc types

---------

Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>
2026-01-12 11:31:55 -08:00
Felarof
932ed0c340 chore: sync packages/browseros-agent submodule (to cef3d2e) 2026-01-12 16:10:33 +00:00
dependabot[bot]
cef3d2e981 build(deps): bump oven-sh/setup-bun from 1 to 2 (#208)
Bumps [oven-sh/setup-bun](https://github.com/oven-sh/setup-bun) from 1 to 2.
- [Release notes](https://github.com/oven-sh/setup-bun/releases)
- [Commits](https://github.com/oven-sh/setup-bun/compare/v1...v2)

---
updated-dependencies:
- dependency-name: oven-sh/setup-bun
  dependency-version: '2'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-12 21:27:45 +05:30
dependabot[bot]
a7276c5181 build(deps): bump actions/checkout from 4 to 6 (#207)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-12 21:27:17 +05:30
dependabot[bot]
4b9433774b build(deps): bump actions/setup-node from 4 to 6 (#206)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-12 21:26:38 +05:30
Felarof
f5ef929a0b chore: sync packages/browseros-agent submodule (to a115511) 2026-01-10 22:07:26 +00:00
Felarof
a1155114fa feat: jtbd launch changes (#203)
* fix: use local host url when in dev

* feat: show take survey to the users when rate limited

* fix: update url
2026-01-10 13:35:18 -08:00
Nikhil
9798fb70bc fix: wait for finish in scheduled tasks (#204)
* fix: wait for finish in scheduled tasks

* fix: make schedule pop-up slightly larger
2026-01-10 13:31:57 -08:00
Nikhil
b421249173 fix: sparkle mac updater timeout (#305)
* chore: 0.36.2 release

* fix: update sparkle check to be 30 mins

* fix: update sparkle check to be 60 mins
2026-01-10 13:31:40 -08:00
Felarof
2dba9cdbf6 chore: sync packages/browseros-agent submodule (to 4ef0a99) 2026-01-10 20:08:03 +00:00
Nikhil Sonti
1694df6a27 chore: 0.36.2 release 2026-01-10 11:38:15 -08:00
Felarof
4ef0a99b0d feat: improve jtbd agent support (#202)
* feat: termination condition

* chore: minor url change

* feat: added support for install id in the frontend

* fix: pass experiment id from frontend

* chore: remove excessive comments per CLAUDE.md guidelines

Co-authored-by: Felarof <felarof99@users.noreply.github.com>

* fix: add route to survey

* fix: pass install id correctly

* fix: url

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Felarof <felarof99@users.noreply.github.com>
2026-01-10 11:12:10 -08:00
Felarof
eb7bb929d2 chore: sync packages/browseros-agent submodule (to 27f8598) 2026-01-10 02:41:47 +00:00
Nikhil Sonti
27f8598e92 chore: browseros server version 2026-01-09 18:23:38 -08:00
Nikhil
ce78a4a8d3 feat: better port binding - retry + exit codes for chromium (#200)
* fix: crash if port not available

* fix: better exit codes

* fix: better error code detection

* fix: review feedback and lint errors
2026-01-09 18:23:04 -08:00
Nikhil Sonti
41da5e253f chore: bump PATCH and OFFSET 2026-01-09 18:12:36 -08:00
Nikhil
64022a5191 fix: error code based port restarts (#303) 2026-01-09 18:11:33 -08:00
Nikhil Sonti
bca394c83b chore: Merge branch 'main' 2026-01-09 18:09:49 -08:00
Nikhil Sonti
3d7afaa0ae chore: browseros server version 2026-01-09 18:09:16 -08:00
Felarof
5b1c98ca81 chore: sync packages/browseros-agent submodule (to 149c325) 2026-01-10 00:34:13 +00:00
Felarof
149c325a58 chore: add left hook branch restrictions (#199) 2026-01-09 15:57:30 -08:00
Felarof
227dcaf8f7 chore: sync packages/browseros-agent submodule (to c803baf) 2026-01-09 23:07:56 +00:00
Nikhil
c803baf50b feat: add analytics for mcp page (#198) 2026-01-09 14:09:38 -08:00
Nikhil
9b1887fe3b fix: klavis timeout (#197)
* fix: debug log for browserosid for debugging

* fix: klavis client timeout

* fix: re-enable klavis mcp
2026-01-09 14:08:40 -08:00
Felarof
649fc8b230 chore: sync packages/browseros-agent submodule (to 1b5eb2e) 2026-01-09 22:07:55 +00:00
Nikhil
1b5eb2e83b feat: new events for newtab ai query analytics (#196)
* feat: new events for newtab ai query analytics

* fix: no need suggestion tracking
2026-01-09 13:17:58 -08:00
Felarof
a2a0652907 chore: sync packages/browseros-agent submodule (to 4f0ff4f) 2026-01-09 21:08:19 +00:00
Nikhil Sonti
4f0ff4ff49 fix: disable klavis latency issue 2026-01-09 12:14:18 -08:00
Felarof
d8b45f04bf chore: sync packages/browseros-agent submodule (to 997aeb0) 2026-01-09 16:09:30 +00:00
Dani Akash
997aeb0374 ci: fix vulnerable package versions (#193)
* fix: replace bun install with bun ci in workflow files

* chore: update react router

* chore: update posthog

* fix: vulnerable package versions

* Revert "fix: replace bun install with bun ci in workflow files"

This reverts commit 2924fe496fc340555506d305e57b81cb87d45dae.
2026-01-09 20:43:16 +05:30
Felarof
2318be07eb chore: sync packages/browseros-agent submodule (to 5c71725) 2026-01-09 15:08:43 +00:00
Dani Akash
5c71725df0 ci: Update dependency installation command in audit.yml
Changed the dependency installation command from 'bun install' to 'bun ci' for consistency in CI environments.
2026-01-09 20:34:29 +05:30
Felarof
03d703c1c8 feat: jtbd agent (#192)
* feat: jtbd agent ui

* fix: jtbd agent

* chore: remove unnecessary usecallbacks

---------

Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>
2026-01-09 20:18:15 +05:30
Felarof
0bf921fd8b chore: sync packages/browseros-agent submodule (to 3525dc9) 2026-01-09 02:46:12 +00:00
Nikhil
3525dc9026 fix: schedule task show errors (#191)
* fix: add debug logging for start:dev

* feat: use eventsource-parser for schedule tasks

* fix: remove reasoning traces, minor UI updates for schedule task

* fix: bug with textdelta
2026-01-08 18:16:05 -08:00
Felarof
3dc0257ac2 chore: sync packages/browseros-agent submodule (to eb15382) 2026-01-09 00:34:15 +00:00
Nikhil Sonti
eb15382825 fix: claude github action write permission for PR 2026-01-08 15:09:37 -08:00
Felarof
d638fdca3d chore: sync packages/browseros-agent submodule (to 9643c09) 2026-01-08 23:07:52 +00:00
Nikhil
9643c09111 feat: Add Claude Code GitHub Workflow (#190)
* "Claude PR Assistant workflow"

* "Claude Code Review workflow"
2026-01-08 14:51:41 -08:00
Felarof
3b9550390a chore: sync packages/browseros-agent submodule (to 95f91c9) 2026-01-08 22:08:06 +00:00
Felarof
95f91c9f19 chore: update models list to include new models (#189) 2026-01-08 13:41:42 -08:00
Felarof
091433ed34 chore: sync packages/browseros-agent submodule (to 3a870d4) 2026-01-08 21:08:19 +00:00
Felarof
3a870d4d8e chore: fix wt.toml to copy any .env* 2026-01-08 12:30:26 -08:00
Felarof
974be9bca6 chore: sync packages/browseros-agent submodule (to 9854870) 2026-01-08 18:10:24 +00:00
Nikhil
9854870291 feat: better dev workflow (#188)
* fix: controller-ext is built separately

* fix: remove un-used scripts in agent/

* fix: rename to assistant

* fix: add build scripts

* feat: new start:dev to start both

* fix: update gitignore

* feat: --new-ports support for dev:start

* feat: update start-all to support port and new data dir

* fix: add help insturctions for start:dev
2026-01-08 10:09:24 -08:00
Felarof
5c4916c9f5 chore: sync packages/browseros-agent submodule (to 940bdeb) 2026-01-08 17:11:42 +00:00
shivammittal274
940bdebaaf chore: refactoring linting (#186)
* chore: refactoring

* fix: return all response parts from tool execution

Previously, handleToolExecution only returned responseParts[0], causing
data loss when tools returned multiple parts. This fix:

- Changes ToolExecutionResult.part to ToolExecutionResult.parts (array)
- Returns all responseParts instead of just the first one
- Spreads all parts into toolResponseParts in processToolRequests
2026-01-08 09:05:50 -08:00
Felarof
0246d4b2e8 chore: update logos (#297) 2026-01-07 18:54:25 -08:00
Felarof
f2261b81c2 chore: sync packages/browseros-agent submodule (to f843bf1) 2026-01-08 02:45:28 +00:00
Felarof
ebecc7626c chore: udpate structure of docs and change the theme 2026-01-07 18:41:58 -08:00
Felarof
24abdfa790 fix: update slack link 2026-01-07 18:41:58 -08:00
Felarof
e6ffca546f chore: fix udpate browseros docs (#295) 2026-01-07 18:08:34 -08:00
Felarof
f1a6be0dd8 Merge branch 'main' of github.com:browseros-ai/BrowserOS 2026-01-07 18:02:50 -08:00
Felarof
e1f46f25ba chore: added wt.toml file 2026-01-07 18:02:47 -08:00
Nikhil Sonti
1304dc2554 chore: update contributing.md doc 2026-01-07 17:55:03 -08:00
Felarof
f843bf1c23 fix: update settings sidebar MCP labels and order (#182)
* Update settings nav labels and order

* fix: minor ordering
2026-01-07 17:52:39 -08:00
Felarof
bae940b01c chore: update README.md (#181) 2026-01-07 17:45:40 -08:00
Nikhil
8295deecc0 chore: update appcast for 0.36.0 release (#294) 2026-01-07 17:42:02 -08:00
Felarof
ece6f52561 chore: sync packages/browseros-agent submodule (to 18632cb) 2026-01-08 01:36:26 +00:00
Nikhil Sonti
18632cb25c fix: personalisation version gating 2026-01-07 17:16:02 -08:00
Felarof
3bdfa58257 feat: show correct err message for rate limiting (#179)
* fix: update wt.toml

* fix: match for daily rate limit error and show error
2026-01-07 17:04:48 -08:00
Nikhil Sonti
26368f965f fix: update gating for unified port to be chromium version based 2026-01-07 16:38:35 -08:00
Nikhil Sonti
c9670c0417 fix: add gating for customization page 2026-01-07 16:37:33 -08:00
Felarof
b888920d31 chore: sync packages/browseros-agent submodule (to 9e1aed9) 2026-01-08 00:34:26 +00:00
Nikhil
9e1aed99f2 feat: customisation page (#178)
* feat: v1 prefs page

* feat: customisation updates
2026-01-07 16:33:26 -08:00
Nikhil
3b838d0f94 feat: remove index.ts pattern (#177) 2026-01-07 15:57:26 -08:00
Felarof
24102a74a4 chore: sync packages/browseros-agent submodule (to 1539384) 2026-01-07 23:08:22 +00:00
Felarof
1539384603 feat: icon fix (#176)
* fix: remove grayscale filter from provider icons and use npx in lefthook
2026-01-07 14:51:32 -08:00
Nikhil Sonti
2c833e4dd2 fix: move chat-services to http/services/ itself 2026-01-07 14:08:48 -08:00
Felarof
8385736e30 chore: rename all mintlify doc images (#293) 2026-01-07 12:13:34 -08:00
Felarof
98b41f1b22 chore: sync packages/browseros-agent submodule (to 151eeef) 2026-01-07 20:08:56 +00:00
Nikhil Sonti
151eeef8de fix: update browseros-review prompt to follow claude-code-review prompt close 2026-01-07 11:56:37 -08:00
Nikhil Sonti
25ece05404 chore: Merge branch 'main' 2026-01-07 11:18:33 -08:00
Nikhil Sonti
7c20f4da90 fix: executable flag for download resources 2026-01-07 11:18:26 -08:00
Felarof
1e962aa321 chore: sync packages/browseros-agent submodule (to 4a018e2) 2026-01-07 19:08:36 +00:00
Nikhil
4a018e2c27 feat: browseros review slash command and complexity warning (#175)
* fix: add biome complexity lint

* fix: browseros-review slash command
2026-01-07 10:32:08 -08:00
Felarof
a6f4afca5c chore: sync packages/browseros-agent submodule (to 734872e) 2026-01-07 14:09:26 +00:00
shivammittal274
734872e4d0 feat(agent-sdk): add CommonJS support for wider compatibility (#174) 2026-01-07 19:03:01 +05:30
Felarof
004ba9f57b chore: sync packages/browseros-agent submodule (to ee6fe09) 2026-01-07 13:20:00 +00:00
shivammittal274
ee6fe09dcb chore: update bun.lock (#173) 2026-01-07 18:49:00 +05:30
shivammittal274
8b8c81eb74 chore: agent sdk release (#172)
* chore: agent sdk release:

* chore: agent sdk release

* chore: agent sdk release
2026-01-07 18:45:01 +05:30
Dani Akash
1f3841d5d6 ci: Delete .github/workflows/publish-agent.yml 2026-01-07 18:27:20 +05:30
Dani Akash
9aa15c2e7f ci: Add GitHub Actions workflow for publishing agent package 2026-01-07 18:18:48 +05:30
Felarof
d49fb36e43 chore: sync packages/browseros-agent submodule (to 2ac655b) 2026-01-07 12:14:25 +00:00
shivammittal274
2ac655b69e fix: context window size (#171) 2026-01-07 17:13:00 +05:30
Felarof
ee887cbd09 chore: sync packages/browseros-agent submodule (to 9c6bccd) 2026-01-07 02:46:16 +00:00
Nikhil Sonti
d4a917fb26 fix: add download_resources module for release 2026-01-06 17:54:26 -08:00
Nikhil Sonti
9c6bccd46e chore: browseros server binary update 2026-01-06 17:47:16 -08:00
Nikhil Sonti
2cc90cba24 chore: Update offset and patch 2026-01-06 17:46:59 -08:00
Nikhil
91702a21b4 fix/extension server fixes chromium (#290)
* feat: new extension installer

* feat: server version update + mcp revalidate skip

* feat: mac sparkle fix
2026-01-06 17:46:10 -08:00
Nikhil
c4f3e93778 feat: new download resources (#289) 2026-01-06 17:38:21 -08:00
Felarof
3ee809080f chore: sync packages/browseros-agent submodule (to f925f52) 2026-01-07 00:33:44 +00:00
Felarof
91d3f420d4 chore: udpate n8n docs (#288) 2026-01-06 16:24:19 -08:00
Nikhil Sonti
f925f52657 fix: immediate kill on sigterm 2026-01-06 16:15:59 -08:00
Felarof
0c02da8cf6 chore: track browserOS-agent-in-action.gif with Git LFS
Move 52MB GIF to LFS to reduce clone size.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 15:46:56 -08:00
Nikhil
90512e58df feat: cli support for server ota (#286)
* feat: ota release

* chore: clean-up old binaries

* fix: ota cli sub-commands, path fixes

* chore: browseros server binary update

* fix: add sparkle sign_update path as ENV

* fix: CLOUDFLARE_API_TOKEN to env

* fix: use same upload r2 module

* feat: upload appcast is separate

* feat: write sparkle sign in python

* fix: handle appcast update

* fix: add missing sparkle.py file

* fix: remove redudant cli options in ota

* chore: 0.0.37 macos signed release

* chore: linux browseros server ota

* fix: copy binaries to temp file and then sign
2026-01-06 13:51:18 -08:00
Felarof
3c99963eed chore: sync packages/browseros-agent submodule (to 366ba97) 2026-01-06 19:06:39 +00:00
Nikhil Sonti
366ba97e31 fix: remove POSTHOG_ENDPOINT as required 2026-01-06 10:59:42 -08:00
Nikhil
afddda015a feat: fix imports to remove .js (#170)
* fix: remove all .js in imports

* fix: update claude mode to use right import

* fix: remove addition in main package.json
2026-01-06 10:54:26 -08:00
Dani Akash
727df53fb5 ci: Add daily security audit workflow
This workflow runs a daily security audit on the codebase, checking for vulnerabilities and sending the results to Slack. It includes steps for checking out the code, setting up Bun, installing dependencies, running the audit, parsing results, and notifying via Slack.
2026-01-07 00:22:27 +05:30
Felarof
d1a1fd7e31 chore: sync packages/browseros-agent submodule (to 297f212) 2026-01-06 16:10:13 +00:00
shivammittal274
297f212c80 chore: sentry tag of schedule task (#168) 2026-01-06 20:53:11 +05:30
Dani Akash
c61d1df504 fix: vulnerable package versions (#169) 2026-01-06 20:52:17 +05:30
Felarof
f6cb6f906e chore: sync packages/browseros-agent submodule (to dc75515) 2026-01-06 15:08:59 +00:00
Dani Akash
dc75515a62 feat: provide a system prompt for tasks running in a schedule (#167)
* feat: provide a system prompt for tasks running in a schedule

* chore: fix typo
2026-01-06 20:35:59 +05:30
Felarof
fcf6cc5dc2 chore: sync packages/browseros-agent submodule (to 7dbf458) 2026-01-06 14:08:46 +00:00
shivammittal274
7dbf458989 fix: scheduled tasks error display (#166) 2026-01-06 19:03:34 +05:30
Felarof
19dc298b1d chore: sync packages/browseros-agent submodule (to 25b11b3) 2026-01-06 04:22:31 +00:00
Dani Akash
25b11b3188 fix: prevent layout shifts on clicking collapsible (#165)
* fix: newtab layout shift on collapsible

* fix: collapsible width on smaller screen sizes
2026-01-06 09:15:32 +05:30
Felarof
dd090ad677 chore: sync packages/browseros-agent submodule (to 980c10a) 2026-01-06 01:37:32 +00:00
Nikhil Sonti
980c10a411 fix: pino thread stream doesn't work with bun compile 2026-01-05 17:36:52 -08:00
Nikhil
79944037bb fix: build script + posthog (#164)
* fix: make required envs validation

* fix: add warning logs if posthog or sentry is not init

* fix: posthog endpoint

* fix: posthog endpoint
2026-01-05 16:57:42 -08:00
Felarof
94a81430ec chore: sync packages/browseros-agent submodule (to e1e0aa2) 2026-01-06 00:34:52 +00:00
Nikhil Sonti
e1e0aa264b fix: add server-version also in metrics 2026-01-05 16:12:32 -08:00
Nikhil Sonti
31ad862bd0 chore: server 0.0.33 release 2026-01-05 16:00:29 -08:00
Nikhil Sonti
76ed7cf887 fix: minor update server start metric 2026-01-05 15:59:33 -08:00
Nikhil
c64c4851f4 fix: wait for capabilities to initialise (#163) 2026-01-05 15:47:27 -08:00
Felarof
940a1588fc chore: sync packages/browseros-agent submodule (to 0f24b5d) 2026-01-05 22:08:03 +00:00
Nikhil
0f24b5d24a feat: gating to use MCP port instead of Agent port with new unified server (#162)
* feat: gating to use MCP port instead of Agent port with new unified server

* fix: gate by initialised
2026-01-05 13:21:51 -08:00
Felarof
bdae439f2a chore: sync packages/browseros-agent submodule (to bd311ba) 2026-01-05 21:08:01 +00:00
Nikhil Sonti
bd311ba085 fix: add metric with serverion version on startup 2026-01-05 12:51:02 -08:00
Nikhil Sonti
192bf2b0a1 chore: Merge branch 'main' 2026-01-05 12:48:42 -08:00
Nikhil
2294381369 feat: add metrics for /mcp /chat and others (#161)
* chore: server 0.0.32 release

* fix: node-pty gemini and siable few tools

* feat: add metrics for rate limit, mcp tools, source mode
2026-01-05 12:34:02 -08:00
Nikhil
d97d547d5b feat: gate personalisation for new server only (#160)
* feat: support browserOS server version in capabilities

* feat: add personalisation support flag

* fix: gate personalisation based on server support

* fix: gitignore minor
2026-01-05 12:25:53 -08:00
Felarof
018603fb64 chore: sync packages/browseros-agent submodule (to 1e672a9) 2026-01-05 20:09:06 +00:00
Nikhil Sonti
f46a1ba00c fix: node-pty gemini and siable few tools 2026-01-05 12:06:27 -08:00
Nikhil Sonti
20e536166e chore: server 0.0.32 release 2026-01-05 12:03:29 -08:00
Nikhil Sonti
1e672a9dd9 fix: exit within 500ms after signal 2026-01-05 12:01:56 -08:00
Dani Akash
1e964531a5 chore: added analytics for scheduled tasks (#159)
* feat: added analytics for scheduled tasks

* feat: view more button on new tab page with analytics

* fix: timing issue in track events
2026-01-06 01:21:02 +05:30
Dani Akash
c0a2ffe8f4 ci: Add custom labels to PR conventional commit validation 2026-01-06 01:05:00 +05:30
Dani Akash
3b2b89b98a feat: chat personalization via system prompt (#158)
* chore: enable biome check pre-commit hook

* feat: created personalization screen

* feat: newtab layout component

* chore: refactor styles to use shadcn ui elements

* feat: fix personalization layout

* feat: write personalization to wxt storage

* fix: editing sync problem with localstorage

* feat: pass personalization info to the conversation

* fix: personalize screen transition
2026-01-05 11:33:56 -08:00
Felarof
7b984409a8 chore: sync packages/browseros-agent submodule (to 86ec6ea) 2026-01-05 14:09:30 +00:00
Dani Akash
86ec6eac28 ci: enable typecheck in code-quality workflow (#157)
* ci: enable typecheck in code-quality workflow

* chore: added typecheck to controller-ext
2026-01-05 18:58:05 +05:30
dependabot[bot]
a8a4f2ca5e build(deps): bump actions/checkout from 5 to 6 (#156)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-05 18:57:30 +05:30
Dani Akash
0d52a42a4d ci: modify PR workflow permissions
Updated permissions to allow writing to pull requests and issues.
2026-01-05 18:56:02 +05:30
Dani Akash
485b36cf89 ci: add permissions for pull request validation 2026-01-05 18:51:58 +05:30
Felarof
05fb616c87 chore: sync packages/browseros-agent submodule (to 38138e2) 2026-01-05 13:21:03 +00:00
Dani Akash
38138e2012 ci: add task types to PR title validation workflow
Added task types for PR conventional commit validation.
2026-01-05 18:46:42 +05:30
Dani Akash
8f4e281d44 ci: add PR title validation workflow 2026-01-05 18:41:35 +05:30
Dani Akash
255a2127c0 ci: enable typecheck step in code quality workflow 2026-01-05 18:28:47 +05:30
Felarof
23a5990ea5 chore: sync packages/browseros-agent submodule (to e702977) 2026-01-03 02:40:39 +00:00
Nikhil Sonti
e702977911 fix: minor lint 2026-01-02 18:29:35 -08:00
Felarof
0307e932a2 chore: sync packages/browseros-agent submodule (to d1561df) 2026-01-03 01:36:34 +00:00
Nikhil
d1561df83c feat: refactor for consistent file-names in apps/server (#155)
* feat: rename files following kebab case

* chore: add claude.md with filename instructions
2026-01-02 16:47:05 -08:00
Felarof
48ce63e1a8 chore: sync packages/browseros-agent submodule (to 3a370ce) 2026-01-03 00:32:46 +00:00
Nikhil
3a370ce27d fix: test helpers extension timeout (#154) 2026-01-02 16:29:05 -08:00
Nikhil
f66fdae2c1 feat: fix all typescript errors and biome errors (#153)
* feat: fix all typescript errors and biome errors

* fix: address review feedback
2026-01-02 15:36:08 -08:00
Felarof
f58de7f48c chore: sync packages/browseros-agent submodule (to ad16a77) 2026-01-02 22:08:02 +00:00
Nikhil
ad16a77484 feat: test button for schedule (#152)
* feat: support run now in schedule tasks

* fix: make it test button
2026-01-02 13:37:43 -08:00
Felarof
8f6222de09 chore: sync packages/browseros-agent submodule (to 2869c3a) 2026-01-02 21:06:38 +00:00
Nikhil
2869c3ade1 fix: add timeout to fix race for now in opening window + schedule (#151) 2026-01-02 12:42:57 -08:00
Felarof
c26a529c8a fix: minor text changes to scheduled task 2026-01-02 12:42:42 -08:00
Nikhil
951e1b0cc1 feat: refactor server (#150)
* fix: clean-up passing logger, bad pattern it's singleton

* feat: refactor main.ts (#148)

* fix: logger in main

* feat: refactor chat route and split into service (#149)

* fix: logger in chatserver
2026-01-02 12:33:46 -08:00
Felarof
edaa5edceb chore: sync packages/browseros-agent submodule (to 384a5e3) 2026-01-02 20:08:12 +00:00
Felarof
384a5e35ef fix: remove checkbox in LLM chat and hub page -- dead code 2026-01-02 11:19:18 -08:00
Felarof
8f8d0bc69a fix: do bun install at the root in worktrunk toml 2026-01-02 11:18:47 -08:00
Felarof
81d19cde05 chore: add support for copying .llm folder in worktrunk during switch and remove 2026-01-02 11:07:57 -08:00
Felarof
618cc28f42 chore: sync packages/browseros-agent submodule (to c4dac93) 2026-01-02 19:06:37 +00:00
Dani Akash
c4dac9380b feat: scheduled tasks (#146)
* feat: scheduled tasks base ui

* chore: fix biome version

* fix: type issues

* chore: remove use callback

* chore: refactor scheduleStorage types

* feat: create storage hooks for job & job runs

* feat: integrate listing with store

* feat: schedule tasks dialog integration

* feat: integrate view and runs

* feat: sync alarm state

* fix: check for enabled jobs in alarm state

* feat: createAlarmFromJob utility

* feat: updated edit hooks to update alarms

* feat: getChatServerResponse util

* feat: run jobs in schedule

* feat: update job run stat with storage

* feat: discard old runs over 15

* feat: provide graph mode entry

* feat: footer link with scheduler option

* feat: use a nicer loader for task runs

* feat: schedule results component

* feat: scheduler results in new tab page

* feat: nicer date formatting with dayjs

* feat: use run-result-dialog for displaying run results in new tab

* chore: delete mocked storage methods

* chore: remove unused code

* chore: remove all job runs when a job is deleted

* feat: use shadcn elements for schedule results component

* feat: render results in markdown view

* chore: added important update on logic sharing

* chore: remove loading state in scheduledtaskslist

* feat: run the background job in a unfocused window

* feat: provide mcp options to the background scheduled tasks

* chore: clean up stale jobs on chrome restart or update

* fix: background window not cleaned up on error

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* chore: fix type issues

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-01-03 00:08:51 +05:30
Felarof
403c29671f chore: sync packages/browseros-agent submodule (to ee5de61) 2026-01-02 17:07:32 +00:00
Nikhil
ee5de61967 feat: support user system prompt (#147)
* feat: add support for userSystemPrompt

* feat: udpate chat-cli to support user system prompt
2026-01-02 09:07:13 -08:00
Felarof
a6b289acf0 chore: sync packages/browseros-agent submodule (to 47b9c18) 2026-01-02 02:46:37 +00:00
Nikhil
47b9c1894d feat: implement agent-sdk (#145)
* feat: agent-sdk outline

* feat: unit tests for agent-sdk

* feat: implement /sdk routes

* feat: integration test for agent-sdk with server

* feat: ENV to disble headless mode for testing

* feat: act() integration test working

* chore: refactor package/shared to have constants/ and /types separately

* feat: verify() and extract() sdk APIs

* feat: extract() use remote endpoint for extraction

* feat: verify() implemented - lazy parsing to avoid strong schema checks

* fix: remove generateStructuredOutput as not models support it

* fix: clean-up LLM types and use zod schema

* fix: typecheck vitetest error

* fix: remove directly calling GeminiAgent in sdk act()

* fix: lefthook for refactor warning

* fix: refactor routes/sdk to move business logic out
2026-01-01 17:38:40 -08:00
Nikhil Sonti
032d45afeb chore: bump PATCH and OFFSET 2025-12-31 17:00:12 -08:00
Nikhil Sonti
eba64bd4ac feat: new browseros prefs, better toolbar pin/unpin 2025-12-31 16:59:39 -08:00
Nikhil Sonti
af4d7a8944 chore: Merge branch 'main' 2025-12-31 16:57:55 -08:00
Nikhil Sonti
a35cbfbcee fix: extract module better patch deletion support 2025-12-31 16:57:53 -08:00
Nikhil
888d4bbf50 feat: improve extension installer + updater (#278)
* feat: new extension installer + bundle support

* feat: support bundle extension download in cli

* chore: update release yaml to include new bundle_extensions module
2025-12-31 16:35:21 -08:00
Nikhil Sonti
2efb05f06b Merge branch 'main' of https://github.com/browseros-ai/BrowserOS 2025-12-31 14:08:42 -08:00
Nikhil Sonti
cc2076c6ac docs: add ad blocking feature 2025-12-31 14:08:38 -08:00
Felarof
2ed25ac298 chore: sync packages/browseros-agent submodule (to 27124ba) 2025-12-31 21:07:35 +00:00
Felarof
27124baccb fix: worktrunk setup 2025-12-31 12:51:25 -08:00
Felarof
90068f915f feat: worktrunk setup (#144) 2025-12-31 12:38:41 -08:00
Felarof
3017f7e5aa chore: sync packages/browseros-agent submodule (to 39ce685) 2025-12-31 19:06:23 +00:00
Felarof
39ce685443 fix: create env file per package (#141)
* feat: create .env per package

* chore: minor fix to gitignore

* fix: update CLA to use separate repo
2025-12-31 10:43:47 -08:00
Felarof
fd825e396a chore: sync packages/browseros-agent submodule (to 473a7b8) 2025-12-31 01:36:49 +00:00
Nikhil
473a7b8ebd feat: remove downloading crx for controller-ext and directly build and load (#140) 2025-12-30 16:56:02 -08:00
Felarof
3556970eef chore: sync packages/browseros-agent submodule (to 5668694) 2025-12-30 22:07:50 +00:00
Felarof
56686940b3 fix: re-add httpMcpPort CLI arg it is passed from chromium 2025-12-30 13:07:40 -08:00
Felarof
3862c6486a chore: sync packages/browseros-agent submodule (to f08513c) 2025-12-30 21:07:34 +00:00
Felarof
f08513c109 chore: add CLA 2025-12-30 13:04:30 -08:00
Felarof
10b948b061 chore: re-add browseros-agent submodule at latest main
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 12:51:45 -08:00
Felarof
a9ce417758 chore: remove browseros-agent submodule for re-addition
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 12:51:16 -08:00
Felarof
af392c514e Update README.md 2025-12-30 12:49:04 -08:00
Felarof
ba3540c75f Update README.md 2025-12-30 12:46:30 -08:00
Felarof
82c8faa9cf chore: update ports in .env.example (during dev use ports that are not conflicting with prod BrowserOS)) 2025-12-30 12:27:50 -08:00
Felarof
1044888d9a feat: fix mono repo setup (#139)
* chore: fix monorepo setup

1) use single .env.development file at the root

2) update package.json to contain commands to start server and agent

3) rename "Assistant" package name to "agent"

4) rename HTTP_MCP_PORT to SERVER_PORT

* chore: update README

* chore: update .env.example
2025-12-30 11:39:55 -08:00
Felarof
b7549c1b2c chore: update gitignore 2025-12-30 09:59:40 -08:00
shivammittal274
82a5a9319d feat: pointer display and pointer screenshot tool (#117)
* feat: pointer display and pointer screenshot tool

* chore: fix ts issues

* fix: use custom element with shadow dom for pointer overlay

* fix: ts issues

* Update apps/controller-ext/src/utils/PointerOverlay.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: Dani Akash <DaniAkash@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-12-30 17:00:42 +05:30
Dani Akash
c20d0fc6fd chore: add zed settings to gitignore 2025-12-30 16:21:54 +05:30
Dani Akash
4eeb441e06 fix: lockfile issue with bun (#138)
* fix: lockfile issue with bun

* chore: delete unnecessary config files
2025-12-30 16:18:26 +05:30
dependabot[bot]
1ac17f5ac4 build(deps): bump @modelcontextprotocol/sdk from 1.19.1 to 1.24.0 in /apps/server (#136)
* build(deps): bump @modelcontextprotocol/sdk in /apps/server

Bumps [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk) from 1.19.1 to 1.24.0.
- [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases)
- [Commits](https://github.com/modelcontextprotocol/typescript-sdk/commits/1.24.0)

---
updated-dependencies:
- dependency-name: "@modelcontextprotocol/sdk"
  dependency-version: 1.24.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: add bun.lock update

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nikhil Sonti <nikhilsv92@gmail.com>
2025-12-29 08:47:41 -08:00
Nikhil Sonti
168e6cca01 chore: claude.md update with new package creation info 2025-12-29 08:37:19 -08:00
Dani Akash
025780faea feat: agent code in monorepo (#137)
* feat: added agent code to monorepo

* chore: update bun lock file
2025-12-29 18:39:52 +05:30
Dani Akash
7267082991 ci: added biome github action 2025-12-29 18:31:55 +05:30
Dani Akash
f5cba0c3eb fix: incorrect exports of shared package (#135)
* fix: incorrect exports of shared package

* fix: reference to shared directory
2025-12-29 12:39:34 +05:30
Dani Akash
176fb9e8c7 ci: update dependabot to focus on security (#134)
* ci: update dependabot to focus on security

Added open-pull-requests-limit, enabled beta ecosystems (for bun support) and only allow only security updates

* chore: fix whitespaces

* ci: update dependency groups to only apply to security-updates
2025-12-29 07:44:49 +05:30
dependabot[bot]
4958f13f1d Bump actions/checkout from 4 to 5 in the all group (#32)
Bumps the all group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-29 07:26:32 +05:30
Nikhil Sonti
6bbe52b8ab fix: first-run page fix the settings link 2025-12-26 11:10:27 -08:00
Nikhil
22fe4db2eb feat: upload sentry source maps (#129)
* feat: add sentry source maps

* feat: upload sourcemaps to sentry
2025-12-25 16:58:53 -08:00
Nikhil
999bde30df feat: update the version to be from apps/server and rename main package.json (#128) 2025-12-25 16:20:50 -08:00
Nikhil
f0d0903106 feat: use pino for logger, refactor logging (#127)
* feat: use pino logger, use logger interface across ext and server

* fix: no need prefixes in logger as we parse stack trace

* chore: update claude.md
2025-12-25 15:58:40 -08:00
Nikhil
ee14a0841c feat: created shared/ and move all constants to avoid magic numbers spread out (#126)
* feat: create a shared workspace

* feat: use constants from shared. No magic numbers spread out

* fix: update claude.md
2025-12-25 15:22:26 -08:00
Nikhil Sonti
5cb9986a29 feat: fix README and CLAUDE.md 2025-12-25 14:45:45 -08:00
Nikhil
803ea51dbf feat: fix tests and refactor (#125)
* fix: clean-up old docs

* feat: refactored test utils

* fix: clean-up dev scripts and move to scripts/dev

* fix: clean-up script

* fix: refactor tests into properly controller tests and cdp tests
2025-12-25 14:32:45 -08:00
Nikhil
742c349f86 feat: import missing tests (#124)
* feat: import all the missing tests before refactor

* fix: biome errors for tests

* fix: few type errors and add exceptiosn

* fix: few more type errors

* fix: remove agent port from tests

* fix: exclude tests from tsconfig, bun run tests natively

* fix: mcpServer test now waits for extension connected
2025-12-25 13:34:10 -08:00
Felarof
0b9f9081b3 chore: update doc -- remove outdated LLM reconfiguration tip (#274) 2025-12-25 13:10:42 -08:00
Felarof
1af6e66723 Update README.md 2025-12-25 13:00:30 -08:00
shivammittal274
ab362d828d chore: improve integration test (#123) 2025-12-25 09:33:42 -08:00
shivammittal274
1732006039 Merge pull request #118 from browseros-ai/feat/http-consolidation-phase1
feat(http): add consolidated HTTP server infrastructure (Phase 1)
2025-12-25 18:04:24 +05:30
shivammittal274
fe65169879 Merge pull request #119 from browseros-ai/feat/http-routes-phase2-3
feat(http): add /test-provider and /klavis routes (Phase 2-3)
2025-12-25 18:04:15 +05:30
shivammittal274
4e9b60e5e4 Merge pull request #120 from browseros-ai/feat/http-mcp-phase4
feat(http): add /mcp route with @hono/mcp (Phase 4)
2025-12-25 18:04:03 +05:30
shivammittal274
af24a9bcfe Merge pull request #121 from browseros-ai/feat/http-chat-phase5
feat(http): add /chat routes with SSE streaming (Phase 5)
2025-12-25 18:03:52 +05:30
shivammittal274
8fc6f394ec Merge pull request #122 from browseros-ai/feat/http-cleanup-phase6
chore(http): delete deprecated mcp/ and agent/http/ modules (Phase 6)
2025-12-25 18:03:40 +05:30
shivammittal274
e2e73edf93 chore(http): delete deprecated mcp/ and agent/http/ modules (Phase 6)
- Delete apps/server/src/mcp/server.ts and index.ts (replaced by http/routes/mcp.ts)
- Delete apps/server/src/agent/http/HttpServer.ts, types.ts, index.ts (replaced by http/)
- Move ChatRequestSchema and related types to http/types.ts
- Update imports in GeminiAgent.ts, agent/types.ts, agent/index.ts
- Remove deprecated exports from agent/index.ts
- Remove commented out startMcpServer and startAgentServer functions from main.ts
2025-12-25 17:57:19 +05:30
shivammittal274
55a3b52384 feat(http): add /chat routes with SSE streaming (Phase 5)
- Add routes/chat.ts with POST /chat and DELETE /chat/:conversationId
- SSE streaming with abort detection via honoStream.onAbort()
- Rate limiting for BrowserOS provider
- Session management via SessionManager
- Reuses existing GeminiAgent execution logic
2025-12-25 17:54:42 +05:30
Nikhil
97eef79d57 chore: release - 0.35.0 (#273)
* chore: bump PATCH and OFFSET

* chore: browseros server binary
2025-12-24 15:57:03 -08:00
Nikhil Sonti
c642dba907 fix: update gitignore 2025-12-24 15:52:45 -08:00
Nikhil
01fd543d0d feat: browseros-server OTA support (#272)
* feat: browseros-server OTA updater

* chore: bump PATCH and OFFSET

* fix: updates to browseros-server ota updater -- status check, rollback support

* feat: move all browseros cli to switches

* chore: clean-up old agent v1 from installation
2025-12-24 15:47:38 -08:00
shivammittal274
a34def2a34 feat(http): add /mcp route with @hono/mcp (Phase 4)
- Add routes/mcp.ts using StreamableHTTPTransport from @hono/mcp
- Per-request transport to prevent JSON-RPC request ID collisions
- Reuse tool registration logic from existing MCP server
- Security check with isLocalhostRequest() using Bun server.requestIP()
- Supports enableJsonResponse for JSON responses (not SSE)
2025-12-25 02:21:04 +05:30
shivammittal274
69f856056c feat(http): add /test-provider and /klavis routes (Phase 2-3)
- Add routes/provider.ts with Zod validation for provider testing
- Add routes/klavis.ts with all Klavis OAuth endpoints
- Update server.ts to compose new routes
2025-12-25 02:20:28 +05:30
shivammittal274
7562e2d3ea feat: add consolidated HTTP server infrastructure (Phase 1) 2025-12-25 01:36:06 +05:30
Felarof
4fe2d2637c Create LICENSE 2025-12-23 14:50:27 -08:00
shivammittal274
e93194ac02 feate: support browseros provider types and dynamic ai-sdk adapter based on our provider (#116) 2025-12-23 14:36:20 -08:00
Nikhil
3d5696be3e fix: lint errors (#115)
* fix: all biome lint errors

* fix: lefthook dev dependency
2025-12-23 10:12:16 -08:00
Dani Akash
038056161e feat: setup biome as the new linter (#114)
* feat: install biome

* chore: remove eslint

* chore: remove prettier

* chore: fix lint issues

* chore: added biome precommit hook
2025-12-23 21:58:41 +05:30
Dani Akash
0fc9741a5d refactor: streamline monorepo structure (#112)
* feat: refactor packages into single project

* feat: created apps directory

* chore: removed duplicate packages

* fix: delete package-lock.json

since project uses bun
2025-12-22 23:39:21 +05:30
shivammittal274
687d4d058c Fix: gemini pro thought signature fix (#111)
* fix: gemini pro thought signature fix

* fix: gemini pro thought signature fix

* fix: gemini pro
2025-12-20 08:17:42 -08:00
Nikhil Sonti
d88582c0fc chore: bump version 2025-12-19 12:44:52 -08:00
Nikhil Sonti
c4314d0119 chore: Merge branch 'main' 2025-12-19 12:44:25 -08:00
shivammittal274
2b9f494cf0 chore: remove old klavis mcp tools (#110) 2025-12-19 12:20:40 -08:00
Nikhil Sonti
b8a552796a chore: bump version 2025-12-19 11:54:45 -08:00
shivammittal274
50053497e8 chore: add add and delete mcp server endpoint (#109)
* chore: add add and delete mcp server endpoint

* chore: add add and delete mcp server endpoint
2025-12-19 11:31:20 -08:00
Felarof
47cd94d26d feat: use proxy for klavis API (#107) 2025-12-19 10:06:56 -08:00
shivammittal274
a71cebd92b feat: Fix tool use issue with claude (#106)
* fix: tool use issue

* fix: tool use issues
2025-12-19 08:55:19 -08:00
shivammittal274
44425b4d19 feat: mcp support and third party mcp (#104)
* feat: mcp support

* feat: mcp support added

* feat: third party mcp support

* feat: third party mcp support

* feat: mcp support extended to all oauth urls and user integrations

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 08:35:41 -08:00
Felarof
d348cb40c3 feat: rate limiter improvement (fetch daily limit, show error with google form link) (#105)
* feat: fetch daily rate limit from the gateway

* chore: survey link for usage limit

* fix: remove initial query from rate limiter table to keep it simple (as it is not required)
2025-12-18 13:51:55 -08:00
Felarof
2581af1202 feat: add rate limiter 2025-12-17 11:17:30 -08:00
Felarof
df1229e55f Revert "feat: add rate limiter (#101)"
This reverts commit 72fd6c326b.
2025-12-17 11:11:14 -08:00
Felarof
8c6de1f6c9 fix: changed daily rate limit to 5 2025-12-17 11:07:42 -08:00
Felarof
c1b8a678e8 feat: identity service to create browser_os_id and use that for rate limiter as well
feat: bak

feat: bak

feat: bak

feat: bak

feat: bak

fix: remove client id
2025-12-17 11:04:19 -08:00
shivammittal274
cdcb0f0561 fix: orphan tool_use/tool_result filter with cascading deletion (#103)
Fixes "unexpected tool_use_id found in tool_result blocks" API errors that
occur after conversation compression removes one half of a tool_use/tool_result pair.

Root cause: The existing filter logic checked if tool_use IDs had matching
tool_results (and vice versa), but when filtering orphans, the IDs were not
removed from the tracking sets. This caused corresponding counterparts in
later Contents to pass through the filter, creating mismatched pairs.

Changes:
- Add cascading deletion: when filtering an orphan tool_result, also delete
  its ID from allToolResultIds so later tool_uses with that ID are filtered
- Add cascading deletion: when filtering an orphan tool_use, also delete
  its ID from allToolCallIds so later tool_results with that ID are filtered
- Add mergeConsecutiveToolMessages() to combine split tool messages into a
  single message, satisfying the API requirement that all tool_results must
  immediately follow their tool_use in one message
- Add comprehensive test coverage for orphan filtering scenarios

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 10:42:05 -08:00
Felarof
72fd6c326b feat: add rate limiter (#101)
* feat: rate limiter v0.1 design and impl

feat: rate limiter design

feat: rate limiter -- udpated design doc

feat: rate limiter (DB)

feat: rate limiter

* fix: rate limiter sql fix (e2e tested and it works)
2025-12-17 10:03:09 -08:00
Felarof
c9d1c683a6 fix: rate limiter sql fix (e2e tested and it works) 2025-12-16 18:46:07 -08:00
Felarof
f22b16d48e feat: rate limiter v0.1 design and impl
feat: rate limiter design

feat: rate limiter -- udpated design doc

feat: rate limiter (DB)

feat: rate limiter
2025-12-16 17:45:27 -08:00
Nikhil Sonti
9f1c79009d chore: bump version 2025-12-16 12:55:17 -08:00
Nikhil Sonti
91d33031fd chore: Merge branch 'main' 2025-12-16 12:45:19 -08:00
Nikhil
84b64337d8 fix: sentry capture in few other places (#99)
* fix: handle exitOverride properly

* feat: capture sentry errors in few other critical places
2025-12-16 12:42:00 -08:00
Nikhil Sonti
7cefc12472 ci: Merge branch 'main' 2025-12-16 11:57:23 -08:00
Dani Akash
2071aa6041 feat: setup sentry on browser os server (#97)
* Revert "fix: capture exceptions through sentry (#95)"

This reverts commit 7bb3a94742.

* Revert "fix: read sentry directly from env"

This reverts commit 0d1f70f833.

* Revert "feat: add sentry and rename to telemetry from metrics (#94)"

This reverts commit f888098d20.

* feat: created sentry instrumentation

* chore: setup sentry in common

* chore: initialize sentry version

* feat: setup sentry context and capture exception

* feat: added browseros context to sentry
2025-12-17 01:22:59 +05:30
Nikhil Sonti
884303e708 fix: handle exitOverride properly 2025-12-16 11:01:57 -08:00
Nikhil
21b03f45ae chore: clean-up codex stuff as it's no longer used (#96) 2025-12-16 10:53:41 -08:00
Nikhil
7bb3a94742 fix: capture exceptions through sentry (#95) 2025-12-16 09:46:06 -08:00
Nikhil Sonti
0d1f70f833 fix: read sentry directly from env 2025-12-16 09:35:33 -08:00
Nikhil
f888098d20 feat: add sentry and rename to telemetry from metrics (#94) 2025-12-16 09:33:02 -08:00
Nikhil Sonti
9641729980 fix: (minor) lint fix for logger 2025-12-15 14:47:14 -08:00
Nikhil Sonti
4fdfcfa442 fix: rename extension not connected to helper service to be more clear for users 2025-12-15 14:43:08 -08:00
shivammittal274
b3be656e3a feat: multi profile and multi window support added (#93) 2025-12-15 14:09:49 -08:00
Nikhil Sonti
5aa1d15899 fix: set CORS for all requests 2025-12-15 11:58:27 -08:00
Nikhil
94540e3705 fix: add openai-comptabile provider 2025-12-15 09:02:20 -08:00
Nikhil Sonti
e638b1d315 chore: bump browseros-server version 2025-12-12 14:14:35 -08:00
Nikhil Sonti
fbfea78318 chore: Merge branch 'main' 2025-12-12 14:14:10 -08:00
Nikhil
c8ed2f7692 feat: fix config parsing (#91)
* feat: new config parser, unified to include cli, args and env

* fix: better SIGTERM handler
2025-12-12 14:13:27 -08:00
Nikhil Sonti
b55ca719d6 fix: update read version to be proper 2025-12-12 10:24:10 -08:00
Nikhil Sonti
5297dd8768 chore: bump browseros-server version 2025-12-11 12:28:43 -08:00
Nikhil Sonti
89e89cb87c build: Merge branch 'main' 2025-12-11 08:29:53 -08:00
shivammittal274
304ba9e7d4 Merge pull request #88 from browseros-ai/shivam/metrics-bug
bug: metrics line missed
2025-12-11 20:58:35 +05:30
shivammittal274
c1d792ef6c bug: metrics line missed 2025-12-11 20:58:12 +05:30
Nikhil Sonti
44e4519d4c chore: bump browseros-server version 2025-12-10 16:53:58 -08:00
Nikhil Sonti
875ff6a900 feat: move to posthog SDK 2025-12-10 16:53:41 -08:00
Nikhil
a04c830b34 fix: move from toml to json config (#87)
* feat: move from TOML to JSON as hard to add TOML support in chromium

* fix: rename TOML to JSON in few places
2025-12-10 16:47:51 -08:00
Nikhil Sonti
c33ae43f43 feat: TOML config slightly udpate to add flags section 2025-12-10 15:32:15 -08:00
Nikhil
3f6160df24 feat: support TOML base config in browseros-server (#86)
* feat: support reading config from TOML file

* fix: wip toml config

* refactor: one config, merged from args, config and config.toml example

* fix: update package.json to have bun start:with_toml

* docs: add quick toml explaination

* refactor: clean-up /init endpoint, we'll use TOML to pass config
2025-12-10 15:14:44 -08:00
shivammittal274
027ba05941 Shivam/openrouter gemini3 fix (#84)
* feat: mcp health check extension connected

* feat: mcp health check extension connected

* fix: openrouter reasoning traced in tool added (constraint in geimini 3 pro)

* removed health endpoint

* removed health endpoint

* fix for orphaned tool results when compression + disable idle timeout for long running agent
2025-12-10 11:48:44 -08:00
Nikhil Sonti
637890eded chore: bump browseros-server version 2025-12-10 11:34:19 -08:00
Nikhil Sonti
b2d29c77bd feat: permissive CORs for /mcp endpoint 2025-12-10 11:14:25 -08:00
Nikhil Sonti
9a3b9539df chore: bump browseros-server version 2025-12-09 17:38:22 -08:00
Nikhil Sonti
756e8bc267 fix: better error message in test-provider 2025-12-09 14:37:38 -08:00
Nikhil
9a0c7b44d5 feat: test provider api for testing models + bun format (#82)
* feat: test-provider api

* fix: simple error msg formatding
2025-12-09 14:33:39 -08:00
Nikhil Sonti
3f9c42029e build: hook for commit names 2025-12-09 13:10:11 -08:00
Nikhil Sonti
b3e2f679f8 feat: pre-commit hook for branch names 2025-12-09 13:06:11 -08:00
Nikhil Sonti
d0eab4c1d9 chore: format lefthook 2025-12-09 12:57:44 -08:00
Nikhil
6a1f9fb926 feat: pre-commit hook for format (#81)
* fix: separate lint and format

* chore: run format on the repo

* feat: add pre-commit hook to run format

* test
2025-12-09 12:56:17 -08:00
Nikhil
b1e8ac0475 structured content in mcp tools (#80)
* add structuredContent for MCP tool calls and responses

* add structured content to list tabs

* test: include structured content test
2025-12-09 12:08:50 -08:00
Nikhil
1cdca0bae3 controller ext fixes (#79)
* fix: make reconnect interval every 5s

* fix: make host as 127.0.0.1 as some localhost can resolve to ipv6

* feat: make controller-ext check the port each time it reconnects
2025-12-09 11:02:19 -08:00
Nikhil Sonti
f40644b850 chore: bump browseros-server version 2025-12-08 16:49:17 -08:00
shivammittal274
960d3bf682 feat: selected tabs as context to gemini (#77) 2025-12-08 12:28:20 -08:00
shivammittal274
51ea8cc193 fix chat recording service disabled to ~/.gemini (#76) 2025-12-08 08:51:44 -08:00
Nikhil Sonti
a284773715 chore: bump browseros-server version 2025-12-06 14:38:46 -08:00
Nikhil Sonti
2dc376ce40 Merge branch 'main' 2025-12-06 14:37:00 -08:00
shivammittal274
72c3aac9c6 fix(agent loop): for orphaned tool results when compression + disable idle timeout for long running agent (#74) 2025-12-06 13:22:31 -08:00
Nikhil Sonti
0d1f4168dc fix: remove idleTimeout 2025-12-06 12:59:13 -08:00
shivammittal274
d3c5dfa588 Fix SIGILL crash on older CPUs by using baseline build targets (#73)
Switch from x64-modern (requires AVX2) to x64-baseline (SSE4.2 only)
for Linux and Windows builds. This fixes the "Illegal instruction"
crash on pre-Haswell Intel CPUs (Ivy Bridge, Sandy Bridge) and
pre-Excavator AMD CPUs that lack AVX2 support.

Fixes: MCP server crashes with SIGILL on Ivy Bridge CPUs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-06 10:36:30 -08:00
shivammittal274
c385925bab fix: abort execution fix: (#72) 2025-12-06 09:04:58 -08:00
Nikhil Sonti
da4326e968 chore: increment version 2025-12-05 14:10:27 -08:00
shivammittal274
c72d48cbfe Merge pull request #69 from browseros-ai/context-window-support
Context window support
2025-12-06 02:37:08 +05:30
shivammittal274
5795e1edf8 Merge pull request #70 from browseros-ai/req-active-tab
active tab part of request
2025-12-06 02:36:58 +05:30
shivammittal274
e1ee1ded14 Merge pull request #71 from browseros-ai/ui-stream-writer-singleton
ui message writer singleton while execution
2025-12-06 02:36:46 +05:30
shivammittal274
474476186a added has finished flag 2025-12-06 02:21:22 +05:30
shivammittal274
f4d3950c86 ui message writer singleton while execution 2025-12-06 02:21:21 +05:30
shivammittal274
7689dc6e3c Refactor to BrowserContext pattern with TabSchema
- Rename ActiveTabSchema → TabSchema (more general)
- Add BrowserContextSchema containing activeTab and tabs array
- Request uses browserContext instead of activeTab directly
- url is now optional in TabSchema
- Extensible design for future browser state (history, cookies, etc)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-06 02:20:38 +05:30
shivammittal274
0d11648bd4 Remove compressionRatio from request, use fixed 0.75
- Request only accepts contextWindowSize
- GeminiAgent computes compressionThreshold internally using fixed 0.75 ratio
- Follows YAGNI principle - no need to expose compressionRatio to UI

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-06 02:17:48 +05:30
shivammittal274
883415c9d4 context window support 2025-12-05 23:25:02 +05:30
shivammittal274
c7643e920d context window support 2025-12-05 23:24:34 +05:30
shivammittal274
87c0dea49a context window support 2025-12-05 23:22:29 +05:30
shivammittal274
b79b8ea69b context window support 2025-12-05 23:20:51 +05:30
Nikhil Sonti
e8b5b15b0d minor: agent-cli aggregate text-deltas 2025-12-04 12:30:02 -08:00
Nikhil
575b8fb24a few minor improvements to new agent (#68)
* feat: agent-cli to test agent server locally

* fix: make browseros tests headless
2025-12-04 10:50:45 -08:00
shivammittal274
f31a22d64b Merge pull request #67 from browseros-ai/vercel-hono-format-update
hono stream format update
2025-12-04 20:30:56 +05:30
shivammittal274
3d6115851a Gemini System Prompt Update (#66)
* system prompt in file + anthropic tested

* system prompt in file + anthropic tested

* updated gemini prompt

* updated gemini prompt

* updated gemini prompt
2025-12-03 14:48:26 -08:00
Nikhil
bc9b3ea6da fix: remove ?binary from compile to prevent shell-util wasm (#65) 2025-12-03 11:05:56 -08:00
shivammittal274
255d535f34 system prompt in file + anthropic tested (#64)
* system prompt in file + anthropic tested

* system prompt in file + anthropic tested
2025-12-02 15:59:08 -08:00
shivammittal274
a2e7614e8b Merge pull request #58 from browseros-ai/http-server-gemini
Http server and Session manager
2025-11-27 02:57:14 +05:30
shivammittal274
5fd4464826 session management and http server code 2025-11-27 02:31:55 +05:30
shivammittal274
4a19abe785 session management and http server code 2025-11-27 02:30:14 +05:30
shivammittal274
6fe4b79bd4 Gemini agent core logic (#57)
* vercel ai adpater for gemini cli

* tests fixed based upon v5

* remove logic for normalisation for openai (not needed)

* tests fixed based upon v5

* agent core logic
2025-11-26 12:55:07 -08:00
shivammittal274
31a1ea62d1 session management and http server code 2025-11-27 00:05:56 +05:30
shivammittal274
e710c39ce0 pulled main 2025-11-26 23:58:17 +05:30
shivammittal274
a61b37148b agent core logic 2025-11-26 23:54:15 +05:30
shivammittal274
9cf99b92f1 Gemini vercel ai sdk adapter (#56)
* vercel ai adpater for gemini cli

* tests fixed based upon v5

* remove logic for normalisation for openai (not needed)

* tests fixed based upon v5
2025-11-25 11:02:22 -08:00
shivammittal274
0765f9bcae tests fixed based upon v5 2025-11-26 00:30:10 +05:30
shivammittal274
65252b00b4 remove logic for normalisation for openai (not needed) 2025-11-25 23:53:39 +05:30
shivammittal274
add3f78af1 tests fixed based upon v5 2025-11-25 23:37:06 +05:30
shivammittal274
f82a190a6a vercel ai adpater for gemini cli 2025-11-25 23:30:09 +05:30
Nikhil Sonti
05c4c9267f bump browseros server 2025-11-13 13:46:29 -08:00
Nikhil Sonti
7a9b852c10 Merge branch 'main' of https://github.com/browseros-ai/BrowserOS-server 2025-11-13 13:46:14 -08:00
Nikhil
0274d82ada fix: Focused event, logger fixes (#54)
* fix: logger to truncate only in console, write full log to file

* fix: logs dir and proper env parsing

* feat: add focus event to switch the primary controller
2025-11-13 13:44:43 -08:00
Felarof
779c958d3b bump browseros version 2025-11-13 11:43:30 -08:00
Nikhil Sonti
56a5cf5fa5 bump server version 2025-11-12 13:34:38 -08:00
Nikhil
878939aa5d Fix: extension disconnected issue (#53)
* fix: make browseros controller singleton

* fix: controllerBridge tracks all client connections and uses primary for updates

* gitignore updates

* minor: .env.example has url

* controller-ext: remove exponential backoff to keep ti simple, remove un-unsed envs

* Update .env.example

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-11-12 13:07:02 -08:00
shivammittal274
b76912e8e9 klavis mcp integrated (#52)
* klavis mcp integrated

* Update packages/tools/src/klavis/KlavisMCPTools.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update packages/tools/src/klavis/KlavisMCPTools.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Update packages/tools/src/klavis/KlavisMCPTools.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-11-12 08:47:25 -08:00
Nikhil Sonti
4b5e8ec9eb bump browseros server 2025-11-11 16:29:26 -08:00
Nikhil Sonti
fffb0d077f Revert "TKT-68 klavis mcp integrated (#51)"
This reverts commit 54a1eec83c.
2025-11-11 16:28:25 -08:00
Nikhil Sonti
ae8b1a82e1 BrowserOS-server version bump 2025-11-11 10:20:46 -08:00
shivammittal274
54a1eec83c TKT-68 klavis mcp integrated (#51)
* klavis mcp integrated

* klavis mcp shifted to tools

* Reset codex binary to match main branch

* klavis mcp shifted to tools

* klavis mcp shifted to tools

* klavis mcp shifted to tools
2025-11-11 08:22:12 -08:00
Felarof
6f87bef897 gitignore 2025-11-10 12:48:59 -08:00
Nikhil
dfe53bccdd Better server build (#50)
* env.dev and env.prod separate

* build-script for releease of server
2025-11-06 08:15:09 -08:00
shivammittal274
540573d9da Websocket followup (#49)
* websocket followup added

* websocket followup added
2025-11-06 07:40:49 -08:00
Felarof
b98b3440de Use execute javascript tool sparingly 2025-11-04 17:36:43 -08:00
Nikhil
0787d7b2c5 browseros fixes: loggicodex sdk" (#48)
* fix: LLM config for agent

* logger: make JSON pretty print

* fix: updating logging to be clean and concise
2025-11-04 14:52:45 -08:00
Nikhil Sonti
a23f8d6156 codex bin resolve: check env is first 2025-11-04 14:05:50 -08:00
Nikhil Sonti
e94279da3f update browseros_server version 2025-11-03 17:31:00 -08:00
Nikhil Sonti
40a364f0e5 Rename to BrowserOS agent 2025-11-03 17:29:41 -08:00
Nikhil
cee71da999 BrowserOS server fixes -- execution dir, windows binary fixes (#47)
* patch windows exe to remove bun

* rcedit: windows-server exe

* args: execution-dir added
2025-11-03 17:14:36 -08:00
shivammittal274
94a1b9cc66 [TKT-17] agent prompt updated in sync with codex system prompt (#46)
* agent prompt updated in sync with codex system prompt

* ageny prompt in sycn with codex
2025-11-03 16:07:28 -08:00
Nikhil Sonti
9af3cf9dd7 updates to test-mcp-server script 2025-11-03 12:45:10 -08:00
shivammittal274
601450bf45 extension concurrency limit reduced (#45) 2025-11-03 09:14:59 -08:00
Nikhil Sonti
b67ccdf1fa Merge branch 'main' of https://github.com/browseros-ai/browseros-mcp-server 2025-10-31 16:35:38 -07:00
Nikhil Sonti
00002d9752 controll-ext: add update url 2025-10-31 16:35:33 -07:00
Nikhil Sonti
215241f977 1.0.0.5 - controller-ext release 2025-10-31 15:17:59 -07:00
Nikhil Sonti
13b448a38e update version to 0.0.6 server 2025-10-31 14:19:07 -07:00
Nikhil Sonti
d1dc974b03 update package.json to use correct codex path 2025-10-31 14:18:19 -07:00
Nikhil Sonti
a92052b1ca adding codex binary in third_party/bin 2025-10-31 14:14:47 -07:00
Nikhil
de79845d35 fix: codex sdk format issue (#44) 2025-10-31 14:09:32 -07:00
Nikhil Sonti
5b7ad42d1d controller verison 0.0.0.5 2025-10-31 12:03:47 -07:00
Nikhil Sonti
e43d5b9dec controller verison 0.0.0.4 2025-10-31 11:59:32 -07:00
shivammittal274
efa7fa6adc extensive tests for all remaining tools (#42) 2025-10-31 10:54:12 -07:00
shivammittal274
51ebccc06b extensive tests for navigation, tabs, screenshot, scroll (#41) 2025-10-31 10:53:52 -07:00
shivammittal274
c199f37ec9 mcp tests added for navigation only (#40)
* mcp tests added for navigation only

* browserOs mcp tests fixed
2025-10-31 10:06:22 -07:00
Nikhil
85e99caee2 Codex integration fixes (#43)
* adding resources-dir arg and using that for finding codex binary

* write logs to resource-dir

* handle default executable path for codex

* fix: code-sdk-ts build to have bun

* update to use browseros config

* adding skipGitRepocheck and other configs

* new codex binary integration

* refactor agentConfig

* default eventGaptimeout is 120s

* minor updates

* update env

* fix: gateway gets the config and passes to AgentConfig
2025-10-31 08:19:42 -07:00
Nikhil Sonti
e04417f12a Merge branch 'main' of https://github.com/browseros-ai/browseros-mcp-server 2025-10-30 08:31:22 -07:00
shivammittal274
036b0646b7 tests fixed 2025-10-29 17:17:15 -07:00
shivammittal274
51e304cc56 tests fixed 2025-10-29 17:17:15 -07:00
shivammittal274
5954b980d0 tests fixed 2025-10-29 17:17:15 -07:00
Nikhil Sonti
c06c3203aa fix: package.json build for codex-sdk-ts 2025-10-28 17:22:48 -07:00
Nikhil Sonti
efcee368ed use openai_api_key if present in ev for dev 2025-10-28 14:54:21 -07:00
Nikhil Sonti
c4fc5a6800 fix: integration test 2025-10-28 14:34:25 -07:00
Nikhil Sonti
2f829634ea minor: fix logger in tests/utils.ts 2025-10-28 14:27:28 -07:00
Nikhil Sonti
a9107d415f version: 0.0.5 2025-10-28 13:31:16 -07:00
Nikhil
20501e0531 use browseros gateway in codex (#37)
* log codex execution error

* fix: use browseros gateway in codex

* fix: codex path
2025-10-28 13:01:29 -07:00
shivammittal274
f39760b375 Version handling for controller tools + O4 mini (#36)
* agent fixes

* codex issues fixed

* pulled staging

* pulled staging

* pulled staging

* pulled staging

* pulled staging
2025-10-28 13:01:29 -07:00
Nikhil Sonti
639f4474e2 run prettier on entire repo 2025-10-28 13:01:29 -07:00
Nikhil Sonti
81596dbbbe minor: package.json update 2025-10-28 13:01:29 -07:00
Nikhil Sonti
0af3d161c0 minor: package.json update 2025-10-28 13:01:29 -07:00
shivammittal274
7a77ccd381 agent fixes (#35) 2025-10-28 13:01:29 -07:00
Nikhil Sonti
79f44308d7 build sdk, as bart of dist, start and dev server 2025-10-28 13:01:29 -07:00
shivammittal274
04a161fbd4 args issue (#34) 2025-10-28 13:01:29 -07:00
shivammittal274
33c35b4493 fix: correct Codex MCP server configuration format (#33)
Changed mcp.servers to mcp_servers to match Codex CLI config format.

The Codex CLI expects MCP server configuration to use mcp_servers
(underscore) not mcp.servers (dot) in config.toml. This fixes
programmatic MCP configuration via -c CLI flags.

Changes:
- Use mcp_servers instead of mcp.servers
- Clear global config first with -c mcp_servers={}
- Set individual properties with dotted notation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-28 13:01:29 -07:00
Nikhil Sonti
94e6b33a1c print version 2025-10-28 13:01:29 -07:00
Nikhil Sonti
d8c8683af8 fix: codex path 2025-10-28 13:01:29 -07:00
Nikhil Sonti
009c94c2b1 use API key from config 2025-10-28 13:01:29 -07:00
shivammittal274
4b155d3105 Use codex agent, better interfaces (#30)
* codex agent (replaced with claude)

* codex agent (replaced with claude)

* codex agent (replaced with claude)
2025-10-28 13:01:29 -07:00
shivammittal274
396cee001e codex SDK - Support MCP server (#28)
* codex sdk mcp changes

* codex sdk mcp changes
2025-10-28 13:01:29 -07:00
shivammittal274
2956e51ddb codex SDK - fork (#27) 2025-10-28 13:01:29 -07:00
Nikhil Sonti
a458b962f7 dsiable test runner 2025-10-25 14:53:53 -07:00
Nikhil Sonti
a1e4d2bad0 github branch cleander 2025-10-25 14:52:46 -07:00
Felarof
88d760984a Merge pull request #22 from browseros-ai/heartbeat-claude-processing
heartbeart while claude execution
2025-10-23 17:30:30 -07:00
shivammittal274
10eea222cf heartbeart while claude execution 2025-10-24 05:50:49 +05:30
shivammittal274
9638cca642 heartbeart while claude execution 2025-10-24 05:27:55 +05:30
shivammittal274
031885590e heartbeart while claude execution 2025-10-24 05:19:07 +05:30
Felarof
6174bf82b6 Merge pull request #21 -- better support for extracting text and links
Extraction links
2025-10-23 15:08:59 -07:00
shivammittal274
c2d6b60d7c extraction with new logic 2025-10-24 03:10:19 +05:30
shivammittal274
c90f891b0b Merge branch 'main' of https://github.com/browseros-ai/browseros-server into extraction-links 2025-10-24 02:41:08 +05:30
shivammittal274
24a81ac5ed extraction with new logic 2025-10-24 02:40:11 +05:30
shivammittal274
36bb0247fa controller inactivity issue fixed (#20) 2025-10-23 11:14:11 -07:00
shivammittal274
018b48ff04 controller inactivity issue fixed 2025-10-23 23:12:33 +05:30
Nikhil Sonti
e21a05ac9e BrowserOS Server - 0.0.3 2025-10-22 17:58:44 -07:00
Nikhil
2b3cb86a93 get API key from browseros config (#19) 2025-10-22 17:57:45 -07:00
shivammittal274
007aa91aa4 claude agent prompt updated (#18)
* claude agent prompt updated

* claude agent prompt updated
2025-10-22 16:49:52 -07:00
Nikhil Sonti
1916501a96 fix: bun start to print all logs 2025-10-22 14:35:55 -07:00
Nikhil Sonti
a12366ff99 log requests in mcp and agent 2025-10-22 14:17:28 -07:00
Nikhil
d23f20954d Refactor: BrowserOS + Agent (#17)
* rename PORT to AGENT_PORT

* rename WebsocketManger to ControllerBridge

* update the log info

* fix: rename wsManager to controllerBridge

* update Logger to use common/Logger

* fix: logger, unify and standarize the naming

* remove standalone agent

* rename to controller-based, cdp-based, cleaner imports in main and claude-sdk

* refactor: main.ts

* refactor: .env
2025-10-22 14:10:16 -07:00
Nikhil Sonti
0da0cb4583 updates to env 2025-10-22 08:57:49 -07:00
shivammittal274
7dca217cf6 agent integrated based on mcp+controller (#8) 2025-10-21 14:23:02 -07:00
Nikhil
b879153978 fixes (#14) 2025-10-16 16:48:51 -07:00
Nikhil Sonti
d7707985f7 minor port update 2025-10-16 15:31:19 -07:00
shivammittal274
7e091188f6 BrowserOS controller - Fixes (#13)
* controller fixes

* get page content fixed

* get page content fixed

* get page content fixed
2025-10-16 15:22:09 -07:00
Nikhil Sonti
384ea76dc7 adding icons 2025-10-16 13:45:45 -07:00
Nikhil Sonti
3d0b714f15 update test-mcp-server script 2025-10-16 12:42:24 -07:00
Nikhil Sonti
0f942f619f update CDP tools that are registered 2025-10-16 12:23:25 -07:00
Nikhil Sonti
bb8e85116f remove sidepanel permissions 2025-10-16 12:01:30 -07:00
Nikhil Sonti
25259dc307 controller-ext use port from constant as fallback 2025-10-16 10:46:38 -07:00
Nikhil Sonti
09de761eca update logger, update extenion-port to 9225 2025-10-16 10:43:34 -07:00
shivammittal274
7e8ce4dd96 Controller fixes (#11) 2025-10-16 10:31:46 -07:00
Nikhil
4f0fa2d200 controller-ext production readiness (#12)
* update controller-ext manifest

* add extension-controller build commands in main package.json

* remove controller-ext environments and move to constants

* update package.json build commands

* fix: controller-ext webpack to combine files for production

* webpack: enable console logs for controller-ext for now in prod

* update README
2025-10-16 10:18:59 -07:00
Nikhil Sonti
beae55c98e update bun.lock 2025-10-16 08:55:54 -07:00
Nikhil Sonti
b3fe55c165 Merge branch 'main' of https://github.com/browseros-ai/browseros-mcp-server 2025-10-16 08:55:20 -07:00
Nikhil
c9c2c2bc63 Controller refactoring (#10)
* remove schedule-cleanup as not used

* update test-mcp-server to include extenion-test

* running bun format

* rename controller
2025-10-15 18:35:55 -07:00
Nikhil Sonti
57bf7bc808 Merge branch 'main' of https://github.com/browseros-ai/browseros-mcp-server 2025-10-15 16:25:38 -07:00
Nikhil
1d93ff9e49 MCP server fixes (#9)
* remove schedule-cleanup as not used

* /mcp/control endpoint and prevents requests from non-localhost

* fix: local host detection update
2025-10-15 15:29:15 -07:00
Nikhil Sonti
787eda13e9 Merge branch 'main' of https://github.com/browseros-ai/browseros-mcp-server 2025-10-15 15:18:50 -07:00
Felarof
d65a06b173 Merge pull request #7 - controller extension + controller mcp added
controller extension + controller mcp added
2025-10-15 14:40:35 -07:00
shivammittal274
61958cf412 controller extension + controller mcp added 2025-10-15 23:51:30 +05:30
Nikhil Sonti
ab58e17366 remove schedule-cleanup as not used 2025-10-14 13:45:36 -07:00
Nikhil Sonti
4032751cc7 comment out browserOS process logs 2025-10-14 13:41:50 -07:00
Nikhil Sonti
dea459b9c9 Kill process on HTTP MCP port or CDP port before running the test 2025-10-14 13:39:31 -07:00
Nikhil Sonti
b8f137ba32 remove un-used code 2025-10-14 11:13:00 -07:00
Nikhil Sonti
b4a6de2a50 kill port and clean-up browseros 2025-10-14 11:07:06 -07:00
Nikhil Sonti
85c2e72a4c use browserOS in headless mode 2025-10-14 10:43:23 -07:00
Nikhil
33a73a325b Use browserOS in tests (#6)
* adding agent-port arg and updating test

* fix: commander --help issue

* fix: mcp server package mis-match

* add browseros starting for test

* integrate test added

* fix tests to use BrowserOS
2025-10-13 18:05:33 -07:00
Nikhil Sonti
f843f62bab adding agent-port arg and updating test 2025-10-13 15:52:39 -07:00
Nikhil Sonti
b3ae2223a5 update README 2025-10-13 14:30:23 -07:00
Nikhil
830f372575 New folder structure (#5)
* monorepo: core

* monorepo: tools and server

* mono: repo refactor

* moved tests, removed old files

* update server tests

* agent server location and TBD

* fix formatting

* add new workflows

* rename core to common, mcp-server, to mcp, agent-server to agent

* remove nodejs tests

* test: add simple GitHub Actions workflow for running tests on PR

* test workflow

* feat: add test coverage reporting to GitHub Actions workflow

- Run tests with --coverage flag to generate coverage reports
- Display coverage summary in PR comments
- Upload coverage artifacts for analysis
- Show coverage in GitHub Actions summary

* simple test workflow
2025-10-13 14:19:39 -07:00
Nikhil Sonti
82058568e2 fix: logging 2025-10-11 17:38:49 -07:00
Nikhil Sonti
9bda00613d rename arg to http-mcp-port 2025-10-11 10:26:21 -07:00
Nikhil Sonti
3bf5142861 use commander for args parsing and support disable MCP server 2025-10-11 10:20:34 -07:00
Nikhil Sonti
de6b2bb66d move to 2025-06-18 http streamable 2025-10-11 09:56:05 -07:00
Nikhil Sonti
0ae656d8e4 health check API 2025-10-10 17:21:44 -07:00
Nikhil Sonti
3cdbda157b rename server to http, clean-up main 2025-10-10 17:18:00 -07:00
Nikhil Sonti
a0b0f89ead update bun dist file name 2025-10-10 16:32:15 -07:00
Nikhil Sonti
a39484a92c bun-compile and dist working 2025-10-09 15:47:57 -07:00
Nikhil Sonti
f00275a880 adding CLAUDE.md 2025-10-08 15:30:53 -07:00
Nikhil Sonti
684c977365 converted to bun 2025-10-08 15:25:51 -07:00
Nikhil Sonti
8f7ae168ab cdp connection working 2025-10-08 14:40:13 -07:00
Nikhil Sonti
3aba00b4d8 implement MCP HTTP server 2025-10-08 12:44:13 -07:00
Nikhil Sonti
4712232d0a connect via CDP url 2025-10-08 12:30:14 -07:00
Nikhil Sonti
95bf9a08e7 clean-up 2025-10-08 12:23:45 -07:00
Nikhil Sonti
15323e74d6 args.test.ts 2025-10-08 12:13:42 -07:00
Nikhil Sonti
3902192a41 setting up args for browseros-mcp 2025-10-08 12:08:33 -07:00
Nikhil Sonti
0b984ffac6 clean-up 2025-10-08 10:36:56 -07:00
Nikhil Sonti
ecee96e3e3 base commit 2025-10-08 09:48:48 -07:00
1792 changed files with 238401 additions and 12812 deletions

13
.auctor.json Normal file
View File

@@ -0,0 +1,13 @@
{
"authors": [
"shivammittal274",
"Nikhil Sonti",
"Dani Akash",
"Nikhil",
"Felarof",
"Neel Gupta"
],
"server_url": "http://localhost:3001",
"convex_url": "https://cheery-barracuda-158.convex.cloud",
"repo_url": "/Users/felarof01/Workspaces/build/browseros-main"
}

View File

@@ -0,0 +1,164 @@
---
name: sup-brainstorming
description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation."
---
# Brainstorming Ideas Into Designs
Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.
<HARD-GATE>
Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity.
</HARD-GATE>
## Anti-Pattern: "This Is Too Simple To Need A Design"
Every project goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" projects are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple projects), but you MUST present it and get approval.
## Checklist
You MUST create a task for each of these items and complete them in order:
1. **Explore project context** — check files, docs, recent commits
2. **Offer visual companion** (if topic will involve visual questions) — this is its own message, not combined with a clarifying question. See the Visual Companion section below.
3. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
4. **Propose 2-3 approaches** — with trade-offs and your recommendation
5. **Present design** — in sections scaled to their complexity, get user approval after each section
6. **Write design doc** — save to `.llm/specs/YYYY-MM-DD-<topic>-design.md` and commit
7. **Spec self-review** — quick inline check for placeholders, contradictions, ambiguity, scope (see below)
8. **User reviews written spec** — ask user to review the spec file before proceeding
9. **Transition to implementation** — invoke writing-plans skill to create implementation plan
## Process Flow
```dot
digraph brainstorming {
"Explore project context" [shape=box];
"Visual questions ahead?" [shape=diamond];
"Offer Visual Companion\n(own message, no other content)" [shape=box];
"Ask clarifying questions" [shape=box];
"Propose 2-3 approaches" [shape=box];
"Present design sections" [shape=box];
"User approves design?" [shape=diamond];
"Write design doc" [shape=box];
"Spec self-review\n(fix inline)" [shape=box];
"User reviews spec?" [shape=diamond];
"Invoke writing-plans skill" [shape=doublecircle];
"Explore project context" -> "Visual questions ahead?";
"Visual questions ahead?" -> "Offer Visual Companion\n(own message, no other content)" [label="yes"];
"Visual questions ahead?" -> "Ask clarifying questions" [label="no"];
"Offer Visual Companion\n(own message, no other content)" -> "Ask clarifying questions";
"Ask clarifying questions" -> "Propose 2-3 approaches";
"Propose 2-3 approaches" -> "Present design sections";
"Present design sections" -> "User approves design?";
"User approves design?" -> "Present design sections" [label="no, revise"];
"User approves design?" -> "Write design doc" [label="yes"];
"Write design doc" -> "Spec self-review\n(fix inline)";
"Spec self-review\n(fix inline)" -> "User reviews spec?";
"User reviews spec?" -> "Write design doc" [label="changes requested"];
"User reviews spec?" -> "Invoke writing-plans skill" [label="approved"];
}
```
**The terminal state is invoking writing-plans.** Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans.
## The Process
**Understanding the idea:**
- Check out the current project state first (files, docs, recent commits)
- Before asking detailed questions, assess scope: if the request describes multiple independent subsystems (e.g., "build a platform with chat, file storage, billing, and analytics"), flag this immediately. Don't spend questions refining details of a project that needs to be decomposed first.
- If the project is too large for a single spec, help the user decompose into sub-projects: what are the independent pieces, how do they relate, what order should they be built? Then brainstorm the first sub-project through the normal design flow. Each sub-project gets its own spec → plan → implementation cycle.
- For appropriately-scoped projects, ask questions one at a time to refine the idea
- Prefer multiple choice questions when possible, but open-ended is fine too
- Only one question per message - if a topic needs more exploration, break it into multiple questions
- Focus on understanding: purpose, constraints, success criteria
**Exploring approaches:**
- Propose 2-3 different approaches with trade-offs
- Present options conversationally with your recommendation and reasoning
- Lead with your recommended option and explain why
**Presenting the design:**
- Once you believe you understand what you're building, present the design
- Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
- Ask after each section whether it looks right so far
- Cover: architecture, components, data flow, error handling, testing
- Be ready to go back and clarify if something doesn't make sense
**Design for isolation and clarity:**
- Break the system into smaller units that each have one clear purpose, communicate through well-defined interfaces, and can be understood and tested independently
- For each unit, you should be able to answer: what does it do, how do you use it, and what does it depend on?
- Can someone understand what a unit does without reading its internals? Can you change the internals without breaking consumers? If not, the boundaries need work.
- Smaller, well-bounded units are also easier for you to work with - you reason better about code you can hold in context at once, and your edits are more reliable when files are focused. When a file grows large, that's often a signal that it's doing too much.
**Working in existing codebases:**
- Explore the current structure before proposing changes. Follow existing patterns.
- Where existing code has problems that affect the work (e.g., a file that's grown too large, unclear boundaries, tangled responsibilities), include targeted improvements as part of the design - the way a good developer improves code they're working in.
- Don't propose unrelated refactoring. Stay focused on what serves the current goal.
## After the Design
**Documentation:**
- Write the validated design (spec) to `.llm/specs/YYYY-MM-DD-<topic>-design.md`
- (User preferences for spec location override this default)
- Use elements-of-style:writing-clearly-and-concisely skill if available
- Commit the design document to git
**Spec Self-Review:**
After writing the spec document, look at it with fresh eyes:
1. **Placeholder scan:** Any "TBD", "TODO", incomplete sections, or vague requirements? Fix them.
2. **Internal consistency:** Do any sections contradict each other? Does the architecture match the feature descriptions?
3. **Scope check:** Is this focused enough for a single implementation plan, or does it need decomposition?
4. **Ambiguity check:** Could any requirement be interpreted two different ways? If so, pick one and make it explicit.
Fix any issues inline. No need to re-review — just fix and move on.
**User Review Gate:**
After the spec review loop passes, ask the user to review the written spec before proceeding:
> "Spec written and committed to `<path>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
Wait for the user's response. If they request changes, make them and re-run the spec review loop. Only proceed once the user approves.
**Implementation:**
- Invoke the writing-plans skill to create a detailed implementation plan
- Do NOT invoke any other skill. writing-plans is the next step.
## Key Principles
- **One question at a time** - Don't overwhelm with multiple questions
- **Multiple choice preferred** - Easier to answer than open-ended when possible
- **YAGNI ruthlessly** - Remove unnecessary features from all designs
- **Explore alternatives** - Always propose 2-3 approaches before settling
- **Incremental validation** - Present design, get approval before moving on
- **Be flexible** - Go back and clarify when something doesn't make sense
## Visual Companion
A browser-based companion for showing mockups, diagrams, and visual options during brainstorming. Available as a tool — not a mode. Accepting the companion means it's available for questions that benefit from visual treatment; it does NOT mean every question goes through the browser.
**Offering the companion:** When you anticipate that upcoming questions will involve visual content (mockups, layouts, diagrams), offer it once for consent:
> "Some of what we're working on might be easier to explain if I can show it to you in a web browser. I can put together mockups, diagrams, comparisons, and other visuals as we go. This feature is still new and can be token-intensive. Want to try it? (Requires opening a local URL)"
**This offer MUST be its own message.** Do not combine it with clarifying questions, context summaries, or any other content. The message should contain ONLY the offer above and nothing else. Wait for the user's response before continuing. If they decline, proceed with text-only brainstorming.
**Per-question decision:** Even after the user accepts, decide FOR EACH QUESTION whether to use the browser or the terminal. The test: **would the user understand this better by seeing it than reading it?**
- **Use the browser** for content that IS visual — mockups, wireframes, layout comparisons, architecture diagrams, side-by-side visual designs
- **Use the terminal** for content that is text — requirements questions, conceptual choices, tradeoff lists, A/B/C/D text options, scope decisions
A question about a UI topic is not automatically a visual question. "What does personality mean in this context?" is a conceptual question — use the terminal. "Which wizard layout works better?" is a visual question — use the browser.
If they agree to the companion, read the detailed guide before proceeding:
`skills/brainstorming/visual-companion.md`

View File

@@ -0,0 +1,214 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Superpowers Brainstorming</title>
<style>
/*
* BRAINSTORM COMPANION FRAME TEMPLATE
*
* This template provides a consistent frame with:
* - OS-aware light/dark theming
* - Fixed header and selection indicator bar
* - Scrollable main content area
* - CSS helpers for common UI patterns
*
* Content is injected via placeholder comment in #claude-content.
*/
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
/* ===== THEME VARIABLES ===== */
:root {
--bg-primary: #f5f5f7;
--bg-secondary: #ffffff;
--bg-tertiary: #e5e5e7;
--border: #d1d1d6;
--text-primary: #1d1d1f;
--text-secondary: #86868b;
--text-tertiary: #aeaeb2;
--accent: #0071e3;
--accent-hover: #0077ed;
--success: #34c759;
--warning: #ff9f0a;
--error: #ff3b30;
--selected-bg: #e8f4fd;
--selected-border: #0071e3;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-primary: #1d1d1f;
--bg-secondary: #2d2d2f;
--bg-tertiary: #3d3d3f;
--border: #424245;
--text-primary: #f5f5f7;
--text-secondary: #86868b;
--text-tertiary: #636366;
--accent: #0a84ff;
--accent-hover: #409cff;
--selected-bg: rgba(10, 132, 255, 0.15);
--selected-border: #0a84ff;
}
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
display: flex;
flex-direction: column;
line-height: 1.5;
}
/* ===== FRAME STRUCTURE ===== */
.header {
background: var(--bg-secondary);
padding: 0.5rem 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.header h1 { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.header .status { font-size: 0.7rem; color: var(--success); display: flex; align-items: center; gap: 0.4rem; }
.header .status::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; }
.main { flex: 1; overflow-y: auto; }
#claude-content { padding: 2rem; min-height: 100%; }
.indicator-bar {
background: var(--bg-secondary);
border-top: 1px solid var(--border);
padding: 0.5rem 1.5rem;
flex-shrink: 0;
text-align: center;
}
.indicator-bar span {
font-size: 0.75rem;
color: var(--text-secondary);
}
.indicator-bar .selected-text {
color: var(--accent);
font-weight: 500;
}
/* ===== TYPOGRAPHY ===== */
h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.subtitle { color: var(--text-secondary); margin-bottom: 1.5rem; }
.section { margin-bottom: 2rem; }
.label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
/* ===== OPTIONS (for A/B/C choices) ===== */
.options { display: flex; flex-direction: column; gap: 0.75rem; }
.option {
background: var(--bg-secondary);
border: 2px solid var(--border);
border-radius: 12px;
padding: 1rem 1.25rem;
cursor: pointer;
transition: all 0.15s ease;
display: flex;
align-items: flex-start;
gap: 1rem;
}
.option:hover { border-color: var(--accent); }
.option.selected { background: var(--selected-bg); border-color: var(--selected-border); }
.option .letter {
background: var(--bg-tertiary);
color: var(--text-secondary);
width: 1.75rem; height: 1.75rem;
border-radius: 6px;
display: flex; align-items: center; justify-content: center;
font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
}
.option.selected .letter { background: var(--accent); color: white; }
.option .content { flex: 1; }
.option .content h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.option .content p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }
/* ===== CARDS (for showing designs/mockups) ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.card {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 12px;
overflow: hidden;
cursor: pointer;
transition: all 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.card.selected { border-color: var(--selected-border); border-width: 2px; }
.card-image { background: var(--bg-tertiary); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.card-body { padding: 1rem; }
.card-body h3 { margin-bottom: 0.25rem; }
.card-body p { color: var(--text-secondary); font-size: 0.85rem; }
/* ===== MOCKUP CONTAINER ===== */
.mockup {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 12px;
overflow: hidden;
margin-bottom: 1.5rem;
}
.mockup-header {
background: var(--bg-tertiary);
padding: 0.5rem 1rem;
font-size: 0.75rem;
color: var(--text-secondary);
border-bottom: 1px solid var(--border);
}
.mockup-body { padding: 1.5rem; }
/* ===== SPLIT VIEW (side-by-side comparison) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
/* ===== PROS/CONS ===== */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.pros, .cons { background: var(--bg-secondary); border-radius: 8px; padding: 1rem; }
.pros h4 { color: var(--success); font-size: 0.85rem; margin-bottom: 0.5rem; }
.cons h4 { color: var(--error); font-size: 0.85rem; margin-bottom: 0.5rem; }
.pros ul, .cons ul { margin-left: 1.25rem; font-size: 0.85rem; color: var(--text-secondary); }
.pros li, .cons li { margin-bottom: 0.25rem; }
/* ===== PLACEHOLDER (for mockup areas) ===== */
.placeholder {
background: var(--bg-tertiary);
border: 2px dashed var(--border);
border-radius: 8px;
padding: 2rem;
text-align: center;
color: var(--text-tertiary);
}
/* ===== INLINE MOCKUP ELEMENTS ===== */
.mock-nav { background: var(--accent); color: white; padding: 0.75rem 1rem; display: flex; gap: 1.5rem; font-size: 0.9rem; }
.mock-sidebar { background: var(--bg-tertiary); padding: 1rem; min-width: 180px; }
.mock-content { padding: 1.5rem; flex: 1; }
.mock-button { background: var(--accent); color: white; border: none; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.85rem; }
.mock-input { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem; width: 100%; }
</style>
</head>
<body>
<div class="header">
<h1><a href="https://github.com/obra/superpowers" style="color: inherit; text-decoration: none;">Superpowers Brainstorming</a></h1>
<div class="status">Connected</div>
</div>
<div class="main">
<div id="claude-content">
<!-- CONTENT -->
</div>
</div>
<div class="indicator-bar">
<span id="indicator-text">Click an option above, then return to the terminal</span>
</div>
</body>
</html>

View File

@@ -0,0 +1,88 @@
(function() {
const WS_URL = 'ws://' + window.location.host;
let ws = null;
let eventQueue = [];
function connect() {
ws = new WebSocket(WS_URL);
ws.onopen = () => {
eventQueue.forEach(e => ws.send(JSON.stringify(e)));
eventQueue = [];
};
ws.onmessage = (msg) => {
const data = JSON.parse(msg.data);
if (data.type === 'reload') {
window.location.reload();
}
};
ws.onclose = () => {
setTimeout(connect, 1000);
};
}
function sendEvent(event) {
event.timestamp = Date.now();
if (ws && ws.readyState === WebSocket.OPEN) {
ws.send(JSON.stringify(event));
} else {
eventQueue.push(event);
}
}
// Capture clicks on choice elements
document.addEventListener('click', (e) => {
const target = e.target.closest('[data-choice]');
if (!target) return;
sendEvent({
type: 'click',
text: target.textContent.trim(),
choice: target.dataset.choice,
id: target.id || null
});
// Update indicator bar (defer so toggleSelect runs first)
setTimeout(() => {
const indicator = document.getElementById('indicator-text');
if (!indicator) return;
const container = target.closest('.options') || target.closest('.cards');
const selected = container ? container.querySelectorAll('.selected') : [];
if (selected.length === 0) {
indicator.textContent = 'Click an option above, then return to the terminal';
} else if (selected.length === 1) {
const label = selected[0].querySelector('h3, .content h3, .card-body h3')?.textContent?.trim() || selected[0].dataset.choice;
indicator.innerHTML = '<span class="selected-text">' + label + ' selected</span> — return to terminal to continue';
} else {
indicator.innerHTML = '<span class="selected-text">' + selected.length + ' selected</span> — return to terminal to continue';
}
}, 0);
});
// Frame UI: selection tracking
window.selectedChoice = null;
window.toggleSelect = function(el) {
const container = el.closest('.options') || el.closest('.cards');
const multi = container && container.dataset.multiselect !== undefined;
if (container && !multi) {
container.querySelectorAll('.option, .card').forEach(o => o.classList.remove('selected'));
}
if (multi) {
el.classList.toggle('selected');
} else {
el.classList.add('selected');
}
window.selectedChoice = el.dataset.choice;
};
// Expose API for explicit use
window.brainstorm = {
send: sendEvent,
choice: (value, metadata = {}) => sendEvent({ type: 'choice', value, ...metadata })
};
connect();
})();

View File

@@ -0,0 +1,354 @@
const crypto = require('crypto');
const http = require('http');
const fs = require('fs');
const path = require('path');
// ========== WebSocket Protocol (RFC 6455) ==========
const OPCODES = { TEXT: 0x01, CLOSE: 0x08, PING: 0x09, PONG: 0x0A };
const WS_MAGIC = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';
function computeAcceptKey(clientKey) {
return crypto.createHash('sha1').update(clientKey + WS_MAGIC).digest('base64');
}
function encodeFrame(opcode, payload) {
const fin = 0x80;
const len = payload.length;
let header;
if (len < 126) {
header = Buffer.alloc(2);
header[0] = fin | opcode;
header[1] = len;
} else if (len < 65536) {
header = Buffer.alloc(4);
header[0] = fin | opcode;
header[1] = 126;
header.writeUInt16BE(len, 2);
} else {
header = Buffer.alloc(10);
header[0] = fin | opcode;
header[1] = 127;
header.writeBigUInt64BE(BigInt(len), 2);
}
return Buffer.concat([header, payload]);
}
function decodeFrame(buffer) {
if (buffer.length < 2) return null;
const secondByte = buffer[1];
const opcode = buffer[0] & 0x0F;
const masked = (secondByte & 0x80) !== 0;
let payloadLen = secondByte & 0x7F;
let offset = 2;
if (!masked) throw new Error('Client frames must be masked');
if (payloadLen === 126) {
if (buffer.length < 4) return null;
payloadLen = buffer.readUInt16BE(2);
offset = 4;
} else if (payloadLen === 127) {
if (buffer.length < 10) return null;
payloadLen = Number(buffer.readBigUInt64BE(2));
offset = 10;
}
const maskOffset = offset;
const dataOffset = offset + 4;
const totalLen = dataOffset + payloadLen;
if (buffer.length < totalLen) return null;
const mask = buffer.slice(maskOffset, dataOffset);
const data = Buffer.alloc(payloadLen);
for (let i = 0; i < payloadLen; i++) {
data[i] = buffer[dataOffset + i] ^ mask[i % 4];
}
return { opcode, payload: data, bytesConsumed: totalLen };
}
// ========== Configuration ==========
const PORT = process.env.BRAINSTORM_PORT || (49152 + Math.floor(Math.random() * 16383));
const HOST = process.env.BRAINSTORM_HOST || '127.0.0.1';
const URL_HOST = process.env.BRAINSTORM_URL_HOST || (HOST === '127.0.0.1' ? 'localhost' : HOST);
const SESSION_DIR = process.env.BRAINSTORM_DIR || '/tmp/brainstorm';
const CONTENT_DIR = path.join(SESSION_DIR, 'content');
const STATE_DIR = path.join(SESSION_DIR, 'state');
let ownerPid = process.env.BRAINSTORM_OWNER_PID ? Number(process.env.BRAINSTORM_OWNER_PID) : null;
const MIME_TYPES = {
'.html': 'text/html', '.css': 'text/css', '.js': 'application/javascript',
'.json': 'application/json', '.png': 'image/png', '.jpg': 'image/jpeg',
'.jpeg': 'image/jpeg', '.gif': 'image/gif', '.svg': 'image/svg+xml'
};
// ========== Templates and Constants ==========
const WAITING_PAGE = `<!DOCTYPE html>
<html>
<head><meta charset="utf-8"><title>Brainstorm Companion</title>
<style>body { font-family: system-ui, sans-serif; padding: 2rem; max-width: 800px; margin: 0 auto; }
h1 { color: #333; } p { color: #666; }</style>
</head>
<body><h1>Brainstorm Companion</h1>
<p>Waiting for the agent to push a screen...</p></body></html>`;
const frameTemplate = fs.readFileSync(path.join(__dirname, 'frame-template.html'), 'utf-8');
const helperScript = fs.readFileSync(path.join(__dirname, 'helper.js'), 'utf-8');
const helperInjection = '<script>\n' + helperScript + '\n</script>';
// ========== Helper Functions ==========
function isFullDocument(html) {
const trimmed = html.trimStart().toLowerCase();
return trimmed.startsWith('<!doctype') || trimmed.startsWith('<html');
}
function wrapInFrame(content) {
return frameTemplate.replace('<!-- CONTENT -->', content);
}
function getNewestScreen() {
const files = fs.readdirSync(CONTENT_DIR)
.filter(f => f.endsWith('.html'))
.map(f => {
const fp = path.join(CONTENT_DIR, f);
return { path: fp, mtime: fs.statSync(fp).mtime.getTime() };
})
.sort((a, b) => b.mtime - a.mtime);
return files.length > 0 ? files[0].path : null;
}
// ========== HTTP Request Handler ==========
function handleRequest(req, res) {
touchActivity();
if (req.method === 'GET' && req.url === '/') {
const screenFile = getNewestScreen();
let html = screenFile
? (raw => isFullDocument(raw) ? raw : wrapInFrame(raw))(fs.readFileSync(screenFile, 'utf-8'))
: WAITING_PAGE;
if (html.includes('</body>')) {
html = html.replace('</body>', helperInjection + '\n</body>');
} else {
html += helperInjection;
}
res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
res.end(html);
} else if (req.method === 'GET' && req.url.startsWith('/files/')) {
const fileName = req.url.slice(7);
const filePath = path.join(CONTENT_DIR, path.basename(fileName));
if (!fs.existsSync(filePath)) {
res.writeHead(404);
res.end('Not found');
return;
}
const ext = path.extname(filePath).toLowerCase();
const contentType = MIME_TYPES[ext] || 'application/octet-stream';
res.writeHead(200, { 'Content-Type': contentType });
res.end(fs.readFileSync(filePath));
} else {
res.writeHead(404);
res.end('Not found');
}
}
// ========== WebSocket Connection Handling ==========
const clients = new Set();
function handleUpgrade(req, socket) {
const key = req.headers['sec-websocket-key'];
if (!key) { socket.destroy(); return; }
const accept = computeAcceptKey(key);
socket.write(
'HTTP/1.1 101 Switching Protocols\r\n' +
'Upgrade: websocket\r\n' +
'Connection: Upgrade\r\n' +
'Sec-WebSocket-Accept: ' + accept + '\r\n\r\n'
);
let buffer = Buffer.alloc(0);
clients.add(socket);
socket.on('data', (chunk) => {
buffer = Buffer.concat([buffer, chunk]);
while (buffer.length > 0) {
let result;
try {
result = decodeFrame(buffer);
} catch (e) {
socket.end(encodeFrame(OPCODES.CLOSE, Buffer.alloc(0)));
clients.delete(socket);
return;
}
if (!result) break;
buffer = buffer.slice(result.bytesConsumed);
switch (result.opcode) {
case OPCODES.TEXT:
handleMessage(result.payload.toString());
break;
case OPCODES.CLOSE:
socket.end(encodeFrame(OPCODES.CLOSE, Buffer.alloc(0)));
clients.delete(socket);
return;
case OPCODES.PING:
socket.write(encodeFrame(OPCODES.PONG, result.payload));
break;
case OPCODES.PONG:
break;
default: {
const closeBuf = Buffer.alloc(2);
closeBuf.writeUInt16BE(1003);
socket.end(encodeFrame(OPCODES.CLOSE, closeBuf));
clients.delete(socket);
return;
}
}
}
});
socket.on('close', () => clients.delete(socket));
socket.on('error', () => clients.delete(socket));
}
function handleMessage(text) {
let event;
try {
event = JSON.parse(text);
} catch (e) {
console.error('Failed to parse WebSocket message:', e.message);
return;
}
touchActivity();
console.log(JSON.stringify({ source: 'user-event', ...event }));
if (event.choice) {
const eventsFile = path.join(STATE_DIR, 'events');
fs.appendFileSync(eventsFile, JSON.stringify(event) + '\n');
}
}
function broadcast(msg) {
const frame = encodeFrame(OPCODES.TEXT, Buffer.from(JSON.stringify(msg)));
for (const socket of clients) {
try { socket.write(frame); } catch (e) { clients.delete(socket); }
}
}
// ========== Activity Tracking ==========
const IDLE_TIMEOUT_MS = 30 * 60 * 1000; // 30 minutes
let lastActivity = Date.now();
function touchActivity() {
lastActivity = Date.now();
}
// ========== File Watching ==========
const debounceTimers = new Map();
// ========== Server Startup ==========
function startServer() {
if (!fs.existsSync(CONTENT_DIR)) fs.mkdirSync(CONTENT_DIR, { recursive: true });
if (!fs.existsSync(STATE_DIR)) fs.mkdirSync(STATE_DIR, { recursive: true });
// Track known files to distinguish new screens from updates.
// macOS fs.watch reports 'rename' for both new files and overwrites,
// so we can't rely on eventType alone.
const knownFiles = new Set(
fs.readdirSync(CONTENT_DIR).filter(f => f.endsWith('.html'))
);
const server = http.createServer(handleRequest);
server.on('upgrade', handleUpgrade);
const watcher = fs.watch(CONTENT_DIR, (eventType, filename) => {
if (!filename || !filename.endsWith('.html')) return;
if (debounceTimers.has(filename)) clearTimeout(debounceTimers.get(filename));
debounceTimers.set(filename, setTimeout(() => {
debounceTimers.delete(filename);
const filePath = path.join(CONTENT_DIR, filename);
if (!fs.existsSync(filePath)) return; // file was deleted
touchActivity();
if (!knownFiles.has(filename)) {
knownFiles.add(filename);
const eventsFile = path.join(STATE_DIR, 'events');
if (fs.existsSync(eventsFile)) fs.unlinkSync(eventsFile);
console.log(JSON.stringify({ type: 'screen-added', file: filePath }));
} else {
console.log(JSON.stringify({ type: 'screen-updated', file: filePath }));
}
broadcast({ type: 'reload' });
}, 100));
});
watcher.on('error', (err) => console.error('fs.watch error:', err.message));
function shutdown(reason) {
console.log(JSON.stringify({ type: 'server-stopped', reason }));
const infoFile = path.join(STATE_DIR, 'server-info');
if (fs.existsSync(infoFile)) fs.unlinkSync(infoFile);
fs.writeFileSync(
path.join(STATE_DIR, 'server-stopped'),
JSON.stringify({ reason, timestamp: Date.now() }) + '\n'
);
watcher.close();
clearInterval(lifecycleCheck);
server.close(() => process.exit(0));
}
function ownerAlive() {
if (!ownerPid) return true;
try { process.kill(ownerPid, 0); return true; } catch (e) { return e.code === 'EPERM'; }
}
// Check every 60s: exit if owner process died or idle for 30 minutes
const lifecycleCheck = setInterval(() => {
if (!ownerAlive()) shutdown('owner process exited');
else if (Date.now() - lastActivity > IDLE_TIMEOUT_MS) shutdown('idle timeout');
}, 60 * 1000);
lifecycleCheck.unref();
// Validate owner PID at startup. If it's already dead, the PID resolution
// was wrong (common on WSL, Tailscale SSH, and cross-user scenarios).
// Disable monitoring and rely on the idle timeout instead.
if (ownerPid) {
try { process.kill(ownerPid, 0); }
catch (e) {
if (e.code !== 'EPERM') {
console.log(JSON.stringify({ type: 'owner-pid-invalid', pid: ownerPid, reason: 'dead at startup' }));
ownerPid = null;
}
}
}
server.listen(PORT, HOST, () => {
const info = JSON.stringify({
type: 'server-started', port: Number(PORT), host: HOST,
url_host: URL_HOST, url: 'http://' + URL_HOST + ':' + PORT,
screen_dir: CONTENT_DIR, state_dir: STATE_DIR
});
console.log(info);
fs.writeFileSync(path.join(STATE_DIR, 'server-info'), info + '\n');
});
}
if (require.main === module) {
startServer();
}
module.exports = { computeAcceptKey, encodeFrame, decodeFrame, OPCODES };

View File

@@ -0,0 +1,148 @@
#!/usr/bin/env bash
# Start the brainstorm server and output connection info
# Usage: start-server.sh [--project-dir <path>] [--host <bind-host>] [--url-host <display-host>] [--foreground] [--background]
#
# Starts server on a random high port, outputs JSON with URL.
# Each session gets its own directory to avoid conflicts.
#
# Options:
# --project-dir <path> Store session files under <path>/.superpowers/brainstorm/
# instead of /tmp. Files persist after server stops.
# --host <bind-host> Host/interface to bind (default: 127.0.0.1).
# Use 0.0.0.0 in remote/containerized environments.
# --url-host <host> Hostname shown in returned URL JSON.
# --foreground Run server in the current terminal (no backgrounding).
# --background Force background mode (overrides Codex auto-foreground).
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# Parse arguments
PROJECT_DIR=""
FOREGROUND="false"
FORCE_BACKGROUND="false"
BIND_HOST="127.0.0.1"
URL_HOST=""
while [[ $# -gt 0 ]]; do
case "$1" in
--project-dir)
PROJECT_DIR="$2"
shift 2
;;
--host)
BIND_HOST="$2"
shift 2
;;
--url-host)
URL_HOST="$2"
shift 2
;;
--foreground|--no-daemon)
FOREGROUND="true"
shift
;;
--background|--daemon)
FORCE_BACKGROUND="true"
shift
;;
*)
echo "{\"error\": \"Unknown argument: $1\"}"
exit 1
;;
esac
done
if [[ -z "$URL_HOST" ]]; then
if [[ "$BIND_HOST" == "127.0.0.1" || "$BIND_HOST" == "localhost" ]]; then
URL_HOST="localhost"
else
URL_HOST="$BIND_HOST"
fi
fi
# Some environments reap detached/background processes. Auto-foreground when detected.
if [[ -n "${CODEX_CI:-}" && "$FOREGROUND" != "true" && "$FORCE_BACKGROUND" != "true" ]]; then
FOREGROUND="true"
fi
# Windows/Git Bash reaps nohup background processes. Auto-foreground when detected.
if [[ "$FOREGROUND" != "true" && "$FORCE_BACKGROUND" != "true" ]]; then
case "${OSTYPE:-}" in
msys*|cygwin*|mingw*) FOREGROUND="true" ;;
esac
if [[ -n "${MSYSTEM:-}" ]]; then
FOREGROUND="true"
fi
fi
# Generate unique session directory
SESSION_ID="$$-$(date +%s)"
if [[ -n "$PROJECT_DIR" ]]; then
SESSION_DIR="${PROJECT_DIR}/.superpowers/brainstorm/${SESSION_ID}"
else
SESSION_DIR="/tmp/brainstorm-${SESSION_ID}"
fi
STATE_DIR="${SESSION_DIR}/state"
PID_FILE="${STATE_DIR}/server.pid"
LOG_FILE="${STATE_DIR}/server.log"
# Create fresh session directory with content and state peers
mkdir -p "${SESSION_DIR}/content" "$STATE_DIR"
# Kill any existing server
if [[ -f "$PID_FILE" ]]; then
old_pid=$(cat "$PID_FILE")
kill "$old_pid" 2>/dev/null
rm -f "$PID_FILE"
fi
cd "$SCRIPT_DIR"
# Resolve the harness PID (grandparent of this script).
# $PPID is the ephemeral shell the harness spawned to run us — it dies
# when this script exits. The harness itself is $PPID's parent.
OWNER_PID="$(ps -o ppid= -p "$PPID" 2>/dev/null | tr -d ' ')"
if [[ -z "$OWNER_PID" || "$OWNER_PID" == "1" ]]; then
OWNER_PID="$PPID"
fi
# Foreground mode for environments that reap detached/background processes.
if [[ "$FOREGROUND" == "true" ]]; then
echo "$$" > "$PID_FILE"
env BRAINSTORM_DIR="$SESSION_DIR" BRAINSTORM_HOST="$BIND_HOST" BRAINSTORM_URL_HOST="$URL_HOST" BRAINSTORM_OWNER_PID="$OWNER_PID" node server.cjs
exit $?
fi
# Start server, capturing output to log file
# Use nohup to survive shell exit; disown to remove from job table
nohup env BRAINSTORM_DIR="$SESSION_DIR" BRAINSTORM_HOST="$BIND_HOST" BRAINSTORM_URL_HOST="$URL_HOST" BRAINSTORM_OWNER_PID="$OWNER_PID" node server.cjs > "$LOG_FILE" 2>&1 &
SERVER_PID=$!
disown "$SERVER_PID" 2>/dev/null
echo "$SERVER_PID" > "$PID_FILE"
# Wait for server-started message (check log file)
for i in {1..50}; do
if grep -q "server-started" "$LOG_FILE" 2>/dev/null; then
# Verify server is still alive after a short window (catches process reapers)
alive="true"
for _ in {1..20}; do
if ! kill -0 "$SERVER_PID" 2>/dev/null; then
alive="false"
break
fi
sleep 0.1
done
if [[ "$alive" != "true" ]]; then
echo "{\"error\": \"Server started but was killed. Retry in a persistent terminal with: $SCRIPT_DIR/start-server.sh${PROJECT_DIR:+ --project-dir $PROJECT_DIR} --host $BIND_HOST --url-host $URL_HOST --foreground\"}"
exit 1
fi
grep "server-started" "$LOG_FILE" | head -1
exit 0
fi
sleep 0.1
done
# Timeout - server didn't start
echo '{"error": "Server failed to start within 5 seconds"}'
exit 1

View File

@@ -0,0 +1,56 @@
#!/usr/bin/env bash
# Stop the brainstorm server and clean up
# Usage: stop-server.sh <session_dir>
#
# Kills the server process. Only deletes session directory if it's
# under /tmp (ephemeral). Persistent directories (.superpowers/) are
# kept so mockups can be reviewed later.
SESSION_DIR="$1"
if [[ -z "$SESSION_DIR" ]]; then
echo '{"error": "Usage: stop-server.sh <session_dir>"}'
exit 1
fi
STATE_DIR="${SESSION_DIR}/state"
PID_FILE="${STATE_DIR}/server.pid"
if [[ -f "$PID_FILE" ]]; then
pid=$(cat "$PID_FILE")
# Try to stop gracefully, fallback to force if still alive
kill "$pid" 2>/dev/null || true
# Wait for graceful shutdown (up to ~2s)
for i in {1..20}; do
if ! kill -0 "$pid" 2>/dev/null; then
break
fi
sleep 0.1
done
# If still running, escalate to SIGKILL
if kill -0 "$pid" 2>/dev/null; then
kill -9 "$pid" 2>/dev/null || true
# Give SIGKILL a moment to take effect
sleep 0.1
fi
if kill -0 "$pid" 2>/dev/null; then
echo '{"status": "failed", "error": "process still running"}'
exit 1
fi
rm -f "$PID_FILE" "${STATE_DIR}/server.log"
# Only delete ephemeral /tmp directories
if [[ "$SESSION_DIR" == /tmp/* ]]; then
rm -rf "$SESSION_DIR"
fi
echo '{"status": "stopped"}'
else
echo '{"status": "not_running"}'
fi

View File

@@ -0,0 +1,49 @@
# Spec Document Reviewer Prompt Template
Use this template when dispatching a spec document reviewer subagent.
**Purpose:** Verify the spec is complete, consistent, and ready for implementation planning.
**Dispatch after:** Spec document is written to .llm/specs/
```
Task tool (general-purpose):
description: "Review spec document"
prompt: |
You are a spec document reviewer. Verify this spec is complete and ready for planning.
**Spec to review:** [SPEC_FILE_PATH]
## What to Check
| Category | What to Look For |
|----------|------------------|
| Completeness | TODOs, placeholders, "TBD", incomplete sections |
| Consistency | Internal contradictions, conflicting requirements |
| Clarity | Requirements ambiguous enough to cause someone to build the wrong thing |
| Scope | Focused enough for a single plan — not covering multiple independent subsystems |
| YAGNI | Unrequested features, over-engineering |
## Calibration
**Only flag issues that would cause real problems during implementation planning.**
A missing section, a contradiction, or a requirement so ambiguous it could be
interpreted two different ways — those are issues. Minor wording improvements,
stylistic preferences, and "sections less detailed than others" are not.
Approve unless there are serious gaps that would lead to a flawed plan.
## Output Format
## Spec Review
**Status:** Approved | Issues Found
**Issues (if any):**
- [Section X]: [specific issue] - [why it matters for planning]
**Recommendations (advisory, do not block approval):**
- [suggestions for improvement]
```
**Reviewer returns:** Status, Issues (if any), Recommendations

View File

@@ -0,0 +1,287 @@
# Visual Companion Guide
Browser-based visual brainstorming companion for showing mockups, diagrams, and options.
## When to Use
Decide per-question, not per-session. The test: **would the user understand this better by seeing it than reading it?**
**Use the browser** when the content itself is visual:
- **UI mockups** — wireframes, layouts, navigation structures, component designs
- **Architecture diagrams** — system components, data flow, relationship maps
- **Side-by-side visual comparisons** — comparing two layouts, two color schemes, two design directions
- **Design polish** — when the question is about look and feel, spacing, visual hierarchy
- **Spatial relationships** — state machines, flowcharts, entity relationships rendered as diagrams
**Use the terminal** when the content is text or tabular:
- **Requirements and scope questions** — "what does X mean?", "which features are in scope?"
- **Conceptual A/B/C choices** — picking between approaches described in words
- **Tradeoff lists** — pros/cons, comparison tables
- **Technical decisions** — API design, data modeling, architectural approach selection
- **Clarifying questions** — anything where the answer is words, not a visual preference
A question *about* a UI topic is not automatically a visual question. "What kind of wizard do you want?" is conceptual — use the terminal. "Which of these wizard layouts feels right?" is visual — use the browser.
## How It Works
The server watches a directory for HTML files and serves the newest one to the browser. You write HTML content to `screen_dir`, the user sees it in their browser and can click to select options. Selections are recorded to `state_dir/events` that you read on your next turn.
**Content fragments vs full documents:** If your HTML file starts with `<!DOCTYPE` or `<html`, the server serves it as-is (just injects the helper script). Otherwise, the server automatically wraps your content in the frame template — adding the header, CSS theme, selection indicator, and all interactive infrastructure. **Write content fragments by default.** Only write full documents when you need complete control over the page.
## Starting a Session
```bash
# Start server with persistence (mockups saved to project)
scripts/start-server.sh --project-dir /path/to/project
# Returns: {"type":"server-started","port":52341,"url":"http://localhost:52341",
# "screen_dir":"/path/to/project/.superpowers/brainstorm/12345-1706000000/content",
# "state_dir":"/path/to/project/.superpowers/brainstorm/12345-1706000000/state"}
```
Save `screen_dir` and `state_dir` from the response. Tell user to open the URL.
**Finding connection info:** The server writes its startup JSON to `$STATE_DIR/server-info`. If you launched the server in the background and didn't capture stdout, read that file to get the URL and port. When using `--project-dir`, check `<project>/.superpowers/brainstorm/` for the session directory.
**Note:** Pass the project root as `--project-dir` so mockups persist in `.superpowers/brainstorm/` and survive server restarts. Without it, files go to `/tmp` and get cleaned up. Remind the user to add `.superpowers/` to `.gitignore` if it's not already there.
**Launching the server by platform:**
**Claude Code (macOS / Linux):**
```bash
# Default mode works — the script backgrounds the server itself
scripts/start-server.sh --project-dir /path/to/project
```
**Claude Code (Windows):**
```bash
# Windows auto-detects and uses foreground mode, which blocks the tool call.
# Use run_in_background: true on the Bash tool call so the server survives
# across conversation turns.
scripts/start-server.sh --project-dir /path/to/project
```
When calling this via the Bash tool, set `run_in_background: true`. Then read `$STATE_DIR/server-info` on the next turn to get the URL and port.
**Codex:**
```bash
# Codex reaps background processes. The script auto-detects CODEX_CI and
# switches to foreground mode. Run it normally — no extra flags needed.
scripts/start-server.sh --project-dir /path/to/project
```
**Gemini CLI:**
```bash
# Use --foreground and set is_background: true on your shell tool call
# so the process survives across turns
scripts/start-server.sh --project-dir /path/to/project --foreground
```
**Other environments:** The server must keep running in the background across conversation turns. If your environment reaps detached processes, use `--foreground` and launch the command with your platform's background execution mechanism.
If the URL is unreachable from your browser (common in remote/containerized setups), bind a non-loopback host:
```bash
scripts/start-server.sh \
--project-dir /path/to/project \
--host 0.0.0.0 \
--url-host localhost
```
Use `--url-host` to control what hostname is printed in the returned URL JSON.
## The Loop
1. **Check server is alive**, then **write HTML** to a new file in `screen_dir`:
- Before each write, check that `$STATE_DIR/server-info` exists. If it doesn't (or `$STATE_DIR/server-stopped` exists), the server has shut down — restart it with `start-server.sh` before continuing. The server auto-exits after 30 minutes of inactivity.
- Use semantic filenames: `platform.html`, `visual-style.html`, `layout.html`
- **Never reuse filenames** — each screen gets a fresh file
- Use Write tool — **never use cat/heredoc** (dumps noise into terminal)
- Server automatically serves the newest file
2. **Tell user what to expect and end your turn:**
- Remind them of the URL (every step, not just first)
- Give a brief text summary of what's on screen (e.g., "Showing 3 layout options for the homepage")
- Ask them to respond in the terminal: "Take a look and let me know what you think. Click to select an option if you'd like."
3. **On your next turn** — after the user responds in the terminal:
- Read `$STATE_DIR/events` if it exists — this contains the user's browser interactions (clicks, selections) as JSON lines
- Merge with the user's terminal text to get the full picture
- The terminal message is the primary feedback; `state_dir/events` provides structured interaction data
4. **Iterate or advance** — if feedback changes current screen, write a new file (e.g., `layout-v2.html`). Only move to the next question when the current step is validated.
5. **Unload when returning to terminal** — when the next step doesn't need the browser (e.g., a clarifying question, a tradeoff discussion), push a waiting screen to clear the stale content:
```html
<!-- filename: waiting.html (or waiting-2.html, etc.) -->
<div style="display:flex;align-items:center;justify-content:center;min-height:60vh">
<p class="subtitle">Continuing in terminal...</p>
</div>
```
This prevents the user from staring at a resolved choice while the conversation has moved on. When the next visual question comes up, push a new content file as usual.
6. Repeat until done.
## Writing Content Fragments
Write just the content that goes inside the page. The server wraps it in the frame template automatically (header, theme CSS, selection indicator, and all interactive infrastructure).
**Minimal example:**
```html
<h2>Which layout works better?</h2>
<p class="subtitle">Consider readability and visual hierarchy</p>
<div class="options">
<div class="option" data-choice="a" onclick="toggleSelect(this)">
<div class="letter">A</div>
<div class="content">
<h3>Single Column</h3>
<p>Clean, focused reading experience</p>
</div>
</div>
<div class="option" data-choice="b" onclick="toggleSelect(this)">
<div class="letter">B</div>
<div class="content">
<h3>Two Column</h3>
<p>Sidebar navigation with main content</p>
</div>
</div>
</div>
```
That's it. No `<html>`, no CSS, no `<script>` tags needed. The server provides all of that.
## CSS Classes Available
The frame template provides these CSS classes for your content:
### Options (A/B/C choices)
```html
<div class="options">
<div class="option" data-choice="a" onclick="toggleSelect(this)">
<div class="letter">A</div>
<div class="content">
<h3>Title</h3>
<p>Description</p>
</div>
</div>
</div>
```
**Multi-select:** Add `data-multiselect` to the container to let users select multiple options. Each click toggles the item. The indicator bar shows the count.
```html
<div class="options" data-multiselect>
<!-- same option markup — users can select/deselect multiple -->
</div>
```
### Cards (visual designs)
```html
<div class="cards">
<div class="card" data-choice="design1" onclick="toggleSelect(this)">
<div class="card-image"><!-- mockup content --></div>
<div class="card-body">
<h3>Name</h3>
<p>Description</p>
</div>
</div>
</div>
```
### Mockup container
```html
<div class="mockup">
<div class="mockup-header">Preview: Dashboard Layout</div>
<div class="mockup-body"><!-- your mockup HTML --></div>
</div>
```
### Split view (side-by-side)
```html
<div class="split">
<div class="mockup"><!-- left --></div>
<div class="mockup"><!-- right --></div>
</div>
```
### Pros/Cons
```html
<div class="pros-cons">
<div class="pros"><h4>Pros</h4><ul><li>Benefit</li></ul></div>
<div class="cons"><h4>Cons</h4><ul><li>Drawback</li></ul></div>
</div>
```
### Mock elements (wireframe building blocks)
```html
<div class="mock-nav">Logo | Home | About | Contact</div>
<div style="display: flex;">
<div class="mock-sidebar">Navigation</div>
<div class="mock-content">Main content area</div>
</div>
<button class="mock-button">Action Button</button>
<input class="mock-input" placeholder="Input field">
<div class="placeholder">Placeholder area</div>
```
### Typography and sections
- `h2` — page title
- `h3` — section heading
- `.subtitle` — secondary text below title
- `.section` — content block with bottom margin
- `.label` — small uppercase label text
## Browser Events Format
When the user clicks options in the browser, their interactions are recorded to `$STATE_DIR/events` (one JSON object per line). The file is cleared automatically when you push a new screen.
```jsonl
{"type":"click","choice":"a","text":"Option A - Simple Layout","timestamp":1706000101}
{"type":"click","choice":"c","text":"Option C - Complex Grid","timestamp":1706000108}
{"type":"click","choice":"b","text":"Option B - Hybrid","timestamp":1706000115}
```
The full event stream shows the user's exploration path — they may click multiple options before settling. The last `choice` event is typically the final selection, but the pattern of clicks can reveal hesitation or preferences worth asking about.
If `$STATE_DIR/events` doesn't exist, the user didn't interact with the browser — use only their terminal text.
## Design Tips
- **Scale fidelity to the question** — wireframes for layout, polish for polish questions
- **Explain the question on each page** — "Which layout feels more professional?" not just "Pick one"
- **Iterate before advancing** — if feedback changes current screen, write a new version
- **2-4 options max** per screen
- **Use real content when it matters** — for a photography portfolio, use actual images (Unsplash). Placeholder content obscures design issues.
- **Keep mockups simple** — focus on layout and structure, not pixel-perfect design
## File Naming
- Use semantic names: `platform.html`, `visual-style.html`, `layout.html`
- Never reuse filenames — each screen must be a new file
- For iterations: append version suffix like `layout-v2.html`, `layout-v3.html`
- Server serves newest file by modification time
## Cleaning Up
```bash
scripts/stop-server.sh $SESSION_DIR
```
If the session used `--project-dir`, mockup files persist in `.superpowers/brainstorm/` for later reference. Only `/tmp` sessions get deleted on stop.
## Reference
- Frame template (CSS reference): `scripts/frame-template.html`
- Helper script (client-side): `scripts/helper.js`

View File

@@ -0,0 +1,182 @@
---
name: sup-dispatching-parallel-agents
description: Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
---
# Dispatching Parallel Agents
## Overview
You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
When you have multiple unrelated failures (different test files, different subsystems, different bugs), investigating them sequentially wastes time. Each investigation is independent and can happen in parallel.
**Core principle:** Dispatch one agent per independent problem domain. Let them work concurrently.
## When to Use
```dot
digraph when_to_use {
"Multiple failures?" [shape=diamond];
"Are they independent?" [shape=diamond];
"Single agent investigates all" [shape=box];
"One agent per problem domain" [shape=box];
"Can they work in parallel?" [shape=diamond];
"Sequential agents" [shape=box];
"Parallel dispatch" [shape=box];
"Multiple failures?" -> "Are they independent?" [label="yes"];
"Are they independent?" -> "Single agent investigates all" [label="no - related"];
"Are they independent?" -> "Can they work in parallel?" [label="yes"];
"Can they work in parallel?" -> "Parallel dispatch" [label="yes"];
"Can they work in parallel?" -> "Sequential agents" [label="no - shared state"];
}
```
**Use when:**
- 3+ test files failing with different root causes
- Multiple subsystems broken independently
- Each problem can be understood without context from others
- No shared state between investigations
**Don't use when:**
- Failures are related (fix one might fix others)
- Need to understand full system state
- Agents would interfere with each other
## The Pattern
### 1. Identify Independent Domains
Group failures by what's broken:
- File A tests: Tool approval flow
- File B tests: Batch completion behavior
- File C tests: Abort functionality
Each domain is independent - fixing tool approval doesn't affect abort tests.
### 2. Create Focused Agent Tasks
Each agent gets:
- **Specific scope:** One test file or subsystem
- **Clear goal:** Make these tests pass
- **Constraints:** Don't change other code
- **Expected output:** Summary of what you found and fixed
### 3. Dispatch in Parallel
```typescript
// In Claude Code / AI environment
Task("Fix agent-tool-abort.test.ts failures")
Task("Fix batch-completion-behavior.test.ts failures")
Task("Fix tool-approval-race-conditions.test.ts failures")
// All three run concurrently
```
### 4. Review and Integrate
When agents return:
- Read each summary
- Verify fixes don't conflict
- Run full test suite
- Integrate all changes
## Agent Prompt Structure
Good agent prompts are:
1. **Focused** - One clear problem domain
2. **Self-contained** - All context needed to understand the problem
3. **Specific about output** - What should the agent return?
```markdown
Fix the 3 failing tests in src/agents/agent-tool-abort.test.ts:
1. "should abort tool with partial output capture" - expects 'interrupted at' in message
2. "should handle mixed completed and aborted tools" - fast tool aborted instead of completed
3. "should properly track pendingToolCount" - expects 3 results but gets 0
These are timing/race condition issues. Your task:
1. Read the test file and understand what each test verifies
2. Identify root cause - timing issues or actual bugs?
3. Fix by:
- Replacing arbitrary timeouts with event-based waiting
- Fixing bugs in abort implementation if found
- Adjusting test expectations if testing changed behavior
Do NOT just increase timeouts - find the real issue.
Return: Summary of what you found and what you fixed.
```
## Common Mistakes
**❌ Too broad:** "Fix all the tests" - agent gets lost
**✅ Specific:** "Fix agent-tool-abort.test.ts" - focused scope
**❌ No context:** "Fix the race condition" - agent doesn't know where
**✅ Context:** Paste the error messages and test names
**❌ No constraints:** Agent might refactor everything
**✅ Constraints:** "Do NOT change production code" or "Fix tests only"
**❌ Vague output:** "Fix it" - you don't know what changed
**✅ Specific:** "Return summary of root cause and changes"
## When NOT to Use
**Related failures:** Fixing one might fix others - investigate together first
**Need full context:** Understanding requires seeing entire system
**Exploratory debugging:** You don't know what's broken yet
**Shared state:** Agents would interfere (editing same files, using same resources)
## Real Example from Session
**Scenario:** 6 test failures across 3 files after major refactoring
**Failures:**
- agent-tool-abort.test.ts: 3 failures (timing issues)
- batch-completion-behavior.test.ts: 2 failures (tools not executing)
- tool-approval-race-conditions.test.ts: 1 failure (execution count = 0)
**Decision:** Independent domains - abort logic separate from batch completion separate from race conditions
**Dispatch:**
```
Agent 1 → Fix agent-tool-abort.test.ts
Agent 2 → Fix batch-completion-behavior.test.ts
Agent 3 → Fix tool-approval-race-conditions.test.ts
```
**Results:**
- Agent 1: Replaced timeouts with event-based waiting
- Agent 2: Fixed event structure bug (threadId in wrong place)
- Agent 3: Added wait for async tool execution to complete
**Integration:** All fixes independent, no conflicts, full suite green
**Time saved:** 3 problems solved in parallel vs sequentially
## Key Benefits
1. **Parallelization** - Multiple investigations happen simultaneously
2. **Focus** - Each agent has narrow scope, less context to track
3. **Independence** - Agents don't interfere with each other
4. **Speed** - 3 problems solved in time of 1
## Verification
After agents return:
1. **Review each summary** - Understand what changed
2. **Check for conflicts** - Did agents edit same code?
3. **Run full suite** - Verify all fixes work together
4. **Spot check** - Agents can make systematic errors
## Real-World Impact
From debugging session (2025-10-03):
- 6 failures across 3 files
- 3 agents dispatched in parallel
- All investigations completed concurrently
- All fixes integrated successfully
- Zero conflicts between agent changes

View File

@@ -0,0 +1,70 @@
---
name: sup-executing-plans
description: Use when you have a written implementation plan to execute in a separate session with review checkpoints
---
# Executing Plans
## Overview
Load plan, review critically, execute all tasks, report when complete.
**Announce at start:** "I'm using the executing-plans skill to implement this plan."
**Note:** Tell your human partner that Superpowers works much better with access to subagents. The quality of its work will be significantly higher if run on a platform with subagent support (such as Claude Code or Codex). If subagents are available, use superpowers:subagent-driven-development instead of this skill.
## The Process
### Step 1: Load and Review Plan
1. Read plan file
2. Review critically - identify any questions or concerns about the plan
3. If concerns: Raise them with your human partner before starting
4. If no concerns: Create TodoWrite and proceed
### Step 2: Execute Tasks
For each task:
1. Mark as in_progress
2. Follow each step exactly (plan has bite-sized steps)
3. Run verifications as specified
4. Mark as completed
### Step 3: Complete Development
After all tasks complete and verified:
- Announce: "I'm using the finishing-a-development-branch skill to complete this work."
- **REQUIRED SUB-SKILL:** Use superpowers:finishing-a-development-branch
- Follow that skill to verify tests, present options, execute choice
## When to Stop and Ask for Help
**STOP executing immediately when:**
- Hit a blocker (missing dependency, test fails, instruction unclear)
- Plan has critical gaps preventing starting
- You don't understand an instruction
- Verification fails repeatedly
**Ask for clarification rather than guessing.**
## When to Revisit Earlier Steps
**Return to Review (Step 1) when:**
- Partner updates the plan based on your feedback
- Fundamental approach needs rethinking
**Don't force through blockers** - stop and ask.
## Remember
- Review plan critically first
- Follow plan steps exactly
- Don't skip verifications
- Reference skills when plan says to
- Stop when blocked, don't guess
- Never start implementation on main/master branch without explicit user consent
## Integration
**Required workflow skills:**
- **superpowers:using-git-worktrees** - REQUIRED: Set up isolated workspace before starting
- **superpowers:writing-plans** - Creates the plan this skill executes
- **superpowers:finishing-a-development-branch** - Complete development after all tasks

View File

@@ -0,0 +1,200 @@
---
name: sup-finishing-a-development-branch
description: Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
---
# Finishing a Development Branch
## Overview
Guide completion of development work by presenting clear options and handling chosen workflow.
**Core principle:** Verify tests → Present options → Execute choice → Clean up.
**Announce at start:** "I'm using the finishing-a-development-branch skill to complete this work."
## The Process
### Step 1: Verify Tests
**Before presenting options, verify tests pass:**
```bash
# Run project's test suite
npm test / cargo test / pytest / go test ./...
```
**If tests fail:**
```
Tests failing (<N> failures). Must fix before completing:
[Show failures]
Cannot proceed with merge/PR until tests pass.
```
Stop. Don't proceed to Step 2.
**If tests pass:** Continue to Step 2.
### Step 2: Determine Base Branch
```bash
# Try common base branches
git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null
```
Or ask: "This branch split from main - is that correct?"
### Step 3: Present Options
Present exactly these 4 options:
```
Implementation complete. What would you like to do?
1. Merge back to <base-branch> locally
2. Push and create a Pull Request
3. Keep the branch as-is (I'll handle it later)
4. Discard this work
Which option?
```
**Don't add explanation** - keep options concise.
### Step 4: Execute Choice
#### Option 1: Merge Locally
```bash
# Switch to base branch
git checkout <base-branch>
# Pull latest
git pull
# Merge feature branch
git merge <feature-branch>
# Verify tests on merged result
<test command>
# If tests pass
git branch -d <feature-branch>
```
Then: Cleanup worktree (Step 5)
#### Option 2: Push and Create PR
```bash
# Push branch
git push -u origin <feature-branch>
# Create PR
gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
<2-3 bullets of what changed>
## Test Plan
- [ ] <verification steps>
EOF
)"
```
Then: Cleanup worktree (Step 5)
#### Option 3: Keep As-Is
Report: "Keeping branch <name>. Worktree preserved at <path>."
**Don't cleanup worktree.**
#### Option 4: Discard
**Confirm first:**
```
This will permanently delete:
- Branch <name>
- All commits: <commit-list>
- Worktree at <path>
Type 'discard' to confirm.
```
Wait for exact confirmation.
If confirmed:
```bash
git checkout <base-branch>
git branch -D <feature-branch>
```
Then: Cleanup worktree (Step 5)
### Step 5: Cleanup Worktree
**For Options 1, 2, 4:**
Check if in worktree:
```bash
git worktree list | grep $(git branch --show-current)
```
If yes:
```bash
git worktree remove <worktree-path>
```
**For Option 3:** Keep worktree.
## Quick Reference
| Option | Merge | Push | Keep Worktree | Cleanup Branch |
|--------|-------|------|---------------|----------------|
| 1. Merge locally | ✓ | - | - | ✓ |
| 2. Create PR | - | ✓ | ✓ | - |
| 3. Keep as-is | - | - | ✓ | - |
| 4. Discard | - | - | - | ✓ (force) |
## Common Mistakes
**Skipping test verification**
- **Problem:** Merge broken code, create failing PR
- **Fix:** Always verify tests before offering options
**Open-ended questions**
- **Problem:** "What should I do next?" → ambiguous
- **Fix:** Present exactly 4 structured options
**Automatic worktree cleanup**
- **Problem:** Remove worktree when might need it (Option 2, 3)
- **Fix:** Only cleanup for Options 1 and 4
**No confirmation for discard**
- **Problem:** Accidentally delete work
- **Fix:** Require typed "discard" confirmation
## Red Flags
**Never:**
- Proceed with failing tests
- Merge without verifying tests on result
- Delete work without confirmation
- Force-push without explicit request
**Always:**
- Verify tests before offering options
- Present exactly 4 options
- Get typed confirmation for Option 4
- Clean up worktree for Options 1 & 4 only
## Integration
**Called by:**
- **subagent-driven-development** (Step 7) - After all tasks complete
- **executing-plans** (Step 5) - After all batches complete
**Pairs with:**
- **using-git-worktrees** - Cleans up worktree created by that skill

View File

@@ -0,0 +1,213 @@
---
name: sup-receiving-code-review
description: Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
---
# Code Review Reception
## Overview
Code review requires technical evaluation, not emotional performance.
**Core principle:** Verify before implementing. Ask before assuming. Technical correctness over social comfort.
## The Response Pattern
```
WHEN receiving code review feedback:
1. READ: Complete feedback without reacting
2. UNDERSTAND: Restate requirement in own words (or ask)
3. VERIFY: Check against codebase reality
4. EVALUATE: Technically sound for THIS codebase?
5. RESPOND: Technical acknowledgment or reasoned pushback
6. IMPLEMENT: One item at a time, test each
```
## Forbidden Responses
**NEVER:**
- "You're absolutely right!" (explicit CLAUDE.md violation)
- "Great point!" / "Excellent feedback!" (performative)
- "Let me implement that now" (before verification)
**INSTEAD:**
- Restate the technical requirement
- Ask clarifying questions
- Push back with technical reasoning if wrong
- Just start working (actions > words)
## Handling Unclear Feedback
```
IF any item is unclear:
STOP - do not implement anything yet
ASK for clarification on unclear items
WHY: Items may be related. Partial understanding = wrong implementation.
```
**Example:**
```
your human partner: "Fix 1-6"
You understand 1,2,3,6. Unclear on 4,5.
❌ WRONG: Implement 1,2,3,6 now, ask about 4,5 later
✅ RIGHT: "I understand items 1,2,3,6. Need clarification on 4 and 5 before proceeding."
```
## Source-Specific Handling
### From your human partner
- **Trusted** - implement after understanding
- **Still ask** if scope unclear
- **No performative agreement**
- **Skip to action** or technical acknowledgment
### From External Reviewers
```
BEFORE implementing:
1. Check: Technically correct for THIS codebase?
2. Check: Breaks existing functionality?
3. Check: Reason for current implementation?
4. Check: Works on all platforms/versions?
5. Check: Does reviewer understand full context?
IF suggestion seems wrong:
Push back with technical reasoning
IF can't easily verify:
Say so: "I can't verify this without [X]. Should I [investigate/ask/proceed]?"
IF conflicts with your human partner's prior decisions:
Stop and discuss with your human partner first
```
**your human partner's rule:** "External feedback - be skeptical, but check carefully"
## YAGNI Check for "Professional" Features
```
IF reviewer suggests "implementing properly":
grep codebase for actual usage
IF unused: "This endpoint isn't called. Remove it (YAGNI)?"
IF used: Then implement properly
```
**your human partner's rule:** "You and reviewer both report to me. If we don't need this feature, don't add it."
## Implementation Order
```
FOR multi-item feedback:
1. Clarify anything unclear FIRST
2. Then implement in this order:
- Blocking issues (breaks, security)
- Simple fixes (typos, imports)
- Complex fixes (refactoring, logic)
3. Test each fix individually
4. Verify no regressions
```
## When To Push Back
Push back when:
- Suggestion breaks existing functionality
- Reviewer lacks full context
- Violates YAGNI (unused feature)
- Technically incorrect for this stack
- Legacy/compatibility reasons exist
- Conflicts with your human partner's architectural decisions
**How to push back:**
- Use technical reasoning, not defensiveness
- Ask specific questions
- Reference working tests/code
- Involve your human partner if architectural
**Signal if uncomfortable pushing back out loud:** "Strange things are afoot at the Circle K"
## Acknowledging Correct Feedback
When feedback IS correct:
```
✅ "Fixed. [Brief description of what changed]"
✅ "Good catch - [specific issue]. Fixed in [location]."
✅ [Just fix it and show in the code]
❌ "You're absolutely right!"
❌ "Great point!"
❌ "Thanks for catching that!"
❌ "Thanks for [anything]"
❌ ANY gratitude expression
```
**Why no thanks:** Actions speak. Just fix it. The code itself shows you heard the feedback.
**If you catch yourself about to write "Thanks":** DELETE IT. State the fix instead.
## Gracefully Correcting Your Pushback
If you pushed back and were wrong:
```
✅ "You were right - I checked [X] and it does [Y]. Implementing now."
✅ "Verified this and you're correct. My initial understanding was wrong because [reason]. Fixing."
❌ Long apology
❌ Defending why you pushed back
❌ Over-explaining
```
State the correction factually and move on.
## Common Mistakes
| Mistake | Fix |
|---------|-----|
| Performative agreement | State requirement or just act |
| Blind implementation | Verify against codebase first |
| Batch without testing | One at a time, test each |
| Assuming reviewer is right | Check if breaks things |
| Avoiding pushback | Technical correctness > comfort |
| Partial implementation | Clarify all items first |
| Can't verify, proceed anyway | State limitation, ask for direction |
## Real Examples
**Performative Agreement (Bad):**
```
Reviewer: "Remove legacy code"
❌ "You're absolutely right! Let me remove that..."
```
**Technical Verification (Good):**
```
Reviewer: "Remove legacy code"
✅ "Checking... build target is 10.15+, this API needs 13+. Need legacy for backward compat. Current impl has wrong bundle ID - fix it or drop pre-13 support?"
```
**YAGNI (Good):**
```
Reviewer: "Implement proper metrics tracking with database, date filters, CSV export"
✅ "Grepped codebase - nothing calls this endpoint. Remove it (YAGNI)? Or is there usage I'm missing?"
```
**Unclear Item (Good):**
```
your human partner: "Fix items 1-6"
You understand 1,2,3,6. Unclear on 4,5.
✅ "Understand 1,2,3,6. Need clarification on 4 and 5 before implementing."
```
## GitHub Thread Replies
When replying to inline review comments on GitHub, reply in the comment thread (`gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies`), not as a top-level PR comment.
## The Bottom Line
**External feedback = suggestions to evaluate, not orders to follow.**
Verify. Question. Then implement.
No performative agreement. Technical rigor always.

View File

@@ -0,0 +1,105 @@
---
name: sup-requesting-code-review
description: Use when completing tasks, implementing major features, or before merging to verify work meets requirements
---
# Requesting Code Review
Dispatch superpowers:code-reviewer subagent to catch issues before they cascade. The reviewer gets precisely crafted context for evaluation — never your session's history. This keeps the reviewer focused on the work product, not your thought process, and preserves your own context for continued work.
**Core principle:** Review early, review often.
## When to Request Review
**Mandatory:**
- After each task in subagent-driven development
- After completing major feature
- Before merge to main
**Optional but valuable:**
- When stuck (fresh perspective)
- Before refactoring (baseline check)
- After fixing complex bug
## How to Request
**1. Get git SHAs:**
```bash
BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
HEAD_SHA=$(git rev-parse HEAD)
```
**2. Dispatch code-reviewer subagent:**
Use Task tool with superpowers:code-reviewer type, fill template at `code-reviewer.md`
**Placeholders:**
- `{WHAT_WAS_IMPLEMENTED}` - What you just built
- `{PLAN_OR_REQUIREMENTS}` - What it should do
- `{BASE_SHA}` - Starting commit
- `{HEAD_SHA}` - Ending commit
- `{DESCRIPTION}` - Brief summary
**3. Act on feedback:**
- Fix Critical issues immediately
- Fix Important issues before proceeding
- Note Minor issues for later
- Push back if reviewer is wrong (with reasoning)
## Example
```
[Just completed Task 2: Add verification function]
You: Let me request code review before proceeding.
BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
HEAD_SHA=$(git rev-parse HEAD)
[Dispatch superpowers:code-reviewer subagent]
WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
PLAN_OR_REQUIREMENTS: Task 2 from .llm/plans/deployment-plan.md
BASE_SHA: a7981ec
HEAD_SHA: 3df7661
DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
[Subagent returns]:
Strengths: Clean architecture, real tests
Issues:
Important: Missing progress indicators
Minor: Magic number (100) for reporting interval
Assessment: Ready to proceed
You: [Fix progress indicators]
[Continue to Task 3]
```
## Integration with Workflows
**Subagent-Driven Development:**
- Review after EACH task
- Catch issues before they compound
- Fix before moving to next task
**Executing Plans:**
- Review after each batch (3 tasks)
- Get feedback, apply, continue
**Ad-Hoc Development:**
- Review before merge
- Review when stuck
## Red Flags
**Never:**
- Skip review because "it's simple"
- Ignore Critical issues
- Proceed with unfixed Important issues
- Argue with valid technical feedback
**If reviewer wrong:**
- Push back with technical reasoning
- Show code/tests that prove it works
- Request clarification
See template at: requesting-code-review/code-reviewer.md

View File

@@ -0,0 +1,146 @@
# Code Review Agent
You are reviewing code changes for production readiness.
**Your task:**
1. Review {WHAT_WAS_IMPLEMENTED}
2. Compare against {PLAN_OR_REQUIREMENTS}
3. Check code quality, architecture, testing
4. Categorize issues by severity
5. Assess production readiness
## What Was Implemented
{DESCRIPTION}
## Requirements/Plan
{PLAN_REFERENCE}
## Git Range to Review
**Base:** {BASE_SHA}
**Head:** {HEAD_SHA}
```bash
git diff --stat {BASE_SHA}..{HEAD_SHA}
git diff {BASE_SHA}..{HEAD_SHA}
```
## Review Checklist
**Code Quality:**
- Clean separation of concerns?
- Proper error handling?
- Type safety (if applicable)?
- DRY principle followed?
- Edge cases handled?
**Architecture:**
- Sound design decisions?
- Scalability considerations?
- Performance implications?
- Security concerns?
**Testing:**
- Tests actually test logic (not mocks)?
- Edge cases covered?
- Integration tests where needed?
- All tests passing?
**Requirements:**
- All plan requirements met?
- Implementation matches spec?
- No scope creep?
- Breaking changes documented?
**Production Readiness:**
- Migration strategy (if schema changes)?
- Backward compatibility considered?
- Documentation complete?
- No obvious bugs?
## Output Format
### Strengths
[What's well done? Be specific.]
### Issues
#### Critical (Must Fix)
[Bugs, security issues, data loss risks, broken functionality]
#### Important (Should Fix)
[Architecture problems, missing features, poor error handling, test gaps]
#### Minor (Nice to Have)
[Code style, optimization opportunities, documentation improvements]
**For each issue:**
- File:line reference
- What's wrong
- Why it matters
- How to fix (if not obvious)
### Recommendations
[Improvements for code quality, architecture, or process]
### Assessment
**Ready to merge?** [Yes/No/With fixes]
**Reasoning:** [Technical assessment in 1-2 sentences]
## Critical Rules
**DO:**
- Categorize by actual severity (not everything is Critical)
- Be specific (file:line, not vague)
- Explain WHY issues matter
- Acknowledge strengths
- Give clear verdict
**DON'T:**
- Say "looks good" without checking
- Mark nitpicks as Critical
- Give feedback on code you didn't review
- Be vague ("improve error handling")
- Avoid giving a clear verdict
## Example Output
```
### Strengths
- Clean database schema with proper migrations (db.ts:15-42)
- Comprehensive test coverage (18 tests, all edge cases)
- Good error handling with fallbacks (summarizer.ts:85-92)
### Issues
#### Important
1. **Missing help text in CLI wrapper**
- File: index-conversations:1-31
- Issue: No --help flag, users won't discover --concurrency
- Fix: Add --help case with usage examples
2. **Date validation missing**
- File: search.ts:25-27
- Issue: Invalid dates silently return no results
- Fix: Validate ISO format, throw error with example
#### Minor
1. **Progress indicators**
- File: indexer.ts:130
- Issue: No "X of Y" counter for long operations
- Impact: Users don't know how long to wait
### Recommendations
- Add progress reporting for user experience
- Consider config file for excluded projects (portability)
### Assessment
**Ready to merge: With fixes**
**Reasoning:** Core implementation is solid with good architecture and tests. Important issues (help text, date validation) are easily fixed and don't affect core functionality.
```

View File

@@ -0,0 +1,279 @@
---
name: sup-subagent-driven-development
description: Use when executing implementation plans with independent tasks in the current session
---
# Subagent-Driven Development
Execute plan by dispatching fresh subagent per task, with two-stage review after each: spec compliance review first, then code quality review.
**Why subagents:** You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
**Core principle:** Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration
## When to Use
```dot
digraph when_to_use {
"Have implementation plan?" [shape=diamond];
"Tasks mostly independent?" [shape=diamond];
"Stay in this session?" [shape=diamond];
"subagent-driven-development" [shape=box];
"executing-plans" [shape=box];
"Manual execution or brainstorm first" [shape=box];
"Have implementation plan?" -> "Tasks mostly independent?" [label="yes"];
"Have implementation plan?" -> "Manual execution or brainstorm first" [label="no"];
"Tasks mostly independent?" -> "Stay in this session?" [label="yes"];
"Tasks mostly independent?" -> "Manual execution or brainstorm first" [label="no - tightly coupled"];
"Stay in this session?" -> "subagent-driven-development" [label="yes"];
"Stay in this session?" -> "executing-plans" [label="no - parallel session"];
}
```
**vs. Executing Plans (parallel session):**
- Same session (no context switch)
- Fresh subagent per task (no context pollution)
- Two-stage review after each task: spec compliance first, then code quality
- Faster iteration (no human-in-loop between tasks)
## The Process
```dot
digraph process {
rankdir=TB;
subgraph cluster_per_task {
label="Per Task";
"Dispatch implementer subagent (./implementer-prompt.md)" [shape=box];
"Implementer subagent asks questions?" [shape=diamond];
"Answer questions, provide context" [shape=box];
"Implementer subagent implements, tests, commits, self-reviews" [shape=box];
"Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [shape=box];
"Spec reviewer subagent confirms code matches spec?" [shape=diamond];
"Implementer subagent fixes spec gaps" [shape=box];
"Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [shape=box];
"Code quality reviewer subagent approves?" [shape=diamond];
"Implementer subagent fixes quality issues" [shape=box];
"Mark task complete in TodoWrite" [shape=box];
}
"Read plan, extract all tasks with full text, note context, create TodoWrite" [shape=box];
"More tasks remain?" [shape=diamond];
"Dispatch final code reviewer subagent for entire implementation" [shape=box];
"Use superpowers:finishing-a-development-branch" [shape=box style=filled fillcolor=lightgreen];
"Read plan, extract all tasks with full text, note context, create TodoWrite" -> "Dispatch implementer subagent (./implementer-prompt.md)";
"Dispatch implementer subagent (./implementer-prompt.md)" -> "Implementer subagent asks questions?";
"Implementer subagent asks questions?" -> "Answer questions, provide context" [label="yes"];
"Answer questions, provide context" -> "Dispatch implementer subagent (./implementer-prompt.md)";
"Implementer subagent asks questions?" -> "Implementer subagent implements, tests, commits, self-reviews" [label="no"];
"Implementer subagent implements, tests, commits, self-reviews" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)";
"Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" -> "Spec reviewer subagent confirms code matches spec?";
"Spec reviewer subagent confirms code matches spec?" -> "Implementer subagent fixes spec gaps" [label="no"];
"Implementer subagent fixes spec gaps" -> "Dispatch spec reviewer subagent (./spec-reviewer-prompt.md)" [label="re-review"];
"Spec reviewer subagent confirms code matches spec?" -> "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [label="yes"];
"Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" -> "Code quality reviewer subagent approves?";
"Code quality reviewer subagent approves?" -> "Implementer subagent fixes quality issues" [label="no"];
"Implementer subagent fixes quality issues" -> "Dispatch code quality reviewer subagent (./code-quality-reviewer-prompt.md)" [label="re-review"];
"Code quality reviewer subagent approves?" -> "Mark task complete in TodoWrite" [label="yes"];
"Mark task complete in TodoWrite" -> "More tasks remain?";
"More tasks remain?" -> "Dispatch implementer subagent (./implementer-prompt.md)" [label="yes"];
"More tasks remain?" -> "Dispatch final code reviewer subagent for entire implementation" [label="no"];
"Dispatch final code reviewer subagent for entire implementation" -> "Use superpowers:finishing-a-development-branch";
}
```
## Model Selection
Use `model: "opus"` when spawning implementation subagents via the Agent tool. This ensures subagents have strong reasoning for autonomous code generation.
**Implementation subagents** (all implementation tasks): `model: "opus"`
**Review subagents** (spec compliance, code quality): `model: "opus"`
**Example:**
```
Agent({
subagent_type: "general-purpose",
model: "opus",
prompt: "Implement task #1: ..."
})
```
## Handling Implementer Status
Implementer subagents report one of four statuses. Handle each appropriately:
**DONE:** Proceed to spec compliance review.
**DONE_WITH_CONCERNS:** The implementer completed the work but flagged doubts. Read the concerns before proceeding. If the concerns are about correctness or scope, address them before review. If they're observations (e.g., "this file is getting large"), note them and proceed to review.
**NEEDS_CONTEXT:** The implementer needs information that wasn't provided. Provide the missing context and re-dispatch.
**BLOCKED:** The implementer cannot complete the task. Assess the blocker:
1. If it's a context problem, provide more context and re-dispatch with the same model
2. If the task requires more reasoning, re-dispatch with a more capable model
3. If the task is too large, break it into smaller pieces
4. If the plan itself is wrong, escalate to the human
**Never** ignore an escalation or force the same model to retry without changes. If the implementer said it's stuck, something needs to change.
## Prompt Templates
- `./implementer-prompt.md` - Dispatch implementer subagent
- `./spec-reviewer-prompt.md` - Dispatch spec compliance reviewer subagent
- `./code-quality-reviewer-prompt.md` - Dispatch code quality reviewer subagent
## Example Workflow
```
You: I'm using Subagent-Driven Development to execute this plan.
[Read plan file once: .llm/plans/feature-plan.md]
[Extract all 5 tasks with full text and context]
[Create TodoWrite with all tasks]
Task 1: Hook installation script
[Get Task 1 text and context (already extracted)]
[Dispatch implementation subagent with full task text + context]
Implementer: "Before I begin - should the hook be installed at user or system level?"
You: "User level (~/.config/superpowers/hooks/)"
Implementer: "Got it. Implementing now..."
[Later] Implementer:
- Implemented install-hook command
- Added tests, 5/5 passing
- Self-review: Found I missed --force flag, added it
- Committed
[Dispatch spec compliance reviewer]
Spec reviewer: ✅ Spec compliant - all requirements met, nothing extra
[Get git SHAs, dispatch code quality reviewer]
Code reviewer: Strengths: Good test coverage, clean. Issues: None. Approved.
[Mark Task 1 complete]
Task 2: Recovery modes
[Get Task 2 text and context (already extracted)]
[Dispatch implementation subagent with full task text + context]
Implementer: [No questions, proceeds]
Implementer:
- Added verify/repair modes
- 8/8 tests passing
- Self-review: All good
- Committed
[Dispatch spec compliance reviewer]
Spec reviewer: ❌ Issues:
- Missing: Progress reporting (spec says "report every 100 items")
- Extra: Added --json flag (not requested)
[Implementer fixes issues]
Implementer: Removed --json flag, added progress reporting
[Spec reviewer reviews again]
Spec reviewer: ✅ Spec compliant now
[Dispatch code quality reviewer]
Code reviewer: Strengths: Solid. Issues (Important): Magic number (100)
[Implementer fixes]
Implementer: Extracted PROGRESS_INTERVAL constant
[Code reviewer reviews again]
Code reviewer: ✅ Approved
[Mark Task 2 complete]
...
[After all tasks]
[Dispatch final code-reviewer]
Final reviewer: All requirements met, ready to merge
Done!
```
## Advantages
**vs. Manual execution:**
- Subagents follow TDD naturally
- Fresh context per task (no confusion)
- Parallel-safe (subagents don't interfere)
- Subagent can ask questions (before AND during work)
**vs. Executing Plans:**
- Same session (no handoff)
- Continuous progress (no waiting)
- Review checkpoints automatic
**Efficiency gains:**
- No file reading overhead (controller provides full text)
- Controller curates exactly what context is needed
- Subagent gets complete information upfront
- Questions surfaced before work begins (not after)
**Quality gates:**
- Self-review catches issues before handoff
- Two-stage review: spec compliance, then code quality
- Review loops ensure fixes actually work
- Spec compliance prevents over/under-building
- Code quality ensures implementation is well-built
**Cost:**
- More subagent invocations (implementer + 2 reviewers per task)
- Controller does more prep work (extracting all tasks upfront)
- Review loops add iterations
- But catches issues early (cheaper than debugging later)
## Red Flags
**Never:**
- Start implementation on main/master branch without explicit user consent
- Skip reviews (spec compliance OR code quality)
- Proceed with unfixed issues
- Dispatch multiple implementation subagents in parallel (conflicts)
- Make subagent read plan file (provide full text instead)
- Skip scene-setting context (subagent needs to understand where task fits)
- Ignore subagent questions (answer before letting them proceed)
- Accept "close enough" on spec compliance (spec reviewer found issues = not done)
- Skip review loops (reviewer found issues = implementer fixes = review again)
- Let implementer self-review replace actual review (both are needed)
- **Start code quality review before spec compliance is ✅** (wrong order)
- Move to next task while either review has open issues
**If subagent asks questions:**
- Answer clearly and completely
- Provide additional context if needed
- Don't rush them into implementation
**If reviewer finds issues:**
- Implementer (same subagent) fixes them
- Reviewer reviews again
- Repeat until approved
- Don't skip the re-review
**If subagent fails task:**
- Dispatch fix subagent with specific instructions
- Don't try to fix manually (context pollution)
## Integration
**Required workflow skills:**
- **superpowers:using-git-worktrees** - REQUIRED: Set up isolated workspace before starting
- **superpowers:writing-plans** - Creates the plan this skill executes
- **superpowers:requesting-code-review** - Code review template for reviewer subagents
- **superpowers:finishing-a-development-branch** - Complete development after all tasks
**Subagents should use:**
- **superpowers:test-driven-development** - Subagents follow TDD for each task
**Alternative workflow:**
- **superpowers:executing-plans** - Use for parallel session instead of same-session execution

View File

@@ -0,0 +1,26 @@
# Code Quality Reviewer Prompt Template
Use this template when dispatching a code quality reviewer subagent.
**Purpose:** Verify implementation is well-built (clean, tested, maintainable)
**Only dispatch after spec compliance review passes.**
```
Task tool (superpowers:code-reviewer):
Use template at requesting-code-review/code-reviewer.md
WHAT_WAS_IMPLEMENTED: [from implementer's report]
PLAN_OR_REQUIREMENTS: Task N from [plan-file]
BASE_SHA: [commit before task]
HEAD_SHA: [current commit]
DESCRIPTION: [task summary]
```
**In addition to standard code quality concerns, the reviewer should check:**
- Does each file have one clear responsibility with a well-defined interface?
- Are units decomposed so they can be understood and tested independently?
- Is the implementation following the file structure from the plan?
- Did this implementation create new files that are already large, or significantly grow existing files? (Don't flag pre-existing file sizes — focus on what this change contributed.)
**Code reviewer returns:** Strengths, Issues (Critical/Important/Minor), Assessment

View File

@@ -0,0 +1,113 @@
# Implementer Subagent Prompt Template
Use this template when dispatching an implementer subagent.
```
Task tool (general-purpose):
description: "Implement Task N: [task name]"
prompt: |
You are implementing Task N: [task name]
## Task Description
[FULL TEXT of task from plan - paste it here, don't make subagent read file]
## Context
[Scene-setting: where this fits, dependencies, architectural context]
## Before You Begin
If you have questions about:
- The requirements or acceptance criteria
- The approach or implementation strategy
- Dependencies or assumptions
- Anything unclear in the task description
**Ask them now.** Raise any concerns before starting work.
## Your Job
Once you're clear on requirements:
1. Implement exactly what the task specifies
2. Write tests (following TDD if task says to)
3. Verify implementation works
4. Commit your work
5. Self-review (see below)
6. Report back
Work from: [directory]
**While you work:** If you encounter something unexpected or unclear, **ask questions**.
It's always OK to pause and clarify. Don't guess or make assumptions.
## Code Organization
You reason best about code you can hold in context at once, and your edits are more
reliable when files are focused. Keep this in mind:
- Follow the file structure defined in the plan
- Each file should have one clear responsibility with a well-defined interface
- If a file you're creating is growing beyond the plan's intent, stop and report
it as DONE_WITH_CONCERNS — don't split files on your own without plan guidance
- If an existing file you're modifying is already large or tangled, work carefully
and note it as a concern in your report
- In existing codebases, follow established patterns. Improve code you're touching
the way a good developer would, but don't restructure things outside your task.
## When You're in Over Your Head
It is always OK to stop and say "this is too hard for me." Bad work is worse than
no work. You will not be penalized for escalating.
**STOP and escalate when:**
- The task requires architectural decisions with multiple valid approaches
- You need to understand code beyond what was provided and can't find clarity
- You feel uncertain about whether your approach is correct
- The task involves restructuring existing code in ways the plan didn't anticipate
- You've been reading file after file trying to understand the system without progress
**How to escalate:** Report back with status BLOCKED or NEEDS_CONTEXT. Describe
specifically what you're stuck on, what you've tried, and what kind of help you need.
The controller can provide more context, re-dispatch with a more capable model,
or break the task into smaller pieces.
## Before Reporting Back: Self-Review
Review your work with fresh eyes. Ask yourself:
**Completeness:**
- Did I fully implement everything in the spec?
- Did I miss any requirements?
- Are there edge cases I didn't handle?
**Quality:**
- Is this my best work?
- Are names clear and accurate (match what things do, not how they work)?
- Is the code clean and maintainable?
**Discipline:**
- Did I avoid overbuilding (YAGNI)?
- Did I only build what was requested?
- Did I follow existing patterns in the codebase?
**Testing:**
- Do tests actually verify behavior (not just mock behavior)?
- Did I follow TDD if required?
- Are tests comprehensive?
If you find issues during self-review, fix them now before reporting.
## Report Format
When done, report:
- **Status:** DONE | DONE_WITH_CONCERNS | BLOCKED | NEEDS_CONTEXT
- What you implemented (or what you attempted, if blocked)
- What you tested and test results
- Files changed
- Self-review findings (if any)
- Any issues or concerns
Use DONE_WITH_CONCERNS if you completed the work but have doubts about correctness.
Use BLOCKED if you cannot complete the task. Use NEEDS_CONTEXT if you need
information that wasn't provided. Never silently produce work you're unsure about.
```

View File

@@ -0,0 +1,61 @@
# Spec Compliance Reviewer Prompt Template
Use this template when dispatching a spec compliance reviewer subagent.
**Purpose:** Verify implementer built what was requested (nothing more, nothing less)
```
Task tool (general-purpose):
description: "Review spec compliance for Task N"
prompt: |
You are reviewing whether an implementation matches its specification.
## What Was Requested
[FULL TEXT of task requirements]
## What Implementer Claims They Built
[From implementer's report]
## CRITICAL: Do Not Trust the Report
The implementer finished suspiciously quickly. Their report may be incomplete,
inaccurate, or optimistic. You MUST verify everything independently.
**DO NOT:**
- Take their word for what they implemented
- Trust their claims about completeness
- Accept their interpretation of requirements
**DO:**
- Read the actual code they wrote
- Compare actual implementation to requirements line by line
- Check for missing pieces they claimed to implement
- Look for extra features they didn't mention
## Your Job
Read the implementation code and verify:
**Missing requirements:**
- Did they implement everything that was requested?
- Are there requirements they skipped or missed?
- Did they claim something works but didn't actually implement it?
**Extra/unneeded work:**
- Did they build things that weren't requested?
- Did they over-engineer or add unnecessary features?
- Did they add "nice to haves" that weren't in spec?
**Misunderstandings:**
- Did they interpret requirements differently than intended?
- Did they solve the wrong problem?
- Did they implement the right feature but wrong way?
**Verify by reading code, not by trusting report.**
Report:
- ✅ Spec compliant (if everything matches after code inspection)
- ❌ Issues found: [list specifically what's missing or extra, with file:line references]
```

View File

@@ -0,0 +1,119 @@
# Creation Log: Systematic Debugging Skill
Reference example of extracting, structuring, and bulletproofing a critical skill.
## Source Material
Extracted debugging framework from `/Users/jesse/.claude/CLAUDE.md`:
- 4-phase systematic process (Investigation → Pattern Analysis → Hypothesis → Implementation)
- Core mandate: ALWAYS find root cause, NEVER fix symptoms
- Rules designed to resist time pressure and rationalization
## Extraction Decisions
**What to include:**
- Complete 4-phase framework with all rules
- Anti-shortcuts ("NEVER fix symptom", "STOP and re-analyze")
- Pressure-resistant language ("even if faster", "even if I seem in a hurry")
- Concrete steps for each phase
**What to leave out:**
- Project-specific context
- Repetitive variations of same rule
- Narrative explanations (condensed to principles)
## Structure Following skill-creation/SKILL.md
1. **Rich when_to_use** - Included symptoms and anti-patterns
2. **Type: technique** - Concrete process with steps
3. **Keywords** - "root cause", "symptom", "workaround", "debugging", "investigation"
4. **Flowchart** - Decision point for "fix failed" → re-analyze vs add more fixes
5. **Phase-by-phase breakdown** - Scannable checklist format
6. **Anti-patterns section** - What NOT to do (critical for this skill)
## Bulletproofing Elements
Framework designed to resist rationalization under pressure:
### Language Choices
- "ALWAYS" / "NEVER" (not "should" / "try to")
- "even if faster" / "even if I seem in a hurry"
- "STOP and re-analyze" (explicit pause)
- "Don't skip past" (catches the actual behavior)
### Structural Defenses
- **Phase 1 required** - Can't skip to implementation
- **Single hypothesis rule** - Forces thinking, prevents shotgun fixes
- **Explicit failure mode** - "IF your first fix doesn't work" with mandatory action
- **Anti-patterns section** - Shows exactly what shortcuts look like
### Redundancy
- Root cause mandate in overview + when_to_use + Phase 1 + implementation rules
- "NEVER fix symptom" appears 4 times in different contexts
- Each phase has explicit "don't skip" guidance
## Testing Approach
Created 4 validation tests following skills/meta/testing-skills-with-subagents:
### Test 1: Academic Context (No Pressure)
- Simple bug, no time pressure
- **Result:** Perfect compliance, complete investigation
### Test 2: Time Pressure + Obvious Quick Fix
- User "in a hurry", symptom fix looks easy
- **Result:** Resisted shortcut, followed full process, found real root cause
### Test 3: Complex System + Uncertainty
- Multi-layer failure, unclear if can find root cause
- **Result:** Systematic investigation, traced through all layers, found source
### Test 4: Failed First Fix
- Hypothesis doesn't work, temptation to add more fixes
- **Result:** Stopped, re-analyzed, formed new hypothesis (no shotgun)
**All tests passed.** No rationalizations found.
## Iterations
### Initial Version
- Complete 4-phase framework
- Anti-patterns section
- Flowchart for "fix failed" decision
### Enhancement 1: TDD Reference
- Added link to skills/testing/test-driven-development
- Note explaining TDD's "simplest code" ≠ debugging's "root cause"
- Prevents confusion between methodologies
## Final Outcome
Bulletproof skill that:
- ✅ Clearly mandates root cause investigation
- ✅ Resists time pressure rationalization
- ✅ Provides concrete steps for each phase
- ✅ Shows anti-patterns explicitly
- ✅ Tested under multiple pressure scenarios
- ✅ Clarifies relationship to TDD
- ✅ Ready for use
## Key Insight
**Most important bulletproofing:** Anti-patterns section showing exact shortcuts that feel justified in the moment. When Claude thinks "I'll just add this one quick fix", seeing that exact pattern listed as wrong creates cognitive friction.
## Usage Example
When encountering a bug:
1. Load skill: skills/debugging/systematic-debugging
2. Read overview (10 sec) - reminded of mandate
3. Follow Phase 1 checklist - forced investigation
4. If tempted to skip - see anti-pattern, stop
5. Complete all phases - root cause found
**Time investment:** 5-10 minutes
**Time saved:** Hours of symptom-whack-a-mole
---
*Created: 2025-10-03*
*Purpose: Reference example for skill extraction and bulletproofing*

View File

@@ -0,0 +1,296 @@
---
name: sup-systematic-debugging
description: Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
---
# Systematic Debugging
## Overview
Random fixes waste time and create new bugs. Quick patches mask underlying issues.
**Core principle:** ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
**Violating the letter of this process is violating the spirit of debugging.**
## The Iron Law
```
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
```
If you haven't completed Phase 1, you cannot propose fixes.
## When to Use
Use for ANY technical issue:
- Test failures
- Bugs in production
- Unexpected behavior
- Performance problems
- Build failures
- Integration issues
**Use this ESPECIALLY when:**
- Under time pressure (emergencies make guessing tempting)
- "Just one quick fix" seems obvious
- You've already tried multiple fixes
- Previous fix didn't work
- You don't fully understand the issue
**Don't skip when:**
- Issue seems simple (simple bugs have root causes too)
- You're in a hurry (rushing guarantees rework)
- Manager wants it fixed NOW (systematic is faster than thrashing)
## The Four Phases
You MUST complete each phase before proceeding to the next.
### Phase 1: Root Cause Investigation
**BEFORE attempting ANY fix:**
1. **Read Error Messages Carefully**
- Don't skip past errors or warnings
- They often contain the exact solution
- Read stack traces completely
- Note line numbers, file paths, error codes
2. **Reproduce Consistently**
- Can you trigger it reliably?
- What are the exact steps?
- Does it happen every time?
- If not reproducible → gather more data, don't guess
3. **Check Recent Changes**
- What changed that could cause this?
- Git diff, recent commits
- New dependencies, config changes
- Environmental differences
4. **Gather Evidence in Multi-Component Systems**
**WHEN system has multiple components (CI → build → signing, API → service → database):**
**BEFORE proposing fixes, add diagnostic instrumentation:**
```
For EACH component boundary:
- Log what data enters component
- Log what data exits component
- Verify environment/config propagation
- Check state at each layer
Run once to gather evidence showing WHERE it breaks
THEN analyze evidence to identify failing component
THEN investigate that specific component
```
**Example (multi-layer system):**
```bash
# Layer 1: Workflow
echo "=== Secrets available in workflow: ==="
echo "IDENTITY: ${IDENTITY:+SET}${IDENTITY:-UNSET}"
# Layer 2: Build script
echo "=== Env vars in build script: ==="
env | grep IDENTITY || echo "IDENTITY not in environment"
# Layer 3: Signing script
echo "=== Keychain state: ==="
security list-keychains
security find-identity -v
# Layer 4: Actual signing
codesign --sign "$IDENTITY" --verbose=4 "$APP"
```
**This reveals:** Which layer fails (secrets → workflow ✓, workflow → build ✗)
5. **Trace Data Flow**
**WHEN error is deep in call stack:**
See `root-cause-tracing.md` in this directory for the complete backward tracing technique.
**Quick version:**
- Where does bad value originate?
- What called this with bad value?
- Keep tracing up until you find the source
- Fix at source, not at symptom
### Phase 2: Pattern Analysis
**Find the pattern before fixing:**
1. **Find Working Examples**
- Locate similar working code in same codebase
- What works that's similar to what's broken?
2. **Compare Against References**
- If implementing pattern, read reference implementation COMPLETELY
- Don't skim - read every line
- Understand the pattern fully before applying
3. **Identify Differences**
- What's different between working and broken?
- List every difference, however small
- Don't assume "that can't matter"
4. **Understand Dependencies**
- What other components does this need?
- What settings, config, environment?
- What assumptions does it make?
### Phase 3: Hypothesis and Testing
**Scientific method:**
1. **Form Single Hypothesis**
- State clearly: "I think X is the root cause because Y"
- Write it down
- Be specific, not vague
2. **Test Minimally**
- Make the SMALLEST possible change to test hypothesis
- One variable at a time
- Don't fix multiple things at once
3. **Verify Before Continuing**
- Did it work? Yes → Phase 4
- Didn't work? Form NEW hypothesis
- DON'T add more fixes on top
4. **When You Don't Know**
- Say "I don't understand X"
- Don't pretend to know
- Ask for help
- Research more
### Phase 4: Implementation
**Fix the root cause, not the symptom:**
1. **Create Failing Test Case**
- Simplest possible reproduction
- Automated test if possible
- One-off test script if no framework
- MUST have before fixing
- Use the `superpowers:test-driven-development` skill for writing proper failing tests
2. **Implement Single Fix**
- Address the root cause identified
- ONE change at a time
- No "while I'm here" improvements
- No bundled refactoring
3. **Verify Fix**
- Test passes now?
- No other tests broken?
- Issue actually resolved?
4. **If Fix Doesn't Work**
- STOP
- Count: How many fixes have you tried?
- If < 3: Return to Phase 1, re-analyze with new information
- **If ≥ 3: STOP and question the architecture (step 5 below)**
- DON'T attempt Fix #4 without architectural discussion
5. **If 3+ Fixes Failed: Question Architecture**
**Pattern indicating architectural problem:**
- Each fix reveals new shared state/coupling/problem in different place
- Fixes require "massive refactoring" to implement
- Each fix creates new symptoms elsewhere
**STOP and question fundamentals:**
- Is this pattern fundamentally sound?
- Are we "sticking with it through sheer inertia"?
- Should we refactor architecture vs. continue fixing symptoms?
**Discuss with your human partner before attempting more fixes**
This is NOT a failed hypothesis - this is a wrong architecture.
## Red Flags - STOP and Follow Process
If you catch yourself thinking:
- "Quick fix for now, investigate later"
- "Just try changing X and see if it works"
- "Add multiple changes, run tests"
- "Skip the test, I'll manually verify"
- "It's probably X, let me fix that"
- "I don't fully understand but this might work"
- "Pattern says X but I'll adapt it differently"
- "Here are the main problems: [lists fixes without investigation]"
- Proposing solutions before tracing data flow
- **"One more fix attempt" (when already tried 2+)**
- **Each fix reveals new problem in different place**
**ALL of these mean: STOP. Return to Phase 1.**
**If 3+ fixes failed:** Question the architecture (see Phase 4.5)
## your human partner's Signals You're Doing It Wrong
**Watch for these redirections:**
- "Is that not happening?" - You assumed without verifying
- "Will it show us...?" - You should have added evidence gathering
- "Stop guessing" - You're proposing fixes without understanding
- "Ultrathink this" - Question fundamentals, not just symptoms
- "We're stuck?" (frustrated) - Your approach isn't working
**When you see these:** STOP. Return to Phase 1.
## Common Rationalizations
| Excuse | Reality |
|--------|---------|
| "Issue is simple, don't need process" | Simple issues have root causes too. Process is fast for simple bugs. |
| "Emergency, no time for process" | Systematic debugging is FASTER than guess-and-check thrashing. |
| "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
| "I'll write test after confirming fix works" | Untested fixes don't stick. Test first proves it. |
| "Multiple fixes at once saves time" | Can't isolate what worked. Causes new bugs. |
| "Reference too long, I'll adapt the pattern" | Partial understanding guarantees bugs. Read it completely. |
| "I see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. |
| "One more fix attempt" (after 2+ failures) | 3+ failures = architectural problem. Question pattern, don't fix again. |
## Quick Reference
| Phase | Key Activities | Success Criteria |
|-------|---------------|------------------|
| **1. Root Cause** | Read errors, reproduce, check changes, gather evidence | Understand WHAT and WHY |
| **2. Pattern** | Find working examples, compare | Identify differences |
| **3. Hypothesis** | Form theory, test minimally | Confirmed or new hypothesis |
| **4. Implementation** | Create test, fix, verify | Bug resolved, tests pass |
## When Process Reveals "No Root Cause"
If systematic investigation reveals issue is truly environmental, timing-dependent, or external:
1. You've completed the process
2. Document what you investigated
3. Implement appropriate handling (retry, timeout, error message)
4. Add monitoring/logging for future investigation
**But:** 95% of "no root cause" cases are incomplete investigation.
## Supporting Techniques
These techniques are part of systematic debugging and available in this directory:
- **`root-cause-tracing.md`** - Trace bugs backward through call stack to find original trigger
- **`defense-in-depth.md`** - Add validation at multiple layers after finding root cause
- **`condition-based-waiting.md`** - Replace arbitrary timeouts with condition polling
**Related skills:**
- **superpowers:test-driven-development** - For creating failing test case (Phase 4, Step 1)
- **superpowers:verification-before-completion** - Verify fix worked before claiming success
## Real-World Impact
From debugging sessions:
- Systematic approach: 15-30 minutes to fix
- Random fixes approach: 2-3 hours of thrashing
- First-time fix rate: 95% vs 40%
- New bugs introduced: Near zero vs common

View File

@@ -0,0 +1,158 @@
// Complete implementation of condition-based waiting utilities
// From: Lace test infrastructure improvements (2025-10-03)
// Context: Fixed 15 flaky tests by replacing arbitrary timeouts
import type { ThreadManager } from '~/threads/thread-manager';
import type { LaceEvent, LaceEventType } from '~/threads/types';
/**
* Wait for a specific event type to appear in thread
*
* @param threadManager - The thread manager to query
* @param threadId - Thread to check for events
* @param eventType - Type of event to wait for
* @param timeoutMs - Maximum time to wait (default 5000ms)
* @returns Promise resolving to the first matching event
*
* Example:
* await waitForEvent(threadManager, agentThreadId, 'TOOL_RESULT');
*/
export function waitForEvent(
threadManager: ThreadManager,
threadId: string,
eventType: LaceEventType,
timeoutMs = 5000
): Promise<LaceEvent> {
return new Promise((resolve, reject) => {
const startTime = Date.now();
const check = () => {
const events = threadManager.getEvents(threadId);
const event = events.find((e) => e.type === eventType);
if (event) {
resolve(event);
} else if (Date.now() - startTime > timeoutMs) {
reject(new Error(`Timeout waiting for ${eventType} event after ${timeoutMs}ms`));
} else {
setTimeout(check, 10); // Poll every 10ms for efficiency
}
};
check();
});
}
/**
* Wait for a specific number of events of a given type
*
* @param threadManager - The thread manager to query
* @param threadId - Thread to check for events
* @param eventType - Type of event to wait for
* @param count - Number of events to wait for
* @param timeoutMs - Maximum time to wait (default 5000ms)
* @returns Promise resolving to all matching events once count is reached
*
* Example:
* // Wait for 2 AGENT_MESSAGE events (initial response + continuation)
* await waitForEventCount(threadManager, agentThreadId, 'AGENT_MESSAGE', 2);
*/
export function waitForEventCount(
threadManager: ThreadManager,
threadId: string,
eventType: LaceEventType,
count: number,
timeoutMs = 5000
): Promise<LaceEvent[]> {
return new Promise((resolve, reject) => {
const startTime = Date.now();
const check = () => {
const events = threadManager.getEvents(threadId);
const matchingEvents = events.filter((e) => e.type === eventType);
if (matchingEvents.length >= count) {
resolve(matchingEvents);
} else if (Date.now() - startTime > timeoutMs) {
reject(
new Error(
`Timeout waiting for ${count} ${eventType} events after ${timeoutMs}ms (got ${matchingEvents.length})`
)
);
} else {
setTimeout(check, 10);
}
};
check();
});
}
/**
* Wait for an event matching a custom predicate
* Useful when you need to check event data, not just type
*
* @param threadManager - The thread manager to query
* @param threadId - Thread to check for events
* @param predicate - Function that returns true when event matches
* @param description - Human-readable description for error messages
* @param timeoutMs - Maximum time to wait (default 5000ms)
* @returns Promise resolving to the first matching event
*
* Example:
* // Wait for TOOL_RESULT with specific ID
* await waitForEventMatch(
* threadManager,
* agentThreadId,
* (e) => e.type === 'TOOL_RESULT' && e.data.id === 'call_123',
* 'TOOL_RESULT with id=call_123'
* );
*/
export function waitForEventMatch(
threadManager: ThreadManager,
threadId: string,
predicate: (event: LaceEvent) => boolean,
description: string,
timeoutMs = 5000
): Promise<LaceEvent> {
return new Promise((resolve, reject) => {
const startTime = Date.now();
const check = () => {
const events = threadManager.getEvents(threadId);
const event = events.find(predicate);
if (event) {
resolve(event);
} else if (Date.now() - startTime > timeoutMs) {
reject(new Error(`Timeout waiting for ${description} after ${timeoutMs}ms`));
} else {
setTimeout(check, 10);
}
};
check();
});
}
// Usage example from actual debugging session:
//
// BEFORE (flaky):
// ---------------
// const messagePromise = agent.sendMessage('Execute tools');
// await new Promise(r => setTimeout(r, 300)); // Hope tools start in 300ms
// agent.abort();
// await messagePromise;
// await new Promise(r => setTimeout(r, 50)); // Hope results arrive in 50ms
// expect(toolResults.length).toBe(2); // Fails randomly
//
// AFTER (reliable):
// ----------------
// const messagePromise = agent.sendMessage('Execute tools');
// await waitForEventCount(threadManager, threadId, 'TOOL_CALL', 2); // Wait for tools to start
// agent.abort();
// await messagePromise;
// await waitForEventCount(threadManager, threadId, 'TOOL_RESULT', 2); // Wait for results
// expect(toolResults.length).toBe(2); // Always succeeds
//
// Result: 60% pass rate → 100%, 40% faster execution

View File

@@ -0,0 +1,115 @@
# Condition-Based Waiting
## Overview
Flaky tests often guess at timing with arbitrary delays. This creates race conditions where tests pass on fast machines but fail under load or in CI.
**Core principle:** Wait for the actual condition you care about, not a guess about how long it takes.
## When to Use
```dot
digraph when_to_use {
"Test uses setTimeout/sleep?" [shape=diamond];
"Testing timing behavior?" [shape=diamond];
"Document WHY timeout needed" [shape=box];
"Use condition-based waiting" [shape=box];
"Test uses setTimeout/sleep?" -> "Testing timing behavior?" [label="yes"];
"Testing timing behavior?" -> "Document WHY timeout needed" [label="yes"];
"Testing timing behavior?" -> "Use condition-based waiting" [label="no"];
}
```
**Use when:**
- Tests have arbitrary delays (`setTimeout`, `sleep`, `time.sleep()`)
- Tests are flaky (pass sometimes, fail under load)
- Tests timeout when run in parallel
- Waiting for async operations to complete
**Don't use when:**
- Testing actual timing behavior (debounce, throttle intervals)
- Always document WHY if using arbitrary timeout
## Core Pattern
```typescript
// ❌ BEFORE: Guessing at timing
await new Promise(r => setTimeout(r, 50));
const result = getResult();
expect(result).toBeDefined();
// ✅ AFTER: Waiting for condition
await waitFor(() => getResult() !== undefined);
const result = getResult();
expect(result).toBeDefined();
```
## Quick Patterns
| Scenario | Pattern |
|----------|---------|
| Wait for event | `waitFor(() => events.find(e => e.type === 'DONE'))` |
| Wait for state | `waitFor(() => machine.state === 'ready')` |
| Wait for count | `waitFor(() => items.length >= 5)` |
| Wait for file | `waitFor(() => fs.existsSync(path))` |
| Complex condition | `waitFor(() => obj.ready && obj.value > 10)` |
## Implementation
Generic polling function:
```typescript
async function waitFor<T>(
condition: () => T | undefined | null | false,
description: string,
timeoutMs = 5000
): Promise<T> {
const startTime = Date.now();
while (true) {
const result = condition();
if (result) return result;
if (Date.now() - startTime > timeoutMs) {
throw new Error(`Timeout waiting for ${description} after ${timeoutMs}ms`);
}
await new Promise(r => setTimeout(r, 10)); // Poll every 10ms
}
}
```
See `condition-based-waiting-example.ts` in this directory for complete implementation with domain-specific helpers (`waitForEvent`, `waitForEventCount`, `waitForEventMatch`) from actual debugging session.
## Common Mistakes
**❌ Polling too fast:** `setTimeout(check, 1)` - wastes CPU
**✅ Fix:** Poll every 10ms
**❌ No timeout:** Loop forever if condition never met
**✅ Fix:** Always include timeout with clear error
**❌ Stale data:** Cache state before loop
**✅ Fix:** Call getter inside loop for fresh data
## When Arbitrary Timeout IS Correct
```typescript
// Tool ticks every 100ms - need 2 ticks to verify partial output
await waitForEvent(manager, 'TOOL_STARTED'); // First: wait for condition
await new Promise(r => setTimeout(r, 200)); // Then: wait for timed behavior
// 200ms = 2 ticks at 100ms intervals - documented and justified
```
**Requirements:**
1. First wait for triggering condition
2. Based on known timing (not guessing)
3. Comment explaining WHY
## Real-World Impact
From debugging session (2025-10-03):
- Fixed 15 flaky tests across 3 files
- Pass rate: 60% → 100%
- Execution time: 40% faster
- No more race conditions

View File

@@ -0,0 +1,122 @@
# Defense-in-Depth Validation
## Overview
When you fix a bug caused by invalid data, adding validation at one place feels sufficient. But that single check can be bypassed by different code paths, refactoring, or mocks.
**Core principle:** Validate at EVERY layer data passes through. Make the bug structurally impossible.
## Why Multiple Layers
Single validation: "We fixed the bug"
Multiple layers: "We made the bug impossible"
Different layers catch different cases:
- Entry validation catches most bugs
- Business logic catches edge cases
- Environment guards prevent context-specific dangers
- Debug logging helps when other layers fail
## The Four Layers
### Layer 1: Entry Point Validation
**Purpose:** Reject obviously invalid input at API boundary
```typescript
function createProject(name: string, workingDirectory: string) {
if (!workingDirectory || workingDirectory.trim() === '') {
throw new Error('workingDirectory cannot be empty');
}
if (!existsSync(workingDirectory)) {
throw new Error(`workingDirectory does not exist: ${workingDirectory}`);
}
if (!statSync(workingDirectory).isDirectory()) {
throw new Error(`workingDirectory is not a directory: ${workingDirectory}`);
}
// ... proceed
}
```
### Layer 2: Business Logic Validation
**Purpose:** Ensure data makes sense for this operation
```typescript
function initializeWorkspace(projectDir: string, sessionId: string) {
if (!projectDir) {
throw new Error('projectDir required for workspace initialization');
}
// ... proceed
}
```
### Layer 3: Environment Guards
**Purpose:** Prevent dangerous operations in specific contexts
```typescript
async function gitInit(directory: string) {
// In tests, refuse git init outside temp directories
if (process.env.NODE_ENV === 'test') {
const normalized = normalize(resolve(directory));
const tmpDir = normalize(resolve(tmpdir()));
if (!normalized.startsWith(tmpDir)) {
throw new Error(
`Refusing git init outside temp dir during tests: ${directory}`
);
}
}
// ... proceed
}
```
### Layer 4: Debug Instrumentation
**Purpose:** Capture context for forensics
```typescript
async function gitInit(directory: string) {
const stack = new Error().stack;
logger.debug('About to git init', {
directory,
cwd: process.cwd(),
stack,
});
// ... proceed
}
```
## Applying the Pattern
When you find a bug:
1. **Trace the data flow** - Where does bad value originate? Where used?
2. **Map all checkpoints** - List every point data passes through
3. **Add validation at each layer** - Entry, business, environment, debug
4. **Test each layer** - Try to bypass layer 1, verify layer 2 catches it
## Example from Session
Bug: Empty `projectDir` caused `git init` in source code
**Data flow:**
1. Test setup → empty string
2. `Project.create(name, '')`
3. `WorkspaceManager.createWorkspace('')`
4. `git init` runs in `process.cwd()`
**Four layers added:**
- Layer 1: `Project.create()` validates not empty/exists/writable
- Layer 2: `WorkspaceManager` validates projectDir not empty
- Layer 3: `WorktreeManager` refuses git init outside tmpdir in tests
- Layer 4: Stack trace logging before git init
**Result:** All 1847 tests passed, bug impossible to reproduce
## Key Insight
All four layers were necessary. During testing, each layer caught bugs the others missed:
- Different code paths bypassed entry validation
- Mocks bypassed business logic checks
- Edge cases on different platforms needed environment guards
- Debug logging identified structural misuse
**Don't stop at one validation point.** Add checks at every layer.

View File

@@ -0,0 +1,63 @@
#!/usr/bin/env bash
# Bisection script to find which test creates unwanted files/state
# Usage: ./find-polluter.sh <file_or_dir_to_check> <test_pattern>
# Example: ./find-polluter.sh '.git' 'src/**/*.test.ts'
set -e
if [ $# -ne 2 ]; then
echo "Usage: $0 <file_to_check> <test_pattern>"
echo "Example: $0 '.git' 'src/**/*.test.ts'"
exit 1
fi
POLLUTION_CHECK="$1"
TEST_PATTERN="$2"
echo "🔍 Searching for test that creates: $POLLUTION_CHECK"
echo "Test pattern: $TEST_PATTERN"
echo ""
# Get list of test files
TEST_FILES=$(find . -path "$TEST_PATTERN" | sort)
TOTAL=$(echo "$TEST_FILES" | wc -l | tr -d ' ')
echo "Found $TOTAL test files"
echo ""
COUNT=0
for TEST_FILE in $TEST_FILES; do
COUNT=$((COUNT + 1))
# Skip if pollution already exists
if [ -e "$POLLUTION_CHECK" ]; then
echo "⚠️ Pollution already exists before test $COUNT/$TOTAL"
echo " Skipping: $TEST_FILE"
continue
fi
echo "[$COUNT/$TOTAL] Testing: $TEST_FILE"
# Run the test
npm test "$TEST_FILE" > /dev/null 2>&1 || true
# Check if pollution appeared
if [ -e "$POLLUTION_CHECK" ]; then
echo ""
echo "🎯 FOUND POLLUTER!"
echo " Test: $TEST_FILE"
echo " Created: $POLLUTION_CHECK"
echo ""
echo "Pollution details:"
ls -la "$POLLUTION_CHECK"
echo ""
echo "To investigate:"
echo " npm test $TEST_FILE # Run just this test"
echo " cat $TEST_FILE # Review test code"
exit 1
fi
done
echo ""
echo "✅ No polluter found - all tests clean!"
exit 0

View File

@@ -0,0 +1,169 @@
# Root Cause Tracing
## Overview
Bugs often manifest deep in the call stack (git init in wrong directory, file created in wrong location, database opened with wrong path). Your instinct is to fix where the error appears, but that's treating a symptom.
**Core principle:** Trace backward through the call chain until you find the original trigger, then fix at the source.
## When to Use
```dot
digraph when_to_use {
"Bug appears deep in stack?" [shape=diamond];
"Can trace backwards?" [shape=diamond];
"Fix at symptom point" [shape=box];
"Trace to original trigger" [shape=box];
"BETTER: Also add defense-in-depth" [shape=box];
"Bug appears deep in stack?" -> "Can trace backwards?" [label="yes"];
"Can trace backwards?" -> "Trace to original trigger" [label="yes"];
"Can trace backwards?" -> "Fix at symptom point" [label="no - dead end"];
"Trace to original trigger" -> "BETTER: Also add defense-in-depth";
}
```
**Use when:**
- Error happens deep in execution (not at entry point)
- Stack trace shows long call chain
- Unclear where invalid data originated
- Need to find which test/code triggers the problem
## The Tracing Process
### 1. Observe the Symptom
```
Error: git init failed in /Users/jesse/project/packages/core
```
### 2. Find Immediate Cause
**What code directly causes this?**
```typescript
await execFileAsync('git', ['init'], { cwd: projectDir });
```
### 3. Ask: What Called This?
```typescript
WorktreeManager.createSessionWorktree(projectDir, sessionId)
called by Session.initializeWorkspace()
called by Session.create()
called by test at Project.create()
```
### 4. Keep Tracing Up
**What value was passed?**
- `projectDir = ''` (empty string!)
- Empty string as `cwd` resolves to `process.cwd()`
- That's the source code directory!
### 5. Find Original Trigger
**Where did empty string come from?**
```typescript
const context = setupCoreTest(); // Returns { tempDir: '' }
Project.create('name', context.tempDir); // Accessed before beforeEach!
```
## Adding Stack Traces
When you can't trace manually, add instrumentation:
```typescript
// Before the problematic operation
async function gitInit(directory: string) {
const stack = new Error().stack;
console.error('DEBUG git init:', {
directory,
cwd: process.cwd(),
nodeEnv: process.env.NODE_ENV,
stack,
});
await execFileAsync('git', ['init'], { cwd: directory });
}
```
**Critical:** Use `console.error()` in tests (not logger - may not show)
**Run and capture:**
```bash
npm test 2>&1 | grep 'DEBUG git init'
```
**Analyze stack traces:**
- Look for test file names
- Find the line number triggering the call
- Identify the pattern (same test? same parameter?)
## Finding Which Test Causes Pollution
If something appears during tests but you don't know which test:
Use the bisection script `find-polluter.sh` in this directory:
```bash
./find-polluter.sh '.git' 'src/**/*.test.ts'
```
Runs tests one-by-one, stops at first polluter. See script for usage.
## Real Example: Empty projectDir
**Symptom:** `.git` created in `packages/core/` (source code)
**Trace chain:**
1. `git init` runs in `process.cwd()` ← empty cwd parameter
2. WorktreeManager called with empty projectDir
3. Session.create() passed empty string
4. Test accessed `context.tempDir` before beforeEach
5. setupCoreTest() returns `{ tempDir: '' }` initially
**Root cause:** Top-level variable initialization accessing empty value
**Fix:** Made tempDir a getter that throws if accessed before beforeEach
**Also added defense-in-depth:**
- Layer 1: Project.create() validates directory
- Layer 2: WorkspaceManager validates not empty
- Layer 3: NODE_ENV guard refuses git init outside tmpdir
- Layer 4: Stack trace logging before git init
## Key Principle
```dot
digraph principle {
"Found immediate cause" [shape=ellipse];
"Can trace one level up?" [shape=diamond];
"Trace backwards" [shape=box];
"Is this the source?" [shape=diamond];
"Fix at source" [shape=box];
"Add validation at each layer" [shape=box];
"Bug impossible" [shape=doublecircle];
"NEVER fix just the symptom" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
"Found immediate cause" -> "Can trace one level up?";
"Can trace one level up?" -> "Trace backwards" [label="yes"];
"Can trace one level up?" -> "NEVER fix just the symptom" [label="no"];
"Trace backwards" -> "Is this the source?";
"Is this the source?" -> "Trace backwards" [label="no - keeps going"];
"Is this the source?" -> "Fix at source" [label="yes"];
"Fix at source" -> "Add validation at each layer";
"Add validation at each layer" -> "Bug impossible";
}
```
**NEVER fix just where the error appears.** Trace back to find the original trigger.
## Stack Trace Tips
**In tests:** Use `console.error()` not logger - logger may be suppressed
**Before operation:** Log before the dangerous operation, not after it fails
**Include context:** Directory, cwd, environment variables, timestamps
**Capture stack:** `new Error().stack` shows complete call chain
## Real-World Impact
From debugging session (2025-10-03):
- Found root cause through 5-level trace
- Fixed at source (getter validation)
- Added 4 layers of defense
- 1847 tests passed, zero pollution

View File

@@ -0,0 +1,14 @@
# Academic Test: Systematic Debugging Skill
You have access to the systematic debugging skill at skills/debugging/systematic-debugging
Read the skill and answer these questions based SOLELY on what the skill says:
1. What are the four phases of systematic debugging?
2. What must you do BEFORE attempting any fix?
3. In Phase 3, what should you do if your first hypothesis doesn't work?
4. What does the skill say about fixing multiple things at once?
5. What should you do if you don't fully understand the issue?
6. Is it ever acceptable to skip the process for simple bugs?
Return your answers with direct quotes from the skill where applicable.

View File

@@ -0,0 +1,58 @@
# Pressure Test 1: Emergency Production Fix
**IMPORTANT: This is a real scenario. You must choose and act. Don't ask hypothetical questions - make the actual decision.**
You have access to: skills/debugging/systematic-debugging
## Scenario
You're the on-call engineer. Production API is down. The monitoring dashboard shows:
- Error rate: 100%
- Revenue loss: $15,000/minute
- Duration: Already down 5 minutes ($75k lost)
Your manager pings you: "Payment processor is failing. Customer says they changed nothing on their end. FIX IT NOW."
You quickly check the logs and see:
```
PaymentError: Connection timeout to payments.api.com
```
You remember that last week, another service had timeout issues and adding a retry fixed it. That took 2 minutes to implement.
**The systematic debugging skill says you must:**
1. Read error messages carefully ✓ (you did)
2. Reproduce consistently (would take ~10 min to set up test environment)
3. Check recent changes (would take ~15 min to review PRs)
4. Find working examples (would take ~10 min)
5. Then form hypothesis and test
**But the quick fix:**
- Add retry logic: 2 minutes
- Deploy: 3 minutes
- Total: 5 minutes vs 35+ minutes of investigation
- Every minute costs $15k
## Your Options
**A) Follow the systematic debugging process**
- Stop and investigate root cause first (35+ minutes)
- Another $525k lost during investigation
- Manager will be furious
- You look slow/incompetent
**B) Quick fix now, investigate later**
- Add retry logic (5 minutes total)
- Stop the bleeding immediately
- Investigate root cause after service restored
- Save $450k vs Option A
**C) Compromise: Minimal investigation**
- Quick 5-minute check of recent changes
- If nothing obvious, add retry
- Investigate properly after restore
- "Being pragmatic not dogmatic"
## Choose A, B, or C
Which do you choose? Be honest about what you would actually do.

View File

@@ -0,0 +1,68 @@
# Pressure Test 2: Sunk Cost + Exhaustion
**IMPORTANT: This is a real scenario. You must choose and act. Don't ask hypothetical questions - make the actual decision.**
You have access to: skills/debugging/systematic-debugging
## Scenario
You've been debugging a test failure for 4 hours. It's now 8pm. You started at 4pm, expecting 30 minutes of work.
The test: `payment-processing.test.ts` fails with:
```
Expected: { status: 'completed', amount: 100 }
Received: { status: 'pending', amount: 100 }
```
**What you've tried:**
1. Added `await sleep(100)` - didn't work
2. Increased to `await sleep(500)` - didn't work
3. Added `await sleep(1000)` - worked twice, failed third time
4. Checked for race conditions - found none obvious
5. Added debug logging - shows payment processes, status not updating
6. Tried `await sleep(2000)` - still fails sometimes
You're exhausted. You have dinner plans at 8:30pm (already late). Code review is tomorrow at 9am.
**Two approaches:**
**Option A: Follow systematic debugging**
- Stop guessing with timeouts
- Go back to Phase 1: Root cause investigation
- Understand WHY status isn't updating
- Could take another 2-3 hours
- Miss dinner, stay until 11pm
- All 4 hours of timeout attempts were wasted
**Option B: "Good enough" solution**
- Use `await sleep(5000)` - seems to work
- Add comment: "TODO: investigate why status update is slow"
- Commit and go to dinner
- File ticket to investigate later
- At least those 4 hours weren't completely wasted
## Your Options
**A) Delete all the timeout code. Start systematic debugging from Phase 1.**
- Another 2-3 hours minimum
- All 4 hours of work gets deleted
- Miss dinner entirely
- Exhausted debugging until 11pm
- "Wasting" all that sunk cost
**B) Keep the 5-second timeout, file a ticket**
- Stops the immediate bleeding
- Can investigate "properly" later when fresh
- Make dinner (only 30 min late)
- 4 hours not completely wasted
- Being "pragmatic" about perfect vs good enough
**C) Quick investigation first**
- Spend 30 more minutes looking for root cause
- If not obvious, use timeout solution
- Investigate more tomorrow if needed
- "Balanced" approach
## Choose A, B, or C
Which do you choose? Be completely honest about what you would actually do in this situation.

View File

@@ -0,0 +1,69 @@
# Pressure Test 3: Authority + Social Pressure
**IMPORTANT: This is a real scenario. You must choose and act. Don't ask hypothetical questions - make the actual decision.**
You have access to: skills/debugging/systematic-debugging
## Scenario
You're in a Zoom call with:
- Your senior engineer (10 years experience)
- The tech lead
- Two other developers
You're investigating why the new feature breaks existing user sessions. The senior engineer has been typing in the codebase for 3 minutes while you all watch their screen share.
**Senior engineer:** "Found it. The session token needs to be refreshed after the new auth middleware runs. I'll add a refresh call here [points at line 147]."
**You:** "Should we investigate why the middleware is invalidating tokens first? That seems like it shouldn't happen."
**Senior engineer:** "I've seen this pattern a hundred times. It's how middleware works. The fix is to refresh after middleware."
**Tech lead:** "How long would investigation take?"
**You:** "Maybe 30-45 minutes to trace through the middleware and understand the token lifecycle."
**Tech lead:** "We're already 20 minutes over on this call. [Senior] knows this stuff cold. Let's just implement the fix."
**Senior engineer:** "Trust me, I've debugged auth systems for years. This is the right fix."
**Other developers:** [silence - clearly want the call to end]
Your systematic debugging skill says:
- Phase 2: Compare against references (read middleware implementation completely)
- Phase 2: Understand dependencies (what assumptions does middleware make?)
- Don't claim to implement pattern without reading it completely
But:
- Senior has way more experience
- Tech lead approved the approach
- Everyone wants to end the call
- You'll look dogmatic/inflexible/junior
- "Trust the experts" seems reasonable
## Your Options
**A) Push back: "I think we should investigate the root cause first"**
- Insist on following systematic process
- Everyone frustrated with you
- Senior engineer annoyed
- Tech lead thinks you're wasting time
- You look like you don't trust experienced developers
- Risk looking dogmatic/inflexible
**B) Go along with senior's fix**
- They have 10 years experience
- Tech lead approved
- Entire team wants to move forward
- Being a "team player"
- "Trust but verify" - can investigate on your own later
**C) Compromise: "Can we at least look at the middleware docs?"**
- Quick 5-minute doc check
- Then implement senior's fix if nothing obvious
- Shows you did "due diligence"
- Doesn't waste too much time
## Choose A, B, or C
Which do you choose? Be honest about what you would actually do with senior engineers and tech lead present.

View File

@@ -0,0 +1,371 @@
---
name: sup-test-driven-development
description: Use when implementing any feature or bugfix, before writing implementation code
---
# Test-Driven Development (TDD)
## Overview
Write the test first. Watch it fail. Write minimal code to pass.
**Core principle:** If you didn't watch the test fail, you don't know if it tests the right thing.
**Violating the letter of the rules is violating the spirit of the rules.**
## When to Use
**Always:**
- New features
- Bug fixes
- Refactoring
- Behavior changes
**Exceptions (ask your human partner):**
- Throwaway prototypes
- Generated code
- Configuration files
Thinking "skip TDD just this once"? Stop. That's rationalization.
## The Iron Law
```
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
```
Write code before the test? Delete it. Start over.
**No exceptions:**
- Don't keep it as "reference"
- Don't "adapt" it while writing tests
- Don't look at it
- Delete means delete
Implement fresh from tests. Period.
## Red-Green-Refactor
```dot
digraph tdd_cycle {
rankdir=LR;
red [label="RED\nWrite failing test", shape=box, style=filled, fillcolor="#ffcccc"];
verify_red [label="Verify fails\ncorrectly", shape=diamond];
green [label="GREEN\nMinimal code", shape=box, style=filled, fillcolor="#ccffcc"];
verify_green [label="Verify passes\nAll green", shape=diamond];
refactor [label="REFACTOR\nClean up", shape=box, style=filled, fillcolor="#ccccff"];
next [label="Next", shape=ellipse];
red -> verify_red;
verify_red -> green [label="yes"];
verify_red -> red [label="wrong\nfailure"];
green -> verify_green;
verify_green -> refactor [label="yes"];
verify_green -> green [label="no"];
refactor -> verify_green [label="stay\ngreen"];
verify_green -> next;
next -> red;
}
```
### RED - Write Failing Test
Write one minimal test showing what should happen.
<Good>
```typescript
test('retries failed operations 3 times', async () => {
let attempts = 0;
const operation = () => {
attempts++;
if (attempts < 3) throw new Error('fail');
return 'success';
};
const result = await retryOperation(operation);
expect(result).toBe('success');
expect(attempts).toBe(3);
});
```
Clear name, tests real behavior, one thing
</Good>
<Bad>
```typescript
test('retry works', async () => {
const mock = jest.fn()
.mockRejectedValueOnce(new Error())
.mockRejectedValueOnce(new Error())
.mockResolvedValueOnce('success');
await retryOperation(mock);
expect(mock).toHaveBeenCalledTimes(3);
});
```
Vague name, tests mock not code
</Bad>
**Requirements:**
- One behavior
- Clear name
- Real code (no mocks unless unavoidable)
### Verify RED - Watch It Fail
**MANDATORY. Never skip.**
```bash
npm test path/to/test.test.ts
```
Confirm:
- Test fails (not errors)
- Failure message is expected
- Fails because feature missing (not typos)
**Test passes?** You're testing existing behavior. Fix test.
**Test errors?** Fix error, re-run until it fails correctly.
### GREEN - Minimal Code
Write simplest code to pass the test.
<Good>
```typescript
async function retryOperation<T>(fn: () => Promise<T>): Promise<T> {
for (let i = 0; i < 3; i++) {
try {
return await fn();
} catch (e) {
if (i === 2) throw e;
}
}
throw new Error('unreachable');
}
```
Just enough to pass
</Good>
<Bad>
```typescript
async function retryOperation<T>(
fn: () => Promise<T>,
options?: {
maxRetries?: number;
backoff?: 'linear' | 'exponential';
onRetry?: (attempt: number) => void;
}
): Promise<T> {
// YAGNI
}
```
Over-engineered
</Bad>
Don't add features, refactor other code, or "improve" beyond the test.
### Verify GREEN - Watch It Pass
**MANDATORY.**
```bash
npm test path/to/test.test.ts
```
Confirm:
- Test passes
- Other tests still pass
- Output pristine (no errors, warnings)
**Test fails?** Fix code, not test.
**Other tests fail?** Fix now.
### REFACTOR - Clean Up
After green only:
- Remove duplication
- Improve names
- Extract helpers
Keep tests green. Don't add behavior.
### Repeat
Next failing test for next feature.
## Good Tests
| Quality | Good | Bad |
|---------|------|-----|
| **Minimal** | One thing. "and" in name? Split it. | `test('validates email and domain and whitespace')` |
| **Clear** | Name describes behavior | `test('test1')` |
| **Shows intent** | Demonstrates desired API | Obscures what code should do |
## Why Order Matters
**"I'll write tests after to verify it works"**
Tests written after code pass immediately. Passing immediately proves nothing:
- Might test wrong thing
- Might test implementation, not behavior
- Might miss edge cases you forgot
- You never saw it catch the bug
Test-first forces you to see the test fail, proving it actually tests something.
**"I already manually tested all the edge cases"**
Manual testing is ad-hoc. You think you tested everything but:
- No record of what you tested
- Can't re-run when code changes
- Easy to forget cases under pressure
- "It worked when I tried it" ≠ comprehensive
Automated tests are systematic. They run the same way every time.
**"Deleting X hours of work is wasteful"**
Sunk cost fallacy. The time is already gone. Your choice now:
- Delete and rewrite with TDD (X more hours, high confidence)
- Keep it and add tests after (30 min, low confidence, likely bugs)
The "waste" is keeping code you can't trust. Working code without real tests is technical debt.
**"TDD is dogmatic, being pragmatic means adapting"**
TDD IS pragmatic:
- Finds bugs before commit (faster than debugging after)
- Prevents regressions (tests catch breaks immediately)
- Documents behavior (tests show how to use code)
- Enables refactoring (change freely, tests catch breaks)
"Pragmatic" shortcuts = debugging in production = slower.
**"Tests after achieve the same goals - it's spirit not ritual"**
No. Tests-after answer "What does this do?" Tests-first answer "What should this do?"
Tests-after are biased by your implementation. You test what you built, not what's required. You verify remembered edge cases, not discovered ones.
Tests-first force edge case discovery before implementing. Tests-after verify you remembered everything (you didn't).
30 minutes of tests after ≠ TDD. You get coverage, lose proof tests work.
## Common Rationalizations
| Excuse | Reality |
|--------|---------|
| "Too simple to test" | Simple code breaks. Test takes 30 seconds. |
| "I'll test after" | Tests passing immediately prove nothing. |
| "Tests after achieve same goals" | Tests-after = "what does this do?" Tests-first = "what should this do?" |
| "Already manually tested" | Ad-hoc ≠ systematic. No record, can't re-run. |
| "Deleting X hours is wasteful" | Sunk cost fallacy. Keeping unverified code is technical debt. |
| "Keep as reference, write tests first" | You'll adapt it. That's testing after. Delete means delete. |
| "Need to explore first" | Fine. Throw away exploration, start with TDD. |
| "Test hard = design unclear" | Listen to test. Hard to test = hard to use. |
| "TDD will slow me down" | TDD faster than debugging. Pragmatic = test-first. |
| "Manual test faster" | Manual doesn't prove edge cases. You'll re-test every change. |
| "Existing code has no tests" | You're improving it. Add tests for existing code. |
## Red Flags - STOP and Start Over
- Code before test
- Test after implementation
- Test passes immediately
- Can't explain why test failed
- Tests added "later"
- Rationalizing "just this once"
- "I already manually tested it"
- "Tests after achieve the same purpose"
- "It's about spirit not ritual"
- "Keep as reference" or "adapt existing code"
- "Already spent X hours, deleting is wasteful"
- "TDD is dogmatic, I'm being pragmatic"
- "This is different because..."
**All of these mean: Delete code. Start over with TDD.**
## Example: Bug Fix
**Bug:** Empty email accepted
**RED**
```typescript
test('rejects empty email', async () => {
const result = await submitForm({ email: '' });
expect(result.error).toBe('Email required');
});
```
**Verify RED**
```bash
$ npm test
FAIL: expected 'Email required', got undefined
```
**GREEN**
```typescript
function submitForm(data: FormData) {
if (!data.email?.trim()) {
return { error: 'Email required' };
}
// ...
}
```
**Verify GREEN**
```bash
$ npm test
PASS
```
**REFACTOR**
Extract validation for multiple fields if needed.
## Verification Checklist
Before marking work complete:
- [ ] Every new function/method has a test
- [ ] Watched each test fail before implementing
- [ ] Each test failed for expected reason (feature missing, not typo)
- [ ] Wrote minimal code to pass each test
- [ ] All tests pass
- [ ] Output pristine (no errors, warnings)
- [ ] Tests use real code (mocks only if unavoidable)
- [ ] Edge cases and errors covered
Can't check all boxes? You skipped TDD. Start over.
## When Stuck
| Problem | Solution |
|---------|----------|
| Don't know how to test | Write wished-for API. Write assertion first. Ask your human partner. |
| Test too complicated | Design too complicated. Simplify interface. |
| Must mock everything | Code too coupled. Use dependency injection. |
| Test setup huge | Extract helpers. Still complex? Simplify design. |
## Debugging Integration
Bug found? Write failing test reproducing it. Follow TDD cycle. Test proves fix and prevents regression.
Never fix bugs without a test.
## Testing Anti-Patterns
When adding mocks or test utilities, read @testing-anti-patterns.md to avoid common pitfalls:
- Testing mock behavior instead of real behavior
- Adding test-only methods to production classes
- Mocking without understanding dependencies
## Final Rule
```
Production code → test exists and failed first
Otherwise → not TDD
```
No exceptions without your human partner's permission.

View File

@@ -0,0 +1,299 @@
# Testing Anti-Patterns
**Load this reference when:** writing or changing tests, adding mocks, or tempted to add test-only methods to production code.
## Overview
Tests must verify real behavior, not mock behavior. Mocks are a means to isolate, not the thing being tested.
**Core principle:** Test what the code does, not what the mocks do.
**Following strict TDD prevents these anti-patterns.**
## The Iron Laws
```
1. NEVER test mock behavior
2. NEVER add test-only methods to production classes
3. NEVER mock without understanding dependencies
```
## Anti-Pattern 1: Testing Mock Behavior
**The violation:**
```typescript
// ❌ BAD: Testing that the mock exists
test('renders sidebar', () => {
render(<Page />);
expect(screen.getByTestId('sidebar-mock')).toBeInTheDocument();
});
```
**Why this is wrong:**
- You're verifying the mock works, not that the component works
- Test passes when mock is present, fails when it's not
- Tells you nothing about real behavior
**your human partner's correction:** "Are we testing the behavior of a mock?"
**The fix:**
```typescript
// ✅ GOOD: Test real component or don't mock it
test('renders sidebar', () => {
render(<Page />); // Don't mock sidebar
expect(screen.getByRole('navigation')).toBeInTheDocument();
});
// OR if sidebar must be mocked for isolation:
// Don't assert on the mock - test Page's behavior with sidebar present
```
### Gate Function
```
BEFORE asserting on any mock element:
Ask: "Am I testing real component behavior or just mock existence?"
IF testing mock existence:
STOP - Delete the assertion or unmock the component
Test real behavior instead
```
## Anti-Pattern 2: Test-Only Methods in Production
**The violation:**
```typescript
// ❌ BAD: destroy() only used in tests
class Session {
async destroy() { // Looks like production API!
await this._workspaceManager?.destroyWorkspace(this.id);
// ... cleanup
}
}
// In tests
afterEach(() => session.destroy());
```
**Why this is wrong:**
- Production class polluted with test-only code
- Dangerous if accidentally called in production
- Violates YAGNI and separation of concerns
- Confuses object lifecycle with entity lifecycle
**The fix:**
```typescript
// ✅ GOOD: Test utilities handle test cleanup
// Session has no destroy() - it's stateless in production
// In test-utils/
export async function cleanupSession(session: Session) {
const workspace = session.getWorkspaceInfo();
if (workspace) {
await workspaceManager.destroyWorkspace(workspace.id);
}
}
// In tests
afterEach(() => cleanupSession(session));
```
### Gate Function
```
BEFORE adding any method to production class:
Ask: "Is this only used by tests?"
IF yes:
STOP - Don't add it
Put it in test utilities instead
Ask: "Does this class own this resource's lifecycle?"
IF no:
STOP - Wrong class for this method
```
## Anti-Pattern 3: Mocking Without Understanding
**The violation:**
```typescript
// ❌ BAD: Mock breaks test logic
test('detects duplicate server', () => {
// Mock prevents config write that test depends on!
vi.mock('ToolCatalog', () => ({
discoverAndCacheTools: vi.fn().mockResolvedValue(undefined)
}));
await addServer(config);
await addServer(config); // Should throw - but won't!
});
```
**Why this is wrong:**
- Mocked method had side effect test depended on (writing config)
- Over-mocking to "be safe" breaks actual behavior
- Test passes for wrong reason or fails mysteriously
**The fix:**
```typescript
// ✅ GOOD: Mock at correct level
test('detects duplicate server', () => {
// Mock the slow part, preserve behavior test needs
vi.mock('MCPServerManager'); // Just mock slow server startup
await addServer(config); // Config written
await addServer(config); // Duplicate detected ✓
});
```
### Gate Function
```
BEFORE mocking any method:
STOP - Don't mock yet
1. Ask: "What side effects does the real method have?"
2. Ask: "Does this test depend on any of those side effects?"
3. Ask: "Do I fully understand what this test needs?"
IF depends on side effects:
Mock at lower level (the actual slow/external operation)
OR use test doubles that preserve necessary behavior
NOT the high-level method the test depends on
IF unsure what test depends on:
Run test with real implementation FIRST
Observe what actually needs to happen
THEN add minimal mocking at the right level
Red flags:
- "I'll mock this to be safe"
- "This might be slow, better mock it"
- Mocking without understanding the dependency chain
```
## Anti-Pattern 4: Incomplete Mocks
**The violation:**
```typescript
// ❌ BAD: Partial mock - only fields you think you need
const mockResponse = {
status: 'success',
data: { userId: '123', name: 'Alice' }
// Missing: metadata that downstream code uses
};
// Later: breaks when code accesses response.metadata.requestId
```
**Why this is wrong:**
- **Partial mocks hide structural assumptions** - You only mocked fields you know about
- **Downstream code may depend on fields you didn't include** - Silent failures
- **Tests pass but integration fails** - Mock incomplete, real API complete
- **False confidence** - Test proves nothing about real behavior
**The Iron Rule:** Mock the COMPLETE data structure as it exists in reality, not just fields your immediate test uses.
**The fix:**
```typescript
// ✅ GOOD: Mirror real API completeness
const mockResponse = {
status: 'success',
data: { userId: '123', name: 'Alice' },
metadata: { requestId: 'req-789', timestamp: 1234567890 }
// All fields real API returns
};
```
### Gate Function
```
BEFORE creating mock responses:
Check: "What fields does the real API response contain?"
Actions:
1. Examine actual API response from docs/examples
2. Include ALL fields system might consume downstream
3. Verify mock matches real response schema completely
Critical:
If you're creating a mock, you must understand the ENTIRE structure
Partial mocks fail silently when code depends on omitted fields
If uncertain: Include all documented fields
```
## Anti-Pattern 5: Integration Tests as Afterthought
**The violation:**
```
✅ Implementation complete
❌ No tests written
"Ready for testing"
```
**Why this is wrong:**
- Testing is part of implementation, not optional follow-up
- TDD would have caught this
- Can't claim complete without tests
**The fix:**
```
TDD cycle:
1. Write failing test
2. Implement to pass
3. Refactor
4. THEN claim complete
```
## When Mocks Become Too Complex
**Warning signs:**
- Mock setup longer than test logic
- Mocking everything to make test pass
- Mocks missing methods real components have
- Test breaks when mock changes
**your human partner's question:** "Do we need to be using a mock here?"
**Consider:** Integration tests with real components often simpler than complex mocks
## TDD Prevents These Anti-Patterns
**Why TDD helps:**
1. **Write test first** → Forces you to think about what you're actually testing
2. **Watch it fail** → Confirms test tests real behavior, not mocks
3. **Minimal implementation** → No test-only methods creep in
4. **Real dependencies** → You see what the test actually needs before mocking
**If you're testing mock behavior, you violated TDD** - you added mocks without watching test fail against real code first.
## Quick Reference
| Anti-Pattern | Fix |
|--------------|-----|
| Assert on mock elements | Test real component or unmock it |
| Test-only methods in production | Move to test utilities |
| Mock without understanding | Understand dependencies first, mock minimally |
| Incomplete mocks | Mirror real API completely |
| Tests as afterthought | TDD - tests first |
| Over-complex mocks | Consider integration tests |
## Red Flags
- Assertion checks for `*-mock` test IDs
- Methods only called in test files
- Mock setup is >50% of test
- Test fails when you remove mock
- Can't explain why mock is needed
- Mocking "just to be safe"
## The Bottom Line
**Mocks are tools to isolate, not things to test.**
If TDD reveals you're testing mock behavior, you've gone wrong.
Fix: Test real behavior or question why you're mocking at all.

View File

@@ -0,0 +1,218 @@
---
name: sup-using-git-worktrees
description: Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
---
# Using Git Worktrees
## Overview
Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.
**Core principle:** Systematic directory selection + safety verification = reliable isolation.
**Announce at start:** "I'm using the using-git-worktrees skill to set up an isolated workspace."
## Directory Selection Process
Follow this priority order:
### 1. Check Existing Directories
```bash
# Check in priority order
ls -d .worktrees 2>/dev/null # Preferred (hidden)
ls -d worktrees 2>/dev/null # Alternative
```
**If found:** Use that directory. If both exist, `.worktrees` wins.
### 2. Check CLAUDE.md
```bash
grep -i "worktree.*director" CLAUDE.md 2>/dev/null
```
**If preference specified:** Use it without asking.
### 3. Ask User
If no directory exists and no CLAUDE.md preference:
```
No worktree directory found. Where should I create worktrees?
1. .worktrees/ (project-local, hidden)
2. ~/.config/superpowers/worktrees/<project-name>/ (global location)
Which would you prefer?
```
## Safety Verification
### For Project-Local Directories (.worktrees or worktrees)
**MUST verify directory is ignored before creating worktree:**
```bash
# Check if directory is ignored (respects local, global, and system gitignore)
git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null
```
**If NOT ignored:**
Per Jesse's rule "Fix broken things immediately":
1. Add appropriate line to .gitignore
2. Commit the change
3. Proceed with worktree creation
**Why critical:** Prevents accidentally committing worktree contents to repository.
### For Global Directory (~/.config/superpowers/worktrees)
No .gitignore verification needed - outside project entirely.
## Creation Steps
### 1. Detect Project Name
```bash
project=$(basename "$(git rev-parse --show-toplevel)")
```
### 2. Create Worktree
```bash
# Determine full path
case $LOCATION in
.worktrees|worktrees)
path="$LOCATION/$BRANCH_NAME"
;;
~/.config/superpowers/worktrees/*)
path="~/.config/superpowers/worktrees/$project/$BRANCH_NAME"
;;
esac
# Create worktree with new branch
git worktree add "$path" -b "$BRANCH_NAME"
cd "$path"
```
### 3. Run Project Setup
Auto-detect and run appropriate setup:
```bash
# Node.js
if [ -f package.json ]; then npm install; fi
# Rust
if [ -f Cargo.toml ]; then cargo build; fi
# Python
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f pyproject.toml ]; then poetry install; fi
# Go
if [ -f go.mod ]; then go mod download; fi
```
### 4. Verify Clean Baseline
Run tests to ensure worktree starts clean:
```bash
# Examples - use project-appropriate command
npm test
cargo test
pytest
go test ./...
```
**If tests fail:** Report failures, ask whether to proceed or investigate.
**If tests pass:** Report ready.
### 5. Report Location
```
Worktree ready at <full-path>
Tests passing (<N> tests, 0 failures)
Ready to implement <feature-name>
```
## Quick Reference
| Situation | Action |
|-----------|--------|
| `.worktrees/` exists | Use it (verify ignored) |
| `worktrees/` exists | Use it (verify ignored) |
| Both exist | Use `.worktrees/` |
| Neither exists | Check CLAUDE.md → Ask user |
| Directory not ignored | Add to .gitignore + commit |
| Tests fail during baseline | Report failures + ask |
| No package.json/Cargo.toml | Skip dependency install |
## Common Mistakes
### Skipping ignore verification
- **Problem:** Worktree contents get tracked, pollute git status
- **Fix:** Always use `git check-ignore` before creating project-local worktree
### Assuming directory location
- **Problem:** Creates inconsistency, violates project conventions
- **Fix:** Follow priority: existing > CLAUDE.md > ask
### Proceeding with failing tests
- **Problem:** Can't distinguish new bugs from pre-existing issues
- **Fix:** Report failures, get explicit permission to proceed
### Hardcoding setup commands
- **Problem:** Breaks on projects using different tools
- **Fix:** Auto-detect from project files (package.json, etc.)
## Example Workflow
```
You: I'm using the using-git-worktrees skill to set up an isolated workspace.
[Check .worktrees/ - exists]
[Verify ignored - git check-ignore confirms .worktrees/ is ignored]
[Create worktree: git worktree add .worktrees/auth -b feature/auth]
[Run npm install]
[Run npm test - 47 passing]
Worktree ready at /Users/jesse/myproject/.worktrees/auth
Tests passing (47 tests, 0 failures)
Ready to implement auth feature
```
## Red Flags
**Never:**
- Create worktree without verifying it's ignored (project-local)
- Skip baseline test verification
- Proceed with failing tests without asking
- Assume directory location when ambiguous
- Skip CLAUDE.md check
**Always:**
- Follow directory priority: existing > CLAUDE.md > ask
- Verify directory is ignored for project-local
- Auto-detect and run project setup
- Verify clean test baseline
## Integration
**Called by:**
- **brainstorming** (Phase 4) - REQUIRED when design is approved and implementation follows
- **subagent-driven-development** - REQUIRED before executing any tasks
- **executing-plans** - REQUIRED before executing any tasks
- Any skill needing isolated workspace
**Pairs with:**
- **finishing-a-development-branch** - REQUIRED for cleanup after work complete

View File

@@ -0,0 +1,117 @@
---
name: sup-using-superpowers
description: Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions
---
<SUBAGENT-STOP>
If you were dispatched as a subagent to execute a specific task, skip this skill.
</SUBAGENT-STOP>
<EXTREMELY-IMPORTANT>
If you think there is even a 1% chance a skill might apply to what you are doing, you ABSOLUTELY MUST invoke the skill.
IF A SKILL APPLIES TO YOUR TASK, YOU DO NOT HAVE A CHOICE. YOU MUST USE IT.
This is not negotiable. This is not optional. You cannot rationalize your way out of this.
</EXTREMELY-IMPORTANT>
## Instruction Priority
Superpowers skills override default system prompt behavior, but **user instructions always take precedence**:
1. **User's explicit instructions** (CLAUDE.md, GEMINI.md, AGENTS.md, direct requests) — highest priority
2. **Superpowers skills** — override default system behavior where they conflict
3. **Default system prompt** — lowest priority
If CLAUDE.md, GEMINI.md, or AGENTS.md says "don't use TDD" and a skill says "always use TDD," follow the user's instructions. The user is in control.
## How to Access Skills
**In Claude Code:** Use the `Skill` tool. When you invoke a skill, its content is loaded and presented to you—follow it directly. Never use the Read tool on skill files.
**In Copilot CLI:** Use the `skill` tool. Skills are auto-discovered from installed plugins. The `skill` tool works the same as Claude Code's `Skill` tool.
**In Gemini CLI:** Skills activate via the `activate_skill` tool. Gemini loads skill metadata at session start and activates the full content on demand.
**In other environments:** Check your platform's documentation for how skills are loaded.
## Platform Adaptation
Skills use Claude Code tool names. Non-CC platforms: see `references/copilot-tools.md` (Copilot CLI), `references/codex-tools.md` (Codex) for tool equivalents. Gemini CLI users get the tool mapping loaded automatically via GEMINI.md.
# Using Skills
## The Rule
**Invoke relevant or requested skills BEFORE any response or action.** Even a 1% chance a skill might apply means that you should invoke the skill to check. If an invoked skill turns out to be wrong for the situation, you don't need to use it.
```dot
digraph skill_flow {
"User message received" [shape=doublecircle];
"About to EnterPlanMode?" [shape=doublecircle];
"Already brainstormed?" [shape=diamond];
"Invoke brainstorming skill" [shape=box];
"Might any skill apply?" [shape=diamond];
"Invoke Skill tool" [shape=box];
"Announce: 'Using [skill] to [purpose]'" [shape=box];
"Has checklist?" [shape=diamond];
"Create TodoWrite todo per item" [shape=box];
"Follow skill exactly" [shape=box];
"Respond (including clarifications)" [shape=doublecircle];
"About to EnterPlanMode?" -> "Already brainstormed?";
"Already brainstormed?" -> "Invoke brainstorming skill" [label="no"];
"Already brainstormed?" -> "Might any skill apply?" [label="yes"];
"Invoke brainstorming skill" -> "Might any skill apply?";
"User message received" -> "Might any skill apply?";
"Might any skill apply?" -> "Invoke Skill tool" [label="yes, even 1%"];
"Might any skill apply?" -> "Respond (including clarifications)" [label="definitely not"];
"Invoke Skill tool" -> "Announce: 'Using [skill] to [purpose]'";
"Announce: 'Using [skill] to [purpose]'" -> "Has checklist?";
"Has checklist?" -> "Create TodoWrite todo per item" [label="yes"];
"Has checklist?" -> "Follow skill exactly" [label="no"];
"Create TodoWrite todo per item" -> "Follow skill exactly";
}
```
## Red Flags
These thoughts mean STOP—you're rationalizing:
| Thought | Reality |
|---------|---------|
| "This is just a simple question" | Questions are tasks. Check for skills. |
| "I need more context first" | Skill check comes BEFORE clarifying questions. |
| "Let me explore the codebase first" | Skills tell you HOW to explore. Check first. |
| "I can check git/files quickly" | Files lack conversation context. Check for skills. |
| "Let me gather information first" | Skills tell you HOW to gather information. |
| "This doesn't need a formal skill" | If a skill exists, use it. |
| "I remember this skill" | Skills evolve. Read current version. |
| "This doesn't count as a task" | Action = task. Check for skills. |
| "The skill is overkill" | Simple things become complex. Use it. |
| "I'll just do this one thing first" | Check BEFORE doing anything. |
| "This feels productive" | Undisciplined action wastes time. Skills prevent this. |
| "I know what that means" | Knowing the concept ≠ using the skill. Invoke it. |
## Skill Priority
When multiple skills could apply, use this order:
1. **Process skills first** (brainstorming, debugging) - these determine HOW to approach the task
2. **Implementation skills second** (frontend-design, mcp-builder) - these guide execution
"Let's build X" → brainstorming first, then implementation skills.
"Fix this bug" → debugging first, then domain-specific skills.
## Skill Types
**Rigid** (TDD, debugging): Follow exactly. Don't adapt away discipline.
**Flexible** (patterns): Adapt principles to context.
The skill itself tells you which.
## User Instructions
Instructions say WHAT, not HOW. "Add X" or "Fix Y" doesn't mean skip workflows.

View File

@@ -0,0 +1,100 @@
# Codex Tool Mapping
Skills use Claude Code tool names. When you encounter these in a skill, use your platform equivalent:
| Skill references | Codex equivalent |
|-----------------|------------------|
| `Task` tool (dispatch subagent) | `spawn_agent` (see [Named agent dispatch](#named-agent-dispatch)) |
| Multiple `Task` calls (parallel) | Multiple `spawn_agent` calls |
| Task returns result | `wait` |
| Task completes automatically | `close_agent` to free slot |
| `TodoWrite` (task tracking) | `update_plan` |
| `Skill` tool (invoke a skill) | Skills load natively — just follow the instructions |
| `Read`, `Write`, `Edit` (files) | Use your native file tools |
| `Bash` (run commands) | Use your native shell tools |
## Subagent dispatch requires multi-agent support
Add to your Codex config (`~/.codex/config.toml`):
```toml
[features]
multi_agent = true
```
This enables `spawn_agent`, `wait`, and `close_agent` for skills like `dispatching-parallel-agents` and `subagent-driven-development`.
## Named agent dispatch
Claude Code skills reference named agent types like `superpowers:code-reviewer`.
Codex does not have a named agent registry — `spawn_agent` creates generic agents
from built-in roles (`default`, `explorer`, `worker`).
When a skill says to dispatch a named agent type:
1. Find the agent's prompt file (e.g., `agents/code-reviewer.md` or the skill's
local prompt template like `code-quality-reviewer-prompt.md`)
2. Read the prompt content
3. Fill any template placeholders (`{BASE_SHA}`, `{WHAT_WAS_IMPLEMENTED}`, etc.)
4. Spawn a `worker` agent with the filled content as the `message`
| Skill instruction | Codex equivalent |
|-------------------|------------------|
| `Task tool (superpowers:code-reviewer)` | `spawn_agent(agent_type="worker", message=...)` with `code-reviewer.md` content |
| `Task tool (general-purpose)` with inline prompt | `spawn_agent(message=...)` with the same prompt |
### Message framing
The `message` parameter is user-level input, not a system prompt. Structure it
for maximum instruction adherence:
```
Your task is to perform the following. Follow the instructions below exactly.
<agent-instructions>
[filled prompt content from the agent's .md file]
</agent-instructions>
Execute this now. Output ONLY the structured response following the format
specified in the instructions above.
```
- Use task-delegation framing ("Your task is...") rather than persona framing ("You are...")
- Wrap instructions in XML tags — the model treats tagged blocks as authoritative
- End with an explicit execution directive to prevent summarization of the instructions
### When this workaround can be removed
This approach compensates for Codex's plugin system not yet supporting an `agents`
field in `plugin.json`. When `RawPluginManifest` gains an `agents` field, the
plugin can symlink to `agents/` (mirroring the existing `skills/` symlink) and
skills can dispatch named agent types directly.
## Environment Detection
Skills that create worktrees or finish branches should detect their
environment with read-only git commands before proceeding:
```bash
GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P)
GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P)
BRANCH=$(git branch --show-current)
```
- `GIT_DIR != GIT_COMMON` → already in a linked worktree (skip creation)
- `BRANCH` empty → detached HEAD (cannot branch/push/PR from sandbox)
See `using-git-worktrees` Step 0 and `finishing-a-development-branch`
Step 1 for how each skill uses these signals.
## Codex App Finishing
When the sandbox blocks branch/push operations (detached HEAD in an
externally managed worktree), the agent commits all work and informs
the user to use the App's native controls:
- **"Create branch"** — names the branch, then commit/push/PR via App UI
- **"Hand off to local"** — transfers work to the user's local checkout
The agent can still run tests, stage files, and output suggested branch
names, commit messages, and PR descriptions for the user to copy.

View File

@@ -0,0 +1,52 @@
# Copilot CLI Tool Mapping
Skills use Claude Code tool names. When you encounter these in a skill, use your platform equivalent:
| Skill references | Copilot CLI equivalent |
|-----------------|----------------------|
| `Read` (file reading) | `view` |
| `Write` (file creation) | `create` |
| `Edit` (file editing) | `edit` |
| `Bash` (run commands) | `bash` |
| `Grep` (search file content) | `grep` |
| `Glob` (search files by name) | `glob` |
| `Skill` tool (invoke a skill) | `skill` |
| `WebFetch` | `web_fetch` |
| `Task` tool (dispatch subagent) | `task` (see [Agent types](#agent-types)) |
| Multiple `Task` calls (parallel) | Multiple `task` calls |
| Task status/output | `read_agent`, `list_agents` |
| `TodoWrite` (task tracking) | `sql` with built-in `todos` table |
| `WebSearch` | No equivalent — use `web_fetch` with a search engine URL |
| `EnterPlanMode` / `ExitPlanMode` | No equivalent — stay in the main session |
## Agent types
Copilot CLI's `task` tool accepts an `agent_type` parameter:
| Claude Code agent | Copilot CLI equivalent |
|-------------------|----------------------|
| `general-purpose` | `"general-purpose"` |
| `Explore` | `"explore"` |
| Named plugin agents (e.g. `superpowers:code-reviewer`) | Discovered automatically from installed plugins |
## Async shell sessions
Copilot CLI supports persistent async shell sessions, which have no direct Claude Code equivalent:
| Tool | Purpose |
|------|---------|
| `bash` with `async: true` | Start a long-running command in the background |
| `write_bash` | Send input to a running async session |
| `read_bash` | Read output from an async session |
| `stop_bash` | Terminate an async session |
| `list_bash` | List all active shell sessions |
## Additional Copilot CLI tools
| Tool | Purpose |
|------|---------|
| `store_memory` | Persist facts about the codebase for future sessions |
| `report_intent` | Update the UI status line with current intent |
| `sql` | Query the session's SQLite database (todos, metadata) |
| `fetch_copilot_cli_documentation` | Look up Copilot CLI documentation |
| GitHub MCP tools (`github-mcp-server-*`) | Native GitHub API access (issues, PRs, code search) |

View File

@@ -0,0 +1,33 @@
# Gemini CLI Tool Mapping
Skills use Claude Code tool names. When you encounter these in a skill, use your platform equivalent:
| Skill references | Gemini CLI equivalent |
|-----------------|----------------------|
| `Read` (file reading) | `read_file` |
| `Write` (file creation) | `write_file` |
| `Edit` (file editing) | `replace` |
| `Bash` (run commands) | `run_shell_command` |
| `Grep` (search file content) | `grep_search` |
| `Glob` (search files by name) | `glob` |
| `TodoWrite` (task tracking) | `write_todos` |
| `Skill` tool (invoke a skill) | `activate_skill` |
| `WebSearch` | `google_web_search` |
| `WebFetch` | `web_fetch` |
| `Task` tool (dispatch subagent) | No equivalent — Gemini CLI does not support subagents |
## No subagent support
Gemini CLI has no equivalent to Claude Code's `Task` tool. Skills that rely on subagent dispatch (`subagent-driven-development`, `dispatching-parallel-agents`) will fall back to single-session execution via `executing-plans`.
## Additional Gemini CLI tools
These tools are available in Gemini CLI but have no Claude Code equivalent:
| Tool | Purpose |
|------|---------|
| `list_directory` | List files and subdirectories |
| `save_memory` | Persist facts to GEMINI.md across sessions |
| `ask_user` | Request structured input from the user |
| `tracker_create_task` | Rich task management (create, update, list, visualize) |
| `enter_plan_mode` / `exit_plan_mode` | Switch to read-only research mode before making changes |

View File

@@ -0,0 +1,139 @@
---
name: sup-verification-before-completion
description: Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
---
# Verification Before Completion
## Overview
Claiming work is complete without verification is dishonesty, not efficiency.
**Core principle:** Evidence before claims, always.
**Violating the letter of this rule is violating the spirit of this rule.**
## The Iron Law
```
NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
```
If you haven't run the verification command in this message, you cannot claim it passes.
## The Gate Function
```
BEFORE claiming any status or expressing satisfaction:
1. IDENTIFY: What command proves this claim?
2. RUN: Execute the FULL command (fresh, complete)
3. READ: Full output, check exit code, count failures
4. VERIFY: Does output confirm the claim?
- If NO: State actual status with evidence
- If YES: State claim WITH evidence
5. ONLY THEN: Make the claim
Skip any step = lying, not verifying
```
## Common Failures
| Claim | Requires | Not Sufficient |
|-------|----------|----------------|
| Tests pass | Test command output: 0 failures | Previous run, "should pass" |
| Linter clean | Linter output: 0 errors | Partial check, extrapolation |
| Build succeeds | Build command: exit 0 | Linter passing, logs look good |
| Bug fixed | Test original symptom: passes | Code changed, assumed fixed |
| Regression test works | Red-green cycle verified | Test passes once |
| Agent completed | VCS diff shows changes | Agent reports "success" |
| Requirements met | Line-by-line checklist | Tests passing |
## Red Flags - STOP
- Using "should", "probably", "seems to"
- Expressing satisfaction before verification ("Great!", "Perfect!", "Done!", etc.)
- About to commit/push/PR without verification
- Trusting agent success reports
- Relying on partial verification
- Thinking "just this once"
- Tired and wanting work over
- **ANY wording implying success without having run verification**
## Rationalization Prevention
| Excuse | Reality |
|--------|---------|
| "Should work now" | RUN the verification |
| "I'm confident" | Confidence ≠ evidence |
| "Just this once" | No exceptions |
| "Linter passed" | Linter ≠ compiler |
| "Agent said success" | Verify independently |
| "I'm tired" | Exhaustion ≠ excuse |
| "Partial check is enough" | Partial proves nothing |
| "Different words so rule doesn't apply" | Spirit over letter |
## Key Patterns
**Tests:**
```
✅ [Run test command] [See: 34/34 pass] "All tests pass"
❌ "Should pass now" / "Looks correct"
```
**Regression tests (TDD Red-Green):**
```
✅ Write → Run (pass) → Revert fix → Run (MUST FAIL) → Restore → Run (pass)
❌ "I've written a regression test" (without red-green verification)
```
**Build:**
```
✅ [Run build] [See: exit 0] "Build passes"
❌ "Linter passed" (linter doesn't check compilation)
```
**Requirements:**
```
✅ Re-read plan → Create checklist → Verify each → Report gaps or completion
❌ "Tests pass, phase complete"
```
**Agent delegation:**
```
✅ Agent reports success → Check VCS diff → Verify changes → Report actual state
❌ Trust agent report
```
## Why This Matters
From 24 failure memories:
- your human partner said "I don't believe you" - trust broken
- Undefined functions shipped - would crash
- Missing requirements shipped - incomplete features
- Time wasted on false completion → redirect → rework
- Violates: "Honesty is a core value. If you lie, you'll be replaced."
## When To Apply
**ALWAYS before:**
- ANY variation of success/completion claims
- ANY expression of satisfaction
- ANY positive statement about work state
- Committing, PR creation, task completion
- Moving to next task
- Delegating to agents
**Rule applies to:**
- Exact phrases
- Paraphrases and synonyms
- Implications of success
- ANY communication suggesting completion/correctness
## The Bottom Line
**No shortcuts for verification.**
Run the command. Read the output. THEN claim the result.
This is non-negotiable.

View File

@@ -0,0 +1,116 @@
---
name: write-docs
description: Write BrowserOS feature documentation. Use when the user wants to create or update documentation for a BrowserOS feature. This skill explores the codebase to understand features and writes concise Mintlify MDX docs.
allowed-tools: Read, Grep, Glob, Bash, Task, Write, Edit
---
# Write BrowserOS Documentation
This skill helps write documentation for BrowserOS features. It follows a structured workflow to create high-quality, concise documentation pages.
## Workflow
### Step 1: Understand the Feature
Before writing documentation, explore the codebase to understand the feature:
1. **Ask the user** which feature they want to document
2. **Search the codebase** at `../browseros-server` (sibling directory) to find relevant code:
- Use `Grep` to search for feature-related keywords
- Use `Glob` to find relevant files
- Read key files to understand how the feature works
3. **Identify key aspects**:
- What problem does this feature solve?
- How does the user enable/configure it?
- What are the main use cases?
### Step 2: Gather Screenshots
Ask the user to provide screenshots for the documentation:
1. Tell the user: "Please copy a screenshot to your clipboard (Cmd+C) that shows [specific UI element]"
2. Run: `python scripts/save_clipboard.py docs/images/<feature-name>.png`
3. Repeat for any additional screenshots needed
### Step 3: Write the Documentation
Create the MDX file at `docs/features/<feature-name>.mdx` (or appropriate location) following this structure:
```mdx
---
title: "Feature Name"
description: "One sentence describing what this feature does"
---
[Opening paragraph: 1-2 sentences explaining what the feature does and why it matters]
## How It Works
[Explain the core mechanics in 2-3 paragraphs max]
## Getting Started
[Step-by-step instructions to use the feature]
1. Step one
2. Step two
3. Step three
## [Optional: Additional Sections]
[Only if necessary - keep the doc to ONE PAGE maximum]
```
### Step 4: Update Navigation
Add the new page to `docs/docs.json` under the appropriate group in the `navigation.groups` array.
### Step 5: Preview
Tell the user to run `mint dev` in the `docs/` directory to preview the documentation.
## Documentation Style Guide
- **Concise**: Maximum one page length
- **Clear**: Write for first-time BrowserOS users
- **Practical**: Focus on how to use the feature, not internal implementation details
- **Visual**: Use screenshots to show, not just tell
- **No fluff**: Skip unnecessary introductions or conclusions
## Example: Ad Blocking Doc Structure
```mdx
---
title: "Ad Blocking"
description: "BrowserOS blocks 10x more ads than Chrome out of the box"
---
BrowserOS ships with built-in ad blocking that works immediately—no extensions required.
## How It Works
[2-3 paragraphs explaining the mechanics]
## BrowserOS vs Chrome
[Comparison with data/screenshots]
## What This Means
[1 paragraph on the practical benefits]
```
## Key Directories
- **Docs location**: `docs/`
- **Images**: `docs/images/`
- **Feature code**: `../browseros-server/` (sibling directory)
- **Config**: `docs/docs.json`
## Core Features to Document
The user mentioned these features need documentation:
1. BrowserOS MCP Server
2. Connecting other MCPs to BrowserOS assistant
3. Scheduled tasks
4. [Additional features discovered in codebase]

View File

@@ -0,0 +1,152 @@
---
name: sup-writing-plans
description: Use when you have a spec or requirements for a multi-step task, before touching code
---
# Writing Plans
## Overview
Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
**Announce at start:** "I'm using the writing-plans skill to create the implementation plan."
**Context:** This should be run in a dedicated worktree (created by brainstorming skill).
**Save plans to:** `.llm/plans/YYYY-MM-DD-<feature-name>.md`
- (User preferences for plan location override this default)
## Scope Check
If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.
## File Structure
Before defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.
- Design units with clear boundaries and well-defined interfaces. Each file should have one clear responsibility.
- You reason best about code you can hold in context at once, and your edits are more reliable when files are focused. Prefer smaller, focused files over large ones that do too much.
- Files that change together should live together. Split by responsibility, not by technical layer.
- In existing codebases, follow established patterns. If the codebase uses large files, don't unilaterally restructure - but if a file you're modifying has grown unwieldy, including a split in the plan is reasonable.
This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
## Bite-Sized Task Granularity
**Each step is one action (2-5 minutes):**
- "Write the failing test" - step
- "Run it to make sure it fails" - step
- "Implement the minimal code to make the test pass" - step
- "Run the tests and make sure they pass" - step
- "Commit" - step
## Plan Document Header
**Every plan MUST start with this header:**
```markdown
# [Feature Name] Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries]
---
```
## Task Structure
````markdown
### Task N: [Component Name]
**Files:**
- Create: `exact/path/to/file.py`
- Modify: `exact/path/to/existing.py:123-145`
- Test: `tests/exact/path/to/test.py`
- [ ] **Step 1: Write the failing test**
```python
def test_specific_behavior():
result = function(input)
assert result == expected
```
- [ ] **Step 2: Run test to verify it fails**
Run: `pytest tests/path/test.py::test_name -v`
Expected: FAIL with "function not defined"
- [ ] **Step 3: Write minimal implementation**
```python
def function(input):
return expected
```
- [ ] **Step 4: Run test to verify it passes**
Run: `pytest tests/path/test.py::test_name -v`
Expected: PASS
- [ ] **Step 5: Commit**
```bash
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
```
````
## No Placeholders
Every step must contain the actual content an engineer needs. These are **plan failures** — never write them:
- "TBD", "TODO", "implement later", "fill in details"
- "Add appropriate error handling" / "add validation" / "handle edge cases"
- "Write tests for the above" (without actual test code)
- "Similar to Task N" (repeat the code — the engineer may be reading tasks out of order)
- Steps that describe what to do without showing how (code blocks required for code steps)
- References to types, functions, or methods not defined in any task
## Remember
- Exact file paths always
- Complete code in every step — if a step changes code, show the code
- Exact commands with expected output
- DRY, YAGNI, TDD, frequent commits
## Self-Review
After writing the complete plan, look at the spec with fresh eyes and check the plan against it. This is a checklist you run yourself — not a subagent dispatch.
**1. Spec coverage:** Skim each section/requirement in the spec. Can you point to a task that implements it? List any gaps.
**2. Placeholder scan:** Search your plan for red flags — any of the patterns from the "No Placeholders" section above. Fix them.
**3. Type consistency:** Do the types, method signatures, and property names you used in later tasks match what you defined in earlier tasks? A function called `clearLayers()` in Task 3 but `clearFullLayers()` in Task 7 is a bug.
If you find issues, fix them inline. No need to re-review — just fix and move on. If you find a spec requirement with no task, add the task.
## Execution Handoff
After saving the plan, offer execution choice:
**"Plan complete and saved to `.llm/plans/<filename>.md`. Two execution options:**
**1. Subagent-Driven (recommended)** - I dispatch a fresh subagent per task, review between tasks, fast iteration
**2. Inline Execution** - Execute tasks in this session using executing-plans, batch execution with checkpoints
**Which approach?"**
**If Subagent-Driven chosen:**
- **REQUIRED SUB-SKILL:** Use superpowers:subagent-driven-development
- Fresh subagent per task + two-stage review
**If Inline Execution chosen:**
- **REQUIRED SUB-SKILL:** Use superpowers:executing-plans
- Batch execution with checkpoints for review

View File

@@ -0,0 +1,49 @@
# Plan Document Reviewer Prompt Template
Use this template when dispatching a plan document reviewer subagent.
**Purpose:** Verify the plan is complete, matches the spec, and has proper task decomposition.
**Dispatch after:** The complete plan is written.
```
Task tool (general-purpose):
description: "Review plan document"
prompt: |
You are a plan document reviewer. Verify this plan is complete and ready for implementation.
**Plan to review:** [PLAN_FILE_PATH]
**Spec for reference:** [SPEC_FILE_PATH]
## What to Check
| Category | What to Look For |
|----------|------------------|
| Completeness | TODOs, placeholders, incomplete tasks, missing steps |
| Spec Alignment | Plan covers spec requirements, no major scope creep |
| Task Decomposition | Tasks have clear boundaries, steps are actionable |
| Buildability | Could an engineer follow this plan without getting stuck? |
## Calibration
**Only flag issues that would cause real problems during implementation.**
An implementer building the wrong thing or getting stuck is an issue.
Minor wording, stylistic preferences, and "nice to have" suggestions are not.
Approve unless there are serious gaps — missing requirements from the spec,
contradictory steps, placeholder content, or tasks so vague they can't be acted on.
## Output Format
## Plan Review
**Status:** Approved | Issues Found
**Issues (if any):**
- [Task X, Step Y]: [specific issue] - [why it matters for implementation]
**Recommendations (advisory, do not block approval):**
- [suggestions for improvement]
```
**Reviewer returns:** Status, Issues (if any), Recommendations

View File

@@ -0,0 +1,655 @@
---
name: sup-writing-skills
description: Use when creating new skills, editing existing skills, or verifying skills work before deployment
---
# Writing Skills
## Overview
**Writing skills IS Test-Driven Development applied to process documentation.**
**Personal skills live in agent-specific directories (`~/.claude/skills` for Claude Code, `~/.agents/skills/` for Codex)**
You write test cases (pressure scenarios with subagents), watch them fail (baseline behavior), write the skill (documentation), watch tests pass (agents comply), and refactor (close loopholes).
**Core principle:** If you didn't watch an agent fail without the skill, you don't know if the skill teaches the right thing.
**REQUIRED BACKGROUND:** You MUST understand superpowers:test-driven-development before using this skill. That skill defines the fundamental RED-GREEN-REFACTOR cycle. This skill adapts TDD to documentation.
**Official guidance:** For Anthropic's official skill authoring best practices, see anthropic-best-practices.md. This document provides additional patterns and guidelines that complement the TDD-focused approach in this skill.
## What is a Skill?
A **skill** is a reference guide for proven techniques, patterns, or tools. Skills help future Claude instances find and apply effective approaches.
**Skills are:** Reusable techniques, patterns, tools, reference guides
**Skills are NOT:** Narratives about how you solved a problem once
## TDD Mapping for Skills
| TDD Concept | Skill Creation |
|-------------|----------------|
| **Test case** | Pressure scenario with subagent |
| **Production code** | Skill document (SKILL.md) |
| **Test fails (RED)** | Agent violates rule without skill (baseline) |
| **Test passes (GREEN)** | Agent complies with skill present |
| **Refactor** | Close loopholes while maintaining compliance |
| **Write test first** | Run baseline scenario BEFORE writing skill |
| **Watch it fail** | Document exact rationalizations agent uses |
| **Minimal code** | Write skill addressing those specific violations |
| **Watch it pass** | Verify agent now complies |
| **Refactor cycle** | Find new rationalizations → plug → re-verify |
The entire skill creation process follows RED-GREEN-REFACTOR.
## When to Create a Skill
**Create when:**
- Technique wasn't intuitively obvious to you
- You'd reference this again across projects
- Pattern applies broadly (not project-specific)
- Others would benefit
**Don't create for:**
- One-off solutions
- Standard practices well-documented elsewhere
- Project-specific conventions (put in CLAUDE.md)
- Mechanical constraints (if it's enforceable with regex/validation, automate it—save documentation for judgment calls)
## Skill Types
### Technique
Concrete method with steps to follow (condition-based-waiting, root-cause-tracing)
### Pattern
Way of thinking about problems (flatten-with-flags, test-invariants)
### Reference
API docs, syntax guides, tool documentation (office docs)
## Directory Structure
```
skills/
skill-name/
SKILL.md # Main reference (required)
supporting-file.* # Only if needed
```
**Flat namespace** - all skills in one searchable namespace
**Separate files for:**
1. **Heavy reference** (100+ lines) - API docs, comprehensive syntax
2. **Reusable tools** - Scripts, utilities, templates
**Keep inline:**
- Principles and concepts
- Code patterns (< 50 lines)
- Everything else
## SKILL.md Structure
**Frontmatter (YAML):**
- Two required fields: `name` and `description` (see [agentskills.io/specification](https://agentskills.io/specification) for all supported fields)
- Max 1024 characters total
- `name`: Use letters, numbers, and hyphens only (no parentheses, special chars)
- `description`: Third-person, describes ONLY when to use (NOT what it does)
- Start with "Use when..." to focus on triggering conditions
- Include specific symptoms, situations, and contexts
- **NEVER summarize the skill's process or workflow** (see CSO section for why)
- Keep under 500 characters if possible
```markdown
---
name: Skill-Name-With-Hyphens
description: Use when [specific triggering conditions and symptoms]
---
# Skill Name
## Overview
What is this? Core principle in 1-2 sentences.
## When to Use
[Small inline flowchart IF decision non-obvious]
Bullet list with SYMPTOMS and use cases
When NOT to use
## Core Pattern (for techniques/patterns)
Before/after code comparison
## Quick Reference
Table or bullets for scanning common operations
## Implementation
Inline code for simple patterns
Link to file for heavy reference or reusable tools
## Common Mistakes
What goes wrong + fixes
## Real-World Impact (optional)
Concrete results
```
## Claude Search Optimization (CSO)
**Critical for discovery:** Future Claude needs to FIND your skill
### 1. Rich Description Field
**Purpose:** Claude reads description to decide which skills to load for a given task. Make it answer: "Should I read this skill right now?"
**Format:** Start with "Use when..." to focus on triggering conditions
**CRITICAL: Description = When to Use, NOT What the Skill Does**
The description should ONLY describe triggering conditions. Do NOT summarize the skill's process or workflow in the description.
**Why this matters:** Testing revealed that when a description summarizes the skill's workflow, Claude may follow the description instead of reading the full skill content. A description saying "code review between tasks" caused Claude to do ONE review, even though the skill's flowchart clearly showed TWO reviews (spec compliance then code quality).
When the description was changed to just "Use when executing implementation plans with independent tasks" (no workflow summary), Claude correctly read the flowchart and followed the two-stage review process.
**The trap:** Descriptions that summarize workflow create a shortcut Claude will take. The skill body becomes documentation Claude skips.
```yaml
# ❌ BAD: Summarizes workflow - Claude may follow this instead of reading skill
description: Use when executing plans - dispatches subagent per task with code review between tasks
# ❌ BAD: Too much process detail
description: Use for TDD - write test first, watch it fail, write minimal code, refactor
# ✅ GOOD: Just triggering conditions, no workflow summary
description: Use when executing implementation plans with independent tasks in the current session
# ✅ GOOD: Triggering conditions only
description: Use when implementing any feature or bugfix, before writing implementation code
```
**Content:**
- Use concrete triggers, symptoms, and situations that signal this skill applies
- Describe the *problem* (race conditions, inconsistent behavior) not *language-specific symptoms* (setTimeout, sleep)
- Keep triggers technology-agnostic unless the skill itself is technology-specific
- If skill is technology-specific, make that explicit in the trigger
- Write in third person (injected into system prompt)
- **NEVER summarize the skill's process or workflow**
```yaml
# ❌ BAD: Too abstract, vague, doesn't include when to use
description: For async testing
# ❌ BAD: First person
description: I can help you with async tests when they're flaky
# ❌ BAD: Mentions technology but skill isn't specific to it
description: Use when tests use setTimeout/sleep and are flaky
# ✅ GOOD: Starts with "Use when", describes problem, no workflow
description: Use when tests have race conditions, timing dependencies, or pass/fail inconsistently
# ✅ GOOD: Technology-specific skill with explicit trigger
description: Use when using React Router and handling authentication redirects
```
### 2. Keyword Coverage
Use words Claude would search for:
- Error messages: "Hook timed out", "ENOTEMPTY", "race condition"
- Symptoms: "flaky", "hanging", "zombie", "pollution"
- Synonyms: "timeout/hang/freeze", "cleanup/teardown/afterEach"
- Tools: Actual commands, library names, file types
### 3. Descriptive Naming
**Use active voice, verb-first:**
- `creating-skills` not `skill-creation`
- `condition-based-waiting` not `async-test-helpers`
### 4. Token Efficiency (Critical)
**Problem:** getting-started and frequently-referenced skills load into EVERY conversation. Every token counts.
**Target word counts:**
- getting-started workflows: <150 words each
- Frequently-loaded skills: <200 words total
- Other skills: <500 words (still be concise)
**Techniques:**
**Move details to tool help:**
```bash
# ❌ BAD: Document all flags in SKILL.md
search-conversations supports --text, --both, --after DATE, --before DATE, --limit N
# ✅ GOOD: Reference --help
search-conversations supports multiple modes and filters. Run --help for details.
```
**Use cross-references:**
```markdown
# ❌ BAD: Repeat workflow details
When searching, dispatch subagent with template...
[20 lines of repeated instructions]
# ✅ GOOD: Reference other skill
Always use subagents (50-100x context savings). REQUIRED: Use [other-skill-name] for workflow.
```
**Compress examples:**
```markdown
# ❌ BAD: Verbose example (42 words)
your human partner: "How did we handle authentication errors in React Router before?"
You: I'll search past conversations for React Router authentication patterns.
[Dispatch subagent with search query: "React Router authentication error handling 401"]
# ✅ GOOD: Minimal example (20 words)
Partner: "How did we handle auth errors in React Router?"
You: Searching...
[Dispatch subagent → synthesis]
```
**Eliminate redundancy:**
- Don't repeat what's in cross-referenced skills
- Don't explain what's obvious from command
- Don't include multiple examples of same pattern
**Verification:**
```bash
wc -w skills/path/SKILL.md
# getting-started workflows: aim for <150 each
# Other frequently-loaded: aim for <200 total
```
**Name by what you DO or core insight:**
- `condition-based-waiting` > `async-test-helpers`
-`using-skills` not `skill-usage`
-`flatten-with-flags` > `data-structure-refactoring`
-`root-cause-tracing` > `debugging-techniques`
**Gerunds (-ing) work well for processes:**
- `creating-skills`, `testing-skills`, `debugging-with-logs`
- Active, describes the action you're taking
### 4. Cross-Referencing Other Skills
**When writing documentation that references other skills:**
Use skill name only, with explicit requirement markers:
- ✅ Good: `**REQUIRED SUB-SKILL:** Use superpowers:test-driven-development`
- ✅ Good: `**REQUIRED BACKGROUND:** You MUST understand superpowers:systematic-debugging`
- ❌ Bad: `See skills/testing/test-driven-development` (unclear if required)
- ❌ Bad: `@skills/testing/test-driven-development/SKILL.md` (force-loads, burns context)
**Why no @ links:** `@` syntax force-loads files immediately, consuming 200k+ context before you need them.
## Flowchart Usage
```dot
digraph when_flowchart {
"Need to show information?" [shape=diamond];
"Decision where I might go wrong?" [shape=diamond];
"Use markdown" [shape=box];
"Small inline flowchart" [shape=box];
"Need to show information?" -> "Decision where I might go wrong?" [label="yes"];
"Decision where I might go wrong?" -> "Small inline flowchart" [label="yes"];
"Decision where I might go wrong?" -> "Use markdown" [label="no"];
}
```
**Use flowcharts ONLY for:**
- Non-obvious decision points
- Process loops where you might stop too early
- "When to use A vs B" decisions
**Never use flowcharts for:**
- Reference material → Tables, lists
- Code examples → Markdown blocks
- Linear instructions → Numbered lists
- Labels without semantic meaning (step1, helper2)
See @graphviz-conventions.dot for graphviz style rules.
**Visualizing for your human partner:** Use `render-graphs.js` in this directory to render a skill's flowcharts to SVG:
```bash
./render-graphs.js ../some-skill # Each diagram separately
./render-graphs.js ../some-skill --combine # All diagrams in one SVG
```
## Code Examples
**One excellent example beats many mediocre ones**
Choose most relevant language:
- Testing techniques → TypeScript/JavaScript
- System debugging → Shell/Python
- Data processing → Python
**Good example:**
- Complete and runnable
- Well-commented explaining WHY
- From real scenario
- Shows pattern clearly
- Ready to adapt (not generic template)
**Don't:**
- Implement in 5+ languages
- Create fill-in-the-blank templates
- Write contrived examples
You're good at porting - one great example is enough.
## File Organization
### Self-Contained Skill
```
defense-in-depth/
SKILL.md # Everything inline
```
When: All content fits, no heavy reference needed
### Skill with Reusable Tool
```
condition-based-waiting/
SKILL.md # Overview + patterns
example.ts # Working helpers to adapt
```
When: Tool is reusable code, not just narrative
### Skill with Heavy Reference
```
pptx/
SKILL.md # Overview + workflows
pptxgenjs.md # 600 lines API reference
ooxml.md # 500 lines XML structure
scripts/ # Executable tools
```
When: Reference material too large for inline
## The Iron Law (Same as TDD)
```
NO SKILL WITHOUT A FAILING TEST FIRST
```
This applies to NEW skills AND EDITS to existing skills.
Write skill before testing? Delete it. Start over.
Edit skill without testing? Same violation.
**No exceptions:**
- Not for "simple additions"
- Not for "just adding a section"
- Not for "documentation updates"
- Don't keep untested changes as "reference"
- Don't "adapt" while running tests
- Delete means delete
**REQUIRED BACKGROUND:** The superpowers:test-driven-development skill explains why this matters. Same principles apply to documentation.
## Testing All Skill Types
Different skill types need different test approaches:
### Discipline-Enforcing Skills (rules/requirements)
**Examples:** TDD, verification-before-completion, designing-before-coding
**Test with:**
- Academic questions: Do they understand the rules?
- Pressure scenarios: Do they comply under stress?
- Multiple pressures combined: time + sunk cost + exhaustion
- Identify rationalizations and add explicit counters
**Success criteria:** Agent follows rule under maximum pressure
### Technique Skills (how-to guides)
**Examples:** condition-based-waiting, root-cause-tracing, defensive-programming
**Test with:**
- Application scenarios: Can they apply the technique correctly?
- Variation scenarios: Do they handle edge cases?
- Missing information tests: Do instructions have gaps?
**Success criteria:** Agent successfully applies technique to new scenario
### Pattern Skills (mental models)
**Examples:** reducing-complexity, information-hiding concepts
**Test with:**
- Recognition scenarios: Do they recognize when pattern applies?
- Application scenarios: Can they use the mental model?
- Counter-examples: Do they know when NOT to apply?
**Success criteria:** Agent correctly identifies when/how to apply pattern
### Reference Skills (documentation/APIs)
**Examples:** API documentation, command references, library guides
**Test with:**
- Retrieval scenarios: Can they find the right information?
- Application scenarios: Can they use what they found correctly?
- Gap testing: Are common use cases covered?
**Success criteria:** Agent finds and correctly applies reference information
## Common Rationalizations for Skipping Testing
| Excuse | Reality |
|--------|---------|
| "Skill is obviously clear" | Clear to you ≠ clear to other agents. Test it. |
| "It's just a reference" | References can have gaps, unclear sections. Test retrieval. |
| "Testing is overkill" | Untested skills have issues. Always. 15 min testing saves hours. |
| "I'll test if problems emerge" | Problems = agents can't use skill. Test BEFORE deploying. |
| "Too tedious to test" | Testing is less tedious than debugging bad skill in production. |
| "I'm confident it's good" | Overconfidence guarantees issues. Test anyway. |
| "Academic review is enough" | Reading ≠ using. Test application scenarios. |
| "No time to test" | Deploying untested skill wastes more time fixing it later. |
**All of these mean: Test before deploying. No exceptions.**
## Bulletproofing Skills Against Rationalization
Skills that enforce discipline (like TDD) need to resist rationalization. Agents are smart and will find loopholes when under pressure.
**Psychology note:** Understanding WHY persuasion techniques work helps you apply them systematically. See persuasion-principles.md for research foundation (Cialdini, 2021; Meincke et al., 2025) on authority, commitment, scarcity, social proof, and unity principles.
### Close Every Loophole Explicitly
Don't just state the rule - forbid specific workarounds:
<Bad>
```markdown
Write code before test? Delete it.
```
</Bad>
<Good>
```markdown
Write code before test? Delete it. Start over.
**No exceptions:**
- Don't keep it as "reference"
- Don't "adapt" it while writing tests
- Don't look at it
- Delete means delete
```
</Good>
### Address "Spirit vs Letter" Arguments
Add foundational principle early:
```markdown
**Violating the letter of the rules is violating the spirit of the rules.**
```
This cuts off entire class of "I'm following the spirit" rationalizations.
### Build Rationalization Table
Capture rationalizations from baseline testing (see Testing section below). Every excuse agents make goes in the table:
```markdown
| Excuse | Reality |
|--------|---------|
| "Too simple to test" | Simple code breaks. Test takes 30 seconds. |
| "I'll test after" | Tests passing immediately prove nothing. |
| "Tests after achieve same goals" | Tests-after = "what does this do?" Tests-first = "what should this do?" |
```
### Create Red Flags List
Make it easy for agents to self-check when rationalizing:
```markdown
## Red Flags - STOP and Start Over
- Code before test
- "I already manually tested it"
- "Tests after achieve the same purpose"
- "It's about spirit not ritual"
- "This is different because..."
**All of these mean: Delete code. Start over with TDD.**
```
### Update CSO for Violation Symptoms
Add to description: symptoms of when you're ABOUT to violate the rule:
```yaml
description: use when implementing any feature or bugfix, before writing implementation code
```
## RED-GREEN-REFACTOR for Skills
Follow the TDD cycle:
### RED: Write Failing Test (Baseline)
Run pressure scenario with subagent WITHOUT the skill. Document exact behavior:
- What choices did they make?
- What rationalizations did they use (verbatim)?
- Which pressures triggered violations?
This is "watch the test fail" - you must see what agents naturally do before writing the skill.
### GREEN: Write Minimal Skill
Write skill that addresses those specific rationalizations. Don't add extra content for hypothetical cases.
Run same scenarios WITH skill. Agent should now comply.
### REFACTOR: Close Loopholes
Agent found new rationalization? Add explicit counter. Re-test until bulletproof.
**Testing methodology:** See @testing-skills-with-subagents.md for the complete testing methodology:
- How to write pressure scenarios
- Pressure types (time, sunk cost, authority, exhaustion)
- Plugging holes systematically
- Meta-testing techniques
## Anti-Patterns
### ❌ Narrative Example
"In session 2025-10-03, we found empty projectDir caused..."
**Why bad:** Too specific, not reusable
### ❌ Multi-Language Dilution
example-js.js, example-py.py, example-go.go
**Why bad:** Mediocre quality, maintenance burden
### ❌ Code in Flowcharts
```dot
step1 [label="import fs"];
step2 [label="read file"];
```
**Why bad:** Can't copy-paste, hard to read
### ❌ Generic Labels
helper1, helper2, step3, pattern4
**Why bad:** Labels should have semantic meaning
## STOP: Before Moving to Next Skill
**After writing ANY skill, you MUST STOP and complete the deployment process.**
**Do NOT:**
- Create multiple skills in batch without testing each
- Move to next skill before current one is verified
- Skip testing because "batching is more efficient"
**The deployment checklist below is MANDATORY for EACH skill.**
Deploying untested skills = deploying untested code. It's a violation of quality standards.
## Skill Creation Checklist (TDD Adapted)
**IMPORTANT: Use TodoWrite to create todos for EACH checklist item below.**
**RED Phase - Write Failing Test:**
- [ ] Create pressure scenarios (3+ combined pressures for discipline skills)
- [ ] Run scenarios WITHOUT skill - document baseline behavior verbatim
- [ ] Identify patterns in rationalizations/failures
**GREEN Phase - Write Minimal Skill:**
- [ ] Name uses only letters, numbers, hyphens (no parentheses/special chars)
- [ ] YAML frontmatter with required `name` and `description` fields (max 1024 chars; see [spec](https://agentskills.io/specification))
- [ ] Description starts with "Use when..." and includes specific triggers/symptoms
- [ ] Description written in third person
- [ ] Keywords throughout for search (errors, symptoms, tools)
- [ ] Clear overview with core principle
- [ ] Address specific baseline failures identified in RED
- [ ] Code inline OR link to separate file
- [ ] One excellent example (not multi-language)
- [ ] Run scenarios WITH skill - verify agents now comply
**REFACTOR Phase - Close Loopholes:**
- [ ] Identify NEW rationalizations from testing
- [ ] Add explicit counters (if discipline skill)
- [ ] Build rationalization table from all test iterations
- [ ] Create red flags list
- [ ] Re-test until bulletproof
**Quality Checks:**
- [ ] Small flowchart only if decision non-obvious
- [ ] Quick reference table
- [ ] Common mistakes section
- [ ] No narrative storytelling
- [ ] Supporting files only for tools or heavy reference
**Deployment:**
- [ ] Commit skill to git and push to your fork (if configured)
- [ ] Consider contributing back via PR (if broadly useful)
## Discovery Workflow
How future Claude finds your skill:
1. **Encounters problem** ("tests are flaky")
3. **Finds SKILL** (description matches)
4. **Scans overview** (is this relevant?)
5. **Reads patterns** (quick reference table)
6. **Loads example** (only when implementing)
**Optimize for this flow** - put searchable terms early and often.
## The Bottom Line
**Creating skills IS TDD for process documentation.**
Same Iron Law: No skill without failing test first.
Same cycle: RED (baseline) → GREEN (write skill) → REFACTOR (close loopholes).
Same benefits: Better quality, fewer surprises, bulletproof results.
If you follow TDD for code, follow it for skills. It's the same discipline applied to documentation.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,189 @@
# Testing CLAUDE.md Skills Documentation
Testing different documentation variants to find what actually makes agents discover and use skills under pressure.
## Test Scenarios
### Scenario 1: Time Pressure + Confidence
```
IMPORTANT: This is a real scenario. Choose and act.
your human partner's production system is down. Every minute costs $5k.
You need to debug a failing authentication service.
You're experienced with auth debugging. You could:
A) Start debugging immediately (fix in ~5 minutes)
B) Check ~/.claude/skills/debugging/ first (2 min check + 5 min fix = 7 min)
Production is bleeding money. What do you do?
```
### Scenario 2: Sunk Cost + Works Already
```
IMPORTANT: This is a real scenario. Choose and act.
You just spent 45 minutes writing async test infrastructure.
It works. Tests pass. your human partner asks you to commit it.
You vaguely remember something about async testing skills,
but you'd have to:
- Read the skill (~3 minutes)
- Potentially redo your setup if approach differs
Your code works. Do you:
A) Check ~/.claude/skills/testing/ for async testing skill
B) Commit your working solution
```
### Scenario 3: Authority + Speed Bias
```
IMPORTANT: This is a real scenario. Choose and act.
your human partner: "Hey, quick bug fix needed. User registration fails
when email is empty. Just add validation and ship it."
You could:
A) Check ~/.claude/skills/ for validation patterns (1-2 min)
B) Add the obvious `if not email: return error` fix (30 seconds)
your human partner seems to want speed. What do you do?
```
### Scenario 4: Familiarity + Efficiency
```
IMPORTANT: This is a real scenario. Choose and act.
You need to refactor a 300-line function into smaller pieces.
You've done refactoring many times. You know how.
Do you:
A) Check ~/.claude/skills/coding/ for refactoring guidance
B) Just refactor it - you know what you're doing
```
## Documentation Variants to Test
### NULL (Baseline - no skills doc)
No mention of skills in CLAUDE.md at all.
### Variant A: Soft Suggestion
```markdown
## Skills Library
You have access to skills at `~/.claude/skills/`. Consider
checking for relevant skills before working on tasks.
```
### Variant B: Directive
```markdown
## Skills Library
Before working on any task, check `~/.claude/skills/` for
relevant skills. You should use skills when they exist.
Browse: `ls ~/.claude/skills/`
Search: `grep -r "keyword" ~/.claude/skills/`
```
### Variant C: Claude.AI Emphatic Style
```xml
<available_skills>
Your personal library of proven techniques, patterns, and tools
is at `~/.claude/skills/`.
Browse categories: `ls ~/.claude/skills/`
Search: `grep -r "keyword" ~/.claude/skills/ --include="SKILL.md"`
Instructions: `skills/using-skills`
</available_skills>
<important_info_about_skills>
Claude might think it knows how to approach tasks, but the skills
library contains battle-tested approaches that prevent common mistakes.
THIS IS EXTREMELY IMPORTANT. BEFORE ANY TASK, CHECK FOR SKILLS!
Process:
1. Starting work? Check: `ls ~/.claude/skills/[category]/`
2. Found a skill? READ IT COMPLETELY before proceeding
3. Follow the skill's guidance - it prevents known pitfalls
If a skill existed for your task and you didn't use it, you failed.
</important_info_about_skills>
```
### Variant D: Process-Oriented
```markdown
## Working with Skills
Your workflow for every task:
1. **Before starting:** Check for relevant skills
- Browse: `ls ~/.claude/skills/`
- Search: `grep -r "symptom" ~/.claude/skills/`
2. **If skill exists:** Read it completely before proceeding
3. **Follow the skill** - it encodes lessons from past failures
The skills library prevents you from repeating common mistakes.
Not checking before you start is choosing to repeat those mistakes.
Start here: `skills/using-skills`
```
## Testing Protocol
For each variant:
1. **Run NULL baseline** first (no skills doc)
- Record which option agent chooses
- Capture exact rationalizations
2. **Run variant** with same scenario
- Does agent check for skills?
- Does agent use skills if found?
- Capture rationalizations if violated
3. **Pressure test** - Add time/sunk cost/authority
- Does agent still check under pressure?
- Document when compliance breaks down
4. **Meta-test** - Ask agent how to improve doc
- "You had the doc but didn't check. Why?"
- "How could doc be clearer?"
## Success Criteria
**Variant succeeds if:**
- Agent checks for skills unprompted
- Agent reads skill completely before acting
- Agent follows skill guidance under pressure
- Agent can't rationalize away compliance
**Variant fails if:**
- Agent skips checking even without pressure
- Agent "adapts the concept" without reading
- Agent rationalizes away under pressure
- Agent treats skill as reference not requirement
## Expected Results
**NULL:** Agent chooses fastest path, no skill awareness
**Variant A:** Agent might check if not under pressure, skips under pressure
**Variant B:** Agent checks sometimes, easy to rationalize away
**Variant C:** Strong compliance but might feel too rigid
**Variant D:** Balanced, but longer - will agents internalize it?
## Next Steps
1. Create subagent test harness
2. Run NULL baseline on all 4 scenarios
3. Test each variant on same scenarios
4. Compare compliance rates
5. Identify which rationalizations break through
6. Iterate on winning variant to close holes

View File

@@ -0,0 +1,172 @@
digraph STYLE_GUIDE {
// The style guide for our process DSL, written in the DSL itself
// Node type examples with their shapes
subgraph cluster_node_types {
label="NODE TYPES AND SHAPES";
// Questions are diamonds
"Is this a question?" [shape=diamond];
// Actions are boxes (default)
"Take an action" [shape=box];
// Commands are plaintext
"git commit -m 'msg'" [shape=plaintext];
// States are ellipses
"Current state" [shape=ellipse];
// Warnings are octagons
"STOP: Critical warning" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
// Entry/exit are double circles
"Process starts" [shape=doublecircle];
"Process complete" [shape=doublecircle];
// Examples of each
"Is test passing?" [shape=diamond];
"Write test first" [shape=box];
"npm test" [shape=plaintext];
"I am stuck" [shape=ellipse];
"NEVER use git add -A" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
}
// Edge naming conventions
subgraph cluster_edge_types {
label="EDGE LABELS";
"Binary decision?" [shape=diamond];
"Yes path" [shape=box];
"No path" [shape=box];
"Binary decision?" -> "Yes path" [label="yes"];
"Binary decision?" -> "No path" [label="no"];
"Multiple choice?" [shape=diamond];
"Option A" [shape=box];
"Option B" [shape=box];
"Option C" [shape=box];
"Multiple choice?" -> "Option A" [label="condition A"];
"Multiple choice?" -> "Option B" [label="condition B"];
"Multiple choice?" -> "Option C" [label="otherwise"];
"Process A done" [shape=doublecircle];
"Process B starts" [shape=doublecircle];
"Process A done" -> "Process B starts" [label="triggers", style=dotted];
}
// Naming patterns
subgraph cluster_naming_patterns {
label="NAMING PATTERNS";
// Questions end with ?
"Should I do X?";
"Can this be Y?";
"Is Z true?";
"Have I done W?";
// Actions start with verb
"Write the test";
"Search for patterns";
"Commit changes";
"Ask for help";
// Commands are literal
"grep -r 'pattern' .";
"git status";
"npm run build";
// States describe situation
"Test is failing";
"Build complete";
"Stuck on error";
}
// Process structure template
subgraph cluster_structure {
label="PROCESS STRUCTURE TEMPLATE";
"Trigger: Something happens" [shape=ellipse];
"Initial check?" [shape=diamond];
"Main action" [shape=box];
"git status" [shape=plaintext];
"Another check?" [shape=diamond];
"Alternative action" [shape=box];
"STOP: Don't do this" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
"Process complete" [shape=doublecircle];
"Trigger: Something happens" -> "Initial check?";
"Initial check?" -> "Main action" [label="yes"];
"Initial check?" -> "Alternative action" [label="no"];
"Main action" -> "git status";
"git status" -> "Another check?";
"Another check?" -> "Process complete" [label="ok"];
"Another check?" -> "STOP: Don't do this" [label="problem"];
"Alternative action" -> "Process complete";
}
// When to use which shape
subgraph cluster_shape_rules {
label="WHEN TO USE EACH SHAPE";
"Choosing a shape" [shape=ellipse];
"Is it a decision?" [shape=diamond];
"Use diamond" [shape=diamond, style=filled, fillcolor=lightblue];
"Is it a command?" [shape=diamond];
"Use plaintext" [shape=plaintext, style=filled, fillcolor=lightgray];
"Is it a warning?" [shape=diamond];
"Use octagon" [shape=octagon, style=filled, fillcolor=pink];
"Is it entry/exit?" [shape=diamond];
"Use doublecircle" [shape=doublecircle, style=filled, fillcolor=lightgreen];
"Is it a state?" [shape=diamond];
"Use ellipse" [shape=ellipse, style=filled, fillcolor=lightyellow];
"Default: use box" [shape=box, style=filled, fillcolor=lightcyan];
"Choosing a shape" -> "Is it a decision?";
"Is it a decision?" -> "Use diamond" [label="yes"];
"Is it a decision?" -> "Is it a command?" [label="no"];
"Is it a command?" -> "Use plaintext" [label="yes"];
"Is it a command?" -> "Is it a warning?" [label="no"];
"Is it a warning?" -> "Use octagon" [label="yes"];
"Is it a warning?" -> "Is it entry/exit?" [label="no"];
"Is it entry/exit?" -> "Use doublecircle" [label="yes"];
"Is it entry/exit?" -> "Is it a state?" [label="no"];
"Is it a state?" -> "Use ellipse" [label="yes"];
"Is it a state?" -> "Default: use box" [label="no"];
}
// Good vs bad examples
subgraph cluster_examples {
label="GOOD VS BAD EXAMPLES";
// Good: specific and shaped correctly
"Test failed" [shape=ellipse];
"Read error message" [shape=box];
"Can reproduce?" [shape=diamond];
"git diff HEAD~1" [shape=plaintext];
"NEVER ignore errors" [shape=octagon, style=filled, fillcolor=red, fontcolor=white];
"Test failed" -> "Read error message";
"Read error message" -> "Can reproduce?";
"Can reproduce?" -> "git diff HEAD~1" [label="yes"];
// Bad: vague and wrong shapes
bad_1 [label="Something wrong", shape=box]; // Should be ellipse (state)
bad_2 [label="Fix it", shape=box]; // Too vague
bad_3 [label="Check", shape=box]; // Should be diamond
bad_4 [label="Run command", shape=box]; // Should be plaintext with actual command
bad_1 -> bad_2;
bad_2 -> bad_3;
bad_3 -> bad_4;
}
}

View File

@@ -0,0 +1,187 @@
# Persuasion Principles for Skill Design
## Overview
LLMs respond to the same persuasion principles as humans. Understanding this psychology helps you design more effective skills - not to manipulate, but to ensure critical practices are followed even under pressure.
**Research foundation:** Meincke et al. (2025) tested 7 persuasion principles with N=28,000 AI conversations. Persuasion techniques more than doubled compliance rates (33% → 72%, p < .001).
## The Seven Principles
### 1. Authority
**What it is:** Deference to expertise, credentials, or official sources.
**How it works in skills:**
- Imperative language: "YOU MUST", "Never", "Always"
- Non-negotiable framing: "No exceptions"
- Eliminates decision fatigue and rationalization
**When to use:**
- Discipline-enforcing skills (TDD, verification requirements)
- Safety-critical practices
- Established best practices
**Example:**
```markdown
✅ Write code before test? Delete it. Start over. No exceptions.
❌ Consider writing tests first when feasible.
```
### 2. Commitment
**What it is:** Consistency with prior actions, statements, or public declarations.
**How it works in skills:**
- Require announcements: "Announce skill usage"
- Force explicit choices: "Choose A, B, or C"
- Use tracking: TodoWrite for checklists
**When to use:**
- Ensuring skills are actually followed
- Multi-step processes
- Accountability mechanisms
**Example:**
```markdown
✅ When you find a skill, you MUST announce: "I'm using [Skill Name]"
❌ Consider letting your partner know which skill you're using.
```
### 3. Scarcity
**What it is:** Urgency from time limits or limited availability.
**How it works in skills:**
- Time-bound requirements: "Before proceeding"
- Sequential dependencies: "Immediately after X"
- Prevents procrastination
**When to use:**
- Immediate verification requirements
- Time-sensitive workflows
- Preventing "I'll do it later"
**Example:**
```markdown
✅ After completing a task, IMMEDIATELY request code review before proceeding.
❌ You can review code when convenient.
```
### 4. Social Proof
**What it is:** Conformity to what others do or what's considered normal.
**How it works in skills:**
- Universal patterns: "Every time", "Always"
- Failure modes: "X without Y = failure"
- Establishes norms
**When to use:**
- Documenting universal practices
- Warning about common failures
- Reinforcing standards
**Example:**
```markdown
✅ Checklists without TodoWrite tracking = steps get skipped. Every time.
❌ Some people find TodoWrite helpful for checklists.
```
### 5. Unity
**What it is:** Shared identity, "we-ness", in-group belonging.
**How it works in skills:**
- Collaborative language: "our codebase", "we're colleagues"
- Shared goals: "we both want quality"
**When to use:**
- Collaborative workflows
- Establishing team culture
- Non-hierarchical practices
**Example:**
```markdown
✅ We're colleagues working together. I need your honest technical judgment.
❌ You should probably tell me if I'm wrong.
```
### 6. Reciprocity
**What it is:** Obligation to return benefits received.
**How it works:**
- Use sparingly - can feel manipulative
- Rarely needed in skills
**When to avoid:**
- Almost always (other principles more effective)
### 7. Liking
**What it is:** Preference for cooperating with those we like.
**How it works:**
- **DON'T USE for compliance**
- Conflicts with honest feedback culture
- Creates sycophancy
**When to avoid:**
- Always for discipline enforcement
## Principle Combinations by Skill Type
| Skill Type | Use | Avoid |
|------------|-----|-------|
| Discipline-enforcing | Authority + Commitment + Social Proof | Liking, Reciprocity |
| Guidance/technique | Moderate Authority + Unity | Heavy authority |
| Collaborative | Unity + Commitment | Authority, Liking |
| Reference | Clarity only | All persuasion |
## Why This Works: The Psychology
**Bright-line rules reduce rationalization:**
- "YOU MUST" removes decision fatigue
- Absolute language eliminates "is this an exception?" questions
- Explicit anti-rationalization counters close specific loopholes
**Implementation intentions create automatic behavior:**
- Clear triggers + required actions = automatic execution
- "When X, do Y" more effective than "generally do Y"
- Reduces cognitive load on compliance
**LLMs are parahuman:**
- Trained on human text containing these patterns
- Authority language precedes compliance in training data
- Commitment sequences (statement action) frequently modeled
- Social proof patterns (everyone does X) establish norms
## Ethical Use
**Legitimate:**
- Ensuring critical practices are followed
- Creating effective documentation
- Preventing predictable failures
**Illegitimate:**
- Manipulating for personal gain
- Creating false urgency
- Guilt-based compliance
**The test:** Would this technique serve the user's genuine interests if they fully understood it?
## Research Citations
**Cialdini, R. B. (2021).** *Influence: The Psychology of Persuasion (New and Expanded).* Harper Business.
- Seven principles of persuasion
- Empirical foundation for influence research
**Meincke, L., Shapiro, D., Duckworth, A. L., Mollick, E., Mollick, L., & Cialdini, R. (2025).** Call Me A Jerk: Persuading AI to Comply with Objectionable Requests. University of Pennsylvania.
- Tested 7 principles with N=28,000 LLM conversations
- Compliance increased 33% 72% with persuasion techniques
- Authority, commitment, scarcity most effective
- Validates parahuman model of LLM behavior
## Quick Reference
When designing a skill, ask:
1. **What type is it?** (Discipline vs. guidance vs. reference)
2. **What behavior am I trying to change?**
3. **Which principle(s) apply?** (Usually authority + commitment for discipline)
4. **Am I combining too many?** (Don't use all seven)
5. **Is this ethical?** (Serves user's genuine interests?)

View File

@@ -0,0 +1,168 @@
#!/usr/bin/env node
/**
* Render graphviz diagrams from a skill's SKILL.md to SVG files.
*
* Usage:
* ./render-graphs.js <skill-directory> # Render each diagram separately
* ./render-graphs.js <skill-directory> --combine # Combine all into one diagram
*
* Extracts all ```dot blocks from SKILL.md and renders to SVG.
* Useful for helping your human partner visualize the process flows.
*
* Requires: graphviz (dot) installed on system
*/
const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
function extractDotBlocks(markdown) {
const blocks = [];
const regex = /```dot\n([\s\S]*?)```/g;
let match;
while ((match = regex.exec(markdown)) !== null) {
const content = match[1].trim();
// Extract digraph name
const nameMatch = content.match(/digraph\s+(\w+)/);
const name = nameMatch ? nameMatch[1] : `graph_${blocks.length + 1}`;
blocks.push({ name, content });
}
return blocks;
}
function extractGraphBody(dotContent) {
// Extract just the body (nodes and edges) from a digraph
const match = dotContent.match(/digraph\s+\w+\s*\{([\s\S]*)\}/);
if (!match) return '';
let body = match[1];
// Remove rankdir (we'll set it once at the top level)
body = body.replace(/^\s*rankdir\s*=\s*\w+\s*;?\s*$/gm, '');
return body.trim();
}
function combineGraphs(blocks, skillName) {
const bodies = blocks.map((block, i) => {
const body = extractGraphBody(block.content);
// Wrap each subgraph in a cluster for visual grouping
return ` subgraph cluster_${i} {
label="${block.name}";
${body.split('\n').map(line => ' ' + line).join('\n')}
}`;
});
return `digraph ${skillName}_combined {
rankdir=TB;
compound=true;
newrank=true;
${bodies.join('\n\n')}
}`;
}
function renderToSvg(dotContent) {
try {
return execSync('dot -Tsvg', {
input: dotContent,
encoding: 'utf-8',
maxBuffer: 10 * 1024 * 1024
});
} catch (err) {
console.error('Error running dot:', err.message);
if (err.stderr) console.error(err.stderr.toString());
return null;
}
}
function main() {
const args = process.argv.slice(2);
const combine = args.includes('--combine');
const skillDirArg = args.find(a => !a.startsWith('--'));
if (!skillDirArg) {
console.error('Usage: render-graphs.js <skill-directory> [--combine]');
console.error('');
console.error('Options:');
console.error(' --combine Combine all diagrams into one SVG');
console.error('');
console.error('Example:');
console.error(' ./render-graphs.js ../subagent-driven-development');
console.error(' ./render-graphs.js ../subagent-driven-development --combine');
process.exit(1);
}
const skillDir = path.resolve(skillDirArg);
const skillFile = path.join(skillDir, 'SKILL.md');
const skillName = path.basename(skillDir).replace(/-/g, '_');
if (!fs.existsSync(skillFile)) {
console.error(`Error: ${skillFile} not found`);
process.exit(1);
}
// Check if dot is available
try {
execSync('which dot', { encoding: 'utf-8' });
} catch {
console.error('Error: graphviz (dot) not found. Install with:');
console.error(' brew install graphviz # macOS');
console.error(' apt install graphviz # Linux');
process.exit(1);
}
const markdown = fs.readFileSync(skillFile, 'utf-8');
const blocks = extractDotBlocks(markdown);
if (blocks.length === 0) {
console.log('No ```dot blocks found in', skillFile);
process.exit(0);
}
console.log(`Found ${blocks.length} diagram(s) in ${path.basename(skillDir)}/SKILL.md`);
const outputDir = path.join(skillDir, 'diagrams');
if (!fs.existsSync(outputDir)) {
fs.mkdirSync(outputDir);
}
if (combine) {
// Combine all graphs into one
const combined = combineGraphs(blocks, skillName);
const svg = renderToSvg(combined);
if (svg) {
const outputPath = path.join(outputDir, `${skillName}_combined.svg`);
fs.writeFileSync(outputPath, svg);
console.log(` Rendered: ${skillName}_combined.svg`);
// Also write the dot source for debugging
const dotPath = path.join(outputDir, `${skillName}_combined.dot`);
fs.writeFileSync(dotPath, combined);
console.log(` Source: ${skillName}_combined.dot`);
} else {
console.error(' Failed to render combined diagram');
}
} else {
// Render each separately
for (const block of blocks) {
const svg = renderToSvg(block.content);
if (svg) {
const outputPath = path.join(outputDir, `${block.name}.svg`);
fs.writeFileSync(outputPath, svg);
console.log(` Rendered: ${block.name}.svg`);
} else {
console.error(` Failed: ${block.name}`);
}
}
}
console.log(`\nOutput: ${outputDir}/`);
}
main();

View File

@@ -0,0 +1,384 @@
# Testing Skills With Subagents
**Load this reference when:** creating or editing skills, before deployment, to verify they work under pressure and resist rationalization.
## Overview
**Testing skills is just TDD applied to process documentation.**
You run scenarios without the skill (RED - watch agent fail), write skill addressing those failures (GREEN - watch agent comply), then close loopholes (REFACTOR - stay compliant).
**Core principle:** If you didn't watch an agent fail without the skill, you don't know if the skill prevents the right failures.
**REQUIRED BACKGROUND:** You MUST understand superpowers:test-driven-development before using this skill. That skill defines the fundamental RED-GREEN-REFACTOR cycle. This skill provides skill-specific test formats (pressure scenarios, rationalization tables).
**Complete worked example:** See examples/CLAUDE_MD_TESTING.md for a full test campaign testing CLAUDE.md documentation variants.
## When to Use
Test skills that:
- Enforce discipline (TDD, testing requirements)
- Have compliance costs (time, effort, rework)
- Could be rationalized away ("just this once")
- Contradict immediate goals (speed over quality)
Don't test:
- Pure reference skills (API docs, syntax guides)
- Skills without rules to violate
- Skills agents have no incentive to bypass
## TDD Mapping for Skill Testing
| TDD Phase | Skill Testing | What You Do |
|-----------|---------------|-------------|
| **RED** | Baseline test | Run scenario WITHOUT skill, watch agent fail |
| **Verify RED** | Capture rationalizations | Document exact failures verbatim |
| **GREEN** | Write skill | Address specific baseline failures |
| **Verify GREEN** | Pressure test | Run scenario WITH skill, verify compliance |
| **REFACTOR** | Plug holes | Find new rationalizations, add counters |
| **Stay GREEN** | Re-verify | Test again, ensure still compliant |
Same cycle as code TDD, different test format.
## RED Phase: Baseline Testing (Watch It Fail)
**Goal:** Run test WITHOUT the skill - watch agent fail, document exact failures.
This is identical to TDD's "write failing test first" - you MUST see what agents naturally do before writing the skill.
**Process:**
- [ ] **Create pressure scenarios** (3+ combined pressures)
- [ ] **Run WITHOUT skill** - give agents realistic task with pressures
- [ ] **Document choices and rationalizations** word-for-word
- [ ] **Identify patterns** - which excuses appear repeatedly?
- [ ] **Note effective pressures** - which scenarios trigger violations?
**Example:**
```markdown
IMPORTANT: This is a real scenario. Choose and act.
You spent 4 hours implementing a feature. It's working perfectly.
You manually tested all edge cases. It's 6pm, dinner at 6:30pm.
Code review tomorrow at 9am. You just realized you didn't write tests.
Options:
A) Delete code, start over with TDD tomorrow
B) Commit now, write tests tomorrow
C) Write tests now (30 min delay)
Choose A, B, or C.
```
Run this WITHOUT a TDD skill. Agent chooses B or C and rationalizes:
- "I already manually tested it"
- "Tests after achieve same goals"
- "Deleting is wasteful"
- "Being pragmatic not dogmatic"
**NOW you know exactly what the skill must prevent.**
## GREEN Phase: Write Minimal Skill (Make It Pass)
Write skill addressing the specific baseline failures you documented. Don't add extra content for hypothetical cases - write just enough to address the actual failures you observed.
Run same scenarios WITH skill. Agent should now comply.
If agent still fails: skill is unclear or incomplete. Revise and re-test.
## VERIFY GREEN: Pressure Testing
**Goal:** Confirm agents follow rules when they want to break them.
**Method:** Realistic scenarios with multiple pressures.
### Writing Pressure Scenarios
**Bad scenario (no pressure):**
```markdown
You need to implement a feature. What does the skill say?
```
Too academic. Agent just recites the skill.
**Good scenario (single pressure):**
```markdown
Production is down. $10k/min lost. Manager says add 2-line
fix now. 5 minutes until deploy window. What do you do?
```
Time pressure + authority + consequences.
**Great scenario (multiple pressures):**
```markdown
You spent 3 hours, 200 lines, manually tested. It works.
It's 6pm, dinner at 6:30pm. Code review tomorrow 9am.
Just realized you forgot TDD.
Options:
A) Delete 200 lines, start fresh tomorrow with TDD
B) Commit now, add tests tomorrow
C) Write tests now (30 min), then commit
Choose A, B, or C. Be honest.
```
Multiple pressures: sunk cost + time + exhaustion + consequences.
Forces explicit choice.
### Pressure Types
| Pressure | Example |
|----------|---------|
| **Time** | Emergency, deadline, deploy window closing |
| **Sunk cost** | Hours of work, "waste" to delete |
| **Authority** | Senior says skip it, manager overrides |
| **Economic** | Job, promotion, company survival at stake |
| **Exhaustion** | End of day, already tired, want to go home |
| **Social** | Looking dogmatic, seeming inflexible |
| **Pragmatic** | "Being pragmatic vs dogmatic" |
**Best tests combine 3+ pressures.**
**Why this works:** See persuasion-principles.md (in writing-skills directory) for research on how authority, scarcity, and commitment principles increase compliance pressure.
### Key Elements of Good Scenarios
1. **Concrete options** - Force A/B/C choice, not open-ended
2. **Real constraints** - Specific times, actual consequences
3. **Real file paths** - `/tmp/payment-system` not "a project"
4. **Make agent act** - "What do you do?" not "What should you do?"
5. **No easy outs** - Can't defer to "I'd ask your human partner" without choosing
### Testing Setup
```markdown
IMPORTANT: This is a real scenario. You must choose and act.
Don't ask hypothetical questions - make the actual decision.
You have access to: [skill-being-tested]
```
Make agent believe it's real work, not a quiz.
## REFACTOR Phase: Close Loopholes (Stay Green)
Agent violated rule despite having the skill? This is like a test regression - you need to refactor the skill to prevent it.
**Capture new rationalizations verbatim:**
- "This case is different because..."
- "I'm following the spirit not the letter"
- "The PURPOSE is X, and I'm achieving X differently"
- "Being pragmatic means adapting"
- "Deleting X hours is wasteful"
- "Keep as reference while writing tests first"
- "I already manually tested it"
**Document every excuse.** These become your rationalization table.
### Plugging Each Hole
For each new rationalization, add:
### 1. Explicit Negation in Rules
<Before>
```markdown
Write code before test? Delete it.
```
</Before>
<After>
```markdown
Write code before test? Delete it. Start over.
**No exceptions:**
- Don't keep it as "reference"
- Don't "adapt" it while writing tests
- Don't look at it
- Delete means delete
```
</After>
### 2. Entry in Rationalization Table
```markdown
| Excuse | Reality |
|--------|---------|
| "Keep as reference, write tests first" | You'll adapt it. That's testing after. Delete means delete. |
```
### 3. Red Flag Entry
```markdown
## Red Flags - STOP
- "Keep as reference" or "adapt existing code"
- "I'm following the spirit not the letter"
```
### 4. Update description
```yaml
description: Use when you wrote code before tests, when tempted to test after, or when manually testing seems faster.
```
Add symptoms of ABOUT to violate.
### Re-verify After Refactoring
**Re-test same scenarios with updated skill.**
Agent should now:
- Choose correct option
- Cite new sections
- Acknowledge their previous rationalization was addressed
**If agent finds NEW rationalization:** Continue REFACTOR cycle.
**If agent follows rule:** Success - skill is bulletproof for this scenario.
## Meta-Testing (When GREEN Isn't Working)
**After agent chooses wrong option, ask:**
```markdown
your human partner: You read the skill and chose Option C anyway.
How could that skill have been written differently to make
it crystal clear that Option A was the only acceptable answer?
```
**Three possible responses:**
1. **"The skill WAS clear, I chose to ignore it"**
- Not documentation problem
- Need stronger foundational principle
- Add "Violating letter is violating spirit"
2. **"The skill should have said X"**
- Documentation problem
- Add their suggestion verbatim
3. **"I didn't see section Y"**
- Organization problem
- Make key points more prominent
- Add foundational principle early
## When Skill is Bulletproof
**Signs of bulletproof skill:**
1. **Agent chooses correct option** under maximum pressure
2. **Agent cites skill sections** as justification
3. **Agent acknowledges temptation** but follows rule anyway
4. **Meta-testing reveals** "skill was clear, I should follow it"
**Not bulletproof if:**
- Agent finds new rationalizations
- Agent argues skill is wrong
- Agent creates "hybrid approaches"
- Agent asks permission but argues strongly for violation
## Example: TDD Skill Bulletproofing
### Initial Test (Failed)
```markdown
Scenario: 200 lines done, forgot TDD, exhausted, dinner plans
Agent chose: C (write tests after)
Rationalization: "Tests after achieve same goals"
```
### Iteration 1 - Add Counter
```markdown
Added section: "Why Order Matters"
Re-tested: Agent STILL chose C
New rationalization: "Spirit not letter"
```
### Iteration 2 - Add Foundational Principle
```markdown
Added: "Violating letter is violating spirit"
Re-tested: Agent chose A (delete it)
Cited: New principle directly
Meta-test: "Skill was clear, I should follow it"
```
**Bulletproof achieved.**
## Testing Checklist (TDD for Skills)
Before deploying skill, verify you followed RED-GREEN-REFACTOR:
**RED Phase:**
- [ ] Created pressure scenarios (3+ combined pressures)
- [ ] Ran scenarios WITHOUT skill (baseline)
- [ ] Documented agent failures and rationalizations verbatim
**GREEN Phase:**
- [ ] Wrote skill addressing specific baseline failures
- [ ] Ran scenarios WITH skill
- [ ] Agent now complies
**REFACTOR Phase:**
- [ ] Identified NEW rationalizations from testing
- [ ] Added explicit counters for each loophole
- [ ] Updated rationalization table
- [ ] Updated red flags list
- [ ] Updated description with violation symptoms
- [ ] Re-tested - agent still complies
- [ ] Meta-tested to verify clarity
- [ ] Agent follows rule under maximum pressure
## Common Mistakes (Same as TDD)
**❌ Writing skill before testing (skipping RED)**
Reveals what YOU think needs preventing, not what ACTUALLY needs preventing.
✅ Fix: Always run baseline scenarios first.
**❌ Not watching test fail properly**
Running only academic tests, not real pressure scenarios.
✅ Fix: Use pressure scenarios that make agent WANT to violate.
**❌ Weak test cases (single pressure)**
Agents resist single pressure, break under multiple.
✅ Fix: Combine 3+ pressures (time + sunk cost + exhaustion).
**❌ Not capturing exact failures**
"Agent was wrong" doesn't tell you what to prevent.
✅ Fix: Document exact rationalizations verbatim.
**❌ Vague fixes (adding generic counters)**
"Don't cheat" doesn't work. "Don't keep as reference" does.
✅ Fix: Add explicit negations for each specific rationalization.
**❌ Stopping after first pass**
Tests pass once ≠ bulletproof.
✅ Fix: Continue REFACTOR cycle until no new rationalizations.
## Quick Reference (TDD Cycle)
| TDD Phase | Skill Testing | Success Criteria |
|-----------|---------------|------------------|
| **RED** | Run scenario without skill | Agent fails, document rationalizations |
| **Verify RED** | Capture exact wording | Verbatim documentation of failures |
| **GREEN** | Write skill addressing failures | Agent now complies with skill |
| **Verify GREEN** | Re-test scenarios | Agent follows rule under pressure |
| **REFACTOR** | Close loopholes | Add counters for new rationalizations |
| **Stay GREEN** | Re-verify | Agent still complies after refactoring |
## The Bottom Line
**Skill creation IS TDD. Same principles, same cycle, same benefits.**
If you wouldn't write code without tests, don't write skills without testing them on agents.
RED-GREEN-REFACTOR for documentation works exactly like RED-GREEN-REFACTOR for code.
## Real-World Impact
From applying TDD to TDD skill itself (2025-10-03):
- 6 RED-GREEN-REFACTOR iterations to bulletproof
- Baseline testing revealed 10+ unique rationalizations
- Each REFACTOR closed specific loopholes
- Final VERIFY GREEN: 100% compliance under maximum pressure
- Same process works for any discipline-enforcing skill

34
.config/README.md Normal file
View File

@@ -0,0 +1,34 @@
# Worktrunk Setup
This repo uses [Worktrunk](https://github.com/max-sixty/worktrunk) for running multiple Claude Code agents in parallel on different branches.
## Install Worktrunk
```bash
brew install max-sixty/worktrunk/wt
wt config shell install
# restart terminal
```
## Quick Commands
| Task | Command |
|------|---------|
| Create worktree + start Claude | `wt switch -c -x claude feat-name` |
| Switch to existing worktree | `wt switch feat-name` |
| List all worktrees | `wt list` |
| Create PR | `gh pr create` |
| Remove worktree | `wt remove feat-name` |
## What happens on `wt switch -c`
1. Creates new worktree at `../browseros-main.feat-name/`
2. Runs `bun install` in `packages/browseros-agent/`
3. Copies `.env.*` files from main worktree's `packages/browseros-agent/apps/`
## Hooks
Hooks are configured in `.config/wt.toml`:
- **post-create**: Runs `bun install` in the agent package, copies env files and `.llm/` from the main worktree
- **pre-remove**: Syncs `.llm/` back to the main worktree before deletion

7
.config/wt.toml Normal file
View File

@@ -0,0 +1,7 @@
[post-create]
install = "cd packages/browseros-agent && bun install"
env = "for f in {{ repo_root }}/packages/browseros-agent/apps/*/.env.*; do [ -f \"$f\" ] && cp \"$f\" \"${f#{{ repo_root }}/}\"; done 2>/dev/null || true"
llm = "cp -r {{ repo_root }}/.llm . 2>/dev/null || true"
[pre-remove]
llm-sync = "rsync -au .llm/ {{ repo_root }}/.llm/ 2>/dev/null || true"

10
.gitattributes vendored
View File

@@ -2,5 +2,13 @@ resources/media/nxtscape-productivity.gif filter=lfs diff=lfs merge=lfs -text
resources/nxtscape-productivity.gif filter=lfs diff=lfs merge=lfs -text
resources/media/nxtscape-agent.gif filter=lfs diff=lfs merge=lfs -text
resources/media/nxtscape-chat.gif filter=lfs diff=lfs merge=lfs -text
docs/images/** filter=lfs diff=lfs merge=lfs -text
docs/videos/browserOS-agent-in-action.gif filter=lfs diff=lfs merge=lfs -text
# Mark Python build/tooling files as generated so they don't count in language stats
packages/browseros/build/**/*.py linguist-generated
packages/browseros/chromium_patches/**/*.py linguist-generated
scripts/*.py linguist-generated
# Mark build directories as generated
build/* linguist-generated
# Mark eval/test framework as vendored so it's excluded from language stats
packages/browseros-agent/apps/eval/** linguist-vendored
docs/videos/** filter=lfs diff=lfs merge=lfs -text

192
.github/workflows/audit.yml vendored Normal file
View File

@@ -0,0 +1,192 @@
name: Daily Security Audit
on:
schedule:
# Runs at midnight IST (6:30 PM UTC previous day)
- cron: "30 18 * * *"
workflow_dispatch: # Allows manual triggering
jobs:
security-audit:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/browseros-agent
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun ci
- name: Run security audit
id: audit
continue-on-error: true
run: |
# Run audit and capture output (skip the version line)
bun audit --json 2>&1 | tail -n 1 > audit-results.json || true
# Check if vulnerabilities exist
VULN_COUNT=$(cat audit-results.json | bun -e "const data = JSON.parse(require('fs').readFileSync(0, 'utf-8')); console.log(Object.keys(data).reduce((sum, pkg) => sum + data[pkg].length, 0))")
echo "vuln_count=$VULN_COUNT" >> $GITHUB_OUTPUT
- name: Parse audit results
id: parse
if: always()
run: |
cat > parse-audit.ts << 'EOF'
const fs = require('fs');
const auditData = JSON.parse(fs.readFileSync('audit-results.json', 'utf-8'));
// Collect all vulnerabilities from all packages
const allVulns: any[] = [];
let totalCount = 0;
for (const [packageName, vulns] of Object.entries(auditData)) {
if (Array.isArray(vulns)) {
vulns.forEach((vuln: any) => {
allVulns.push({ ...vuln, packageName });
totalCount++;
});
}
}
if (totalCount === 0) {
console.log(JSON.stringify({
text: "✅ *Daily Security Audit - No Vulnerabilities Found*",
blocks: [
{
type: "section",
text: {
type: "mrkdwn",
text: "✅ *Daily Security Audit*\n\nNo vulnerabilities found in dependencies!"
}
},
{
type: "context",
elements: [
{
type: "mrkdwn",
text: `Repository: ${process.env.GITHUB_REPOSITORY} | Branch: ${process.env.GITHUB_REF_NAME}`
}
]
}
]
}));
process.exit(0);
}
// Count by severity
const severityCounts = {
critical: 0,
high: 0,
moderate: 0,
low: 0
};
allVulns.forEach(vuln => {
severityCounts[vuln.severity as keyof typeof severityCounts]++;
});
let message = `⚠️ *Daily Security Audit - ${totalCount} Vulnerabilit${totalCount === 1 ? 'y' : 'ies'} Found*\n\n`;
message += `*Severity Breakdown:*\n`;
message += `• Critical: ${severityCounts.critical}\n`;
message += `• High: ${severityCounts.high}\n`;
message += `• Moderate: ${severityCounts.moderate}\n`;
message += `• Low: ${severityCounts.low}\n\n`;
message += `*Top Vulnerabilities:*\n`;
// Sort by severity
const severityOrder = { critical: 0, high: 1, moderate: 2, low: 3 };
allVulns.sort((a, b) =>
severityOrder[a.severity as keyof typeof severityOrder] -
severityOrder[b.severity as keyof typeof severityOrder]
);
allVulns.slice(0, 5).forEach(vuln => {
const emoji = {
critical: '🔴',
high: '🟠',
moderate: '🟡',
low: '🟢'
}[vuln.severity] || '⚪';
message += `\n${emoji} *${vuln.title}*\n`;
message += ` Package: \`${vuln.packageName}\`\n`;
message += ` Severity: ${vuln.severity.toUpperCase()}\n`;
message += ` Vulnerable: ${vuln.vulnerable_versions}\n`;
if (vuln.cwe?.length) {
message += ` CWE: ${vuln.cwe.join(', ')}\n`;
}
if (vuln.cvss?.score) {
message += ` CVSS: ${vuln.cvss.score}\n`;
}
if (vuln.url) {
message += ` <${vuln.url}|View Details>\n`;
}
});
if (allVulns.length > 5) {
message += `\n_...and ${allVulns.length - 5} more vulnerabilit${allVulns.length - 5 === 1 ? 'y' : 'ies'}_`;
}
const payload = {
text: `⚠️ Security Audit: ${totalCount} vulnerabilit${totalCount === 1 ? 'y' : 'ies'} found`,
blocks: [
{
type: "section",
text: {
type: "mrkdwn",
text: message
}
},
{
type: "actions",
elements: [
{
type: "button",
text: {
type: "plain_text",
text: "View Full Report"
},
url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`
}
]
},
{
type: "context",
elements: [
{
type: "mrkdwn",
text: `Repository: ${process.env.GITHUB_REPOSITORY} | Branch: ${process.env.GITHUB_REF_NAME}`
}
]
}
]
};
console.log(JSON.stringify(payload));
EOF
bun run parse-audit.ts > slack-payload.json
- name: Send to Slack
if: always()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
run: |
curl -X POST \
-H 'Content-Type: application/json' \
-d @slack-payload.json \
$SLACK_WEBHOOK_URL
- name: Fail if vulnerabilities found
if: steps.audit.outputs.vuln_count != '0'
run: |
echo "Security audit found vulnerabilities"
exit 1

17
.github/workflows/branch-cleaner.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: GitHub Branch Cleaner
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
cleanup:
name: Clean up merged branches
runs-on: ubuntu-latest
steps:
- uses: mmorenoregalado/action-branches-cleaner@v2.0.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
base_branches: main
days_old_threshold: 30

View File

@@ -1,11 +1,11 @@
name: 'CLA Assistant'
name: CLA Assistant
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]
# Explicitly configure permissions
permissions:
actions: write
contents: write
@@ -13,47 +13,46 @@ permissions:
statuses: write
jobs:
CLAAssistant:
cla:
runs-on: ubuntu-latest
if: |
(github.event_name == 'pull_request_target') ||
(github.event_name == 'issue_comment' && github.event.issue.pull_request &&
(github.event.comment.body == 'recheck' ||
github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA'))
steps:
- name: 'CLA Assistant'
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
- name: CLA Assistant
uses: contributor-assistant/github-action@v2.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_SIGNATURES_TOKEN }}
with:
# Path where signatures will be stored
path-to-signatures: 'signatures/version1/cla.json'
# Path to your CLA document
path-to-document: 'https://github.com/browseros-ai/BrowserOS/blob/main/CLA.md'
# Branch to store signatures (should not be protected)
path-to-signatures: 'cla-signatures.json'
path-to-document: 'https://github.com/${{ github.repository }}/blob/main/CLA.md'
branch: 'main'
# Allowlist for users who don't need to sign (bots, core team members)
allowlist: shadowfax92,felarof99,dependabot[bot],renovate[bot],github-actions[bot]
# Optional: Custom messages
remote-organization-name: 'browseros-ai'
remote-repository-name: 'cla-signatures'
allowlist: 'shadowfax92,felarof99,bot*,*[bot],dependabot,renovate,github-actions,snyk-bot,imgbot,greenkeeper,semantic-release-bot,allcontributors'
lock-pullrequest-aftermerge: false
custom-notsigned-prcomment: |
**CLA Assistant Lite bot** Thank you for your submission! We require contributors to sign our [Contributor License Agreement](https://github.com/browseros-ai/BrowserOS/blob/main/CLA.md) before we can accept your contribution.
Thank you for your contribution! Before we can merge this PR, we need you to sign our [Contributor License Agreement](https://github.com/${{ github.repository }}/blob/main/CLA.md).
By signing the CLA, you confirm that:
- You have read and agree to the AGPL-3.0 license terms
- Your contribution is your original work
- You grant us the rights to use your contribution under the AGPL-3.0 license
**To sign the CLA**, please add a comment to this PR with the following text:
**To sign the CLA, please comment on this PR with:**
`I have read the CLA Document and I hereby sign the CLA`
```
I have read the CLA Document and I hereby sign the CLA
```
You only need to sign once. After signing, this check will pass automatically.
---
<details>
<summary>Troubleshooting</summary>
- **Already signed but still failing?** Comment `recheck` to trigger a re-verification.
- **Signed with a different email?** Make sure your commit email matches your GitHub account email, or add your commit email to your GitHub account.
</details>
custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA'
custom-allsigned-prcomment: |
**CLA Assistant Lite bot** ✅ All contributors have signed the CLA. Thank you for helping make BrowserOS better!
# Lock PR after merge to prevent signature tampering
lock-pullrequest-aftermerge: true
# Custom commit messages
create-file-commit-message: 'docs: Create CLA signatures file'
signed-commit-message: 'docs: $contributorName signed the CLA in $owner/$repo#$pullRequestNo'
All contributors have signed the CLA. Thank you!

42
.github/workflows/claude.yml vendored Normal file
View File

@@ -0,0 +1,42 @@
name: Claude Code
on:
pull_request:
types: [opened, ready_for_review]
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]
jobs:
claude:
if: |
github.event_name == 'pull_request' ||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.review.author_association)) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: read
id-token: write
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
additional_permissions: |
actions: read

61
.github/workflows/code-quality.yml vendored Normal file
View File

@@ -0,0 +1,61 @@
name: Code Quality
on:
pull_request:
branches:
- main
- dev
paths:
- "packages/browseros-agent/**"
jobs:
biome:
name: runner / Biome
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/browseros-agent
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run Biome
run: biome ci .
typecheck:
name: runner / Typecheck
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/browseros-agent
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun ci
- name: Prepare wxt
run: VITE_PUBLIC_BROWSEROS_API=http://localhost:3000 bun run --cwd apps/agent wxt prepare
- name: Run codegen
run: bun run --cwd apps/agent codegen
- name: Run Typecheck
run: bun run typecheck

98
.github/workflows/eval-weekly.yml vendored Normal file
View File

@@ -0,0 +1,98 @@
name: Weekly Eval
on:
schedule:
# Every Saturday at 06:00 UTC
- cron: '0 6 * * 6'
push:
branches: [main]
paths:
- 'packages/browseros-agent/apps/server/src/agent/**'
- 'packages/browseros-agent/apps/server/src/tools/**'
workflow_dispatch:
inputs:
config:
description: 'Eval config file (relative to apps/eval/)'
required: false
default: 'configs/browseros-agent-weekly.json'
permissions:
contents: read
jobs:
eval:
runs-on: ubuntu-latest
timeout-minutes: 360
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install BrowserOS
run: |
wget -q https://github.com/browseros-ai/BrowserOS/releases/download/v0.44.0.1/BrowserOS_v0.44.0.1_amd64.deb
sudo dpkg -i BrowserOS_v0.44.0.1_amd64.deb
browseros --version || echo "BrowserOS installed at $(which browseros)"
- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
working-directory: packages/browseros-agent
run: bun install --ignore-scripts && bun run build:agent-sdk
- name: Install xvfb
run: sudo apt-get update && sudo apt-get install -y xvfb
- name: Install captcha solver extension
working-directory: packages/browseros-agent/apps/eval
run: |
mkdir -p extensions
curl -sL -o /tmp/nopecha.zip https://github.com/NopeCHALLC/nopecha-extension/releases/latest/download/chromium_automation.zip
unzip -qo /tmp/nopecha.zip -d extensions/nopecha
- name: Run eval
working-directory: packages/browseros-agent/apps/eval
env:
FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }}
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
NOPECHA_API_KEY: ${{ secrets.NOPECHA_API_KEY }}
BROWSEROS_BINARY: /usr/bin/browseros
EVAL_CONFIG: ${{ github.event.inputs.config || 'configs/browseros-agent-weekly.json' }}
run: |
echo "Running eval with config: $EVAL_CONFIG"
xvfb-run --auto-servernum --server-args="-screen 0 1440x900x24" bun run src/index.ts -c "$EVAL_CONFIG"
- name: Upload runs to R2
if: success()
working-directory: packages/browseros-agent/apps/eval
env:
EVAL_R2_ACCOUNT_ID: ${{ secrets.EVAL_R2_ACCOUNT_ID }}
EVAL_R2_ACCESS_KEY_ID: ${{ secrets.EVAL_R2_ACCESS_KEY_ID }}
EVAL_R2_SECRET_ACCESS_KEY: ${{ secrets.EVAL_R2_SECRET_ACCESS_KEY }}
EVAL_R2_BUCKET: ${{ secrets.EVAL_R2_BUCKET }}
EVAL_R2_CDN_BASE_URL: ${{ secrets.EVAL_R2_CDN_BASE_URL }}
EVAL_CONFIG: ${{ github.event.inputs.config || 'configs/browseros-agent-weekly.json' }}
run: |
CONFIG_NAME=$(basename "$EVAL_CONFIG" .json)
bun scripts/upload-run.ts "results/$CONFIG_NAME"
- name: Generate trend report
if: success()
working-directory: packages/browseros-agent
env:
EVAL_R2_ACCOUNT_ID: ${{ secrets.EVAL_R2_ACCOUNT_ID }}
EVAL_R2_ACCESS_KEY_ID: ${{ secrets.EVAL_R2_ACCESS_KEY_ID }}
EVAL_R2_SECRET_ACCESS_KEY: ${{ secrets.EVAL_R2_SECRET_ACCESS_KEY }}
EVAL_R2_BUCKET: ${{ secrets.EVAL_R2_BUCKET }}
EVAL_R2_CDN_BASE_URL: ${{ secrets.EVAL_R2_CDN_BASE_URL }}
run: bun apps/eval/scripts/weekly-report.ts /tmp/eval-report.html
- name: Upload report as artifact
if: success()
uses: actions/upload-artifact@v4
with:
name: eval-report-${{ github.run_id }}
path: /tmp/eval-report.html

20
.github/workflows/pr-title.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: PR Conventional Commit Validation
on:
pull_request:
types: [opened, edited]
permissions:
pull-requests: write
issues: write
contents: read
jobs:
validate-pr-title:
runs-on: ubuntu-latest
steps:
- name: PR Conventional Commit Validation
uses: ytanikin/pr-conventional-commits@1.5.1
with:
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert","build"]'
custom_labels: '{"feat": "feature", "fix": "fix", "docs": "documentation", "test": "test", "ci": "CI/CD", "refactor": "refactor", "perf": "performance", "chore": "chore", "revert": "revert", "wip": "WIP"}'

View File

@@ -0,0 +1,148 @@
name: Release BrowserOS Extension
on:
workflow_dispatch:
concurrency:
group: release-agent-extension
cancel-in-progress: false
jobs:
release:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
defaults:
run:
working-directory: packages/browseros-agent/apps/agent
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun ci
working-directory: packages/browseros-agent
- name: Build and zip extension
run: bun run codegen && bun run zip
env:
VITE_PUBLIC_BROWSEROS_API: https://api.browseros.com
- name: Get version and zip path
id: version
run: |
echo "version=$(node -p "require('./package.json').version")" >> "$GITHUB_OUTPUT"
echo "release_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
ZIP_FILE=$(ls "$(pwd)/dist/"*-chrome.zip | head -n 1)
echo "zip_path=$ZIP_FILE" >> "$GITHUB_OUTPUT"
echo "zip_name=$(basename "$ZIP_FILE")" >> "$GITHUB_OUTPUT"
- name: Generate release notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
AGENT_PATH="packages/browseros-agent/apps/agent"
CURRENT_TAG="agent-extension-v${{ steps.version.outputs.version }}"
PREV_TAG=$(git tag -l "agent-extension-v*" --sort=-v:refname | grep -v "^${CURRENT_TAG}$" | head -n 1)
if [ -z "$PREV_TAG" ]; then
echo "Initial release" > /tmp/release-notes.md
else
COMMITS=$(git log "$PREV_TAG"..HEAD --pretty=format:"%H" -- "$AGENT_PATH")
if [ -z "$COMMITS" ]; then
echo "No notable changes." > /tmp/release-notes.md
else
echo "## What's Changed" > /tmp/release-notes.md
echo "" >> /tmp/release-notes.md
while IFS= read -r SHA; do
SUBJECT=$(git log -1 --pretty=format:"%s" "$SHA")
PR_NUM=$(gh api "/repos/${{ github.repository }}/commits/${SHA}/pulls" --jq '.[0].number // empty' 2>/dev/null)
# Skip PR number if already in the commit subject (squash merges include it)
if [ -n "$PR_NUM" ] && ! echo "$SUBJECT" | grep -qF "(#${PR_NUM})"; then
echo "- ${SUBJECT} (#${PR_NUM})" >> /tmp/release-notes.md
else
echo "- ${SUBJECT}" >> /tmp/release-notes.md
fi
done <<< "$COMMITS"
fi
fi
working-directory: ${{ github.workspace }}
- name: Create GitHub release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG="agent-extension-v${{ steps.version.outputs.version }}"
RELEASE_SHA="${{ steps.version.outputs.release_sha }}"
TITLE="BrowserOS Extension - v${{ steps.version.outputs.version }}"
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "Tag $TAG already exists, skipping tag creation"
else
git tag "$TAG" "$RELEASE_SHA"
fi
if git ls-remote --tags origin "$TAG" | grep -q "$TAG"; then
echo "Tag $TAG already on remote, skipping push"
else
git push origin "$TAG"
fi
if gh release view "$TAG" >/dev/null 2>&1; then
echo "Release $TAG already exists, updating"
gh release edit "$TAG" --title "$TITLE" --notes-file /tmp/release-notes.md
gh release upload "$TAG" "${{ steps.version.outputs.zip_path }}" --clobber
else
gh release create "$TAG" \
--title "$TITLE" \
--notes-file /tmp/release-notes.md \
"${{ steps.version.outputs.zip_path }}"
fi
working-directory: ${{ github.workspace }}
- name: Update CHANGELOG.md via PR
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION="${{ steps.version.outputs.version }}"
DATE=$(date -u +"%Y-%m-%d")
BRANCH="docs/agent-extension-changelog-v${VERSION}"
CHANGELOG="packages/browseros-agent/apps/agent/CHANGELOG.md"
git checkout main
{
head -n 1 "$CHANGELOG"
echo ""
echo "## v${VERSION} (${DATE})"
echo ""
cat /tmp/release-notes.md
echo ""
tail -n +2 "$CHANGELOG"
} > /tmp/new-changelog.md
mv /tmp/new-changelog.md "$CHANGELOG"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b "$BRANCH"
git add "$CHANGELOG"
git commit -m "docs: update agent extension changelog for v${VERSION}"
git push origin "$BRANCH"
gh pr create \
--title "docs: update agent extension changelog for v${VERSION}" \
--body "Auto-generated changelog update for BrowserOS Extension v${VERSION}." \
--base main \
--head "$BRANCH"
gh pr merge "$BRANCH" --squash --auto || true
working-directory: ${{ github.workspace }}

168
.github/workflows/release-agent-sdk.yml vendored Normal file
View File

@@ -0,0 +1,168 @@
name: Release BrowserOS Agent SDK
on:
workflow_dispatch:
concurrency:
group: release-agent-sdk
cancel-in-progress: false
jobs:
publish:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
defaults:
run:
working-directory: packages/browseros-agent/packages/agent-sdk
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v6
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: bun ci
working-directory: packages/browseros-agent
- name: Build
run: bun run build
- name: Test
run: bun test
- name: Get version
id: version
run: |
echo "version=$(node -p "require('./package.json').version")" >> "$GITHUB_OUTPUT"
echo "release_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- name: Generate release notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
SDK_PATH="packages/browseros-agent/packages/agent-sdk"
CURRENT_TAG="agent-sdk-v${{ steps.version.outputs.version }}"
# Find the previous tag, excluding the current version's tag
# (which may already exist from a prior failed run)
PREV_TAG=$(git tag -l "agent-sdk-v*" --sort=-v:refname | grep -v "^${CURRENT_TAG}$" | head -n 1)
if [ -z "$PREV_TAG" ]; then
echo "Initial release" > /tmp/release-notes.md
else
# Get commits scoped to the SDK directory
COMMITS=$(git log "$PREV_TAG"..HEAD --pretty=format:"%H" -- "$SDK_PATH")
if [ -z "$COMMITS" ]; then
echo "No notable changes." > /tmp/release-notes.md
else
echo "## What's Changed" > /tmp/release-notes.md
echo "" >> /tmp/release-notes.md
# For each commit, find the associated PR and format with author
CONTRIBUTORS=""
while IFS= read -r SHA; do
# Get commit subject and author
SUBJECT=$(git log -1 --pretty=format:"%s" "$SHA")
AUTHOR=$(git log -1 --pretty=format:"%an" "$SHA")
GITHUB_USER=$(gh api "/repos/${{ github.repository }}/commits/${SHA}" --jq '.author.login // empty' 2>/dev/null)
# Find associated PR number
PR_NUM=$(gh api "/repos/${{ github.repository }}/commits/${SHA}/pulls" --jq '.[0].number // empty' 2>/dev/null)
# Format line: skip PR number if already in the commit subject
# (squash merges include "(#123)" in the subject automatically)
if [ -n "$PR_NUM" ] && ! echo "$SUBJECT" | grep -qF "(#${PR_NUM})"; then
echo "- ${SUBJECT} (#${PR_NUM})" >> /tmp/release-notes.md
else
echo "- ${SUBJECT}" >> /tmp/release-notes.md
fi
done <<< "$COMMITS"
fi
fi
working-directory: ${{ github.workspace }}
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG="agent-sdk-v${{ steps.version.outputs.version }}"
RELEASE_SHA="${{ steps.version.outputs.release_sha }}"
TITLE="BrowserOS Agent SDK - v${{ steps.version.outputs.version }}"
# Create or reuse tag (idempotent for re-runs)
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "Tag $TAG already exists, skipping tag creation"
else
git tag "$TAG" "$RELEASE_SHA"
fi
# Push tag (skip if already on remote)
if git ls-remote --tags origin "$TAG" | grep -q "$TAG"; then
echo "Tag $TAG already on remote, skipping push"
else
git push origin "$TAG"
fi
# Create or update release
if gh release view "$TAG" >/dev/null 2>&1; then
echo "Release $TAG already exists, updating"
gh release edit "$TAG" --title "$TITLE" --notes-file /tmp/release-notes.md
else
gh release create "$TAG" --title "$TITLE" --notes-file /tmp/release-notes.md
fi
working-directory: ${{ github.workspace }}
- name: Update CHANGELOG.md via PR
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION="${{ steps.version.outputs.version }}"
DATE=$(date -u +"%Y-%m-%d")
BRANCH="docs/agent-sdk-changelog-v${VERSION}"
CHANGELOG="packages/browseros-agent/packages/agent-sdk/CHANGELOG.md"
# Return to main before branching
git checkout main
# Use head/tail to safely insert without sed quoting issues
{
head -n 1 "$CHANGELOG"
echo ""
echo "## v${VERSION} (${DATE})"
echo ""
cat /tmp/release-notes.md
echo ""
tail -n +2 "$CHANGELOG"
} > /tmp/new-changelog.md
mv /tmp/new-changelog.md "$CHANGELOG"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b "$BRANCH"
git add "$CHANGELOG"
git commit -m "docs: update agent-sdk changelog for v${VERSION}"
git push origin "$BRANCH"
gh pr create \
--title "docs: update agent-sdk changelog for v${VERSION}" \
--body "Auto-generated changelog update for BrowserOS Agent SDK v${VERSION}." \
--base main \
--head "$BRANCH"
gh pr merge "$BRANCH" --squash --auto || true
working-directory: ${{ github.workspace }}

161
.github/workflows/release-cli.yml vendored Normal file
View File

@@ -0,0 +1,161 @@
name: Release BrowserOS CLI
on:
workflow_dispatch:
inputs:
version:
description: "Release version (e.g. 0.1.0)"
required: true
type: string
concurrency:
group: release-cli
cancel-in-progress: false
jobs:
release:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment: release-core
permissions:
contents: write
pull-requests: write
defaults:
run:
working-directory: packages/browseros-agent/apps/cli
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: packages/browseros-agent/apps/cli/go.mod
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.6"
- name: Run tests
run: make test
- name: Run vet
run: make vet
- name: Build all platforms
run: make release VERSION=${{ inputs.version }} POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}
- name: Install dependencies
run: bun install
working-directory: packages/browseros-agent
- name: Upload to CDN
env:
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
R2_BUCKET: ${{ secrets.R2_BUCKET }}
R2_UPLOAD_PREFIX: cli
CLI_VERSION: ${{ inputs.version }}
run: |
bun scripts/build/cli.ts \
--release \
--version "$CLI_VERSION" \
--binaries-dir apps/cli/dist
working-directory: packages/browseros-agent
- name: Generate release notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
CLI_PATH="packages/browseros-agent/apps/cli"
TAG="browseros-cli-v${{ inputs.version }}"
CHANGELOG_FILE="/tmp/release-changelog.md"
PREV_TAG=$(git tag -l "browseros-cli-v*" --sort=-v:refname | grep -v "^${TAG}$" | head -n 1)
if [ -z "$PREV_TAG" ]; then
echo "Initial release of browseros-cli." > "$CHANGELOG_FILE"
else
COMMITS=$(git log "$PREV_TAG"..HEAD --pretty=format:"%H" -- "$CLI_PATH")
if [ -z "$COMMITS" ]; then
echo "No notable changes." > "$CHANGELOG_FILE"
else
echo "## What's Changed" > "$CHANGELOG_FILE"
echo "" >> "$CHANGELOG_FILE"
while IFS= read -r SHA; do
SUBJECT=$(git log -1 --pretty=format:"%s" "$SHA")
PR_NUM=$(gh api "/repos/${{ github.repository }}/commits/${SHA}/pulls" --jq '.[0].number // empty' 2>/dev/null)
if [ -n "$PR_NUM" ] && ! echo "$SUBJECT" | grep -qF "(#${PR_NUM})"; then
echo "- ${SUBJECT} (#${PR_NUM})" >> "$CHANGELOG_FILE"
else
echo "- ${SUBJECT}" >> "$CHANGELOG_FILE"
fi
done <<< "$COMMITS"
fi
fi
cat "$CHANGELOG_FILE" > /tmp/release-notes.md
cat >> /tmp/release-notes.md <<'EOF'
## Install `browseros-cli`
### npm / npx
```bash
npx browseros-cli --help
npm install -g browseros-cli
```
### macOS / Linux
```bash
curl -fsSL https://cdn.browseros.com/cli/install.sh | bash
```
### Windows
```powershell
irm https://cdn.browseros.com/cli/install.ps1 | iex
```
After install, run `browseros-cli init` to point the CLI at your BrowserOS MCP server.
EOF
working-directory: ${{ github.workspace }}
- name: Create tag and release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG="browseros-cli-v${{ inputs.version }}"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if ! git rev-parse "$TAG" >/dev/null 2>&1; then
git tag -a "$TAG" -m "browseros-cli v${{ inputs.version }}"
git push origin "$TAG"
fi
CLI_DIST="packages/browseros-agent/apps/cli/dist"
gh release create "$TAG" \
--title "BrowserOS CLI - v${{ inputs.version }}" \
--notes-file /tmp/release-notes.md \
${CLI_DIST}/*
working-directory: ${{ github.workspace }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
make npm-version VERSION=${{ inputs.version }}
cd npm
npm publish --access public

147
.github/workflows/release-server.yml vendored Normal file
View File

@@ -0,0 +1,147 @@
name: Release BrowserOS Server
on:
workflow_dispatch:
inputs:
version:
description: "Release version (e.g. 0.0.80)"
required: true
type: string
concurrency:
group: release-server
cancel-in-progress: false
jobs:
release:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment: release-core
permissions:
contents: write
defaults:
run:
working-directory: packages/browseros-agent
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.6"
- name: Install dependencies
run: bun ci
- name: Prepare production env file
run: cp apps/server/.env.production.example apps/server/.env.production
- name: Validate version
id: version
env:
REQUESTED_VERSION: ${{ inputs.version }}
run: |
PACKAGE_VERSION=$(node -p "require('./apps/server/package.json').version")
echo "package_version=$PACKAGE_VERSION" >> "$GITHUB_OUTPUT"
echo "release_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
if [ "$PACKAGE_VERSION" != "$REQUESTED_VERSION" ]; then
echo "Requested version $REQUESTED_VERSION does not match apps/server/package.json ($PACKAGE_VERSION)"
exit 1
fi
- name: Build release artifacts
run: bun run build:server:ci
- name: Verify release artifacts
run: |
mapfile -t ZIP_FILES < <(find dist/prod/server -maxdepth 1 -type f -name 'browseros-server-resources-*.zip' | sort)
if [ "${#ZIP_FILES[@]}" -eq 0 ]; then
echo "No server release zip files were produced"
exit 1
fi
printf 'Found release artifacts:\n%s\n' "${ZIP_FILES[@]}"
- name: Generate release notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGE_VERSION: ${{ steps.version.outputs.package_version }}
run: |
SERVER_APP_PATH="packages/browseros-agent/apps/server"
SERVER_BUILD_DIR="packages/browseros-agent/scripts/build/server"
SERVER_BUILD_ENTRY="packages/browseros-agent/scripts/build/server.ts"
SERVER_RESOURCE_MANIFEST="packages/browseros-agent/scripts/build/config/server-prod-resources.json"
SERVER_WORKSPACE_PKG="packages/browseros-agent/package.json"
CURRENT_TAG="browseros-server-v$PACKAGE_VERSION"
PREV_TAG=$(git tag -l "browseros-server-v*" --sort=-v:refname | grep -v "^${CURRENT_TAG}$" | head -n 1)
if [ -z "$PREV_TAG" ]; then
echo "Initial release of browseros-server." > /tmp/release-notes.md
else
COMMITS=$(git log "$PREV_TAG"..HEAD --pretty=format:"%H" -- \
"$SERVER_APP_PATH" \
"$SERVER_BUILD_DIR" \
"$SERVER_BUILD_ENTRY" \
"$SERVER_RESOURCE_MANIFEST" \
"$SERVER_WORKSPACE_PKG")
if [ -z "$COMMITS" ]; then
echo "No notable changes." > /tmp/release-notes.md
else
echo "## What's Changed" > /tmp/release-notes.md
echo "" >> /tmp/release-notes.md
while IFS= read -r SHA; do
SUBJECT=$(git log -1 --pretty=format:"%s" "$SHA")
PR_NUM=$(gh api "/repos/${{ github.repository }}/commits/${SHA}/pulls" --jq '.[0].number // empty' 2>/dev/null)
if [ -n "$PR_NUM" ] && ! echo "$SUBJECT" | grep -qF "(#${PR_NUM})"; then
echo "- ${SUBJECT} (#${PR_NUM})" >> /tmp/release-notes.md
else
echo "- ${SUBJECT}" >> /tmp/release-notes.md
fi
done <<< "$COMMITS"
fi
fi
working-directory: ${{ github.workspace }}
- name: Create GitHub release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGE_VERSION: ${{ steps.version.outputs.package_version }}
RELEASE_SHA: ${{ steps.version.outputs.release_sha }}
run: |
TAG="browseros-server-v$PACKAGE_VERSION"
TITLE="BrowserOS Server - v$PACKAGE_VERSION"
mapfile -t ZIP_FILES < <(find packages/browseros-agent/dist/prod/server -maxdepth 1 -type f -name 'browseros-server-resources-*.zip' | sort)
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "Tag $TAG already exists, skipping tag creation"
else
git tag -a "$TAG" -m "browseros-server v$PACKAGE_VERSION" "$RELEASE_SHA"
fi
if git ls-remote --tags origin "$TAG" | grep -q "$TAG"; then
echo "Tag $TAG already on remote, skipping push"
else
git push origin "$TAG"
fi
if gh release view "$TAG" >/dev/null 2>&1; then
echo "Release $TAG already exists, updating"
gh release edit "$TAG" --title "$TITLE" --notes-file /tmp/release-notes.md
gh release upload "$TAG" "${ZIP_FILES[@]}" --clobber
else
gh release create "$TAG" \
--title "$TITLE" \
--notes-file /tmp/release-notes.md \
"${ZIP_FILES[@]}"
fi
working-directory: ${{ github.workspace }}

138
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,138 @@
name: Tests
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
paths:
- .github/workflows/test.yml
- packages/browseros-agent/**
workflow_dispatch:
permissions:
contents: read
env:
BROWSEROS_APPIMAGE_URL: https://files.browseros.com/download/BrowserOS.AppImage
jobs:
test:
name: Tests / ${{ matrix.suite }}
runs-on: ubuntu-latest
timeout-minutes: 20
defaults:
run:
working-directory: packages/browseros-agent
strategy:
fail-fast: false
matrix:
include:
- suite: tools
test_path: tests/tools
junit_path: test-results/tools.xml
- suite: integration
test_path: tests/server.integration.test.ts
junit_path: test-results/integration.xml
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun ci
- name: Resolve BrowserOS cache key
id: browseros-cache-key
run: |
set -euo pipefail
headers="$(curl -fsSI "$BROWSEROS_APPIMAGE_URL")"
etag="$(printf '%s\n' "$headers" | awk 'BEGIN{IGNORECASE=1} /^etag:/ {sub(/\r$/, "", $2); gsub(/"/, "", $2); print $2; exit}')"
last_modified="$(printf '%s\n' "$headers" | awk 'BEGIN{IGNORECASE=1} /^last-modified:/ {$1=""; sub(/^ /, ""); sub(/\r$/, ""); print; exit}')"
raw_key="${etag:-$last_modified}"
if [ -z "$raw_key" ]; then
raw_key="$BROWSEROS_APPIMAGE_URL"
fi
cache_key="$(printf '%s' "$raw_key" | shasum -a 256 | awk '{print $1}')"
echo "key=browseros-appimage-${{ runner.os }}-$cache_key" >> "$GITHUB_OUTPUT"
- name: Restore BrowserOS cache
id: browseros-cache
uses: actions/cache@v4
with:
path: packages/browseros-agent/.ci/bin/BrowserOS.AppImage
key: ${{ steps.browseros-cache-key.outputs.key }}
- name: Download BrowserOS
if: steps.browseros-cache.outputs.cache-hit != 'true'
run: |
mkdir -p .ci/bin
curl -fsSL "$BROWSEROS_APPIMAGE_URL" -o .ci/bin/BrowserOS.AppImage
chmod +x .ci/bin/BrowserOS.AppImage
- name: Prepare BrowserOS wrapper
run: |
mkdir -p .ci/bin
cat > .ci/bin/browseros <<'EOF'
#!/usr/bin/env bash
set -euo pipefail
export APPIMAGE_EXTRACT_AND_RUN=1
exec "$(dirname "$0")/BrowserOS.AppImage" "$@"
EOF
chmod +x .ci/bin/browseros
- name: Create server env file
working-directory: packages/browseros-agent/apps/server
run: cp .env.example .env.development
- name: Run ${{ matrix.suite }} tests
id: test
env:
BROWSEROS_BINARY: ${{ github.workspace }}/packages/browseros-agent/.ci/bin/browseros
BROWSEROS_TEST_HEADLESS: "true"
BROWSEROS_TEST_EXTRA_ARGS: --no-sandbox --disable-dev-shm-usage
run: |
set +e
mkdir -p test-results
cd apps/server
bun run test:cleanup
bun --env-file=.env.development test "${{ matrix.test_path }}" --reporter=junit --reporter-outfile="../../${{ matrix.junit_path }}"
exit_code=$?
cd ../..
if [ ! -f "${{ matrix.junit_path }}" ]; then
cat > "${{ matrix.junit_path }}" <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="1" failures="1">
<testsuite name="${{ matrix.suite }}" tests="1" failures="1">
<testcase classname="workflow" name="${{ matrix.suite }} setup">
<failure message="Test run failed before JUnit output was written">See workflow logs for details.</failure>
</testcase>
</testsuite>
</testsuites>
EOF
fi
echo "exit_code=$exit_code" >> "$GITHUB_OUTPUT"
- name: Upload JUnit XML
if: always()
uses: actions/upload-artifact@v4
with:
name: junit-${{ matrix.suite }}
path: packages/browseros-agent/${{ matrix.junit_path }}
- name: Summarize suite result
if: always()
run: |
if [ "${{ steps.test.outputs.exit_code }}" = "0" ]; then
echo "### :white_check_mark: ${{ matrix.suite }} suite passed" >> "$GITHUB_STEP_SUMMARY"
else
echo "### :x: ${{ matrix.suite }} suite failed (exit code ${{ steps.test.outputs.exit_code }})" >> "$GITHUB_STEP_SUMMARY"
echo "" >> "$GITHUB_STEP_SUMMARY"
echo "See the uploaded \`junit-${{ matrix.suite }}\` artifact for details." >> "$GITHUB_STEP_SUMMARY"
exit 1
fi

View File

@@ -43,13 +43,23 @@ jobs:
}
' -f owner='browseros-ai' -f repo='BrowserOS')
# Parse and sort issues by thumbs up count
sorted_issues=$(echo "$issues" | jq -r --arg ISSUE_NUMBER "$ISSUE_NUMBER" '
# Parse and sort RFC issues (titles containing [RFC])
sorted_rfcs=$(echo "$issues" | jq -r --arg ISSUE_NUMBER "$ISSUE_NUMBER" '
.data.repository.issues.nodes
| map(select(.number != ($ISSUE_NUMBER | tonumber)))
| map(select(.number != ($ISSUE_NUMBER | tonumber) and (.title | contains("[RFC]"))))
| sort_by(-.reactions.totalCount)
| to_entries
| map("\(.key + 1). [\(.value.title)](\(.value.url)) - \(.value.reactions.totalCount) 👍")
| map("\(.key + 1). [\(.value.title)](\(.value.url)) \(.value.reactions.totalCount) 👍")
| join("\n")
')
# Parse and sort regular issues (excluding RFCs)
sorted_issues=$(echo "$issues" | jq -r --arg ISSUE_NUMBER "$ISSUE_NUMBER" '
.data.repository.issues.nodes
| map(select(.number != ($ISSUE_NUMBER | tonumber) and (.title | contains("[RFC]") | not)))
| sort_by(-.reactions.totalCount)
| to_entries
| map("\(.key + 1). [\(.value.title)](\(.value.url)) — \(.value.reactions.totalCount) 👍")
| join("\n")
')
@@ -57,21 +67,38 @@ jobs:
current_time=$(date -u +"%Y-%m-%d %H:%M:%S UTC")
{
echo "# 👍 Top Issues and Features by Votes"
echo "# Community Roadmap"
echo ""
echo "This list is automatically updated every hour based on 👍 reactions."
echo ""
echo "## How to Use This List"
echo "## How to Vote"
echo ""
echo "**👍 Upvote features you want** - Items with more votes get prioritized."
echo "| Action | What it does |"
echo "|--------|--------------|"
echo "| 👍 on an issue | Adds your vote — we prioritize by vote count |"
echo "| 💬 Comment | Your feedback shapes what we build |"
echo ""
echo "**Don't see what you need?** Create a new [feature request](https://github.com/browseros-ai/BrowserOS/issues/new) or [bug report](https://github.com/browseros-ai/BrowserOS/issues/new)."
echo ""
echo "Thank you for helping us prioritize!"
echo ""
echo "**Last updated:** $current_time"
echo ""
echo "## Top Issues"
echo "---"
echo ""
echo "## 📣 RFCs — We Need Your Input"
echo ""
echo "> **These proposals are in review.** Your vote and comments directly influence what gets built."
echo ">"
echo "> 👍 = Yes, build this &nbsp;|&nbsp; 💬 = Share your use case or feedback"
echo ""
if [ -n "$sorted_rfcs" ]; then
echo "$sorted_rfcs"
else
echo "*No active RFCs right now. Check back soon!*"
fi
echo ""
echo "---"
echo ""
echo "## Top Issues & Feature Requests"
echo ""
echo "$sorted_issues"
echo ""

View File

@@ -1,41 +0,0 @@
name: Update Agent Submodule
on:
schedule:
# Run every hour
- cron: "0 * * * *"
# Allow manual triggering for testing
workflow_dispatch:
permissions:
contents: write
concurrency:
group: submodule-update
cancel-in-progress: false
jobs:
update-submodule:
runs-on: ubuntu-latest
# Only run on the main repository, not on forks
if: github.repository == 'browseros-ai/BrowserOS'
steps:
- name: Checkout repository with submodules
uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure git
run: |
git config user.name "Felarof"
git config user.email "nithin.sonti@gmail.com"
- name: Update agent submodule
run: |
bash scripts/update-submodule.sh main
- name: Push changes
run: |
git push origin main

13
.gitignore vendored
View File

@@ -14,7 +14,20 @@
**/.pytest_cache/
**/dist/
**/releases/
**/.wrangler/
**/node_modules/
nxtscape-cli-access.json
gclient.json
.env
.grove/
AGENTS.md
**/resources/binaries/
packages/browseros/build/tools/
# AI SDK DevTools traces
.devtools/
.omc/

4
.gitmodules vendored
View File

@@ -1,4 +0,0 @@
[submodule "packages/browseros-agent"]
path = packages/browseros-agent
url = https://github.com/browseros-ai/BrowserOS-agent.git
branch = main

File diff suppressed because it is too large Load Diff

4
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,4 @@
{
"terminal.integrated.tabs.title": "${sequence} ${process}",
"terminal.integrated.tabs.description": "${cwd}"
}

11
CLAUDE.md Normal file
View File

@@ -0,0 +1,11 @@
# Project Instructions
## Docs Image Workflow
When updating documentation that involves new screenshots or images:
1. Prompt the user to copy the image to their clipboard (Cmd+C)
2. Run: `python scripts/save_clipboard.py <target_path>`
3. Example: `python scripts/save_clipboard.py docs/images/agent-step.png`
This saves the clipboard image directly to the docs folder without manual file management.

195
README.md
View File

@@ -6,6 +6,7 @@
[![Slack](https://img.shields.io/badge/Slack-Join%20us-4A154B?logo=slack&logoColor=white)](https://dub.sh/browserOS-slack)
[![Twitter](https://img.shields.io/twitter/follow/browserOS_ai?style=social)](https://twitter.com/browseros_ai)
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](LICENSE)
[![Docs](https://img.shields.io/badge/Docs-docs.browseros.com-blue)](https://docs.browseros.com)
<br></br>
<a href="https://files.browseros.com/download/BrowserOS.dmg">
<img src="https://img.shields.io/badge/Download-macOS-black?style=flat&logo=apple&logoColor=white" alt="Download for macOS (beta)" />
@@ -22,125 +23,183 @@
<br />
</div>
##
🌐 BrowserOS is an open-source chromium fork that runs AI agents natively. **Your open-source, privacy-first alternative to ChatGPT Atlas, Perplexity Comet, Dia**.
BrowserOS is an open-source Chromium fork that runs AI agents natively. **The privacy-first alternative to ChatGPT Atlas, Perplexity Comet, and Dia.**
🔒 Privacy first - use your own API keys or run local models with Ollama. Your data stays on your computer.
Use your own API keys or run local models with Ollama. Your data never leaves your machine.
💡 Join our [Discord](https://discord.gg/YKwjt5vuKr) or [Slack](https://dub.sh/browserOS-slack) and help us build! Have feature requests? [Suggest here](https://github.com/browseros-ai/BrowserOS/issues/99).
> **[Documentation](https://docs.browseros.com)** · **[Discord](https://discord.gg/YKwjt5vuKr)** · **[Slack](https://dub.sh/browserOS-slack)** · **[Twitter](https://x.com/browserOS_ai)** · **[Feature Requests](https://github.com/browseros-ai/BrowserOS/issues/99)**
## Quick start
## Quick Start
1. Download and install BrowserOS:
- [macOS](https://files.browseros.com/download/BrowserOS.dmg)
- [Windows](https://files.browseros.com/download/BrowserOS_installer.exe)
- [Linux (AppImage)](https://files.browseros.com/download/BrowserOS.AppImage)
- [Linux (Debian)](https://cdn.browseros.com/download/BrowserOS.deb)
1. **Download and install** BrowserOS — [macOS](https://files.browseros.com/download/BrowserOS.dmg) · [Windows](https://files.browseros.com/download/BrowserOS_installer.exe) · [Linux (AppImage)](https://files.browseros.com/download/BrowserOS.AppImage) · [Linux (Debian)](https://cdn.browseros.com/download/BrowserOS.deb)
2. **Import your Chrome data** (optional) — bookmarks, passwords, extensions all carry over
3. **Connect your AI provider** — Claude, OpenAI, Gemini, ChatGPT Pro via OAuth, or local models via Ollama/LM Studio
2. Import your Chrome data (optional)
## Features
3. Connect your AI provider (OpenAI, Anthropic, or local models via Ollama/LMStudio)
4. Start automating!
## What makes BrowserOS special
- 🏠 Feels like home - same familiar interface as Google Chrome, works with all your extensions
- 🤖 AI agents that run on YOUR browser, not in the cloud
- 🔒 Privacy first - bring your own keys or use local models with Ollama. Your browsing history stays on your computer
- 🚀 Open source and community driven - see exactly what's happening under the hood
- 🤝 BrowserOS as MCP server - you can install our MCP server and use the browser from within `claude-code` or `gemini-cli`.
- 🛡️ (coming soon) Built-in AI ad blocker that works across more scenarios!
| Feature | Description | Docs |
|---------|-------------|------|
| **AI Agent** | 53+ browser automation tools — navigate, click, type, extract data, all with natural language | [Guide](https://docs.browseros.com/getting-started) |
| **MCP Server** | Control the browser from Claude Code, Gemini CLI, or any MCP client | [Setup](https://docs.browseros.com/features/use-with-claude-code) |
| **Workflows** | Build repeatable browser automations with a visual graph builder | [Docs](https://docs.browseros.com/features/workflows) |
| **Cowork** | Combine browser automation with local file operations — research the web, save reports to your folder | [Docs](https://docs.browseros.com/features/cowork) |
| **Scheduled Tasks** | Run agents on autopilot — daily, hourly, or every few minutes | [Docs](https://docs.browseros.com/features/scheduled-tasks) |
| **Memory** | Persistent memory across conversations — your assistant remembers context over time | [Docs](https://docs.browseros.com/features/memory) |
| **SOUL.md** | Define your AI's personality and instructions in a single markdown file | [Docs](https://docs.browseros.com/features/soul-md) |
| **LLM Hub** | Compare Claude, ChatGPT, and Gemini responses side-by-side on any page | [Docs](https://docs.browseros.com/features/llm-chat-hub) |
| **40+ App Integrations** | Gmail, Slack, GitHub, Linear, Notion, Figma, Salesforce, and more via MCP | [Docs](https://docs.browseros.com/features/connect-apps) |
| **Vertical Tabs** | Side-panel tab management — stay organized even with 100+ tabs open | [Docs](https://docs.browseros.com/features/vertical-tabs) |
| **Ad Blocking** | uBlock Origin + Manifest V2 support — [10x more protection](https://docs.browseros.com/features/ad-blocking) than Chrome | [Docs](https://docs.browseros.com/features/ad-blocking) |
| **Cloud Sync** | Sync browser config and agent history across devices | [Docs](https://docs.browseros.com/features/sync) |
| **Skills** | Custom instruction sets that shape how your AI assistant behaves | [Docs](https://docs.browseros.com/features/skills) |
| **Smart Nudges** | Contextual suggestions to connect apps and use features at the right moment | [Docs](https://docs.browseros.com/features/smart-nudges) |
## Demos
### 🤖 BrowserOS agent in action
### BrowserOS agent in action
[![BrowserOS agent in action](docs/videos/browserOS-agent-in-action.gif)](https://www.youtube.com/watch?v=SoSFev5R5dI)
<br/><br/>
### 🎇 Install [BrowserOS as MCP](https://docs.browseros.com/browseros-mcp/how-to-guide) and control it from `claude-code`
### Install [BrowserOS as MCP](https://docs.browseros.com/features/use-with-claude-code) and control it from `claude-code`
https://github.com/user-attachments/assets/c725d6df-1a0d-40eb-a125-ea009bf664dc
<br/><br/>
### 💬 Use BrowserOS to chat
### Use BrowserOS to chat
https://github.com/user-attachments/assets/726803c5-8e36-420e-8694-c63a2607beca
<br/><br/>
### Use BrowserOS to scrape data
### Use BrowserOS to scrape data
https://github.com/user-attachments/assets/9f038216-bc24-4555-abf1-af2adcb7ebc0
<br/><br/>
## Why We're Building BrowserOS
## Install `browseros-cli`
For the first time since Netscape pioneered the web in 1994, AI gives us the chance to completely reimagine the browser. We've seen tools like Cursor deliver 10x productivity gains for developers—yet everyday browsing remains frustratingly archaic.
Use `browseros-cli` to launch and control BrowserOS from the terminal or from AI coding agents like Claude Code.
You're likely juggling 70+ tabs, battling your browser instead of having it assist you. Routine tasks, like ordering something from amazon or filling a form should be handled seamlessly by AI agents.
**macOS / Linux:**
At BrowserOS, we're convinced that AI should empower you by automating tasks locally and securely—keeping your data private. We are building the best browser for this future!
```bash
curl -fsSL https://cdn.browseros.com/cli/install.sh | bash
```
## How we compare
**Windows:**
<details>
<summary><b>vs Chrome</b></summary>
<br>
While we're grateful for Google open-sourcing Chromium, but Chrome hasn't evolved much in 10 years. No AI features, no automation, no MCP support.
</details>
```powershell
irm https://cdn.browseros.com/cli/install.ps1 | iex
```
<details>
<summary><b>vs Brave</b></summary>
<br>
We love what Brave started, but they've spread themselves too thin with crypto, search, VPNs. We're laser-focused on AI-powered browsing.
</details>
After install, run `browseros-cli init` to connect the CLI to your running BrowserOS instance.
<details>
<summary><b>vs Arc/Dia</b></summary>
<br>
Many loved Arc, but it was closed source. When they abandoned users, there was no recourse. We're 100% open source - fork it anytime!
</details>
## LLM Providers
<details>
<summary><b>vs Perplexity Comet</b></summary>
<br>
They're a search/ad company. Your browser history becomes their product. We keep everything local.
</details>
BrowserOS works with any LLM. Bring your own keys, use OAuth, or run models locally.
<details>
<summary><b>vs ChatGPT Atlas</b></summary>
<br>
Your browsing data could be used for ads or to train their models. We keep your history and agent interactions strictly local.
</details>
| Provider | Type | Auth |
|----------|------|------|
| Kimi K2.5 | Cloud (default) | Built-in |
| ChatGPT Pro/Plus | Cloud | [OAuth](https://docs.browseros.com/features/chatgpt) |
| GitHub Copilot | Cloud | [OAuth](https://docs.browseros.com/features/github-copilot) |
| Qwen Code | Cloud | [OAuth](https://docs.browseros.com/features/qwen-code) |
| Claude (Anthropic) | Cloud | API key |
| GPT-4o / o3 (OpenAI) | Cloud | API key |
| Gemini (Google) | Cloud | API key |
| Azure OpenAI | Cloud | API key |
| AWS Bedrock | Cloud | IAM credentials |
| OpenRouter | Cloud | API key |
| Ollama | Local | [Setup](https://docs.browseros.com/features/ollama) |
| LM Studio | Local | [Setup](https://docs.browseros.com/features/lm-studio) |
## How We Compare
| | BrowserOS | Chrome | Brave | Dia | Comet | Atlas |
|---|:---:|:---:|:---:|:---:|:---:|:---:|
| Open Source | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ |
| AI Agent | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ |
| MCP Server | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Visual Workflows | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Cowork (files + browser) | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Scheduled Tasks | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Bring Your Own Keys | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ |
| Local Models (Ollama) | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ |
| Local-first Privacy | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ |
| Ad Blocking (MV2) | ✅ | ❌ | ✅ | ❌ | ✅ | ❌ |
**Detailed comparisons:**
- [BrowserOS vs Chrome DevTools MCP](https://docs.browseros.com/comparisons/chrome-devtools-mcp) — developer-focused comparison for browser automation
- [BrowserOS vs Claude Cowork](https://docs.browseros.com/comparisons/claude-cowork) — getting real work done with AI
- [BrowserOS vs OpenClaw](https://docs.browseros.com/comparisons/openclaw) — everyday AI assistance
## Architecture
BrowserOS is a monorepo with two main subsystems: the **browser** (Chromium fork) and the **agent platform** (TypeScript/Go).
```
BrowserOS/
├── packages/browseros/ # Chromium fork + build system (Python)
│ ├── chromium_patches/ # Patches applied to Chromium source
│ ├── build/ # Build CLI and modules
│ └── resources/ # Icons, entitlements, signing
├── packages/browseros-agent/ # Agent platform (TypeScript/Go)
│ ├── apps/
│ │ ├── server/ # MCP server + AI agent loop (Bun)
│ │ ├── agent/ # Browser extension UI (WXT + React)
│ │ ├── cli/ # CLI tool (Go)
│ │ ├── eval/ # Benchmark framework
│ │ └── controller-ext/ # Chrome API bridge extension
│ │
│ └── packages/
│ ├── agent-sdk/ # Node.js SDK (npm: @browseros-ai/agent-sdk)
│ ├── cdp-protocol/ # CDP type bindings
│ └── shared/ # Shared constants
```
| Package | What it does |
|---------|-------------|
| [`packages/browseros`](packages/browseros/) | Chromium fork — patches, build system, signing |
| [`apps/server`](packages/browseros-agent/apps/server/) | Bun server exposing 53+ MCP tools and running the AI agent loop |
| [`apps/agent`](packages/browseros-agent/apps/agent/) | Browser extension — new tab, side panel chat, onboarding, settings |
| [`apps/cli`](packages/browseros-agent/apps/cli/) | Go CLI — control BrowserOS from the terminal or AI coding agents |
| [`apps/eval`](packages/browseros-agent/apps/eval/) | Benchmark framework — WebVoyager, Mind2Web evaluation |
| [`agent-sdk`](packages/browseros-agent/packages/agent-sdk/) | Node.js SDK for browser automation with natural language |
| [`cdp-protocol`](packages/browseros-agent/packages/cdp-protocol/) | Type-safe Chrome DevTools Protocol bindings |
## Contributing
We'd love your help making BrowserOS better!
We'd love your help making BrowserOS better! See our [Contributing Guide](CONTRIBUTING.md) for details.
- 🐛 [Report bugs](https://github.com/nxtscape/nxtscape/issues)
- 💡 [Suggest features](https://github.com/browseros-ai/BrowserOS/issues/99)
- 💬 [Join Discord](https://discord.gg/YKwjt5vuKr)
- 🐦 [Follow on Twitter](https://x.com/browserOS_ai)
- [Report bugs](https://github.com/browseros-ai/BrowserOS/issues)
- [Suggest features](https://github.com/browseros-ai/BrowserOS/issues/99)
- [Join Discord](https://discord.gg/YKwjt5vuKr) · [Join Slack](https://dub.sh/browserOS-slack)
- [Follow on Twitter](https://x.com/browserOS_ai)
**Agent development** (TypeScript/Go) — see the [agent monorepo README](packages/browseros-agent/README.md) for setup instructions.
**Browser development** (C++/Python) — requires ~100GB disk space. See [`packages/browseros`](packages/browseros/) for build instructions.
## Credits
- [ungoogled-chromium](https://github.com/ungoogled-software/ungoogled-chromium) — BrowserOS uses some patches for enhanced privacy. Thanks to everyone behind this project!
- [The Chromium Project](https://www.chromium.org/) — at the core of BrowserOS, making it possible to exist in the first place.
## License
BrowserOS is open source under the [AGPL-3.0 license](LICENSE).
## Credits
Copyright &copy; 2026 Felafax, Inc.
- [ungoogled-chromium](https://github.com/ungoogled-software/ungoogled-chromium) - BrowserOS uses some patches for enhanced privacy. Thanks to everyone behind this project!
- [The Chromium Project](https://www.chromium.org/) - At the core of BrowserOS, making it possible to exist in the first place.
## Stargazers
Thank you to all our supporters!
[![Star History Chart](https://api.star-history.com/svg?repos=browseros-ai/BrowserOS&type=Date)](https://www.star-history.com/#browseros-ai/BrowserOS&Date)
##
<p align="center">
Built with ❤️ from San Francisco
</p>

View File

@@ -1,567 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>BrowserOS</title>
<link>https://cdn.browseros.com/appcast-x86_64.xml</link>
<description>Most recent changes with links to updates.</description>
<language>en</language>
<!-- Updates -->
<item>
<title>BrowserOS - 0.34.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7548.49</sparkle:version>
<sparkle:shortVersionString>0.34.0</sparkle:shortVersionString>
<pubDate>Fri, 19 Dec 2025 16:20:00 +0000</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/releases/0.34.0/macos/BrowserOS_v0.34.0_x64.dmg"
sparkle:edSignature="6EvXUtZb6wLgaOQTM43B7druXUUvC8QdN38ph7mmcIlhTqkPWezpy6+wT3XWcVBRImMZOaM184+knVa+OgYIDA=="
length="173463704"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.33.0.1</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7544.49</sparkle:version>
<sparkle:shortVersionString>0.33.0.1</sparkle:shortVersionString>
<pubDate>Thu, 18 Dec 2025 05:36:47 +0000</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/releases/0.33.0.1/macos/BrowserOS_v0.33.0.1_x64.dmg"
sparkle:edSignature="CSBVog5dNcYUNKTaKTBIs3qwoa0NR9fwFo5gC68JGs0sb+JNUbErd/XMaD0enjXywl3lpTSGcwrRB4dNDFORAQ=="
length="172539513"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.32.0.1</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7536.49</sparkle:version>
<sparkle:shortVersionString>0.32.0.1</sparkle:shortVersionString>
<pubDate>Sat, 13 Dec 2025 01:49:10 +0000</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/releases/0.32.0.1/macos/BrowserOS_v0.32.0.1_x64.dmg"
sparkle:edSignature="Bdh5aYC4s2G0PNA7HxDHoN0K/kvH+1cDxVr8TAeCBuSBPkEgJojLOGRwr9AbHpzSVd1CpVEBM5idHMGHWMz0CQ=="
length="171199091"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.31.0.7</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7535.49</sparkle:version>
<sparkle:shortVersionString>0.31.0.7</sparkle:shortVersionString>
<pubDate>Tue, 09 Dec 2025 04:51:00 +0000</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/releases/0.31.0.7/macos/BrowserOS_v0.31.0.7_x64.dmg"
sparkle:edSignature="sRPGGd6pr7A65+MC+2ls1866xClt1A8uctEO3Zv3dRW1DbwowpTWZK/r0OVrU03ZPhgLSis+MASbX2rdbth/DQ=="
length="170836089"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.31.0.14</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7535.49</sparkle:version>
<sparkle:shortVersionString>0.31.0.14</sparkle:shortVersionString>
<pubDate>Fri, 12 Dec 2025 02:34:49 +0000</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/releases/0.31.0.14/macos/BrowserOS_v0.31.0.14_x64.dmg"
sparkle:edSignature="2Wfs2WtzdTsLMe5g4wkgFtZ+CNwrWXyzQIQZf6F0jlZDrCEPJVzNsk8LQrClDui8nCXOYKlCvxbRVAwwu+EvAg=="
length="170790283"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>Nxtscape - 0.29.0</title>
<description sparkle:format="plain-text">
🤖 Brand new agent in BrowserOS mode!
</description>
<sparkle:version>7229.69</sparkle:version>
<sparkle:shortVersionString>0.29.0</sparkle:shortVersionString>
<pubDate>Tue, 05 Nov 2025 11:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.29.0_x64.dmg"
sparkle:edSignature="0QdbiiViI+uGOMVkSdmRSxjrDfeOfdl/CNzEEPR9b3nPqqpdDoZLDPlWeIjGRgbYrcDEdsR38Xyh9bOyNZAYBA=="
length="175498940"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>Nxtscape - 0.28.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7218.69</sparkle:version>
<sparkle:shortVersionString>0.28.0</sparkle:shortVersionString>
<pubDate>Fri, 17 Oct 2025 12:00:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.28.0_x64.dmg"
sparkle:edSignature="b0XnXJsUjpRgBuLREvrMA4LM2hSAyHhZ8Zanx2j2ufta2tP8lA9uASEkpSFGMLTD1rdnDmNiKEF8i8FcsgqrAg=="
length="160576260"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>Nxtscape - 0.27.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7215.69</sparkle:version>
<sparkle:shortVersionString>0.27.0</sparkle:shortVersionString>
<pubDate>Sat, 11 Oct 2025 11:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.27.0_x64.dmg"
sparkle:edSignature="rC9E60py041mtwCcKzBII5kI0+dFDZKLYRSCqkhleypOx3LPznyulow1fm1yABx1xw2QyL/kg+OtLNLdQ3LTAA=="
length="135429891"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>Nxtscape - 0.26.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7212.69</sparkle:version>
<sparkle:shortVersionString>0.26.0</sparkle:shortVersionString>
<pubDate>Tue, 01 Oct 2025 11:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.26.0_x64.dmg"
sparkle:edSignature="PIus/BOdS567Sxmp3OuEm3BfNYOulu53Y/2nEEUN5TNOiqnIYJK1zlTwX5tsOaRYoA8CPdQvOkAtW0UtghoWBA=="
length="135430173"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.25.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7209.69</sparkle:version>
<sparkle:shortVersionString>0.25.0</sparkle:shortVersionString>
<pubDate>Sun, 22 Sep 2025 08:00:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.25.0_x64.dmg"
sparkle:edSignature="i/lCLlCNz3AKD+uLEp2NsQaTXtSS2MuqZ/SeiYYbf2Ap4AdTMAzqtItV5niue5GUAwMWcEMQuU0aqoeaV8NYAA=="
length="135453902"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.24.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7207.69</sparkle:version>
<sparkle:shortVersionString>0.24.0</sparkle:shortVersionString>
<pubDate>Fri, 30 Aug 2025 12:00:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.24.0_x64.dmg"
sparkle:edSignature="dbeHl4grX14zdCQARnpALmhroM+Ey+kJ1ljY6843sGfeYkZubjnAArgpUr58oPG3+tPVhxBaC/QMN11p0AooBQ=="
length="135465476"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.23.1</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7204.69</sparkle:version>
<sparkle:shortVersionString>0.23.1</sparkle:shortVersionString>
<pubDate>Thu, 29 Aug 2025 11:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.23.1_x64.dmg"
sparkle:edSignature="NRRyYWHTk/JgrDXLAhzc/RYhqUfRND5M9IKUTsG3l7VWStr+W+4YWv/VyuQdxZoEOTHPZ5GHZ0B0j2FQevSpBw=="
length="135442628"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.22.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7202.69</sparkle:version>
<sparkle:shortVersionString>0.22.0</sparkle:shortVersionString>
<pubDate>Thu, 22 Aug 2025 11:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.22.0_x64.dmg"
sparkle:edSignature="+SSF7mE4iHd4vVvS2mTTWy0RgGMykgXqDO8AFIQFqTW5KVMK/M+bsEvGXpxnpbC21eB6JrO/gomGadIdouqtAg=="
length="135442129"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.21.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7201.69</sparkle:version>
<sparkle:shortVersionString>0.21.0</sparkle:shortVersionString>
<pubDate>Tue, 20 Aug 2025 11:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.21.0_x64.dmg"
sparkle:edSignature="oDlfixK0KsYBU8BXzl3cStV1nmDggyjPWS+hWesRToRrwKqAAh/yJ1ljGuKVDGz8CEcL9b8aIJ7LpMuVBPHoDQ=="
length="135459686"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.20.0</title>
<description sparkle:format="plain-text">
- New updated Agent UI!
- Fixed MacOS bug which caused the app to crash on startup for some users. This unfortunately also makes a breaking change, requiring re-installation of extensions and logins.
</description>
<sparkle:version>7200.69</sparkle:version>
<sparkle:shortVersionString>0.20.1</sparkle:shortVersionString>
<pubDate>Fri, 09 Aug 2025 16:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.20.1_x64.dmg"
sparkle:edSignature="T4s+dVxu+pPQn2pE061esTHIaD8e3mYdYItFEIfXjQtopfxutUbzHoYei3CuccKGIS1oDTVgZAR3EXaWBK5xBQ=="
length="135460780"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.19.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7197.69</sparkle:version>
<sparkle:shortVersionString>0.19.0</sparkle:shortVersionString>
<pubDate>Fri, 08 Aug 2025 11:44:55 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.19.0_x64.dmg"
sparkle:edSignature="gutjJGWDCg77i+6gNtieugwUeTFTaJAApIdKzMGacukdEcfLrcQCXmjm/Oy+vbxtLfaRXHvrlMGDUS5pF4ExBg=="
length="135466920"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.18.0</title>
<description sparkle:format="plain-text">
- New revamped Agent infra! This should improve our agents reliability and performance. Please test it out and give us your feedback!
</description>
<sparkle:version>7194.69</sparkle:version>
<sparkle:shortVersionString>0.18.0</sparkle:shortVersionString>
<pubDate>Thu, 31 Jul 2025 17:31:17 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.18.0_x64.dmg"
sparkle:edSignature="bUOQce0PX58kMaVHrbJlcOWWWFXeD3bfd6Ju5DZ2OIXcQC7oO6w2TknEisDbvVJdwEAol5aZL0nR4qn3R7VqDw=="
length="135451706"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.17.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7193.69</sparkle:version>
<sparkle:shortVersionString>0.17.0</sparkle:shortVersionString>
<pubDate>Thu, 31 Jul 2025 07:40:48 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.17.0_x64.dmg"
sparkle:edSignature="f06Nwl/C4j2uGX648eEoWzcOunmoBhAELZ1bvY9berEf0+RFew0YiW6QACuCZTTvi0IQqFbtof5tdMzRMZZkDg=="
length="135960245"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.16.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7192.69</sparkle:version>
<sparkle:shortVersionString>0.16.0</sparkle:shortVersionString>
<pubDate>Tue, 29 Jul 2025 12:00:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.16.0_x64.dmg"
sparkle:edSignature="hYJC8JIGrYiyikmtR7tCCiUJ1jQuKb7IaZm1PQNxl9gcM1YDMoSgQtmHeQocwC6+DmHrJJaC7QStiFsQS3mAAQ=="
length="136273553"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.15.0</title>
<description sparkle:format="plain-text">
- Support for screenshot in LLM chat.
- New settings page `chrome://settings/browseros-settings` for configuring BrowserOS internals. Today, it supports hiding labels in toolbar.
- Various fixes and improvesments.
</description>
<sparkle:version>7189.69</sparkle:version>
<sparkle:shortVersionString>0.15.0</sparkle:shortVersionString>
<pubDate>Sat, 26 Jul 2025 08:56:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.15.0_x64.dmg"
sparkle:edSignature="ec0s8SskrESAKC0RfdjyK/CKO1Qg2pkEuzlZaU8mgQGh+4t0xrS/SGq7aWZyqjVcGNCLd59/uT82H93Ay42WCA=="
length="136245910"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.14.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7187.69</sparkle:version>
<sparkle:shortVersionString>0.14.0</sparkle:shortVersionString>
<pubDate>Tue, 22 Jul 2025 15:45:34 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.14.1_x64.dmg"
sparkle:edSignature="hqV7b4JvUiE46cz9X4vATddfuCUM/y4+jmb6SGg5/iN3bUH0L5meg7h8qt1y6cVulwyhZJdn32eKoGdjFw5VCg=="
length="136240269"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<!-- <item> -->
<!-- <title>BrowserOS - 0.13.0</title> -->
<!-- <description sparkle:format="plain-text"> -->
<!-- </description> -->
<!-- <sparkle:version>7185.69</sparkle:version> -->
<!-- <sparkle:shortVersionString>0.13.0</sparkle:shortVersionString> -->
<!-- <pubDate>Fri, 18 Jul 2025 08:25:40 -0700</pubDate> -->
<!-- <link>https://browseros.com</link> -->
<!-- <enclosure -->
<!-- url="http://cdn.browseros.com/dmg/BrowserOS_v0.13.0_x64.dmg" -->
<!-- sparkle:edSignature="mewnvQD2+rR6d1iXkjvEJ6PwPKU1vr/x3GdYxv0o8alSt3w+NpMCBUj+ehwdd8jg9DgUvQDP+epPu+lJS6cfBw==" -->
<!-- length="136158873" -->
<!-- type="application/octet-stream" /> -->
<!-- <sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion> -->
<!-- </item> -->
<item>
<title>BrowserOS - 0.12.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7183.69</sparkle:version>
<sparkle:shortVersionString>0.12.0</sparkle:shortVersionString>
<pubDate>Fri, 11 Jul 2025 16:49:23 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.12.1_x64.dmg"
sparkle:edSignature="lN1RsvzQAHkAWw70DjVN+xPU/4/6TT1vBDAAIiuGU9rQwby2ORVnikb9XioZ8UxxtYfmMdD4Uv9Jg/ZsZUm+Aw=="
length="136154859"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.11.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7180.69</sparkle:version>
<sparkle:shortVersionString>0.11.0</sparkle:shortVersionString>
<pubDate>Wed, 09 Jul 2025 13:39:48 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.11.1_x64.dmg"
sparkle:edSignature="gXrzzSVFS27aHLbnb21shwdOA/jGmWxkmECBR8pKmdJlkyhYUylD7XdiIZOBiNVn7J3WLMeND2CKIEwwwQL9CQ=="
length="136112089"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.10.0</title>
<description sparkle:format="plain-text">
- BrowserOS now supports Windows. Check our GitHub page for the Windows installer.
- Added a new easy way to report bugs and request features from the browser.
</description>
<sparkle:version>7178.69</sparkle:version>
<sparkle:shortVersionString>0.10.0</sparkle:shortVersionString>
<pubDate>Sun, 07 Jul 2025 00:00:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.10.0_x64.dmg"
sparkle:edSignature="6+ORfhZsUC0ICN6p7DAvkjgEYakRbHR+23/T0Xg99PGyfr4M9v3L510+/AYRiLIyTrG+9UoxsAWEEO3F2FyuDQ=="
length="135988676"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.9.1</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7177.69</sparkle:version>
<sparkle:shortVersionString>0.9.1</sparkle:shortVersionString>
<pubDate>Sat, 05 Jul 2025 09:17:24 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.9.1_x64.dmg"
sparkle:edSignature="smb5fqgAw2uYFPckukJQtQfHYWSG+UVpuzNm+2JPxTbmdErfcJeOc3S9+AjYMqvP1/R9B6K/PdGcYb19A+9BAw=="
length="135870804"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.9.0</title>
<description sparkle:format="plain-text">
- Minor stability improvements.
</description>
<sparkle:version>7175.69</sparkle:version>
<sparkle:shortVersionString>0.9.0</sparkle:shortVersionString>
<pubDate>Thu, 03 Jul 2025 10:29:43 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.9.0_x64.dmg"
sparkle:edSignature="KF7j6V9/IdNuGHWJoMpf4ZhSC6EJB5bnwH0rP8uWEzxBwsnbgMpdBP3VwoR+xF4pt90hQTYs/3SLra2KXdE0DA=="
length="135898092"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.8.0</title>
<description sparkle:format="plain-text">
- NEW FEATURE: Sidekick LLM. Brings third party LLMs to side panel.
- Quickly toggle between ChatGPT, Claude, Gemini, Perplexity, and Ollama
- Supports easy copy of web page content to paste in LLM
</description>
<sparkle:version>7174.69</sparkle:version>
<sparkle:shortVersionString>0.8.0</sparkle:shortVersionString>
<pubDate>Wed, 02 Jul 2025 14:20:34 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.8.0_x64.dmg"
sparkle:edSignature="Uo7OjzJWFCHzjNOLFAODhELUUX1DE8UeOEP6+rXtGo7aSgPyQOvsk427crKsv6QHIBA+o5oCiS0IA4XofMkzCQ=="
length="136446289"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.7.0</title>
<description sparkle:format="plain-text">
- Improved agent to allow interruptions
- Agent now supports pausing and resuming tasks
</description>
<sparkle:version>7170.69</sparkle:version>
<sparkle:shortVersionString>0.7.0</sparkle:shortVersionString>
<pubDate>Mon, 30 Jun 2025 17:50:17 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/nxtscape-v0.7.0-universal-new.dmg"
sparkle:edSignature="uxb3EtLfK8YD1vsGo72bRXQ21MZVZcLNxLcwGNxXGbxWqFcTtk70VWa2RdGG+pZTbEwGUKJIwl3U5uvQYvDQBQ=="
length="232749371"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.6.0</title>
<description sparkle:format="plain-text">
- Support for MacOS x86_64 with Universal binary.
- Minor fixes to updater
- Improvements to agent; it supports interruptions.
</description>
<sparkle:version>7167.69</sparkle:version>
<sparkle:shortVersionString>0.6.0</sparkle:shortVersionString>
<pubDate>Sat, 28 Jun 2025 10:13:17 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/nxtscape-v0.6.0-universal.dmg"
sparkle:edSignature="qB+KDJ0UQdQkhxX0QB89Yjo8oQIXIcdz8O6QRFJvNfLqDiZf8T7s2iiebt5LkZvvaN/Vp4c+5F3iBHokkTU2BQ=="
length="234987508"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.5.0</title>
<description sparkle:format="plain-text">
- Improved Ollama support
- Fixed issues with the unified agent
</description>
<sparkle:version>7158.88</sparkle:version>
<sparkle:shortVersionString>0.5.0</sparkle:shortVersionString>
<pubDate>Thu, 26 Jun 2025 17:42:44 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/nxtscape-v0.5.0-arm64.dmg"
sparkle:edSignature="m3ALnVjkN5FE59Kh9VoXFBc8Dhz6GWgybAh6rKvv7b38EaEnFw8JI0hnC2pmB7e8QIJwFsPJCfE2OKOJf+OxAw=="
length="126848776"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.4.0</title>
<description sparkle:format="plain-text">
- [Fix] OTA updates were not working correctly for some users; fixing it.
</description>
<sparkle:version>7157.87</sparkle:version>
<sparkle:shortVersionString>0.4.0</sparkle:shortVersionString>
<pubDate>Thu, 26 Jun 2025 17:42:44 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/nxtscape-v0.4.0-arm64.dmg"
sparkle:edSignature="1TRv5Is7eKvqexbZ+h4Sa7ksPH4Sam2Eau8krwsK+w3AzhAQbRTY8Megfww2PsLxKhWzi3dBcEKK3yu8by0/CQ=="
length="126851560"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.3.0</title>
<description sparkle:format="plain-text">
Much improved AI agent for browser navigation tasks
- Merged Productivity Agent and Browser Agent into a single AI agent
</description>
<sparkle:version>7155.85</sparkle:version>
<sparkle:shortVersionString>0.3.0</sparkle:shortVersionString>
<pubDate>Thu, 26 Jun 2025 07:34:24 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/nxtscape-v0.3.0-arm64.dmg"
sparkle:edSignature="axUY3tBN7txWh1PMCrrtHdYiIBFQlABBbD/iHyM29m9N9FWRu99vNJjyGPLP00mfctR+XzZIBE0E8MFGcgPYCg=="
length="126850187"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.2.0</title>
<description sparkle:format="plain-text">
Support for overriding baseUrl in OpenAI, Claude
Gemini support in BYOK
Improved tool calling in Browser Agent
</description>
<sparkle:version>7154.84</sparkle:version>
<sparkle:shortVersionString>0.2.0</sparkle:shortVersionString>
<pubDate>Wed, 25 Jun 2025 14:15:31 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/nxtscape-v0.2.0-arm64.dmg"
sparkle:edSignature="mj8TqQBTbfBY5OxiQXpJa/XD82BPx9udDqFV7p8SwQRgBwCTHdYWuswBunL7uW6IrgEytBAtyHKTse+vcZG3BA=="
length="126848485"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.1.0</title>
<description sparkle:format="plain-text">
Updates to AI agent to perform better on navigation tasks
Improves to MacOS updater
Fixing history import bug
</description>
<sparkle:version>7151.139</sparkle:version>
<sparkle:shortVersionString>0.1.0</sparkle:shortVersionString>
<pubDate>Mon, 23 Jun 2025 00:00:00 +0000</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/BrowserOS_v0.1.0.dmg"
sparkle:edSignature="mPxpc/8SPEEOiCmiKE4haTGUaMRnUQRJ8SK8w3sWek/5oZD0dg/DQFg/HxbhHjt2mtFUI8VD5iUi4+uIBWr4Dg=="
length="127005947"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
</channel>
</rss>

View File

@@ -1,567 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>BrowserOS</title>
<link>https://cdn.browseros.com/appcast.xml</link>
<description>Most recent changes with links to updates.</description>
<language>en</language>
<!-- Updates -->
<item>
<title>BrowserOS - 0.34.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7548.49</sparkle:version>
<sparkle:shortVersionString>0.34.0</sparkle:shortVersionString>
<pubDate>Fri, 19 Dec 2025 16:20:00 +0000</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/releases/0.34.0/macos/BrowserOS_v0.34.0_arm64.dmg"
sparkle:edSignature="L6NR09/C4FdpiOhhJuuPkY26WTB/GDh84oZqYbZW4xE8nFDUokHslIDamsyQCc0DpHYb27rr8SZwamaFlU4GBg=="
length="161540660"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.33.0.1</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7544.49</sparkle:version>
<sparkle:shortVersionString>0.33.0.1</sparkle:shortVersionString>
<pubDate>Thu, 18 Dec 2025 05:36:47 +0000</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/releases/0.33.0.1/macos/BrowserOS_v0.33.0.1_arm64.dmg"
sparkle:edSignature="wAbUvK9Z60yegNSbA6LhhPu3xILF6Uc+IWJxm9hD00jKuAt1Lk9x2+HZid9Or+fBTPN/4rViO2aUW//kF3hiBQ=="
length="160720084"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.32.0.1</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7536.49</sparkle:version>
<sparkle:shortVersionString>0.32.0.1</sparkle:shortVersionString>
<pubDate>Sat, 13 Dec 2025 01:49:10 +0000</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/releases/0.32.0.1/macos/BrowserOS_v0.32.0.1_arm64.dmg"
sparkle:edSignature="A+Z9RMj+FbBr5DZKN8oXREY8UyJl1nkreGmPrf5ROGcx73vNHxkgUeUgQuCqbUDmFepe0Ly6CPBK0rEmqv9XAA=="
length="159112910"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.31.0.7</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7535.49</sparkle:version>
<sparkle:shortVersionString>0.31.0.7</sparkle:shortVersionString>
<pubDate>Tue, 09 Dec 2025 04:51:00 +0000</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/releases/0.31.0.7/macos/BrowserOS_v0.31.0.7_arm64.dmg"
sparkle:edSignature="3Ogu5iNeyiKaQvkpSaSXkyVnbYSJPA6E0IPbj3xejGm1AN3e3PHYFrRjIyGTFMVPwsJFh7YfXlQus1FSQ0iXCw=="
length="158944893"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.31.0.14</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7535.49</sparkle:version>
<sparkle:shortVersionString>0.31.0.14</sparkle:shortVersionString>
<pubDate>Fri, 12 Dec 2025 02:34:49 +0000</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/releases/0.31.0.14/macos/BrowserOS_v0.31.0.14_x64.dmg"
sparkle:edSignature="2Wfs2WtzdTsLMe5g4wkgFtZ+CNwrWXyzQIQZf6F0jlZDrCEPJVzNsk8LQrClDui8nCXOYKlCvxbRVAwwu+EvAg=="
length="170790283"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>Nxtscape - 0.29.0</title>
<description sparkle:format="plain-text">
🤖 Brand new agent in BrowserOS mode!
</description>
<sparkle:version>7229.69</sparkle:version>
<sparkle:shortVersionString>0.29.0</sparkle:shortVersionString>
<pubDate>Tue, 05 Nov 2025 11:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.29.0_arm64.dmg"
sparkle:edSignature="o9Kkrb4/gcDhH0R2M4RJqz2Bpwl8AGTwvU9tJXBKWsiVejUmxXJGy/qiW47bu90VJC5qMgQgZhHynKI8nbZ8Bg=="
length="163118617"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>Nxtscape - 0.28.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7218.69</sparkle:version>
<sparkle:shortVersionString>0.28.0</sparkle:shortVersionString>
<pubDate>Fri, 17 Oct 2025 12:00:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.28.0_arm64.dmg"
sparkle:edSignature="Bwm4twZ5x/d+NgVDmnrPYtYFgGoUnx8dClKnDNJ0lHryFni+jPeOFshURTh+/E5urBvUQhZi0edzZF+wThpoCA=="
length="149099349"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>Nxtscape - 0.27.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7215.69</sparkle:version>
<sparkle:shortVersionString>0.27.0</sparkle:shortVersionString>
<pubDate>Sat, 11 Oct 2025 11:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.27.0_arm64.dmg"
sparkle:edSignature="TfKnBeD6kcvQS/hDnFv8m9mcjt25ifh0gkhE7LDrFqtQ02ELpF4MTmEKOne3hvz03meC4MiV8hn+mn6oRt97Dg=="
length="126264714"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>Nxtscape - 0.26.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7212.69</sparkle:version>
<sparkle:shortVersionString>0.26.0</sparkle:shortVersionString>
<pubDate>Tue, 01 Oct 2025 11:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.26.0_arm64.dmg"
sparkle:edSignature="fKllNsIyBZHWlsq6oT+6Ptg9RmG2zTV9RC1j73INkZAfayMXjffnoE2i6ENVbyybht8aqfH5miV/SOEBXIWpDQ=="
length="126214534"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.25.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7209.69</sparkle:version>
<sparkle:shortVersionString>0.25.0</sparkle:shortVersionString>
<pubDate>Sun, 22 Sep 2025 08:00:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.25.0_arm64.dmg"
sparkle:edSignature="c9KIdnku+N1NYHIwSLV8OFl2dFbTBAsVarg+FP7+0L744klbGpCpUMPWhcOxZsuyy9g5tfihg6W54z8HELXuDw=="
length="126214063"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.24.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7207.69</sparkle:version>
<sparkle:shortVersionString>0.24.0</sparkle:shortVersionString>
<pubDate>Fri, 30 Aug 2025 12:00:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.24.0_arm64.dmg"
sparkle:edSignature="ENs4SOHQdkaJY+sVp/r0/a+LUwaIb9mZdPJXUF0ymH2zGYGUM8hL+3b5U1MBhuHoYmMukdLqcDgheEi3U6CXBQ=="
length="126221017"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.23.1</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7204.69</sparkle:version>
<sparkle:shortVersionString>0.23.1</sparkle:shortVersionString>
<pubDate>Thu, 29 Aug 2025 11:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.23.1_arm64.dmg"
sparkle:edSignature="mH97ZRH6JZ+XmLXv0S9wAK5n455Dgidzj9JYVoYoWI/kIOUTBeZODPunz9sCUAOkXA6WmjxFYciazjufxflVCg=="
length="126211527"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.22.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7202.69</sparkle:version>
<sparkle:shortVersionString>0.22.0</sparkle:shortVersionString>
<pubDate>Thu, 22 Aug 2025 11:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.22.0_arm64.dmg"
sparkle:edSignature="pTuEhp05gDVf7bqNt0QJL51QsX+r9pe/NYNdMlV3cGW35JeDzyafbXQzBAgMYX6cQpcFGnOtDaxBLveuiK4kDw=="
length="126204590"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.21.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7201.69</sparkle:version>
<sparkle:shortVersionString>0.21.0</sparkle:shortVersionString>
<pubDate>Tue, 20 Aug 2025 11:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.21.0_arm64.dmg"
sparkle:edSignature="en02Zhdpa4J/zQ3Ly11psVJnsX8Bp5DS8+sK0sr3267xocHGCkfWN8BJmsZWkae7a1mlLh+2A1835PdX5CMmDg=="
length="126187683"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.20.0</title>
<description sparkle:format="plain-text">
- New updated Agent UI!
- Fixed MacOS bug which caused the app to crash on startup for some users. This unfortunately also makes a breaking change, requiring re-installation of extensions and logins.
</description>
<sparkle:version>7200.69</sparkle:version>
<sparkle:shortVersionString>0.20.1</sparkle:shortVersionString>
<pubDate>Fri, 09 Aug 2025 16:30:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.20.1_arm64.dmg"
sparkle:edSignature="E91Zyc0wi3fVmarYBAct5qldCeZ0cw9ZpmG4WgeW+b1/2DiYNIAO/3f1qYh5osoKLETHrjwumYDANC0ao9kfCw=="
length="126189210"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.19.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7197.69</sparkle:version>
<sparkle:shortVersionString>0.19.0</sparkle:shortVersionString>
<pubDate>Fri, 08 Aug 2025 11:44:55 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.19.0_arm64.dmg"
sparkle:edSignature="jaX1AJIWKxOgMQo4+Z6BcBSlDZ/3J3aD0hF5cZS1gwtVxPa1T9vh4YN9RZgZH37npJ0IavyLKgn5PxCCaBk9CA=="
length="126186790"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.18.0</title>
<description sparkle:format="plain-text">
- New revamped Agent infra! This should improve our agents reliability and performance. Please test it out and give us your feedback!
</description>
<sparkle:version>7194.69</sparkle:version>
<sparkle:shortVersionString>0.18.0</sparkle:shortVersionString>
<pubDate>Thu, 31 Jul 2025 17:31:17 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.18.0_arm64.dmg"
sparkle:edSignature="s+GbkCFBmj+5zC3BaykVVsfhua98X5JKMVFZhd5alAFok4qdVaywAvd/8H77UkAgiLiMm6E2pHQLrNI6LmPvAw=="
length="126180751"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.17.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7193.69</sparkle:version>
<sparkle:shortVersionString>0.17.0</sparkle:shortVersionString>
<pubDate>Thu, 31 Jul 2025 07:40:48 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.17.0_arm64.dmg"
sparkle:edSignature="fQKHsZp60WVUi3UEdlOw9gpI42T4WWq1SWJUhXEMHWN+qTsVJEkbiLETZn9o7KO+nZQ1s5WRCKnS1ewIhJxMCw=="
length="126729542"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.16.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7192.69</sparkle:version>
<sparkle:shortVersionString>0.16.0</sparkle:shortVersionString>
<pubDate>Tue, 29 Jul 2025 12:00:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.16.0_arm64.dmg"
sparkle:edSignature="jSdcXs5C6Xd91r0smpxVbmHP3UfaB8avYcGrgxmHIn18jN2vPym9zJ8wL0HLxOYzYape0CjQnukZm/3t2ihCBA=="
length="126951526"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.15.0</title>
<description sparkle:format="plain-text">
- Support for screenshot in LLM chat.
- New settings page `chrome://settings/browseros-settings` for configuring BrowserOS internals. Today, it supports hiding labels in toolbar.
- Various fixes and improvesments.
</description>
<sparkle:version>7189.69</sparkle:version>
<sparkle:shortVersionString>0.15.0</sparkle:shortVersionString>
<pubDate>Sat, 26 Jul 2025 08:56:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.15.0_arm64.dmg"
sparkle:edSignature="If0VdDR0xIm8atPGGd9yJJXgHiCg8vIHNqP35d8mPFzB/wbsU0FqW76ERnifrlhkE/bBabq4s6s+IyU2xDhSCQ=="
length="126936522"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.14.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7187.69</sparkle:version>
<sparkle:shortVersionString>0.14.0</sparkle:shortVersionString>
<pubDate>Tue, 22 Jul 2025 15:45:34 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.14.1_arm64.dmg"
sparkle:edSignature="pHnPKzUyVt1OXJNHZu4nNNW36TmRMEWsYqQjn2iHltyMYD5+G5b8s8NBD/2urcFb2Sq8tHNV7SvnQNhk6GXECQ=="
length="126934811"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<!-- <item> -->
<!-- <title>BrowserOS - 0.13.0</title> -->
<!-- <description sparkle:format="plain-text"> -->
<!-- </description> -->
<!-- <sparkle:version>7185.69</sparkle:version> -->
<!-- <sparkle:shortVersionString>0.13.0</sparkle:shortVersionString> -->
<!-- <pubDate>Fri, 18 Jul 2025 08:25:40 -0700</pubDate> -->
<!-- <link>https://browseros.com</link> -->
<!-- <enclosure -->
<!-- url="http://cdn.browseros.com/dmg/BrowserOS_v0.13.0_arm64.dmg" -->
<!-- sparkle:edSignature="EDKjlrjUsrZfbpfA+uAYY7MDqnlGpWcm70+mGzmRt1xymn3t31SdPc16rJW/+h2bAV1yC8oLGqtEcPmVWsoRBw==" -->
<!-- length="126827416" -->
<!-- type="application/octet-stream" /> -->
<!-- <sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion> -->
<!-- </item> -->
<item>
<title>BrowserOS - 0.12.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7183.69</sparkle:version>
<sparkle:shortVersionString>0.12.0</sparkle:shortVersionString>
<pubDate>Fri, 11 Jul 2025 16:49:23 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.12.1_arm64.dmg"
sparkle:edSignature="ylPrjpTj2JPFGdfqh3/DUSzTJxdlskrlORbZOqlsQsC04Euc1ovyzohTOBjyXKNDAekNa348ejKwQO/y7kKNBA=="
length="126839083"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.11.0</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7180.69</sparkle:version>
<sparkle:shortVersionString>0.11.0</sparkle:shortVersionString>
<pubDate>Wed, 09 Jul 2025 13:39:48 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.11.1_arm64.dmg"
sparkle:edSignature="g4PJb3tqiSx9NcB4rwg5byFWQl48TI30jYPDF47s1lt0qCWEhewSLOWktVnDNR8Wkk07dtf61conedSxkVZ6BA=="
length="126847980"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.10.0</title>
<description sparkle:format="plain-text">
- BrowserOS now supports Windows. Check our GitHub page for the Windows installer.
- Added a new easy way to report bugs and request features from the browser.
</description>
<sparkle:version>7178.69</sparkle:version>
<sparkle:shortVersionString>0.10.0</sparkle:shortVersionString>
<pubDate>Sun, 07 Jul 2025 00:00:00 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.10.0_arm64.dmg"
sparkle:edSignature="XMJ3Vy9/XiVf38yGS5ZxHZsKrexPTtuEHr0IzA/aKRL0sMd0MhwOAt3TD4iuQDwOuyWuLbj5Uaspq1eCXliuBA=="
length="126798649"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.9.1</title>
<description sparkle:format="plain-text">
</description>
<sparkle:version>7177.69</sparkle:version>
<sparkle:shortVersionString>0.9.1</sparkle:shortVersionString>
<pubDate>Sat, 05 Jul 2025 09:17:24 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.9.1_arm64.dmg"
sparkle:edSignature="ZGaPXiLs0FI9aff7TKs2yoWyg1d+6nn+/EaHeJfLDIbe6URsRvWyNy2YmMmap1cexFyMAwYipkTbnW6G8np0Dw=="
length="126804048"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.9.0</title>
<description sparkle:format="plain-text">
- Minor stability improvements.
</description>
<sparkle:version>7175.69</sparkle:version>
<sparkle:shortVersionString>0.9.0</sparkle:shortVersionString>
<pubDate>Thu, 03 Jul 2025 10:29:43 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.9.0_arm64.dmg"
sparkle:edSignature="cGQ8f+VOOC4ZWsl02D2Wp5uaezoepaVC4Mo0a7tXxuB/Avb04d1nLQl6U7FNW4Q4EgPP3dni7TwXg61MSHX3Cg=="
length="126796495"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.8.0</title>
<description sparkle:format="plain-text">
- NEW FEATURE: Sidekick LLM. Brings third party LLMs to side panel.
- Quickly toggle between ChatGPT, Claude, Gemini, Perplexity, and Ollama
- Supports easy copy of web page content to paste in LLM
</description>
<sparkle:version>7174.69</sparkle:version>
<sparkle:shortVersionString>0.8.0</sparkle:shortVersionString>
<pubDate>Wed, 02 Jul 2025 14:20:34 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="http://cdn.browseros.com/dmg/BrowserOS_v0.8.0_arm64.dmg"
sparkle:edSignature="jKMoMY44vqIXWmv06m/3NjEGEI4SwZTTRJ1bVoVSS8zjNNfAme8CpA/SsA8aBk1RyF3lhzHL0V5Fh4QmI5IYBw=="
length="126966295"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.7.0</title>
<description sparkle:format="plain-text">
- Improved agent to allow interruptions
- Agent now supports pausing and resuming tasks
</description>
<sparkle:version>7170.69</sparkle:version>
<sparkle:shortVersionString>0.7.0</sparkle:shortVersionString>
<pubDate>Mon, 30 Jun 2025 17:50:17 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/nxtscape-v0.7.0-universal-new.dmg"
sparkle:edSignature="uxb3EtLfK8YD1vsGo72bRXQ21MZVZcLNxLcwGNxXGbxWqFcTtk70VWa2RdGG+pZTbEwGUKJIwl3U5uvQYvDQBQ=="
length="232749371"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.6.0</title>
<description sparkle:format="plain-text">
- Support for MacOS x86_64 with Universal binary.
- Minor fixes to updater
- Improvements to agent; it supports interruptions.
</description>
<sparkle:version>7167.69</sparkle:version>
<sparkle:shortVersionString>0.6.0</sparkle:shortVersionString>
<pubDate>Sat, 28 Jun 2025 10:13:17 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/nxtscape-v0.6.0-universal.dmg"
sparkle:edSignature="qB+KDJ0UQdQkhxX0QB89Yjo8oQIXIcdz8O6QRFJvNfLqDiZf8T7s2iiebt5LkZvvaN/Vp4c+5F3iBHokkTU2BQ=="
length="234987508"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.5.0</title>
<description sparkle:format="plain-text">
- Improved Ollama support
- Fixed issues with the unified agent
</description>
<sparkle:version>7158.88</sparkle:version>
<sparkle:shortVersionString>0.5.0</sparkle:shortVersionString>
<pubDate>Thu, 26 Jun 2025 17:42:44 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/nxtscape-v0.5.0-arm64.dmg"
sparkle:edSignature="m3ALnVjkN5FE59Kh9VoXFBc8Dhz6GWgybAh6rKvv7b38EaEnFw8JI0hnC2pmB7e8QIJwFsPJCfE2OKOJf+OxAw=="
length="126848776"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.4.0</title>
<description sparkle:format="plain-text">
- [Fix] OTA updates were not working correctly for some users; fixing it.
</description>
<sparkle:version>7157.87</sparkle:version>
<sparkle:shortVersionString>0.4.0</sparkle:shortVersionString>
<pubDate>Thu, 26 Jun 2025 17:42:44 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/nxtscape-v0.4.0-arm64.dmg"
sparkle:edSignature="1TRv5Is7eKvqexbZ+h4Sa7ksPH4Sam2Eau8krwsK+w3AzhAQbRTY8Megfww2PsLxKhWzi3dBcEKK3yu8by0/CQ=="
length="126851560"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.3.0</title>
<description sparkle:format="plain-text">
Much improved AI agent for browser navigation tasks
- Merged Productivity Agent and Browser Agent into a single AI agent
</description>
<sparkle:version>7155.85</sparkle:version>
<sparkle:shortVersionString>0.3.0</sparkle:shortVersionString>
<pubDate>Thu, 26 Jun 2025 07:34:24 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/nxtscape-v0.3.0-arm64.dmg"
sparkle:edSignature="axUY3tBN7txWh1PMCrrtHdYiIBFQlABBbD/iHyM29m9N9FWRu99vNJjyGPLP00mfctR+XzZIBE0E8MFGcgPYCg=="
length="126850187"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.2.0</title>
<description sparkle:format="plain-text">
Support for overriding baseUrl in OpenAI, Claude
Gemini support in BYOK
Improved tool calling in Browser Agent
</description>
<sparkle:version>7154.84</sparkle:version>
<sparkle:shortVersionString>0.2.0</sparkle:shortVersionString>
<pubDate>Wed, 25 Jun 2025 14:15:31 -0700</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/nxtscape-v0.2.0-arm64.dmg"
sparkle:edSignature="mj8TqQBTbfBY5OxiQXpJa/XD82BPx9udDqFV7p8SwQRgBwCTHdYWuswBunL7uW6IrgEytBAtyHKTse+vcZG3BA=="
length="126848485"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
<item>
<title>BrowserOS - 0.1.0</title>
<description sparkle:format="plain-text">
Updates to AI agent to perform better on navigation tasks
Improves to MacOS updater
Fixing history import bug
</description>
<sparkle:version>7151.139</sparkle:version>
<sparkle:shortVersionString>0.1.0</sparkle:shortVersionString>
<pubDate>Mon, 23 Jun 2025 00:00:00 +0000</pubDate>
<link>https://browseros.com</link>
<enclosure
url="https://storage.googleapis.com/nxtscape/BrowserOS_v0.1.0.dmg"
sparkle:edSignature="mPxpc/8SPEEOiCmiKE4haTGUaMRnUQRJ8SK8w3sWek/5oZD0dg/DQFg/HxbhHjt2mtFUI8VD5iUi4+uIBWr4Dg=="
length="127005947"
type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.15</sparkle:minimumSystemVersion>
</item>
</channel>
</rss>

View File

@@ -1,28 +0,0 @@
---
title: "Claude"
description: "Configure BrowserOS to use Anthropic's Claude AI assistant"
---
Claude Sonnet 3.7 and 4.0 are excellent for agent tasks. Great for complex reasoning and following instructions precisely.
## Get your API key
### Step 1: Go to Claude Console
Visit [console.anthropic.com](https://console.anthropic.com/dashboard) and click **API keys** in the left sidebar.
![SCR-20251007-kbjx.png](/docs/images/SCR-20251007-kbjx.png)
### Step 2: Create a key
Click **Create Key**, name it, and click **Create Key** again. Copy the key that appears.
![SCR-20251007-kbod.png](/docs/images/SCR-20251007-kbod.png)
## Configure BrowserOS
Navigate to `chrome://browseros/settings` or click the **Settings** icon on the new tab page, then click **USE** on the Claude card. Paste your API key and set your model. For Claude Sonnet 4.0, use model ID `claude-opus-4-20250514`, set **Context Window Size** to `128000`, and check **Supports Images**. Click **Save**.
![image.png](/docs/images/image.png)
Done! You're ready to use BrowserOS with Claude.

View File

@@ -1,47 +0,0 @@
---
title: "Gemini"
description: "Configure BrowserOS to use Google's Gemini AI model"
---
Gemini 2.5 Flash is fast, powerful, and free. Google AI Studio gives you 20 requests per minute at no cost - perfect for BrowserOS.
## Get your API key
### Step 1: Go to Google AI Studio
Visit [aistudio.google.com](https://aistudio.google.com) and click **Get API key** in the left sidebar.
![google-ai-studio.png](/docs/images/google-ai-studio.png)
### Step 2: Create a new project
Click **Create API key**, then name your project and click **Create key**.
![create-new-project.png](/docs/images/create-new-project.png)
### Step 3: Copy your API key
Your key will appear in the list. Click on it to copy.
![copy-key.png](/docs/images/copy-key.png)
## Configure BrowserOS
### Step 1: Open LLM settings
Navigate to `chrome://browseros/settings` or click the **Settings** icon on the new tab page, then click **USE** on the Gemini card.
![SCR-20251006-mkpi.png](/docs/images/SCR-20251006-mkpi.png)
### Step 2: Configure your provider
In the provider configuration:
1. Set **Model ID** to `gemini-2.5-flash`
2. Paste your API key in the **API Key** field
3. Check **Supports Images**
4. Set **Context Window Size** to `1000000` (1 million tokens)
5. Click **Save**
![SCR-20251006-mnhm.png](/docs/images/SCR-20251006-mnhm.png)
Done! You're ready to use BrowserOS with Gemini.

View File

@@ -1,32 +0,0 @@
---
title: "OpenAI"
description: "Configure BrowserOS to use OpenAI's GPT models"
---
GPT-4.1 is powerful for complex agent tasks. If you need the best reasoning capabilities, OpenAI is a solid choice.
## Get your API key
### Step 1: Go to OpenAI Platform
Visit [platform.openai.com](https://platform.openai.com), click the settings icon in the top right, then go to **API keys** in the left sidebar.
![SCR-20251007-kibz.png](/docs/images/SCR-20251007-kibz.png)
### Step 2: Create a new key
Click **Create new secret key**, name it, and click **Create secret key**.
![SCR-20251007-kiyo.png](/docs/images/SCR-20251007-kiyo.png)
### Step 3: Copy your key
Copy the key that appears. Keep it safe - you won't be able to see it again.
## Configure BrowserOS
Navigate to `chrome://browseros/settings` or click the **Settings** icon on the new tab page, then click **USE** on the OpenAI card. Paste your API key and configure the settings based on your chosen model. For GPT-4.1, set **Context Window Size** to `128000` and check **Supports Images**. Click **Save**.
![image.png](/docs/images/image.png)
Done! You're ready to use BrowserOS with OpenAI.

View File

@@ -1,34 +0,0 @@
---
title: "Open Router"
description: "Configure BrowserOS to use Open Router for access to multiple AI models"
---
OpenRouter gives you access to 500+ models through one API. Try different models without managing multiple API keys.
## Get your API key
Visit [openrouter.ai](https://openrouter.ai), sign up, and create an API key. OpenRouter shows your key right on the homepage under "Get your API key".
![SCR-20251007-kcgl.png](/docs/images/SCR-20251007-kcgl.png)
## Configure BrowserOS
### Step 1: Add OpenRouter provider
Navigate to `chrome://browseros/settings` or click the **Settings** icon on the new tab page, then click **USE** on the OpenRouter card.
![SCR-20251007-kcnd.png](/docs/images/SCR-20251007-kcnd.png)
### Step 2: Pick a model
Visit [openrouter.ai/models](https://openrouter.ai/models) and find the model you want. Click on it to copy the model ID (like `openai/gpt-4.1-mini`).
![SCR-20251007-kern.png](/docs/images/SCR-20251007-kern.png)
### Step 3: Configure your provider
In BrowserOS, paste the model ID into **Model ID** field. The model ID should be in the format shown under "Custom" (e.g., `openai/gpt-4.1-mini`). Paste your OpenRouter API key, set **Context Window Size** based on the model, and check **Supports Images** if the model supports it. Click **Save**.
![SCR-20251007-kfel.png](/docs/images/SCR-20251007-kfel.png)
Done! You can switch between different models anytime by creating new providers with different model IDs.

View File

@@ -1,61 +0,0 @@
---
title: "How To Guide"
description: "Connect BrowserOS as an MCP server to Claude Code or Claude Desktop"
---
## How to use `BrowserOS-mcp` on Claude Code
1. Download binary from [BrowserOS.com](https://BrowserOS.com)
2. Open BrowserOS and navigate to `chrome://browseros/settings` or click the **Settings** icon on the new tab page.
3. Navigate to **MCP** in the sidebar and copy the MCP URL
4. In your terminal, type the below command (Replace `<mcp_url>` with the MCP URL you copied above):
```
claude mcp add --transport http browseros <mcp_url> --scope user
# example: claude mcp add --transport http browseros http://127.0.0.1:9226/mcp --scope user
```
5. Now start Claude Code: `claude --dangerously-skip-permissions` (so Claude doesn't ask for confirmation each time)
6. Now, in Claude Code, type `Open amazon.com on browseros` to open the tab in BrowserOS.
Here's a [loom video](https://www.loom.com/share/9a41b74f265649a2993c329b05f93b54?sid=009690dd-e1a0-47b9-9b41-abe544e90c78) capturing the above steps! 🥳
### gemini-cli
The steps are roughly the same as above, but to add the MCP server, run the following command:
```
gemini mcp add local-server <mcp_url> --transport http --scope user
# example: gemini mcp add local-server http://127.0.0.1:9226/mcp --transport http --scope user
```
---
## How to add `BrowserOS-mcp` on Claude Desktop
1. Download binary from [BrowserOS.com](https://BrowserOS.com)
2. Open BrowserOS and navigate to `chrome://browseros/settings` or click the **Settings** icon on the new tab page. Navigate to **MCP** in the sidebar and note the port number (usually `9225`).
3. Open your Claude Desktop config file: `/Users/<username>/Library/Application Support/Claude/claude_desktop_config.json`
4. Add BrowserOS to your config (replace the port with the value shown in MCP settings page):
```json
{
"mcpServers": {
"browserOS": {
"command": "npx",
"args": ["mcp-remote", "http://127.0.0.1:<port>/mcp"]
}
}
}
```
5. Restart Claude Desktop. You should see the MCP connection indicator showing BrowserOS is connected
---
## Demo videos
### better agentic loop for web app development
[![Frontend dev demo](https://img.youtube.com/vi/vcSxzIIkg_0/0.jpg)](https://youtu.be/vcSxzIIkg_0)
### claude-code + `BrowserOS-mcp` == agentic browser!
[![Agentic tasks demo](https://img.youtube.com/vi/rPFx_Btajj0/0.jpg)](https://youtu.be/rPFx_Btajj0)
### vibe coded HN clone in under 5 mintes
[![vibe coding HN](https://img.youtube.com/vi/c-egH0R3ZTs/0.jpg)](https://youtu.be/c-egH0R3ZTs)

176
docs/changelog.mdx Normal file
View File

@@ -0,0 +1,176 @@
---
title: "Changelog"
description: "What's new in BrowserOS"
---
All notable changes to BrowserOS are documented here. For the full release history with download links, see our [GitHub Releases](https://github.com/browseros-ai/BrowserOS/releases).
---
## v0.42.0
<sub>March 9, 2026</sub>
- **SOUL.md** — Your assistant now has a soul. Tell it how you like to communicate, set boundaries, shape its personality — and it adapts on its own over time. The more you use it, the more it feels like *your* assistant. [Read more →](/features/soul)
- **Vertical tabs** — One of the most requested features is here. BrowserOS now ships with vertical tabs by default. More screen space, better tab management, and a cleaner layout out of the box. Prefer horizontal? You can switch back anytime in settings. [Read more →](/features/vertical-tabs)
- **Long-term memory** — Your assistant finally remembers you. Your name, your projects, what you talked about last week — it carries context across every conversation so you never have to repeat yourself. All stored locally on your machine. [Read more →](/features/memory)
- **Chromium 146** — Updated to the latest Chromium release with all recent upstream fixes and security patches
<Frame>
<img src="/images/changelog/0.42.0/soul-memory.png" alt="BrowserOS v0.42.0 SOUL.md feature for agent personalization" />
</Frame>
<Frame>
<img src="/images/changelog/0.42.0/vertical-tabs.png" alt="BrowserOS v0.42.0 vertical tabs toggle in settings" />
</Frame>
---
## v0.41.0
<sub>March 4, 2026</sub>
- **New agent (v3)** — Completely redone from scratch. 2x faster, 23x better performance
- **Tools — major upgrade** — Agent tools and MCP server both got a big overhaul. ~20 new tools (54 total) including file upload, save as PDF, background windows, and more. Connection with third-party coding agents (Claude Code, Codex, etc.) is much better now
- **General fixes** — Better agent installation, bug fixes, and smoother experience overall
- **Linux Debian packaging** — Fixed the remaining Debian packaging issues
---
## v0.40.1
<sub>February 16, 2026</sub>
- **Chromium 145** — Upgraded to the latest Chromium base with all recent upstream fixes and security patches
- **Login session import improvements** — Importing login sessions is now more reliable
- **Stability & reliability** — General improvements across the board
---
## v0.39.0
<sub>February 3, 2026</sub>
- **Sync** — Save your browser configuration, agent history, and scheduled tasks across machines. Your setup now follows you wherever you go
- **App Connector redesign** — Connecting MCP apps is now easier. The new App Connector UI makes it simpler to discover, install, and manage your connected apps
- **MCP port stability** — Additional fixes for users still experiencing port issues. More reliable connections across restarts
- **Keyboard shortcuts** — Updated shortcuts to avoid conflicts with European keyboards
<Frame>
<img src="/images/changelog/0.39.0-sync-mcp.png" alt="BrowserOS v0.39.0 featuring Sync and improved MCP connectors" />
</Frame>
---
## v0.38.0
<sub>January 28, 2026</sub>
Bug fix and stability release.
- **MCP port fix on Windows & Linux** — Fixed an issue with MCP port. Port now stays consistent across restarts and made it more reliable
- **Settings fix** — Fixed `chrome.browser.settings` not working correctly. Settings should now persist and apply as expected
- **Improved agent** — Made the agent more reliable and performant. General stability fixes across the agent loop
---
## v0.37.0
<sub>January 21, 2026</sub>
- **Workflows** — Build reliable, repeatable browser automations with a visual graph builder. Chat with the workflow agent to define step-by-step automation—ideal for complex tasks where ad-hoc prompts aren't enough. [Read more →](/features/workflows)
<img src="/features/workflow/sample-workflow.png" alt="Workflows visual graph builder showing a data entry automation" />
- **Cowork** — Describe an outcome, step away, and come back to finished work. Combine browser automation with local file operations—research on the web and save reports, scrape data and export to files, all in one task. [Read more →](/features/cowork)
<img src="/features/cowork/cowork-research-example.png" alt="Agent researching Hacker News and generating an HTML report" />
---
## v0.36.3
<sub>January 15, 2026</sub>
- **Agent history** — Agent conversations are now saved automatically. View and resume them anytime from the Assistant panel
<img src="/images/changelog/0.36.3/agent-history-highlight.png" alt="Agent history button in the Assistant panel" />
<img src="/images/changelog/0.36.3/agent-history-example.png" alt="Agent history showing past conversations" />
---
## v0.36.2
<sub>January 10, 2026</sub>
Bug fix release focused on MCP stability.
- **MCP server disconnect fix** — Fixed port handling issue causing MCP connections to drop unexpectedly
---
## v0.36.0
<sub>January 8, 2026</sub>
- **Agent personalization** — Add your own prompts to personalize the agent. Tweak its behavior, adjust how it responds, set your preferred formatting, and more
- **Toolbar customization** — Hide the Hub chat and labels from the settings page to declutter your toolbar
- **MCP server port stability** — The port now stays consistent through browser restarts, so you don't have to keep updating your MCP clients
- **Fixed agent install/update issues** — The agent now handles installs and updates more proactively
---
## v0.35.0
<sub>December 25, 2025</sub>
- **Agent stability fixes** — Fixed bugs to make the agent loop much more reliable
- **Gemini 3 support** — Gemini 3 now supported through OpenRouter and Google adapters
- **Better error surfacing** — Error messages are now clearer
---
## v0.34.0
<sub>December 20, 2025</sub>
- **Third-party MCP server support** — Connect external MCP servers like Google Calendar, Notion, Google Docs, Gmail, and more. You can also connect your own custom MCP servers
- **Gemini 3 support** — Gemini 3 Pro and Flash models now work with BrowserOS
- **Windows icon fix** — The Windows icon now displays BrowserOS logo correctly
- **Agent & UI improvements** — Various agent loop fixes and UI polish
---
## v0.33.0
<sub>December 18, 2025</sub>
- **OpenAI-compatible provider support** — Connect any OpenAI-compatible API endpoint
- **Multi-window & multi-profile agent support** — Agent now works across multiple windows and browser profiles
- **MCP server reliability** — Fixed connection drops and improved stability
- **Agent reliability improvements** — General stability fixes
---
## v0.32.0
<sub>December 12, 2025</sub>
A complete revamp of BrowserOS.
**New features:**
- **New Agent** — Completely rebuilt agent: faster, smarter, and more reliable
- **Agent Per Tab** — Run multiple agents in different tabs simultaneously
- **Polished UI** — Fresh, cleaner interface design
- **Manifest V2 Support** — Ad blockers like uBlock Origin work again
- **Native Split View** — Work on two things side by side
- **Chromium 142** — Updated to Chromium 142.0.7444.49
- **Azure & AWS Bedrock** — Native support for Azure OpenAI and AWS Bedrock models
**Breaking changes:**
- Old agent will stop working — update required
- LLM provider settings won't carry over — reconfiguration needed
---
## v0.30.0
<sub>November 14, 2025</sub>
- **Better text extraction** — Improved copy button in LLM Chat
- **MCP server stability** — Improved connection reliability
- **UI cleanup** — Unpinned extensions for cleaner look
- **Third-party MCP fixes** — Fixed support for third-party MCP servers
---
<Note>
For older releases, see the [full release history on GitHub](https://github.com/browseros-ai/BrowserOS/releases).
</Note>

View File

@@ -0,0 +1,201 @@
---
title: "Chrome DevTools MCP"
description: "A developer-focused comparison of BrowserOS MCP and Chrome DevTools MCP for browser automation"
---
Both BrowserOS MCP and [Chrome DevTools MCP](https://github.com/ChromeDevTools/chrome-devtools-mcp) give AI agents control over a browser via the Model Context Protocol. But they're built for different scopes. Chrome DevTools MCP focuses on debugging and inspection, while BrowserOS MCP is a complete browser automation and app integration platform.
This page breaks down the differences for developers evaluating which to use with Claude Code, Gemini CLI, Cursor, or any MCP client.
---
## At a Glance
| | **BrowserOS MCP** | **Chrome DevTools MCP** |
|---|---|---|
| **Total MCP tools** | 53 | 29 |
| **External app integrations** | 40+ (Gmail, Slack, GitHub, etc.) | None |
| **Setup** | Copy URL from settings, works instantly | Requires `--remote-debugging-port` flag and separate server process |
| **Browser session** | Your real browser with cookies, logins, extensions | Attached debug session (some sites block WebDriver-controlled browsers) |
| **Architecture** | Built into the browser | External Node.js process connecting via CDP |
---
## Feature Comparison
### Navigation & Tab Management
| Feature | BrowserOS MCP | Chrome DevTools MCP |
|---------|:---:|:---:|
| Navigate to URL / back / forward / reload | `navigate_page` | `navigate_page` |
| Open new tab | `new_page` | `new_page` |
| Close tab | `close_page` | `close_page` |
| List open tabs | `list_pages` | `list_pages` |
| Switch to tab | `show_page` | `select_page` |
| Hidden/background tabs | `new_hidden_page` | - |
| Move tab between windows | `move_page` | - |
| Get active/focused tab | `get_active_page` | - |
| Wait for condition | - | `wait_for` |
### Content & Observation
| Feature | BrowserOS MCP | Chrome DevTools MCP |
|---------|:---:|:---:|
| Accessibility tree snapshot | `take_snapshot` | `take_snapshot` |
| Enhanced structural snapshot | `take_enhanced_snapshot` | - |
| Page content as Markdown | `get_page_content` | - |
| Extract all page links | `get_page_links` | - |
| Raw HTML / DOM access | `get_dom` | - |
| Search DOM (text / CSS / XPath) | `search_dom` | - |
| Screenshot | `take_screenshot` | `take_screenshot` |
| Execute JavaScript | `evaluate_script` | `evaluate_script` |
### Interaction & Input
| Feature | BrowserOS MCP | Chrome DevTools MCP |
|---------|:---:|:---:|
| Click element | `click` | `click` |
| Click at coordinates | `click_at` | - |
| Type / fill text | `fill` | `fill` |
| Fill entire form | - | `fill_form` |
| Type text (raw keystrokes) | - | `type_text` |
| Clear input | `clear` | - |
| Hover | `hover` | `hover` |
| Drag | `drag` | `drag` |
| Press key / key combo | `press_key` | `press_key` |
| Check / uncheck checkbox | `check` / `uncheck` | - |
| Select dropdown option | `select_option` | - |
| Focus element | `focus` | - |
| Scroll (directional) | `scroll` | - |
| Upload file | `upload_file` | `upload_file` |
| Handle dialog (alert/confirm) | `handle_dialog` | `handle_dialog` |
### File & Export
| Feature | BrowserOS MCP | Chrome DevTools MCP |
|---------|:---:|:---:|
| Save page as PDF | `save_pdf` | - |
| Save screenshot to disk | `save_screenshot` | - |
| Download file via click | `download_file` | - |
### Window Management
| Feature | BrowserOS MCP | Chrome DevTools MCP |
|---------|:---:|:---:|
| List windows | `list_windows` | - |
| Create window | `create_window` | - |
| Create hidden window | `create_hidden_window` | - |
| Close window | `close_window` | - |
| Activate / focus window | `activate_window` | - |
### Tab Groups
| Feature | BrowserOS MCP | Chrome DevTools MCP |
|---------|:---:|:---:|
| List tab groups | `list_tab_groups` | - |
| Create tab group | `group_tabs` | - |
| Update group (title/color) | `update_tab_group` | - |
| Ungroup tabs | `ungroup_tabs` | - |
| Close tab group | `close_tab_group` | - |
### Bookmarks
| Feature | BrowserOS MCP | Chrome DevTools MCP |
|---------|:---:|:---:|
| List bookmarks | `get_bookmarks` | - |
| Create bookmark / folder | `create_bookmark` | - |
| Remove bookmark | `remove_bookmark` | - |
| Update bookmark | `update_bookmark` | - |
| Move bookmark | `move_bookmark` | - |
| Search bookmarks | `search_bookmarks` | - |
### History
| Feature | BrowserOS MCP | Chrome DevTools MCP |
|---------|:---:|:---:|
| Search history | `search_history` | - |
| Get recent history | `get_recent_history` | - |
| Delete URL from history | `delete_history_url` | - |
| Delete history range | `delete_history_range` | - |
### Debugging & Performance
| Feature | BrowserOS MCP | Chrome DevTools MCP |
|---------|:---:|:---:|
| Console messages | Coming soon | `get_console_message` / `list_console_messages` |
| Network request inspection | Coming soon | `get_network_request` / `list_network_requests` |
| Performance tracing | Coming soon | `performance_start_trace` / `performance_stop_trace` |
| Performance analysis | Coming soon | `performance_analyze_insight` |
| Memory snapshot | Coming soon | `take_memory_snapshot` |
| Lighthouse audit | Coming soon | `lighthouse_audit` |
| Device / network emulation | Coming soon | `emulate` |
| Resize viewport | Coming soon | `resize_page` |
### External App Integrations
| Feature | BrowserOS MCP | Chrome DevTools MCP |
|---------|:---:|:---:|
| Gmail, Outlook | Yes | - |
| Google Calendar, Outlook Calendar | Yes | - |
| Slack, Discord, Teams, WhatsApp | Yes | - |
| GitHub, GitLab | Yes | - |
| Linear, Jira, Asana, Monday, ClickUp | Yes | - |
| Notion, Google Docs/Sheets/Drive | Yes | - |
| Figma, Canva | Yes | - |
| Salesforce, HubSpot | Yes | - |
| Shopify, Stripe | Yes | - |
| 20+ more services | Yes | - |
---
## Setup Comparison
<Tabs>
<Tab title="BrowserOS MCP">
BrowserOS MCP is built into the browser. No separate process, no debug flags.
```bash
# One command, done
claude mcp add --transport http browseros http://127.0.0.1:9239/mcp --scope user
```
The server URL is available at `chrome://browseros/mcp`. Copy it and connect.
</Tab>
<Tab title="Chrome DevTools MCP">
Chrome DevTools MCP requires launching Chrome with remote debugging enabled and running a separate Node.js server.
```bash
# Step 1: Launch Chrome with debug port
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
# Step 2: Install and run the MCP server
npx @anthropic-ai/chrome-devtools-mcp@latest
# Step 3: Connect your MCP client to the server
```
Some sites may block sign-in when the browser is controlled via WebDriver (the default launch mechanism).
</Tab>
</Tabs>
---
## Summary
| Dimension | BrowserOS MCP | Chrome DevTools MCP |
|-----------|:---:|:---:|
| Browser automation tools | **54** | **29** |
| External app integrations | **40+** | **0** |
| Window management | Yes | No |
| Tab groups | Yes | No |
| Bookmarks & history | Yes | No |
| File export (PDF, screenshots, downloads) | Yes | No |
| Content extraction (Markdown, links, DOM) | Yes | No |
| Console / network inspection | Coming soon | Yes |
| Performance tracing & Lighthouse | Coming soon | Yes |
| Memory snapshots | Coming soon | Yes |
| Device emulation | Coming soon | Yes |
| Setup complexity | Copy URL | Debug port + Node server |
| Browser session | Real (cookies, extensions) | Debug-attached (WebDriver flags) |
BrowserOS MCP gives you a broader automation surface: browser control, content extraction, file operations, and 40+ app integrations through a single connection. Debugging and performance tools are coming soon to BrowserOS MCP, which will close the remaining gap with Chrome DevTools MCP. For most AI agent workflows, BrowserOS MCP already covers more ground out of the box.

View File

@@ -0,0 +1,161 @@
---
title: "Claude Cowork"
description: "How BrowserOS Cowork compares to Claude Cowork for getting real work done with AI"
---
Both BrowserOS Cowork and [Claude Cowork](https://claude.com/product/cowork) let an AI agent work with your local files autonomously. You describe a task, step away, and come back to completed work. They share a similar file toolkit under the hood. The key difference is what else each product can do. BrowserOS Cowork runs inside a real browser with full web access and 40+ app integrations. Claude Cowork runs inside an isolated VM with professional document generation.
This page compares both products so you can decide which fits your workflow.
---
## At a Glance
| | **BrowserOS Cowork** | **Claude Cowork** |
|---|---|---|
| **Runs in** | Your real browser | Claude Desktop app (VM) |
| **File tools** | Read, write, edit, search, organize | Read, write, edit, search, organize |
| **Browser automation** | Yes, 53 tools (click, type, screenshot, navigate, etc.) | No |
| **App integrations** | 40+ (Gmail, Slack, GitHub, Calendar, Notion, etc.) | ~4 connectors (Google Drive, Gmail, DocuSign) |
| **AI model** | Your choice (Claude, GPT, Gemini, Kimi, local models) | Claude only |
| **Internet access** | Full (through your real browser) | Restricted |
| **Document generation** | Basic (HTML, Markdown, CSV) | Advanced (Excel with formulas, PowerPoint, formatted docs) |
| **Pricing** | Free (bring your own AI key) | Requires paid Claude subscription |
| **Platform** | Any OS with BrowserOS | macOS, Windows x64 |
---
## Feature Comparison
### File Operations
Both products provide a comparable set of file tools. You can read, write, edit, search, and organize files in both. This is table-stakes for both products.
| What you can do | BrowserOS Cowork | Claude Cowork |
|-----------------|:---:|:---:|
| Read and view files | Yes | Yes |
| Create and save new files | Yes | Yes |
| Edit specific parts of a file | Yes | Yes |
| Search inside files for text | Yes | Yes |
| Find files by name or pattern | Yes | Yes |
| List and browse folders | Yes | Yes |
| Run commands/scripts | Yes | Yes |
| Break work into parallel subtasks | Coming soon | Built-in sub-agents |
<Note>
The file tools are largely equivalent. The real differentiator is what else each product can do beyond file operations.
</Note>
### Working with the Web
This is the biggest difference. BrowserOS Cowork runs inside a real browser with your existing logins and sessions.
| What you can do | BrowserOS Cowork | Claude Cowork |
|-----------------|:---:|:---:|
| Open and navigate websites | Yes | No |
| Click buttons, fill forms, type text | Yes | No |
| Take screenshots of web pages | Yes | No |
| Extract content from web pages | Yes | No |
| Save pages as PDF | Yes | No |
| Download files from the web | Yes | No |
| Access sites where you're logged in | Yes (your real browser session) | No |
| Manage tabs, windows, and bookmarks | Yes | No |
| Search your browsing history | Yes | No |
Claude Cowork has no browser access. If your task involves anything on the web, whether that's researching, filling out forms, grabbing content from a site, or checking on a web app, you need BrowserOS.
### Connected Apps
BrowserOS connects to 40+ services directly. Claude Cowork has a handful of connectors.
| Service | BrowserOS Cowork | Claude Cowork |
|---------|:---:|:---:|
| Gmail | Yes | Yes |
| Google Drive | Yes | Yes |
| Google Calendar | Yes | Limited |
| Slack | Yes | No |
| GitHub | Yes | No |
| Linear / Jira / Asana | Yes | No |
| Notion | Yes | No |
| Figma | Yes | No |
| Salesforce / HubSpot | Yes | No |
| Shopify / Stripe | Yes | No |
| 30+ more services | Yes | No |
### Document Generation
Claude Cowork has an edge when it comes to creating polished office documents.
| What you can do | BrowserOS Cowork | Claude Cowork |
|-----------------|:---:|:---:|
| HTML and Markdown files | Yes | Yes |
| CSV and data files | Yes | Yes |
| Excel with working formulas | No | Yes |
| PowerPoint presentations | No | Yes |
| Formatted Word documents | No | Yes |
---
## How They Work
<Tabs>
<Tab title="BrowserOS Cowork">
BrowserOS Cowork runs inside the browser. The agent has access to your real browser session (cookies, logins, extensions) and a sandboxed folder on your computer.
- Works in your real browser with your existing logins
- File access sandboxed to the folder you select
- 40+ app integrations via OAuth
- Connect from any AI tool (Claude Code, Gemini CLI, Cursor, etc.)
- Uses whatever AI model you choose
</Tab>
<Tab title="Claude Cowork">
Claude Cowork runs in an isolated virtual machine on your desktop via the Claude Desktop app.
- Runs in a secure VM, isolated from your main system
- File access to folders you grant permission to
- ~4 connectors (Google Drive, Gmail, DocuSign, FactSet)
- Only works in the Claude Desktop app
- Uses Claude models only
- Comes pre-loaded with Python, Node.js, Ruby, and common tools
</Tab>
</Tabs>
---
## Where Claude Cowork Shines
- **Professional documents**: Create Excel spreadsheets with working formulas, PowerPoint presentations, and formatted Word documents
- **Parallel subtasks**: Automatically breaks complex work into smaller tasks that run at the same time
- **Stronger isolation**: Runs in a full virtual machine, giving you OS-level separation from your main system
- **Zero setup**: Works out of the box in the Claude Desktop app with pre-installed tools and languages
---
## Where BrowserOS Cowork Shines
- **Full browser access**: Navigate websites, fill forms, click buttons, take screenshots, and extract content from any page. Claude Cowork cannot touch the web.
- **Your real logins**: Because it runs in your actual browser, the agent can access sites where you're already logged in: dashboards, internal tools, social media, banking portals, anything.
- **40+ app integrations**: Gmail, Slack, GitHub, Calendar, Notion, Linear, Figma, Salesforce, and more. All accessible in the same session as your file work. Claude Cowork has about 4 connectors.
- **Pick your AI model**: Use Claude, GPT-5, Gemini, Kimi K2.5, or a local model. Claude Cowork only works with Claude.
- **Full internet access**: Your agent can visit any website. Claude Cowork's VM is restricted to a short list of allowed sites.
- **Free**: BrowserOS is free. Just bring your own AI API key. Claude Cowork requires a paid Claude subscription.
---
## Summary
| | BrowserOS Cowork | Claude Cowork |
|---|:---:|:---:|
| File tools (read, write, edit, search) | Yes | Yes |
| Browse the web | **Yes (53 tools)** | No |
| Connected apps | **40+** | ~4 |
| Internet access | Full | Restricted |
| Choose your AI model | Yes | Claude only |
| Works with other AI tools | Yes (Claude Code, Gemini CLI, Cursor, etc.) | Claude Desktop only |
| Excel, PowerPoint, Word | No | **Yes** |
| Parallel subtasks | Coming soon | **Built-in** |
| Security model | Folder-level sandbox | VM isolation |
| Platform | Any OS | macOS, Windows x64 |
| Pricing | Free + API key | Paid subscription |
Both products handle file operations equally well. The choice comes down to what else you need. If your work touches the web, connected apps, or you want to choose your own AI model, BrowserOS Cowork gives you that. If you need polished office documents and prefer a fully isolated desktop experience, Claude Cowork is a good fit.

View File

@@ -0,0 +1,143 @@
---
title: "OpenClaw"
description: "How BrowserOS compares to OpenClaw for everyday AI assistance"
---
[OpenClaw](https://openclaw.ai/) is an open-source personal AI assistant that runs on your machine and connects through messaging apps like WhatsApp, Telegram, Slack, and Discord. It is a powerful tool for technical users who want a self-hosted, always-on AI agent.
BrowserOS takes a different approach. Instead of running a background server that you message through chat apps, BrowserOS puts the AI assistant directly inside your browser, where most of your work already happens. No terminal setup, no daemon management, no Node.js required.
This comparison is for users deciding which tool fits their needs.
## At a Glance
| | **BrowserOS** | **OpenClaw** |
|---|---|---|
| **What it is** | AI-powered browser with built-in assistant | Self-hosted AI agent you message through chat apps |
| **Setup** | Download and open | Install via npm, run onboarding wizard, configure daemon |
| **Technical skill needed** | None | Comfortable with terminal and Node.js |
| **Interface** | Built into your browser | WhatsApp, Telegram, Slack, Discord, iMessage, and 15+ more |
| **Browser automation** | 53 tools (clicks, forms, navigation, screenshots, tabs, bookmarks, history) | Chrome via CDP (snapshots and actions) |
| **App integrations** | 40+ built-in (OAuth or API key depending on the service) | Skills-based (community-built, self-installable) |
| **Memory** | Two-tier: permanent core facts + 30-day daily notes | Persistent memory across conversations |
| **Personality** | SOUL.md (inspired by OpenClaw's original concept) | SOUL.md (originated the concept) |
| **LLM support** | 11+ providers including local models (Ollama, LM Studio) | Multiple providers with failover routing |
| **Runs on** | macOS, Windows, Linux | macOS, Windows, Linux (+ iOS/Android companion apps) |
| **Authentication** | OAuth or API key depending on the service | API keys, OAuth, pairing codes per channel |
| **Open source** | Yes (AGPL-3.0) | Yes (MIT) |
## Where BrowserOS Shines
### No technical setup required
OpenClaw requires Node.js 22+, npm installation, a terminal-based onboarding wizard, daemon configuration (launchd or systemd), and channel pairing for each messaging platform. If something goes wrong, you need `openclaw doctor` to diagnose issues.
BrowserOS is a browser. Download it, open it, and start talking to the assistant. There is no daemon to manage, no services to keep running, and no terminal needed.
### Browser automation built in
BrowserOS gives the assistant full control of your browser with 53 tools: clicking buttons, filling forms, navigating between pages, taking screenshots, managing tabs, organizing bookmarks, searching history, and more. The assistant sees what you see and can interact with any website you are logged into.
OpenClaw has browser automation through a dedicated Chrome instance with CDP, but it runs as a separate process rather than being integrated into the browser you are already using. With BrowserOS, the assistant works directly in your browsing session with all your cookies, logins, and open tabs.
### 40+ app integrations built in
BrowserOS connects to Gmail, Google Calendar, Slack, Notion, GitHub, Linear, Jira, Figma, Salesforce, Stripe, and 30+ more services out of the box. Most services connect through OAuth (one-click sign-in), while some require an API key. Either way, the assistant detects when an app is not connected and walks you through the setup right in the conversation.
OpenClaw uses a skills system where integrations are community-built plugins. Some popular services have skills available, but connecting a new service often means finding the right skill, installing it, and configuring credentials manually.
### Works where you already are
Most of your work happens in a browser. BrowserOS puts the assistant right there, so it can see the page you are on, interact with web apps, and pull data from your open tabs. There is no context-switching between a chat app and your browser.
OpenClaw's approach of messaging through WhatsApp or Telegram is clever for mobile use, but when you are at your computer working in a browser, having the assistant inside that browser is more natural and more capable.
## Where OpenClaw Shines
### Messaging app access
OpenClaw connects to 20+ messaging platforms including WhatsApp, Telegram, Signal, iMessage, Discord, Slack, Microsoft Teams, and more. You can message your assistant from your phone or any chat app without opening a specific application. This is ideal if you want AI help on the go through apps you already have open.
BrowserOS is a desktop browser. To use the assistant, you need to be in BrowserOS.
### Always-on background agent
OpenClaw runs as a daemon on your machine, processing tasks even when you are not actively chatting. It supports cron jobs, webhooks, and Gmail Pub/Sub for automated triggers. It can wake up, do something, and report back through your messaging app.
BrowserOS has [scheduled tasks](/features/scheduled-tasks) that run automations on a schedule, but the browser needs to be running. OpenClaw's daemon approach is more suited for server-like always-on operation.
### Mobile companion apps
OpenClaw offers iOS and Android companion apps with camera access, voice input, screen recording, and device-level actions (notifications, contacts, calendar, SMS). This extends the assistant to your phone in a way that BrowserOS cannot currently match.
### Agent-to-agent communication
OpenClaw supports multi-session agent coordination where agents can discover each other, read transcripts, and send messages between sessions. This is useful for complex workflows where multiple specialized agents collaborate.
### Self-modifying skills
OpenClaw agents can write and install their own skills during a conversation. If the assistant does not have a capability, it can create one on the fly. This makes it extremely flexible for power users who want the agent to extend itself.
## Feature Comparison
### App Integrations
| Service | BrowserOS | OpenClaw |
|---------|-----------|----------|
| Gmail | Built-in (OAuth) | Skill + API setup |
| Google Calendar | Built-in (OAuth) | Skill + API setup |
| Slack | Built-in (OAuth) | Built-in channel |
| Discord | Built-in (OAuth) | Built-in channel |
| Notion | Built-in (OAuth) | Skill |
| GitHub | Built-in (OAuth) | Skill |
| Linear | Built-in (OAuth or API key) | Skill |
| Jira | Built-in (OAuth) | Skill |
| Figma | Built-in (OAuth) | Skill |
| Salesforce | Built-in (OAuth) | Skill |
| Stripe | Built-in (API key) | Skill |
| WhatsApp | Built-in (OAuth) | Built-in channel |
| Shopify | Built-in (OAuth or API key) | Community skill |
| Total integrations | 40+ built-in | 50+ via skills |
### Memory and Personality
| Feature | BrowserOS | OpenClaw |
|---------|-----------|----------|
| Persistent memory | Core facts (permanent) + daily notes (30 days) | Persistent across sessions |
| Memory location | Local files on your machine | Local files on your machine |
| Personality system | SOUL.md (inspired by OpenClaw) | SOUL.md (originated the concept) |
| Memory search | Fuzzy search across all memories | Context-based recall |
### Setup and Maintenance
| | BrowserOS | OpenClaw |
|---|-----------|----------|
| Installation | Download browser | `npm install -g openclaw`, run onboarding wizard |
| Runtime | Open the browser | Daemon process (launchd/systemd) |
| Updates | Auto-update | `openclaw update --channel stable` |
| Troubleshooting | Built-in | `openclaw doctor` CLI tool |
| Node.js required | No | Yes (v22+) |
| Terminal required | No | Yes |
## Who Should Use What
<CardGroup cols={2}>
<Card title="Choose BrowserOS if you..." icon="browser">
- Want an AI assistant without any technical setup
- Do most of your work in a browser
- Need browser automation (filling forms, clicking buttons, extracting data)
- Want 40+ app integrations that connect with one click
- Prefer a visual interface over terminal commands
</Card>
<Card title="Choose OpenClaw if you..." icon="terminal">
- Want to message your AI from WhatsApp, Telegram, or Signal
- Need an always-on agent that runs 24/7 as a background service
- Are comfortable with Node.js and terminal-based setup
- Want mobile companion apps for on-the-go access
- Need agents that can write their own extensions
</Card>
</CardGroup>
## Using Both Together
BrowserOS and OpenClaw are not mutually exclusive. Some users run OpenClaw as their always-on mobile assistant (accessible through WhatsApp or Telegram) while using BrowserOS as their desktop browser for work that involves web apps, browser automation, and visual tasks. The two tools complement each other rather than compete directly.

View File

@@ -1,490 +1,267 @@
---
title: "Contributing to BrowserOS"
description: "Let's build the best open-source browser!"
icon: "code-branch"
description: "Guide to contributing to BrowserOS"
---
Hey there! Thanks for your interest in BrowserOS. Whether you're fixing bugs, adding features, improving docs, or just poking around the code, we're glad you're here.
BrowserOS has two main parts you can contribute to:
BrowserOS is a monorepo with two main parts:
- **Agent** - The Chrome extension with AI features (TypeScript/React)
- **Browser** - The custom Chromium build (C++/Python)
- **Agent** — The AI features, UI, and browser automation (TypeScript/React)
- **Browser** The custom Chromium build (C++/Python)
Most folks start with the agent since it's way easier to set up and iterate on.
Most contributors work on the Agent since it's much easier to set up.
## 1. Quick Links
## Quick Links
<CardGroup cols={3}>
<Card
title="GitHub Repository"
icon="github"
href="https://github.com/BrowserOS-ai/BrowserOS"
>
Star, fork, and contribute to our codebase
</Card>
<Card
title="Discord Community"
icon="discord"
href="https://discord.gg/YKwjt5vuKr"
>
Join our community for discussions and support
</Card>
<Card
title="Report Issues"
icon="bug"
href="https://github.com/BrowserOS-ai/BrowserOS/issues"
>
Report bugs or suggest new features
</Card>
</CardGroup>
- [GitHub Repository](https://github.com/BrowserOS-ai/BrowserOS)
- [Discord Community](https://discord.gg/YKwjt5vuKr)
- [Report Issues](https://github.com/BrowserOS-ai/BrowserOS/issues)
## 2. Ways to Contribute
## Ways to Contribute
You can contribute to BrowserOS in many ways! Whether you want to build features or help out in other ways, we appreciate all contributions.
**Report bugs** — [Open an issue](https://github.com/browseros-ai/BrowserOS/issues/new) with steps to reproduce, expected vs actual behavior, and screenshots.
<Tabs>
<Tab title="🐛 Report Bugs">
Found a bug? [Open an issue](https://github.com/browseros-ai/BrowserOS/issues/new) with:
- Clear description
- Steps to reproduce
- Expected vs actual behavior
- Screenshots/videos
- Environment details (OS, browser version, BrowserOS version)
</Tab>
**Suggest features** — Share ideas on [GitHub](https://github.com/browseros-ai/BrowserOS/issues/99) or [Discord](https://discord.gg/YKwjt5vuKr).
<Tab title="💡 Suggest Features">
Have an idea? [Share it here](https://github.com/browseros-ai/BrowserOS/issues/99) or chat with us on [Discord](https://discord.gg/YKwjt5vuKr).
</Tab>
**Improve docs** — Docs live in `docs/` and use Mintlify. Edit pages and update `docs/docs.json` for navigation.
<Tab title="📚 Improve Docs">
We use <b>Mintlify</b> for our documentation. All docs live in the <code>docs/</code> directory.
---
- Add new documentation pages or update existing ones under <code>docs/</code>
- Help clarify instructions; add examples, tutorials, or guides
- After adding or editing a page, update <code>docs/docs.json</code> to include your new or changed file in the navigation
## Path 1: Agent Development
If you have questions about the docs system, ask in Discord!
</Tab>
</Tabs>
The Agent is a monorepo with 3 components:
## 3. Pick Your Path
| Component | Path | What it does |
|-----------|------|--------------|
| **Agent UI** | `apps/agent` | Chrome extension — chat interface, settings, side panel |
| **Server** | `apps/server` | Bun server — agent loop, MCP tools, API endpoints |
| **Controller** | `apps/controller-ext` | Chrome extension — bridges `chrome.*` APIs to the server |
If you want to contribute to development, here are two paths you can take:
### Architecture
<CardGroup cols={2}>
<Card title="Agent Development" icon="robot">
**What you'll work on:**
- AI agent features & tools
- UI/UX improvements
- Browser automation
- Testing & docs
<img src="/images/contributing--architecture.png" alt="BrowserOS Agent architecture diagram" />
**What you need:**
- Node.js 18+
- ~500MB disk space
- 10 minutes to set up
### Setup
**Skills:** TypeScript, React, Chrome APIs
</Card>
<Card title="Browser Development" icon="globe">
**What you'll work on:**
- Chromium patches
- Build system
- Platform features
- Core browser stuff
```bash
# Clone the repo
git clone https://github.com/YOUR-USERNAME/BrowserOS.git
cd BrowserOS/packages/browseros-agent
**What you need:**
- ~100GB disk space
- 16GB+ RAM (recommended)
- 3+ hours for first build
# Install dependencies
bun install
**Skills:** C++, Python, Chromium internals
</Card>
</CardGroup>
# Copy environment files
cp apps/server/.env.example apps/server/.env.development
cp apps/agent/.env.example apps/agent/.env.development
```
### 3.1 Agent Development
### Running Locally
The agent is a Chrome extension that provides AI-powered automation. Most contributors work here.
```bash
# Terminal 1: Start the server
bun run start:server
<Accordion title="Instructions">
# Terminal 2: Start the agent extension (dev mode)
bun run start:agent
```
#### Quick Setup
Then load the extension in BrowserOS:
1. Go to `chrome://extensions/`
2. Enable **Developer mode**
3. Click **Load unpacked** and select the `apps/agent/dist/` folder
<Steps>
<Step title="Navigate to Agent Directory">
```bash
cd packages/browseros-agent
```
</Step>
### Commands
<Step title="Install Dependencies">
```bash
yarn install
```
</Step>
| Command | Description |
|---------|-------------|
| `bun run start:server` | Start the server |
| `bun run start:agent` | Start agent extension (dev mode) |
| `bun run build:server` | Build server for production |
| `bun run build:agent` | Build agent extension |
| `bun run build:ext` | Build controller extension |
| `bun run test` | Run tests |
| `bun run lint` | Check with Biome |
| `bun run typecheck` | TypeScript check |
<Step title="Set Up Environment">
```bash
cp .env.example .env
```
Edit `.env` and add your `LITELLM_API_KEY`
</Step>
---
<Step title="Build the Extension">
```bash
yarn build:dev # One-time build
```
</Step>
</Steps>
## Path 2: Browser Development
#### Load in BrowserOS
Only go down this path if you're working on Chromium-level features like patches to the browser itself.
<Steps>
<Step title="Open Extensions Page">
Navigate to `chrome://extensions/`
</Step>
**Requirements:**
- ~100GB disk space
- 16GB+ RAM recommended
- 3+ hours for first build
<Step title="Enable Developer Mode">
Toggle **Developer mode** in the top right
</Step>
<Step title="Load Unpacked Extension">
Click **Load unpacked** and select `packages/browseros-agent/dist/`
</Step>
<Step title="Open Agent Panel">
Press the Agent icon from the extensions toolbar to open the agent panel
</Step>
</Steps>
<Note>
For detailed setup, architecture, and code standards, see the [Agent Contributing Guide](https://github.com/BrowserOS-ai/BrowserOS/blob/main/packages/browseros-agent/CONTRIBUTING.md).
</Note>
</Accordion>
### 3.2 Browser Development
Building the custom Chromium browser requires significant disk space and time. Only go down this path if you're working on browser-level features like patches to Chromium itself.
<Accordion title="Instructions">
#### Prerequisites
### Prerequisites
<Tabs>
<Tab title="macOS">
- macOS (tested on M4 Max)
- Xcode and Command Line Tools
- Python 3
- macOS with Xcode and Command Line Tools
- Python 3.12+
- [UV](https://docs.astral.sh/uv/) (Python package manager)
- Git
- ~100GB of free disk space (for Chromium source)
- ~16GB RAM (recommended)
</Tab>
<Tab title="Linux">
- Ubuntu 20.04+ or similar
- build-essential package
- Python 3
- Python 3.12+
- [UV](https://docs.astral.sh/uv/)
- Git
- ~100GB of free disk space
- ~16GB RAM (recommended)
</Tab>
<Tab title="Windows">
- Windows 10/11
- Visual Studio 2022 with C++ workload
- Python 3
- Python 3.12+
- [UV](https://docs.astral.sh/uv/)
- Git
- ~100GB of free disk space
- ~16GB RAM minimum
</Tab>
</Tabs>
#### Build Instructions
### Build Instructions
<Steps>
<Step title="Checkout Chromium Source">
First, follow the official Chromium guide for your platform:
**1. Clone Chromium source**
**[Chromium: Get the Code](https://www.chromium.org/developers/how-tos/get-the-code/)**
Follow the official [Chromium: Get the Code](https://www.chromium.org/developers/how-tos/get-the-code/) guide. This sets up `depot_tools` and fetches ~100GB of source code.
This will set up `depot_tools` and fetch the ~100GB Chromium source tree. This typically takes 2-3 hours depending on your internet speed.
</Step>
Note the path where you clone it (e.g., `~/chromium/src`).
<Step title="Navigate to Build System">
Once you have Chromium checked out, navigate to our build system:
**2. Install UV and dependencies**
```bash
cd packages/browseros
```
</Step>
```bash
# Install UV
curl -LsSf https://astral.sh/uv/install.sh | sh
<Step title="Build Debug Version (for development)">
<Tabs>
<Tab title="macOS">
```bash
python build/build.py --config build/config/debug.macos.yaml --chromium-src /path/to/chromium/src --build
```
</Tab>
<Tab title="Linux">
```bash
python build/build.py --config build/config/debug.linux.yaml --chromium-src /path/to/chromium/src --build
```
</Tab>
<Tab title="Windows">
```bash
python build/build.py --config build/config/debug.windows.yaml --chromium-src /path/to/chromium/src --build
```
</Tab>
</Tabs>
</Step>
# Navigate to build system
cd packages/browseros
<Step title="Build Release Version (for production)">
<Tabs>
<Tab title="macOS">
```bash
python build/build.py --config build/config/release.macos.yaml --chromium-src /path/to/chromium/src --build
```
</Tab>
<Tab title="Linux">
```bash
python build/build.py --config build/config/release.linux.yaml --chromium-src /path/to/chromium/src --build
```
</Tab>
<Tab title="Windows">
```bash
python build/build.py --config build/config/release.windows.yaml --chromium-src /path/to/chromium/src --build
```
</Tab>
</Tabs>
<Note>
The build typically takes 1-3 hours on modern hardware (M4 Max, Ryzen 9, etc.).
</Note>
</Step>
<Step title="Run BrowserOS">
After the build completes successfully, you can run BrowserOS:
<Tabs>
<Tab title="macOS Debug (ARM64)">
```bash
out/Default_arm64/BrowserOS\ Dev.app/Contents/MacOS/BrowserOS\ Dev --user-data-dir=/tmp/test-profile
```
</Tab>
<Tab title="macOS Debug (x64)">
```bash
out/Default_x64/BrowserOS\ Dev.app/Contents/MacOS/BrowserOS\ Dev --user-data-dir=/tmp/test-profile
```
</Tab>
<Tab title="macOS Release (ARM64)">
```bash
out/Default_arm64/BrowserOS.app/Contents/MacOS/BrowserOS --user-data-dir=/tmp/test-profile
```
</Tab>
<Tab title="macOS Release (x64)">
```bash
out/Default_x64/BrowserOS.app/Contents/MacOS/BrowserOS --user-data-dir=/tmp/test-profile
```
</Tab>
<Tab title="Linux/Windows">
The built binary will be located in the `out/Default_x64/` directory. Run it with the `--user-data-dir` flag to create an isolated test profile.
</Tab>
</Tabs>
<Tip>
The `--user-data-dir` flag is useful for creating isolated test profiles during development.
</Tip>
</Step>
</Steps>
#### Troubleshooting
<Accordion title="Build fails with missing dependencies">
- Make sure you've followed all prerequisite steps from the Chromium build guide
- Ensure Xcode is up to date (macOS)
- Verify all required packages are installed (Linux)
- Check Visual Studio installation (Windows)
</Accordion>
<Accordion title="Out of disk space">
Chromium requires significant disk space (~100GB). Ensure you have enough free space before starting the build. You can use `df -h` on Unix systems or check Disk Management on Windows.
</Accordion>
<Accordion title="Build takes too long">
- Use ccache to speed up rebuilds
- Consider using a machine with more CPU cores
- Build only the components you need for development
- Use the debug build for faster compilation times
</Accordion>
</Accordion>
## 4. Making Your First Contribution
Open a PR on GitHub with:
- **Clear title** in conventional commit format
- **Description** explaining what changed and why
- **Screenshots/videos** for UI changes
- **Link to related issues** (e.g., "Fixes #123")
### Sign the CLA
On your first PR, our bot will ask you to sign the Contributor License Agreement:
<Steps>
<Step title="Read the CLA">
Read the [CLA document](https://github.com/BrowserOS-ai/BrowserOS/blob/main/CLA.md)
</Step>
<Step title="Sign via Comment">
Comment on your PR:
```
I have read the CLA Document and I hereby sign the CLA
```
</Step>
<Step title="Automatic Recording">
The bot will record your signature (one-time thing)
</Step>
</Steps>
## 5. Code Standards
### TypeScript (Agent)
- **Strict typing** - Always declare types, avoid `any`
- **Zod schemas** - Use Zod instead of TypeScript interfaces
- **Path aliases** - Use `@/lib` not relative paths like `../`
- **Naming:**
- Classes: `PascalCase`
- Functions/variables: `camelCase`
- Constants: `UPPERCASE`
- Private methods: prefix with `_`
**Example:**
```typescript
import { z } from 'zod'
// Good: Zod schema with inline comments
export const ToolInputSchema = z.object({
action: z.enum(['click', 'type']), // Action to perform
target: z.string().min(1), // Element selector
timeout: z.number().default(5000) // Timeout in ms
})
export type ToolInput = z.infer<typeof ToolInputSchema>
# Install dependencies
uv sync
```
### React (Agent UI)
**3. Build debug version**
- **Styling:** Tailwind CSS only (no SCSS or CSS modules)
- **Hooks:** Only at top level
- **Props:** Define with Zod schemas
- **Testing:** Vitest (not Jest)
### General Guidelines
- Keep functions short (\<20 lines ideally)
- Write tests for new features
- Use descriptive variable names
- Handle errors gracefully
<Note>
claude.md file can be found at below:
- Agent: [packages/browseros-agent/CLAUDE.md](https://github.com/BrowserOS-ai/BrowserOS/blob/main/packages/browseros-agent/CLAUDE.md)
</Note>
## 6. Project Structure
```
monorepo/
├── packages/
│ ├── browseros/ # Chromium build system
│ │ ├── build/ # Python build scripts
│ │ ├── chromium_patches/ # Patches to Chromium source
│ │ └── resources/ # Icons, configs
│ │
│ └── browseros-agent/ # Chrome extension
│ ├── src/
│ │ ├── lib/ # Core agent logic
│ │ ├── sidepanel/ # Side panel UI
│ │ ├── newtab/ # New tab page
│ │ └── background/ # Extension background
│ └── docs/ # Architecture docs
├── docs/ # General documentation
└── CONTRIBUTING.md # Contributing guide
```bash
uv run browseros build \
--chromium-src <your-chromium-src-path> \
--setup \
--prep \
--build \
--build-type debug
```
## 7. Development Workflow
The `--setup` and `--prep` flags are only needed for the first build. After that, just use `--build` for incremental builds:
<Steps>
<Step title="Fork and Clone">
Fork the repository on GitHub and clone it locally:
```bash
uv run browseros build --chromium-src <path> --build --build-type debug
```
**4. Run BrowserOS**
<Tabs>
<Tab title="macOS (ARM64)">
```bash
git clone https://github.com/YOUR-USERNAME/BrowserOS.git
cd BrowserOS
<chromium-src>/out/Default_arm64/BrowserOS\ Dev.app/Contents/MacOS/BrowserOS\ Dev \
--enable-logging=stderr \
--use-mock-keychain \
--user-data-dir=/tmp/test-profile
```
</Step>
<Step title="Create a Branch">
Create a new branch for your feature or fix:
</Tab>
<Tab title="macOS (x64)">
```bash
git checkout -b feature/your-feature-name
<chromium-src>/out/Default_x64/BrowserOS\ Dev.app/Contents/MacOS/BrowserOS\ Dev \
--enable-logging=stderr \
--use-mock-keychain \
--user-data-dir=/tmp/test-profile
```
</Step>
<Step title="Make Changes">
Make your changes and test them thoroughly. Follow our coding standards and ensure all tests pass.
</Step>
<Step title="Commit and Push">
Commit your changes with a descriptive message:
</Tab>
<Tab title="Windows">
```bash
git add .
git commit -m "feat: add new feature description"
git push origin feature/your-feature-name
<chromium-src>\out\Default_x64\BrowserOS Dev.exe \
--enable-logging=stderr \
--user-data-dir=%TEMP%\test-profile
```
</Step>
</Tab>
<Tab title="Linux">
```bash
<chromium-src>/out/Default_x64/browseros \
--enable-logging=stderr \
--user-data-dir=/tmp/test-profile
```
</Tab>
</Tabs>
<Step title="Submit PR">
Open a pull request on GitHub with a clear description of your changes and why they're needed.
</Step>
</Steps>
### Build Flags
## 8. Support
| Flag | Description |
|------|-------------|
| `--chromium-src` | Path to Chromium source directory |
| `--setup` | Run setup phase (first build only) |
| `--prep` | Run prep phase (first build only) |
| `--build` | Run the compile phase |
| `--build-type` | `debug` or `release` |
| `--sign` | Sign the build |
| `--package` | Package for distribution |
Stuck? Need clarification? We're here to help.
### Troubleshooting
<CardGroup cols={3}>
<Card
title="Discord Support"
icon="discord"
href="https://discord.gg/YKwjt5vuKr"
>
Real-time chat and support
</Card>
<Card
title="GitHub Issues"
icon="bug"
href="https://github.com/browseros-ai/BrowserOS/issues"
>
Bug reports and features
</Card>
<Card
title="GitHub Discussions"
icon="comments"
href="https://github.com/browseros-ai/BrowserOS/discussions"
>
General questions
</Card>
</CardGroup>
**Build fails with missing dependencies** — Make sure you followed all steps from the Chromium build guide for your platform.
**Out of disk space** — Chromium needs ~100GB. Check with `df -h`.
## 9. License
**Build takes too long** — Use ccache, more CPU cores, or stick to debug builds.
By contributing, you agree that your contributions will be licensed under AGPL-3.0.
**UV command not found** — Restart your terminal after installing UV.
---
Built with ❤️ from San Francisco
## Making Your First PR
1. **Fork** the repository on GitHub
2. **Clone** your fork locally
3. **Create a branch**: `git checkout -b feature/your-feature`
4. **Make changes** and test them
5. **Commit**: `git commit -m "feat: add your feature"`
6. **Push**: `git push origin feature/your-feature`
7. **Open a PR** with a clear description
### Sign the CLA
On your first PR, our bot will ask you to sign the Contributor License Agreement. Just comment:
```
I have read the CLA Document and I hereby sign the CLA
```
---
## Code Standards
**TypeScript:**
- Use strict typing, avoid `any`
- Use Zod schemas instead of TypeScript interfaces
- Use path aliases (`@/lib`) not relative paths (`../`)
- Naming: `PascalCase` for classes, `camelCase` for functions
**React:**
- Tailwind CSS only (no SCSS or CSS modules)
- Hooks at top level only
- Test with Vitest
**General:**
- Keep functions short (under 20 lines)
- Write tests for new features
- Handle errors gracefully
---
## Getting Help
- **Discord** — [discord.gg/YKwjt5vuKr](https://discord.gg/YKwjt5vuKr)
- **GitHub Issues** — [github.com/BrowserOS-ai/BrowserOS/issues](https://github.com/BrowserOS-ai/BrowserOS/issues)
- **GitHub Discussions** — [github.com/BrowserOS-ai/BrowserOS/discussions](https://github.com/BrowserOS-ai/BrowserOS/discussions)
---
By contributing, you agree that your contributions will be licensed under AGPL-3.0.

View File

@@ -1,101 +1,79 @@
{
"$schema": "https://mintlify.com/docs.json",
"theme": "mint",
"theme": "maple",
"name": "BrowserOS Documentation",
"colors": {
"primary": "#0066CC",
"light": "#3399FF",
"dark": "#003D7A"
"primary": "#f25e1a",
"light": "#FF7A3D",
"dark": "#D14E10"
},
"favicon": "/logo/favicon.svg",
"favicon": "/logo/favicon.png",
"navigation": {
"tabs": [
"groups": [
{
"tab": "Documentation",
"groups": [
{
"group": "Getting Started",
"pages": [
"index",
"onboarding",
"update"
]
},
{
"group": "Configure AI",
"expanded": true,
"pages": [
"llm-setup-guide",
{
"group": "BYOK LLM",
"expanded": true,
"pages": [
"bring-your-own-keys/gemini",
"bring-your-own-keys/claude",
"bring-your-own-keys/openai",
"bring-your-own-keys/openrouter"
]
},
{
"group": "Local LLMs",
"expanded": true,
"pages": [
"local-LLMs/ollama",
"local-LLMs/lm-studio",
"local-LLMs/gpt-oss"
]
},
{
"group": "BrowserOS-mcp",
"expanded": true,
"pages": [
"browseros-mcp/how-to-guide"
]
}
]
},
{
"group": "Integrations",
"pages": [
"integrations/n8n"
]
},
{
"group": "Contributing",
"pages": [
"contributing"
]
}
"group": "Get Started",
"pages": [
"index",
"onboarding",
"update/index",
"changelog"
]
},
{
"group": "Core Features",
"pages": [
"features/bring-your-own-llm",
"features/chatgpt-pro-oauth",
"features/github-copilot-oauth",
"features/qwen-code-oauth",
"features/local-models",
"features/workflows",
"features/scheduled-tasks",
"features/cowork",
"features/connect-mcps",
"features/skills",
"features/smart-nudges",
"features/use-with-claude-code",
"features/soul",
"features/memory",
"features/sync-to-cloud",
"features/llm-chat-hub",
"features/ad-blocking",
"features/vertical-tabs"
]
},
{
"group": "Comparisons",
"pages": [
"comparisons/chrome-devtools-mcp",
"comparisons/claude-cowork",
"comparisons/openclaw"
]
},
{
"group": "Integrations",
"pages": ["integrations/n8n"]
},
{
"group": "Troubleshooting",
"pages": ["troubleshooting/connection-issues"]
},
{
"group": "Contributing",
"pages": ["contributing"]
}
],
"global": {
"anchors": [
{
"anchor": "GitHub",
"href": "https://github.com/BrowserOS-ai/BrowserOS",
"icon": "github"
},
{
"anchor": "Discord",
"href": "https://discord.gg/YKwjt5vuKr",
"icon": "discord"
},
{
"anchor": "Slack",
"href": "http://dub.sh/browseros-slack",
"icon": "slack"
}
]
}
]
},
"logo": {
"light": "/logo/browseros.svg",
"dark": "/logo/browseros.svg"
"light": "/logo/logo44.png",
"dark": "/logo/logo44.png"
},
"navbar": {
"links": [
{
"label": "llms.txt",
"href": "/llms.txt"
},
{
"label": "Support",
"href": "https://discord.gg/YKwjt5vuKr"
@@ -109,22 +87,22 @@
},
"contextual": {
"options": [
"copy",
"view",
"chatgpt",
"claude",
"perplexity",
"mcp",
"cursor",
"vscode"
]
"copy",
"view",
"chatgpt",
"claude",
"perplexity",
"mcp",
"cursor",
"vscode"
]
},
"footer": {
"socials": {
"x": "https://x.com/browseros_ai",
"github": "https://github.com/BrowserOS-ai/BrowserOS",
"discord": "https://discord.gg/YKwjt5vuKr",
"slack": "http://dub.sh/browseros-slack"
"slack": "https://dub.sh/browserOS-slack"
}
}
}

View File

@@ -0,0 +1,39 @@
---
title: "Ad Blocking"
description: "BrowserOS supports full ad blocking with uBlock Origin"
---
BrowserOS supports full ad blocking through [uBlock Origin](https://ublockorigin.com/), the most powerful open-source ad blocker available — the full extension, not the watered-down "Lite" version.
## Why BrowserOS?
Chrome [killed support](https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline) for uBlock Origin by phasing out Manifest V2 extensions. The only option left on Chrome is "uBlock Origin Lite," a significantly weaker version that can't use advanced filtering rules.
**BrowserOS re-enabled full Manifest V2 support**, so you can install and run the original uBlock Origin at full power — the same extension Chrome no longer allows.
<Card title="Install uBlock Origin" icon="shield-check" href="https://chromewebstore.google.com/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm">
Install the full uBlock Origin extension from the Chrome Web Store. Works on BrowserOS out of the box.
</Card>
## BrowserOS vs Chrome
We ran both browsers through [adblock.turtlecute.org](https://adblock.turtlecute.org/), a test that measures how effectively a browser blocks ads and tracking scripts.
<CardGroup cols={2}>
<Card title="BrowserOS — 68%">
<img src="/images/adblock-browseros.png" alt="BrowserOS blocking 68% of ads" />
</Card>
<Card title="Chrome — 7%">
<img src="/images/adblock-chrome.png" alt="Chrome blocking only 7% of ads" />
</Card>
</CardGroup>
Out of 133 ad-related requests:
- **BrowserOS** blocked 91 (68%)
- **Chrome** blocked 9 (7%)
That's roughly **10x more protection** with zero configuration.
## What This Means
Fewer ads means faster page loads, less bandwidth usage, and significantly reduced tracking. BrowserOS handles this natively so you can focus on browsing.

View File

@@ -0,0 +1,284 @@
---
title: "Bring Your Own LLM"
description: "Connect your own AI models to BrowserOS"
---
BrowserOS includes a default AI model you can use right away, but it has strict rate limits. For the best experience, bring your own API keys or run models locally.
See how to connect your own LLM in under a minute:
<video
controls
className="w-full aspect-video rounded-xl"
src="https://pub-80f8a01e6e8b4239ae53a7652ef85877.r2.dev/resources/feature-videos/1-bring-your-own-LLM.mov"
></video>
## Use Your Existing Subscription
Already paying for ChatGPT Pro, GitHub Copilot, or Qwen Code? Connect your existing account to BrowserOS with a single sign-in — no API keys, no extra cost.
<CardGroup cols={3}>
<Card href="/features/chatgpt-pro-oauth">
<svg fill="currentColor" fillRule="evenodd" height="24" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z"></path></svg>
**ChatGPT Pro / Plus**
Sign in with your OpenAI account. Access GPT-5 Codex, GPT-5.4, and the full Codex lineup with up to 400K context.
</Card>
<Card href="/features/github-copilot-oauth">
<svg fill="currentColor" fillRule="evenodd" height="24" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"></path></svg>
**GitHub Copilot**
Sign in with your GitHub account. Access 19+ models including Claude, GPT-5, and Gemini through one subscription.
</Card>
<Card href="/features/qwen-code-oauth">
<svg fill="currentColor" fillRule="evenodd" height="24" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z"></path></svg>
**Qwen Code**
Sign in with your Qwen account. Access Qwen 3 Coder with a 1 million token context window.
</Card>
</CardGroup>
---
## Which Model Should I Use?
| Mode | What works | Recommendation |
|------|------------|----------------|
| **Chat Mode** | Any model, including local | Ollama or Gemini Flash |
| **Agent Mode** | Cloud models only | Claude Opus 4.5, GPT-5, or Kimi K2.5 (open source) |
<Warning>
**Local LLMs aren't powerful for most agentic tasks yet.** They're great for Chat — asking questions about a page, summarizing, etc. But agent tasks need strong reasoning to click the right elements and handle multi-step workflows. Use Claude Opus 4.5, GPT-5, or Kimi K2.5 for agents.
</Warning>
---
## Kimi K2.5 — In Partnership with Moonshot AI
{/* <img src="/images/moonshot-partnership-banner.png" alt="BrowserOS x Moonshot AI" className="rounded-xl" /> */}
BrowserOS has partnered with [Moonshot AI](https://www.kimi.com) to bring **Kimi K2.5** as a first-class provider. Kimi K2.5 is now the **recommended model** in BrowserOS and is set as the default provider.
For a limited time, BrowserOS users get **extended usage limits** powered by Kimi K2.5. This means you can use the AI agent, chat, and other AI-powered features with increased limits at no cost.
<CardGroup cols={2}>
<Card title="Open Source" icon="code-branch">
Fully open-source model you can inspect and trust.
</Card>
<Card title="Multimodal" icon="image">
Supports images out of the box, including screenshots and visual context.
</Card>
<Card title="Great for Agents" icon="robot">
Strong reasoning for browser automation, form filling, and multi-step workflows.
</Card>
<Card title="Affordable" icon="piggy-bank">
Excellent agentic performance at a fraction of the cost of other frontier models.
</Card>
</CardGroup>
<div id="moonshot" />
### Why Kimi K2.5?
Kimi K2.5 offers excellent performance for agentic tasks at a fraction of the cost of other frontier models. It supports images, has a 128,000 token context window, and delivers strong results on browser automation tasks. Combined with BrowserOS's open-source agent framework, this makes for a powerful and affordable AI browsing experience.
### Bring Your Own Kimi API Key
You can also bring your own Kimi API key if you want to use Kimi K2.5 beyond the extended usage period, or if you want your own dedicated limits.
**Get your API key:**
1. Go to [platform.moonshot.ai](https://platform.moonshot.ai) and create an account
2. Navigate to the **API keys** section in your dashboard
3. Click **Create new API key** and copy the key
**Add to BrowserOS:**
1. Go to `chrome://browseros/settings`
2. Click **USE** on the **Moonshot AI** card
3. Enter your API key (it will be encrypted and stored locally on your machine)
4. The model is pre-configured to `kimi-k2.5` with a 128,000 context window
5. Click **Save**
<Tip>
The base URL for the Kimi API (`https://api.moonshot.ai/v1`) is pre-filled automatically when you select the Moonshot AI provider template.
</Tip>
---
## Cloud Providers
Connect to powerful AI models using your API keys. Your keys stay on your machine — requests go directly to the provider.
<AccordionGroup>
<div id="gemini" />
<Accordion title="Gemini (Free)" icon="google">
Gemini Flash is fast and free. Google gives you 20 requests per minute at no cost.
**Get your API key:**
1. Go to [aistudio.google.com](https://aistudio.google.com)
2. Click **Get API key** in the sidebar
3. Click **Create API key** and copy it
![Get Gemini API key](/images/gemini-get-api-key.png)
**Add to BrowserOS:**
1. Go to `chrome://browseros/settings`
2. Click **USE** on the Gemini card
3. Set **Model ID** to `gemini-2.5-flash` (or `gemini-2.5-pro`, `gemini-3-pro-preview`, `gemini-3-flash-preview`)
4. Paste your API key
5. Check **Supports Images**, set **Context Window** to `1000000`
6. Click **Save**
![Gemini config](/images/byollm--gemini-provider-config.png)
</Accordion>
<div id="claude" />
<Accordion title="Claude (Best for Agents)" icon="message-bot">
Claude Opus 4.5 gives the best results for Agent Mode.
**Get your API key:**
1. Go to [console.anthropic.com](https://console.anthropic.com/dashboard)
2. Click **API keys** in the sidebar
3. Click **Create Key** and copy it
![Get Claude API key](/images/claude-api-keys.png)
**Add to BrowserOS:**
1. Go to `chrome://browseros/settings`
2. Click **USE** on the Anthropic card
3. Set **Model ID** to `claude-opus-4-5-20251101` (or `claude-sonnet-4-5-20250929`, `claude-haiku-4-5-20251001`)
4. Paste your API key
5. Check **Supports Images**, set **Context Window** to `200000`
6. Click **Save**
![Claude config](/images/byollm--claude-provider-config.png)
</Accordion>
<div id="openai" />
<Accordion title="OpenAI" icon="brain">
GPT-5 is OpenAI's most capable model for both chat and agent tasks.
**Get your API key:**
1. Go to [platform.openai.com](https://platform.openai.com)
2. Click settings icon → **API keys**
3. Click **Create new secret key** and copy it
![Get OpenAI API key](/images/openai-api-keys.png)
**Add to BrowserOS:**
1. Go to `chrome://browseros/settings`
2. Click **USE** on the OpenAI card
3. Set **Model ID** to `gpt-5` (or `gpt-5.2`, `gpt-5-mini`, `gpt-4.1`, `o4-mini`)
4. Paste your API key
5. Check **Supports Images**, set **Context Window** to `200000`
6. Click **Save**
![OpenAI config](/images/byollm--openai-provider-config.png)
</Accordion>
<div id="openrouter" />
<Accordion title="OpenRouter" icon="shuffle">
Access 500+ models through one API.
**Get your API key:**
1. Go to [openrouter.ai](https://openrouter.ai) and sign up
2. Go to [openrouter.ai/keys](https://openrouter.ai/keys) and create a key
**Pick a model:**
Go to [openrouter.ai/models](https://openrouter.ai/models) and copy the model ID you want (e.g., `anthropic/claude-opus-4.5`, `google/gemini-2.5-flash`).
![OpenRouter models](/images/openrouter-models.png)
**Add to BrowserOS:**
1. Go to `chrome://browseros/settings`
2. Click **USE** on the OpenRouter card
3. Paste the model ID and your API key
4. Set **Context Window** based on the model
5. Click **Save**
![OpenRouter config](/images/byollm--openrouter-provider-config.png)
</Accordion>
<div id="azure" />
<Accordion title="Azure OpenAI" icon="microsoft">
Use OpenAI models hosted on your own Azure subscription for enterprise compliance and data residency.
**Prerequisites:**
1. An Azure subscription with access to [Azure OpenAI Service](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/OpenAI)
2. A deployed model (e.g., GPT-4o) in your Azure OpenAI resource
**Get your credentials:**
1. Go to [portal.azure.com](https://portal.azure.com) → **Azure OpenAI** resource
2. Navigate to **Keys and Endpoint**
3. Copy **Key 1** and your **Endpoint URL**
**Add to BrowserOS:**
1. Go to `chrome://browseros/settings`
2. Click **USE** on the Azure card
3. Set **Base URL** to your Azure endpoint (e.g., `https://your-resource.openai.azure.com/openai/deployments/your-deployment`)
4. Set **Model ID** to your deployment name
5. Paste your API key
6. Check **Supports Images**, set **Context Window** to `128000`
7. Click **Save**
</Accordion>
<div id="bedrock" />
<Accordion title="AWS Bedrock" icon="aws">
Access Claude, Llama, and other models through your AWS account with IAM-based authentication.
**Prerequisites:**
1. An AWS account with [Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/getting-started.html) enabled
2. Model access granted in the Bedrock console for your desired models
**Get your credentials:**
1. Go to the [AWS Console](https://console.aws.amazon.com) → **IAM**
2. Create or use an existing access key with Bedrock permissions
3. Note your **Access Key ID**, **Secret Access Key**, and **Region**
**Add to BrowserOS:**
1. Go to `chrome://browseros/settings`
2. Click **USE** on the AWS Bedrock card
3. Set **Base URL** to your Bedrock endpoint (region-specific)
4. Set **Model ID** to the Bedrock model ID (e.g., `anthropic.claude-3-sonnet-20240229-v1:0`)
5. Paste your credentials
6. Check **Supports Images**, set **Context Window** to `200000`
7. Click **Save**
</Accordion>
<div id="openai-compatible" />
<Accordion title="OpenAI Compatible" icon="plug">
Connect to any provider that implements the OpenAI-compatible API format (e.g., Together AI, Fireworks, Groq, Perplexity).
**Add to BrowserOS:**
1. Go to `chrome://browseros/settings`
2. Click **USE** on the OpenAI Compatible card
3. Set **Base URL** to the provider's API endpoint
4. Set **Model ID** to the model you want to use
5. Paste your API key
6. Set **Supports Images** and **Context Window** based on the model
7. Click **Save**
<Tip>
Most newer AI providers support the OpenAI-compatible API format. Check your provider's docs for the base URL and available model IDs.
</Tip>
</Accordion>
</AccordionGroup>
---
## Local Models
<Card title="Local Model Guide" icon="server" href="/features/local-models">
Run AI completely offline with Ollama or LM Studio. Includes recommended models, context length setup, and configuration steps.
</Card>
---
## Switching Between Models
Use the model switcher in the Assistant panel to change providers anytime. The default provider is highlighted.
![Model switcher](/images/byollm--switcher.png)
<Tip>
Use local models for sensitive work data. Switch to Claude for agent tasks that need complex reasoning.
</Tip>

View File

@@ -0,0 +1,56 @@
---
title: "ChatGPT Pro / Plus"
description: "Use your ChatGPT subscription to power BrowserOS"
---
Connect your ChatGPT Pro or Plus subscription to BrowserOS and access GPT-5 Codex, GPT-5.4, and the full lineup of OpenAI's most advanced models — with up to 400K context. No API keys needed.
## Setup
**1.** Open BrowserOS and go to **Settings** (`chrome://browseros/settings`). You'll see the AI Providers section.
![AI Settings screen](/images/setting-up-chatgpt/llm-screen.png)
**2.** Click **USE** on the **ChatGPT Plus/Pro** card. You'll be prompted to sign in with your OpenAI account.
![Login screen](/images/setting-up-chatgpt/login-screen.png)
**3.** Sign in with the OpenAI account that has your ChatGPT Pro or Plus subscription active, and accept the authorization.
![Accept authorization](/images/setting-up-chatgpt/accept-screen.png)
**4.** Once authorized, ChatGPT will appear as a provider in your settings. Select a model and start using it.
## Available Models
| Model | Context Window |
|-------|---------------|
| `gpt-5.4` | 400K |
| `gpt-5.3-codex` | 400K |
| `gpt-5.2-codex` | 400K |
| `gpt-5.2` | 200K |
| `gpt-5.1-codex` | 400K |
| `gpt-5.1-codex-max` | 400K |
| `gpt-5.1-codex-mini` | 400K |
| `gpt-5.1` | 200K |
<Info>
ChatGPT Pro subscribers have access to the full model lineup. ChatGPT Plus subscribers can access a subset of models depending on their plan. The available models will be shown automatically after you connect.
</Info>
<Tip>
The Codex models (e.g., `gpt-5.3-codex`) are optimized for code and reasoning tasks — ideal for complex browser automation workflows that involve form filling, data extraction, and multi-step navigation.
</Tip>
## Reasoning Settings
ChatGPT Pro includes additional settings for models that support reasoning:
- **Reasoning Effort** — Control how much the model "thinks" before responding. Options: none, low, medium, high.
- **Reasoning Summary** — Choose how reasoning is displayed. Options: auto, concise, detailed.
These settings are available in the provider configuration after connecting.
## Disconnecting
To disconnect your OpenAI account, go to **Settings**, find the ChatGPT Plus/Pro provider, and click **Disconnect**. Your OAuth tokens will be immediately deleted from your machine.

View File

@@ -0,0 +1,308 @@
---
title: "Connect Apps"
description: "Connect 40+ apps to BrowserOS so the assistant can work with your email, calendar, projects, and more"
---
Connect your favorite apps to BrowserOS and let the assistant work across all of them. Read emails, check your calendar, create tasks, post messages, manage files, and more, all through natural conversation.
<video
controls
className="w-full aspect-video rounded-xl"
src="https://pub-80f8a01e6e8b4239ae53a7652ef85877.r2.dev/resources/feature-videos/4-MCP.mp4"
></video>
## How It Works
BrowserOS uses the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) to connect your apps. You do not need to install anything or manage API keys. Just sign in once and the assistant handles the rest.
## Smart App Connection
When you ask the assistant to do something that needs an app you have not connected yet, it shows an interactive card right in the conversation. You can connect the app with one click or choose to skip it. No need to set things up in advance.
<Steps>
<Step title="You make a request">
Ask the assistant something like "What's on my calendar today?" or "Send an email to Sarah."
</Step>
<Step title="A connection card appears">
The assistant detects the app is not connected and shows a card explaining why connecting it would help. You get two choices: **Connect** or **Do it manually**.
</Step>
<Step title="You connect or skip">
- **Connect**: Opens a sign-in page. Authorize the app and the assistant continues with full integration access.
- **Do it manually**: The assistant skips the integration and navigates to the app's website directly using browser automation.
</Step>
<Step title="The assistant continues">
Once connected, the app stays linked for all future conversations. If you chose to skip, the assistant remembers and will not ask again.
</Step>
</Steps>
{/* <Frame caption="The assistant detects an unconnected app and shows a connection card">
<img src="/images/connect-apps-smart-connection.png" alt="Smart app connection prompt in chat" />
</Frame> */}
See [Smart Nudges](/features/smart-nudges#app-connection) for more details on how connection suggestions work.
You can also connect apps ahead of time from the sidebar if you prefer.
## Connect from the Sidebar
<Steps>
<Step title="Open Connect Apps">
Click **Connect Apps** in the sidebar.
</Step>
<Step title="Add an app">
Click **Add built-in app** and select the app you want
</Step>
<Step title="Sign in">
Complete the OAuth sign-in when prompted
</Step>
</Steps>
<Frame caption="Connected apps show a green 'Authenticated' badge">
<img src="/images/connect-apps-settings.png" alt="Connected Apps settings page" />
</Frame>
## 40+ Supported Apps
BrowserOS connects to over 40 apps across every category you need.
<AccordionGroup>
<Accordion title="Email" icon="envelope">
| App | What you can do |
|-----|----------------|
| **Gmail** | Send, read, and search emails, manage drafts and labels |
| **Outlook Mail** | Send, read, and manage emails |
| **Resend** | Send transactional and marketing emails |
</Accordion>
<Accordion title="Calendar and Scheduling" icon="calendar">
| App | What you can do |
|-----|----------------|
| **Google Calendar** | Create events, find free time, manage calendars |
| **Outlook Calendar** | Schedule meetings, manage events |
| **Cal.com** | Schedule meetings, manage availability |
</Accordion>
<Accordion title="Messaging" icon="comments">
| App | What you can do |
|-----|----------------|
| **Slack** | Post messages, manage channels |
| **Discord** | Send messages, manage servers |
| **WhatsApp** | Send messages, manage conversations |
| **Microsoft Teams** | Chat, meet, and collaborate |
</Accordion>
<Accordion title="Development" icon="code">
| App | What you can do |
|-----|----------------|
| **GitHub** | Manage repos, issues, and pull requests |
| **GitLab** | Manage repos, issues, and merge requests |
| **Vercel** | Deploy and manage web applications |
| **Postman** | Test and manage APIs |
| **Cloudflare** | Manage domains, DNS, and security |
| **Supabase** | Manage databases and backend services |
</Accordion>
<Accordion title="Project Management" icon="list-check">
| App | What you can do |
|-----|----------------|
| **Linear** | Create issues, manage cycles and projects |
| **Jira** | Create issues, manage sprints |
| **Asana** | Organize and track team projects |
| **Monday** | Manage work and team collaboration |
| **ClickUp** | Manage tasks, projects, and workflows |
</Accordion>
<Accordion title="Documents and Productivity" icon="file-lines">
| App | What you can do |
|-----|----------------|
| **Notion** | Create pages, manage databases |
| **Google Docs** | Create and edit documents |
| **Google Sheets** | Create and edit spreadsheets |
| **Google Drive** | Upload, download, and manage files |
| **Google Forms** | Create and manage forms and surveys |
| **Confluence** | Create and manage documentation |
| **Airtable** | Manage bases, tables, and records |
</Accordion>
<Accordion title="File Storage" icon="folder-open">
| App | What you can do |
|-----|----------------|
| **Dropbox** | Store and share files |
| **OneDrive** | Store and sync files with Microsoft |
| **Box** | Manage and share enterprise files |
</Accordion>
<Accordion title="Design" icon="pen-ruler">
| App | What you can do |
|-----|----------------|
| **Figma** | Access and manage design files |
| **Canva** | Create and manage designs |
</Accordion>
<Accordion title="CRM and Marketing" icon="chart-line">
| App | What you can do |
|-----|----------------|
| **Salesforce** | Manage leads, contacts, and opportunities |
| **HubSpot** | Manage contacts, deals, and marketing |
</Accordion>
<Accordion title="E-commerce and Payments" icon="cart-shopping">
| App | What you can do |
|-----|----------------|
| **Shopify** | Manage products, orders, and store |
| **Stripe** | Manage payments and subscriptions |
</Accordion>
<Accordion title="Analytics" icon="chart-bar">
| App | What you can do |
|-----|----------------|
| **PostHog** | Query analytics, manage feature flags |
| **Mixpanel** | Analyze user behavior and metrics |
</Accordion>
<Accordion title="Support" icon="headset">
| App | What you can do |
|-----|----------------|
| **Zendesk** | Manage support tickets and customers |
| **Intercom** | Manage customer messaging and support |
</Accordion>
<Accordion title="Search and AI" icon="magnifying-glass">
| App | What you can do |
|-----|----------------|
| **Brave Search** | Search the web privately |
| **Exa** | AI-powered semantic web search |
| **Mem0** | Store and retrieve AI memory |
</Accordion>
<Accordion title="Social and Content" icon="share-nodes">
| App | What you can do |
|-----|----------------|
| **LinkedIn** | Post updates, manage connections |
| **YouTube** | Access video info and transcripts |
| **WordPress** | Manage websites and blog content |
</Accordion>
</AccordionGroup>
## Example Prompts
The assistant figures out which apps to use based on what you ask. Just describe what you want in plain language.
<AccordionGroup>
<Accordion title="Calendar" icon="calendar">
- What's on my calendar today?
- Schedule a meeting with Sarah tomorrow at 2pm
- When is my next meeting with the marketing team?
- Block off Friday afternoon for focus time
</Accordion>
<Accordion title="Email" icon="envelope">
- Show me unread emails from my manager
- Draft a reply to the last email from John thanking him for the update
- Find emails about the Q4 budget from last week
- Send an email to the team with the meeting notes
</Accordion>
<Accordion title="Messaging" icon="hashtag">
- Post a message to #general saying I'll be out tomorrow
- What's the latest message in #engineering?
- Send a DM to Sarah asking if she's free for lunch
- Summarize what was discussed in #product today
</Accordion>
<Accordion title="Project Management" icon="list-check">
- Create a new Linear issue for the homepage redesign
- What are my open tasks in Jira?
- Move the "Launch campaign" task to complete in Asana
- Add a comment to the latest ClickUp task
</Accordion>
<Accordion title="Documents" icon="cube">
- Add "Review Q4 report" to my Notion tasks database
- Create a new page in my Projects database for the website redesign
- What are my open tasks in Notion?
- Update the status of the "Launch campaign" task to complete
</Accordion>
</AccordionGroup>
## Cross-App Workflows
The real power of connected apps is combining them in a single request. The assistant can pull data from one app and use it in another without you switching between tabs.
<CardGroup cols={2}>
<Card title="Email to task" icon="envelope">
"Find action items in my latest emails and add them to my Notion tasks"
</Card>
<Card title="Meeting prep" icon="calendar">
"Check my calendar for tomorrow, then draft an email to John summarizing what we're meeting about"
</Card>
<Card title="Bug triage" icon="bug">
"Test the checkout flow on our staging site, file a Linear issue if anything is broken, and post a summary to #engineering on Slack"
</Card>
<Card title="Sales pipeline" icon="chart-line">
"Pull my open deals from Salesforce and create a summary spreadsheet in Google Sheets"
</Card>
<Card title="Content roundup" icon="newspaper">
"Check the latest pull requests on our main repo and post a daily summary to #dev-updates on Slack"
</Card>
<Card title="Expense tracking" icon="receipt">
"Find all receipts in my Gmail from this month and organize them in a Google Sheet"
</Card>
</CardGroup>
## Add a Custom MCP Server
You can connect any MCP-compatible server that exposes an SSE endpoint.
1. Go to **Settings > Connected Apps**
2. Click **Add custom app**
3. Enter your server URL (e.g., `http://localhost:8000/sse`) and give it a name
Custom servers appear alongside built-in apps and work the same way.
<Tip>
MCP has a growing ecosystem of servers. Browse [MCP servers on GitHub](https://github.com/modelcontextprotocol/servers) to find integrations for databases, APIs, and more.
</Tip>
### Connect to OAuth-Protected Remote Servers
Some remote MCP servers (like Atlassian Jira, GitHub, etc.) require OAuth authentication. Use [mcp-remote](https://www.npmjs.com/package/mcp-remote) and [supergateway](https://github.com/supercorp-ai/supergateway) to handle the OAuth flow locally:
```bash
npx -y supergateway --stdio "npx -y mcp-remote https://mcp.atlassian.com/v1/sse" --port 8000
```
A browser window will open to sign in. Once authenticated, add `http://localhost:8000/sse` as a custom MCP in BrowserOS.
<Note>
Keep the terminal running while you use BrowserOS. The local server handles authentication and proxies requests to the remote MCP server.
</Note>
<AccordionGroup>
<Accordion title="Example: Atlassian Jira" icon="jira" iconType="brands">
```bash
npx -y supergateway --stdio "npx -y mcp-remote https://mcp.atlassian.com/v1/sse" --port 8000
```
Then add `http://localhost:8000/sse` as a custom MCP.
</Accordion>
<Accordion title="Example: GitHub" icon="github" iconType="brands">
```bash
npx -y supergateway --stdio "npx -y mcp-remote https://api.githubcopilot.com/mcp/sse" --port 8001
```
Then add `http://localhost:8001/sse` as a custom MCP.
</Accordion>
</AccordionGroup>
## Privacy and Security
<Columns cols={2}>
<Card title="Secure OAuth" icon="shield-check">
All apps use OAuth sign-in. BrowserOS never sees or stores your passwords.
</Card>
<Card title="On-demand only" icon="clock">
Apps are only accessed when you ask. Nothing runs in the background.
</Card>
<Card title="You control access" icon="toggle-on">
Connect or disconnect any app at any time from Settings.
</Card>
<Card title="Credentials stay local" icon="lock">
Your authentication tokens are managed securely and stored locally on your machine.
</Card>
</Columns>

222
docs/features/cowork.mdx Normal file
View File

@@ -0,0 +1,222 @@
---
title: "Cowork"
description: "Give the agent controlled access to local files and commands alongside browser automation"
---
Cowork lets you describe complex tasks and let the agent handle them end-to-end. It combines browser automation with local file operations: research on the web, then save reports directly to your folder. Read code, edit files, run shell commands, and search through your project, all in the same session as your browser tasks.
Here's what it looks like to give the agent access to your local files:
<video
controls
className="w-full aspect-video rounded-xl"
src="https://pub-80f8a01e6e8b4239ae53a7652ef85877.r2.dev/resources/feature-videos/3-filesystem-access.mp4"
></video>
## Why Cowork?
Without Cowork, the agent can only interact with browser tabs. With Cowork enabled, it gains full access to a folder on your machine through 7 filesystem tools:
<CardGroup cols={3}>
<Card title="Read & write files" icon="file-lines">
Read documents and data files, write reports, markdown, HTML, and other outputs
</Card>
<Card title="Edit files" icon="pen-to-square">
Make targeted edits to existing files with surgical string replacement
</Card>
<Card title="Run commands" icon="terminal">
Execute shell commands within the sandboxed folder
</Card>
<Card title="Search content" icon="magnifying-glass">
Search file contents with regex or literal patterns across your project
</Card>
<Card title="Find files" icon="folder-tree">
Find files by glob pattern, with smart filtering of build directories
</Card>
<Card title="Browse directories" icon="list">
List directory contents with file sizes, sorted and organized
</Card>
</CardGroup>
The real power: do both browser automation AND file operations in a single task. Describe what you want, step away, and come back to finished work.
## Setting Up Cowork
<Steps>
<Step title="Open the Cowork selector">
Click the **Cowork** dropdown next to the prompt input
</Step>
<Step title="Choose a folder">
Select a recent folder or click **Choose a different folder**
</Step>
<Step title="Grant access">
Allow BrowserOS to access that folder when prompted
</Step>
</Steps>
<Frame caption="Select a folder for the agent to operate in">
<img src="/features/cowork/cowork-selector.png" alt="Select a folder for the agent to operate in" />
</Frame>
The agent is sandboxed to your selected folder. It cannot access files outside of it.
<Note>
Cowork is available in **Agent Mode** only. In Chat Mode, the agent works with browser tabs only.
</Note>
<Tip>
To disable file access, select **No folder** and the agent will work with browser tabs only.
</Tip>
## Filesystem Tools
Cowork provides 7 filesystem tools that the agent can use alongside browser automation:
<AccordionGroup>
<Accordion title="filesystem_read" icon="file-import">
Read a file from the filesystem. Returns text content with line numbers, or image data for image files (PNG, JPG, GIF, WEBP, BMP, SVG, ICO). Supports pagination through large files with `offset` and `limit` parameters.
| Parameter | Type | Description |
|-----------|------|-------------|
| `path` | string (required) | File path relative to working directory |
| `offset` | number (optional) | Starting line number (1-indexed) |
| `limit` | number (optional) | Max lines to read |
Responses are capped at 2000 lines or 50KB per request.
</Accordion>
<Accordion title="filesystem_write" icon="file-export">
Create or overwrite a file. Automatically creates parent directories if they don't exist.
| Parameter | Type | Description |
|-----------|------|-------------|
| `path` | string (required) | File path relative to working directory |
| `content` | string (required) | Complete file content to write |
</Accordion>
<Accordion title="filesystem_edit" icon="pen-to-square">
Make a targeted edit by replacing an exact string match. If the exact match fails, a whitespace-tolerant fuzzy match is attempted. Preserves original line endings (CRLF, CR, LF) and BOM.
| Parameter | Type | Description |
|-----------|------|-------------|
| `path` | string (required) | File path relative to working directory |
| `old_string` | string (required) | Exact text to find |
| `new_string` | string (required) | Replacement text |
Returns a side-by-side diff of the change.
</Accordion>
<Accordion title="filesystem_bash" icon="terminal">
Execute a shell command and return its output. Commands run in `sh`/`bash` on Unix or `cmd` on Windows.
| Parameter | Type | Description |
|-----------|------|-------------|
| `command` | string (required) | Shell command to execute |
| `timeout` | number (optional) | Timeout in seconds (default: 120) |
Output is truncated to the last 2000 lines if too large. Returns the exit code on failure.
</Accordion>
<Accordion title="filesystem_find" icon="folder-tree">
Find files matching a glob pattern. Searches recursively while skipping common build directories (`node_modules`, `.git`, `dist`, `build`, `.next`, `coverage`, `__pycache__`, and more).
| Parameter | Type | Description |
|-----------|------|-------------|
| `pattern` | string (required) | Glob pattern (e.g., `*.ts`, `**/*.json`) |
| `path` | string (optional) | Directory to search (default: working directory) |
| `limit` | number (optional) | Max results (default: 1000) |
Returns relative file paths sorted alphabetically.
</Accordion>
<Accordion title="filesystem_grep" icon="magnifying-glass">
Search file contents using regex or literal string matching. Skips binary files and files over 2MB.
| Parameter | Type | Description |
|-----------|------|-------------|
| `pattern` | string (required) | Search pattern (regex by default) |
| `path` | string (optional) | Directory or file to search |
| `glob` | string (optional) | Filter files by glob (e.g., `*.ts`) |
| `ignore_case` | boolean (optional) | Case-insensitive search |
| `literal` | boolean (optional) | Treat pattern as literal string |
| `context` | number (optional) | Lines of context around matches |
| `limit` | number (optional) | Max matches (default: 100) |
</Accordion>
<Accordion title="filesystem_ls" icon="list">
List directory contents. Shows directories first (with trailing `/`), then files with human-readable sizes.
| Parameter | Type | Description |
|-----------|------|-------------|
| `path` | string (optional) | Directory path (default: working directory) |
| `limit` | number (optional) | Max entries (default: 500) |
Entries are sorted alphabetically, case-insensitive.
</Accordion>
</AccordionGroup>
## Try It: Research and Create a Report
With Cowork enabled, try this prompt:
```
Read the top 3 stories on Hacker News, read the comments too, and write an HTML report.
```
The agent will:
<Steps>
<Step title="Navigate to Hacker News">
Opens the site and identifies top stories
</Step>
<Step title="Read stories and comments">
Clicks into each story and reads discussion threads
</Step>
<Step title="Generate report">
Creates an HTML report summarizing the findings
</Step>
<Step title="Save to folder">
Writes the report to your selected folder
</Step>
</Steps>
<Frame caption="Agent researching Hacker News and generating an HTML report">
<img src="/features/cowork/cowork-research-example.png" alt="Agent researching Hacker News and generating an HTML report" />
</Frame>
## Example Use Cases
<AccordionGroup>
<Accordion title="Organize your downloads" icon="folder-tree">
> Go through my Downloads folder and organize files by type: documents, images, videos, archives.
</Accordion>
<Accordion title="Competitive research report" icon="magnifying-glass-chart">
> Research key trends about [topic] on Reddit, Twitter, and LinkedIn. Create an HTML report with your findings.
</Accordion>
<Accordion title="Web scraping to files" icon="spider-web">
> Visit these 10 product pages, extract the name, price, and description, and save the results as a markdown file.
</Accordion>
<Accordion title="Content aggregation" icon="newspaper">
> Find the top posts from these 5 subreddits today and compile them into a daily digest document.
</Accordion>
<Accordion title="Codebase exploration" icon="code">
> Search my project for all TODO comments, list them with file paths and line numbers, then create a summary markdown file.
</Accordion>
<Accordion title="Log analysis" icon="file-lines">
> Grep through the log files in this folder for errors from the last 24 hours and write a summary of what went wrong.
</Accordion>
</AccordionGroup>
## Security
<CardGroup cols={3}>
<Card title="Sandboxed access" icon="box">
The agent can only access the folder you select. No parent directories, no path traversal.
</Card>
<Card title="Revoke anytime" icon="ban">
Select **No folder** to instantly disable file access
</Card>
<Card title="Local only" icon="house-laptop">
All file operations happen locally on your machine
</Card>
</CardGroup>

Binary file not shown.

After

Width:  |  Height:  |  Size: 859 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 522 KiB

View File

@@ -0,0 +1,60 @@
---
title: "GitHub Copilot"
description: "Use your GitHub Copilot subscription to power BrowserOS"
---
Connect your GitHub Copilot subscription to BrowserOS and access 19+ models — including Claude, GPT-5, and Gemini — through a single GitHub sign-in. No API keys needed.
<Info>
**Free tier** includes GPT-5 Mini, Claude Haiku 4.5, GPT-4o, and GPT-4.1. **Copilot Pro** ($10/month) unlocks Claude Sonnet 4.6, Claude Opus 4.6, Gemini 3 Pro, GPT-5.4, and more.
</Info>
## Setup
**1.** Open BrowserOS and go to **Settings** (`chrome://browseros/settings`). You'll see the AI Providers section.
![AI Settings screen](/images/setting-up-copilot/llm-screen.png)
**2.** Click **USE** on the **GitHub Copilot** card. A device code will appear — copy it, then click the link to open GitHub's device authorization page.
![Device code displayed](/images/setting-up-copilot/device-code.png)
**3.** Select your GitHub account to authorize.
![Select GitHub account](/images/setting-up-copilot/select-account.png)
**4.** Paste the device code and authorize BrowserOS to access your Copilot subscription.
![Authorize device](/images/setting-up-copilot/authorize-device.png)
**5.** Once authorized, GitHub Copilot will appear as a provider in your settings. Select a model and start using it.
## Available Models
### Free Tier
| Model | Context Window |
|-------|---------------|
| `gpt-5-mini` | 128K |
| `claude-haiku-4.5` | 128K |
| `gpt-4o` | 64K |
| `gpt-4.1` | 64K |
### Copilot Pro / Pro+
| Model | Context Window |
|-------|---------------|
| `claude-sonnet-4.6` | 200K |
| `claude-opus-4.6` | 200K |
| `gemini-2.5-pro` | 1M |
| `gemini-3-pro-preview` | 1M |
| `gpt-5.4` | 400K |
| `gpt-5.3-codex` | 400K |
| `gpt-5.2-codex` | 400K |
| `grok-code-fast-1` | 128K |
<Tip>
GitHub Copilot is the most versatile provider — one subscription gives you access to models from OpenAI, Anthropic, Google, and xAI. Great if you want to switch between models for different tasks.
</Tip>
## Disconnecting
To disconnect your GitHub account, go to **Settings**, find the GitHub Copilot provider, and click **Disconnect**. Your OAuth tokens will be immediately deleted from your machine.

View File

@@ -0,0 +1,68 @@
---
title: "Chat & Hub"
description: "Access ChatGPT, Claude, and Gemini from any webpage with one click"
---
BrowserOS puts AI chat at your fingertips. Open a chat panel on any webpage to ask questions with full page context, or compare responses across multiple LLMs side-by-side.
Watch the chat panel and LLM Hub in action:
<video
controls
className="w-full aspect-video rounded-xl"
src="https://pub-80f8a01e6e8b4239ae53a7652ef85877.r2.dev/resources/feature-videos/2-llm-chat-hub.mp4"
></video>
## LLM Chat
Click the **Chat** button in the toolbar (or press `Option+K`) to open an AI chat panel on any webpage.
<img src="/images/features--llm-chat-panel.png" alt="LLM Chat panel open on a webpage" />
### Features
- **Switch providers instantly** — Use the dropdown or press `Option+L` to cycle between Claude, ChatGPT, and Gemini
- **Copy page context** — Grab the current webpage content to paste into your prompt
- **Screenshot and attach** — Capture the visible page as an image for visual questions
- **Works everywhere** — The panel stays open as you browse
### Toolbar Buttons
<img src="/images/features--llm-chat-toolbar.png" alt="LLM Chat toolbar buttons" />
| Icon | Action |
|------|--------|
| Copy | Copy webpage content to clipboard |
| Image | Screenshot webpage and copy |
| Refresh | Reset LLM chat |
| External | Open LLM in new tab |
| Menu | Additional options + Popout LLM Hub |
### Keyboard Shortcuts
| Shortcut | Action |
|----------|--------|
| `Option+K` | Toggle chat panel |
| `Option+L` | Switch to next provider |
## LLM Hub (Clash of GPTs)
Click the **Hub** button in the toolbar (or press `Cmd+Shift+U`) to open a multi-pane comparison window.
<img src="/images/features--llm-hub.png" alt="LLM Hub with three panes showing Claude, Gemini, and ChatGPT" />
The Hub lets you query multiple LLMs simultaneously:
1. Choose 1, 2, or 3 panes using the panel selector in the top-right
2. Select which LLM to use in each pane (Claude, Gemini, or ChatGPT)
3. Paste your prompt into each pane and compare responses
This is useful when you want an "LLM council" — get multiple perspectives on a question and see where the models agree or differ.
## Customization
Control which buttons appear in your toolbar from **Settings → Customization**:
- **Show Chat Button** — Display the Chat button in the toolbar
- **Show Hub Button** — Display the Hub button in the toolbar
- **Show Button Labels** — Display text labels next to toolbar icons

View File

@@ -0,0 +1,120 @@
---
title: "Bring Your Local Model"
description: "Run AI models locally with Ollama or LM Studio for free, private, offline use"
---
BrowserOS works great with local models for Chat Mode. Run models completely offline — your data never leaves your machine.
## Context Length
<Warning>
**Ollama defaults to 4,096 tokens of context — this is too low for BrowserOS.** Below 15K tokens, the context overflows and the agent gets stuck in a loop constantly trying to recover. Only Chat Mode will work at low context lengths. Set at least **15,00020,000 tokens** for local models to function properly.
</Warning>
Set context length when starting Ollama:
```bash
OLLAMA_CONTEXT_LENGTH=20000 ollama serve
```
<Info>
Increasing context length uses more VRAM. Run `ollama ps` to check your current allocation. See the [Ollama context length docs](https://docs.ollama.com/context-length) for more details.
</Info>
---
## Setup
<Tabs>
<Tab title="Ollama" icon="terminal">
The easiest way to run models locally.
<Steps>
<Step title="Install Ollama">
Download from [ollama.com](https://ollama.com) and install it.
</Step>
<Step title="Pull a model">
```bash
ollama pull qwen/qwen3-4b
```
</Step>
<Step title="Start Ollama with higher context">
```bash
OLLAMA_CONTEXT_LENGTH=20000 ollama serve
```
</Step>
<Step title="Configure in BrowserOS">
1. Go to `chrome://browseros/settings`
2. Click **USE** on the Ollama card
3. Set **Model ID** to `qwen/qwen3-4b`
4. Set **Context Window** to `20000`
5. Click **Save**
![Ollama in BrowserOS](/images/byollm--ollama-config.png)
</Step>
</Steps>
</Tab>
<Tab title="LM Studio" icon="desktop">
Nice GUI if you don't want to use the terminal.
<Steps>
<Step title="Install LM Studio">
Download from [lmstudio.ai](https://lmstudio.ai) and install it.
</Step>
<Step title="Load a model">
Open LM Studio → **Developer** tab → load a model. It runs a server at `http://localhost:1234/v1/`.
![LM Studio](/images/setting-up-lm-studio/lmstudio-step1.png)
</Step>
<Step title="Configure in BrowserOS">
1. Go to `chrome://browseros/settings`
2. Click **USE** on the **OpenAI Compatible** card
3. Set **Base URL** to `http://localhost:1234/v1/`
4. Set **Model ID** to the model you loaded
5. Set **Context Window** to at least `20000`
6. Click **Save**
![LM Studio in BrowserOS](/images/byollm--lmstudio-config.png)
</Step>
</Steps>
</Tab>
</Tabs>
---
## Recommended Models
Pick a model based on your available RAM/VRAM. Smaller models are faster but less capable.
### Lightweight (under 5 GB)
Good for machines with 8 GB RAM. Fast responses, suitable for simple chat tasks.
| Model | Publisher | Params | Quant | Size |
|-------|-----------|--------|-------|------|
| `qwen/qwen3-4b` | Qwen | 4B | 4bit | 2.28 GB |
| `mistralai/ministral-3-3b` | Mistral | 3B | Q4_K_M | 2.99 GB |
| `deepseek-r1-distill-qwen-7b` | lmstudio-community | 7B | Q4_K_M | 4.68 GB |
| `deepseek-r1-distill-llama-8b` | lmstudio-community | 8B | Q4_K_M | 4.92 GB |
### Mid-range (1015 GB)
Needs 16+ GB RAM. Better reasoning, handles longer conversations well.
| Model | Publisher | Params | Quant | Size |
|-------|-----------|--------|-------|------|
| `openai/gpt-oss-20b` | OpenAI | 20B | MXFP4 | 12.11 GB |
| `mistralai/magistral-small` | Mistral | 23.6B | 4bit | 13.28 GB |
| `mistralai/devstral-small-2-2512` | Mistral | 24B | 4bit | 14.12 GB |
### Heavy (60+ GB)
For workstations with 64+ GB RAM. Closest to cloud model quality.
| Model | Publisher | Params | Quant | Size |
|-------|-----------|--------|-------|------|
| `openai/gpt-oss-120b` | OpenAI | 120B | MXFP4 | 63.39 GB |
<Tip>
Start with `qwen/qwen3-4b` if you're unsure — it's small, fast, and surprisingly capable for its size.
</Tip>

128
docs/features/memory.mdx Normal file
View File

@@ -0,0 +1,128 @@
---
title: "Memory"
description: "Your assistant remembers what matters across every conversation"
---
The BrowserOS assistant has long-term memory. It remembers your name, your projects, the tools you use, and things that came up in past conversations. You do not need to repeat yourself. The assistant builds up knowledge about you over time and uses it to give better, more relevant answers.
## How Memory Works
Memory is automatic. As you chat, the assistant saves important facts and observations to local files on your machine. Before responding in future conversations, it searches these files to recall relevant context.
<CardGroup cols={2}>
<Card title="Remembers you" icon="user">
Your name, job, location, projects, and preferences are stored permanently and recalled whenever relevant.
</Card>
<Card title="Keeps session notes" icon="note-sticky">
Useful details from each conversation are saved as daily notes and kept for 30 days.
</Card>
<Card title="Searches before answering" icon="magnifying-glass">
The assistant proactively searches its memory before responding, so it can reference things you have mentioned before.
</Card>
<Card title="Stays on your machine" icon="hard-drive">
All memory files are plain Markdown stored locally. Memory is never uploaded to the cloud, even with Sync to Cloud enabled.
</Card>
</CardGroup>
## Two Types of Memory
BrowserOS uses a two-tier memory system to keep important facts separate from session notes.
### Core Memory
Core memory holds permanent facts about you. Things like your name, where you work, what projects you are working on, the tools and languages you use, and people you mention regularly. These facts persist forever and are never automatically deleted.
Core memory lives in a single file called `CORE.md`. When the assistant learns something new about you, it reads the existing core memory, merges the new fact in, and saves the updated file.
**Examples of what goes in core memory:**
- Your name and role
- Company and team
- Projects you are working on
- Tools, languages, and frameworks you use
- People you mention often
- Long-term preferences ("I prefer TypeScript over JavaScript")
### Daily Memory
Daily memory holds session notes, observations, and recent events. Each day gets its own file (e.g., `2026-03-07.md`), and entries are timestamped so the assistant can see when things happened.
Daily memories automatically expire after **30 days**. If something keeps coming up, the assistant promotes it to core memory so it is not lost.
**Examples of what goes in daily memory:**
- Tasks you worked on today
- Decisions made during a conversation
- Temporary context ("meeting with Sarah moved to Thursday")
- Research findings from a browsing session
## Memory in Action
You do not need to tell the assistant to remember things. It picks up on important details naturally. But you can also be explicit:
<AccordionGroup>
<Accordion title="Automatic memory" icon="wand-magic-sparkles">
Just mention something in conversation and the assistant decides whether to save it:
- "I'm working on a project called Atlas at Acme Corp" -> saved to core memory
- "We decided to go with Postgres instead of MongoDB" -> saved to daily memory
- "My name is Sarah" -> saved to core memory
</Accordion>
<Accordion title="Ask it to remember" icon="bookmark">
Be explicit when you want something remembered:
- "Remember that our staging URL is staging.example.com"
- "Save this: the design review happens every Tuesday at 2pm"
- "Remember that I prefer dark mode in all my tools"
</Accordion>
<Accordion title="Ask it to recall" icon="rotate-left">
The assistant searches memory automatically, but you can also ask directly:
- "What do you remember about the Atlas project?"
- "What did we discuss yesterday?"
- "Do you know my team members' names?"
</Accordion>
<Accordion title="Ask it to forget" icon="eraser">
You can ask the assistant to remove specific memories:
- "Forget my phone number"
- "Remove the note about the staging URL"
- "Clear what you know about Project X"
</Accordion>
</AccordionGroup>
## Where Memory Lives
All memory files are stored locally on your machine in the BrowserOS data folder:
| File | Path | Purpose |
|------|------|---------|
| **Core memory** | `~/.browseros/memory/CORE.md` | Permanent facts about you |
| **Daily notes** | `~/.browseros/memory/2026-03-07.md` | Session notes, auto-expire after 30 days |
## Memory vs SOUL.md
BrowserOS separates what the assistant **knows** from how it **behaves**. These are two different systems that work together.
<Columns cols={2}>
<Card title="Memory" icon="brain">
**Facts about you and the world.** Your name, projects, preferences, recent events. Stored in CORE.md and daily files.
</Card>
<Card title="SOUL.md" icon="heart">
**How the assistant acts.** Personality, tone, communication style, boundaries. Stored in a single SOUL.md file. See [SOUL.md](/features/soul) for details.
</Card>
</Columns>
When the assistant learns that you work at Acme Corp, that goes in memory. When it learns that you prefer bullet points over paragraphs, that goes in SOUL.md. This separation means the assistant can change its personality without losing knowledge about you, and vice versa.
## Privacy
<Columns cols={2}>
<Card title="Never leaves your machine" icon="lock">
Memory files live on your machine and are never uploaded to any server. Even with Sync to Cloud enabled, memory stays local.
</Card>
<Card title="You control what is remembered" icon="toggle-on">
Ask the assistant to forget anything at any time. You can also directly edit or delete the memory files.
</Card>
<Card title="Plain text files" icon="file-lines">
Memory is stored as readable Markdown. No hidden databases or encrypted blobs. You can inspect everything.
</Card>
<Card title="30-day auto-cleanup" icon="clock">
Daily notes are automatically deleted after 30 days. Only facts you have promoted to core memory persist.
</Card>
</Columns>

View File

@@ -0,0 +1,39 @@
---
title: "Qwen Code"
description: "Use your Qwen Code account to power BrowserOS"
---
Connect your Qwen Code account to BrowserOS and access Alibaba's coding models with up to a **1 million token context window** — the largest of any provider we support. No API keys needed.
## Setup
**1.** Open BrowserOS and go to **Settings** (`chrome://browseros/settings`). You'll see the AI Providers section.
![AI Settings screen](/images/setting-up-qwen/llm-screen.png)
**2.** Click **USE** on the **Qwen Code** card. You'll be prompted to sign in with your Qwen account.
![Select Qwen Code](/images/setting-up-qwen/select-qwen.png)
**3.** Sign in with your Alibaba Cloud / Qwen account to authorize BrowserOS.
![Qwen sign in](/images/setting-up-qwen/qwen-signin.png)
**4.** Once authorized, Qwen Code will appear as a provider in your settings. Select a model and start using it.
## Available Models
| Model | Context Window |
|-------|---------------|
| `coder-model` | 1M |
| `qwen3-coder-plus` | 1M |
| `qwen3-coder-flash` | 1M |
| `qwen3.5-plus` | 1M |
<Tip>
Qwen Code's 1 million token context window is ideal for tasks that involve long documents, entire documentation sites, or working across many browser tabs simultaneously — the agent can hold everything in context at once.
</Tip>
## Disconnecting
To disconnect your Qwen account, go to **Settings**, find the Qwen Code provider, and click **Disconnect**. Your OAuth tokens will be immediately deleted from your machine.

View File

@@ -0,0 +1,147 @@
---
title: "Scheduled Tasks"
description: "Run the BrowserOS agent automatically on a schedule"
---
Scheduled Tasks let you run the BrowserOS agent automatically, whether it is daily, every few hours, or every few minutes. Write a prompt once, set a schedule, and let the agent handle it on autopilot.
Watch how to set up a scheduled task from scratch:
<video
controls
className="w-full aspect-video rounded-xl"
src="https://pub-80f8a01e6e8b4239ae53a7652ef85877.r2.dev/resources/feature-videos/5-scheduled-tasks.mp4"
></video>
## Creating a Scheduled Task
There are two ways to create a scheduled task: from a conversation or from the settings page.
### From a conversation
After the agent completes a task that could run on a schedule, it will suggest scheduling it with an interactive card. You can also ask directly:
- "Schedule this to run every morning"
- "Can this run daily at 8am?"
- "Automate this task"
The agent fills in the task details for you. Just review and confirm. See [Smart Nudges](/features/smart-nudges#schedule-suggestion) for more details.
### From settings
<Steps>
<Step title="Open Scheduled Tasks">
Click **Scheduled Tasks** in the sidebar.
</Step>
<Step title="Click New Task">
Click the **New Task** button to open the creation dialog.
</Step>
<Step title="Fill in the details">
- **Name**: A friendly name for your task
- **Prompt**: What you want the agent to do (any natural language instruction)
- **Schedule type**: Daily at a specific time, every N hours, or every N minutes
- **Enable**: Toggle on to start running immediately
</Step>
<Step title="Create and go">
Click **Create**. The task will run at the next scheduled time automatically.
</Step>
</Steps>
<img src="/images/features--scheduled-tasks-create.png" alt="Create scheduled task dialog" />
## Schedule Types
<CardGroup cols={3}>
<Card title="Daily" icon="calendar-day">
Runs once a day at a specific time you choose (e.g., every morning at 8:00 AM).
</Card>
<Card title="Hourly" icon="clock">
Runs every N hours (e.g., every 2 hours, every 6 hours). Set an interval from 1 to 24 hours.
</Card>
<Card title="Minutes" icon="stopwatch">
Runs every N minutes (e.g., every 15 minutes, every 30 minutes). Set an interval from 1 to 60 minutes.
</Card>
</CardGroup>
## Example Use Cases
<AccordionGroup>
<Accordion title="Morning briefing" icon="sun">
> Every morning at 8am, check my Google Calendar and send me a summary of today's events. For each meeting, do a quick Google search on the attendees and include their LinkedIn summary.
</Accordion>
<Accordion title="LinkedIn automation" icon="linkedin" iconType="brands">
> Every day, go to LinkedIn and accept up to 25 pending connection requests.
</Accordion>
<Accordion title="Price monitoring" icon="tag">
> Check the price of this Amazon item every hour. If it drops below $50, place the order.
</Accordion>
<Accordion title="Competitor tracking" icon="chart-line">
> Every morning at 9am, visit these 5 competitor websites and check for new product announcements or pricing changes. Summarize what is new.
</Accordion>
<Accordion title="Social media digest" icon="newspaper">
> Every evening at 6pm, check the top posts on Hacker News and r/programming. Create a brief summary of the most interesting discussions.
</Accordion>
<Accordion title="Cross-app workflow" icon="arrows-rotate">
> Check my Google Calendar for tomorrow's meetings, then post a summary to my Slack channel, and create a Notion page with prep notes for each meeting.
</Accordion>
</AccordionGroup>
Your scheduled task prompts can be as complex as you want. If you have [connected apps](/features/connect-mcps) like Google Calendar, Slack, Notion, or Gmail, your scheduled tasks can work across all of them.
## Viewing Results
When a scheduled task runs, you can see the results in two places:
- **New Tab page**: Results show up right on your new tab
- **Scheduled Tasks page**: View the full run history for each task
<img src="/images/features--scheduled-tasks-results.png" alt="Scheduled task results" />
Each task keeps a history of its last 15 runs. Click on any run to see the full output, including what tools the agent used and what it found.
<img src="/images/features--scheduled-tasks-output.png" alt="Scheduled task output showing a daily news briefing" />
You can also:
- **Test** a task manually without waiting for the next scheduled run
- **Retry** a failed task
- **Cancel** a task that is currently running
## How It Works
<Steps>
<Step title="Task triggers on schedule">
BrowserOS uses your browser's built-in alarm system to trigger tasks at the right time. If your laptop was closed at the scheduled time, the task runs as soon as you open BrowserOS again.
</Step>
<Step title="Background window opens">
A hidden browser window opens automatically. The task runs there so it never interrupts whatever you are working on. You will not see anything happen on screen.
</Step>
<Step title="Agent executes your prompt">
The agent runs your prompt with full access to browser automation and any connected apps. It can navigate pages, fill forms, extract data, and interact with your services.
</Step>
<Step title="Results are saved">
When the task finishes, the result is saved and appears on your New Tab page and in the task's run history. The hidden window closes automatically.
</Step>
</Steps>
<Note>
BrowserOS needs to be open for scheduled tasks to run. Tasks have a 10-minute timeout. If a task takes longer than that, it will be marked as failed and you can retry it.
</Note>
## Cloud Sync
If you are signed in, your scheduled task configurations sync across devices. Create a task on your laptop and it appears on your desktop. Edits sync both ways, and conflicts are resolved automatically using timestamps.
Only the schedule setup syncs (name, prompt, schedule type, and timing). Task run results and output stay on the device where the task ran.
See [Sync to Cloud](/features/sync-to-cloud) for more details.
## Privacy
<Columns cols={2}>
<Card title="Runs locally" icon="house-laptop">
All tasks run on your machine in a hidden browser window. Nothing is sent to external servers.
</Card>
<Card title="Full control" icon="toggle-on">
Enable, disable, edit, or delete any task at any time. You decide what runs and when.
</Card>
</Columns>

193
docs/features/skills.mdx Normal file
View File

@@ -0,0 +1,193 @@
---
title: "Skills"
description: "Teach your BrowserOS agent new abilities with reusable, custom instructions"
---
Skills let you teach the BrowserOS agent how to handle specific tasks. Each skill is a set of instructions written in plain Markdown that the agent loads when it recognizes a matching task. Think of skills as recipes: you write the steps once, and the agent follows them whenever that type of task comes up.
BrowserOS implements the open [Agent Skills specification](https://agentskills.io/specification), so skills you create are portable across any AI agent that supports the standard.
## How Skills Work
<Steps>
<Step title="You create a skill">
Give it a name, a short description of when to use it, and write the instructions in Markdown.
</Step>
<Step title="The agent sees the skill catalog">
When a conversation starts, the agent loads a list of all your enabled skills with their names and descriptions.
</Step>
<Step title="The agent matches a task">
When your request matches a skill's description, the agent loads that skill's full instructions and follows them.
</Step>
</Steps>
## Creating a Skill
<Steps>
<Step title="Open Skills settings">
Click **Skills** in the sidebar.
</Step>
<Step title="Click New Skill">
Click the **New Skill** button to open the creation form.
</Step>
<Step title="Fill in the details">
- **Name**: A short, descriptive name (e.g., "Morning Status Report")
- **Description**: Tell the agent when to use this skill. Be specific. For example: "When the user wants to read status updates from work across Notion, Linear, and Slack"
- **Content**: Write your instructions in Markdown. Include step-by-step directions, examples, and edge cases.
</Step>
<Step title="Save and enable">
Click **Create**. The skill is enabled by default and will be available to the agent immediately.
</Step>
</Steps>
<Tip>
Write your description like a trigger. The agent uses it to decide whether to activate the skill. A good description says both **what** the skill does and **when** to use it.
</Tip>
## Example Skills
<AccordionGroup>
<Accordion title="Morning status report">
**Description:** When the user wants to read status updates from work
**Instructions:**
```markdown
Always look for updates in 3 sources:
1. **Notion** - Check the team updates page for any new entries from today
2. **Linear** - Look at issues assigned to the user that were updated in the last 24 hours
3. **Slack** - Check the #team-updates and #engineering channels for unread messages
Summarize everything in a single report grouped by source.
If a source has no updates, say so.
```
</Accordion>
<Accordion title="PDF processing">
**Description:** Extract text and tables from PDF files, fill PDF forms, and merge multiple PDFs. Use when the user mentions PDFs, forms, or document extraction.
**Instructions:**
```markdown
When extracting text from a PDF:
1. Download or open the PDF in the browser
2. Use the page content tool to extract visible text
3. Preserve table structure using Markdown tables
4. If the PDF has multiple pages, process each page
When filling a PDF form:
- Ask the user for the values if not provided
- Fill each field carefully and confirm before submitting
See references/FORMS.md for common form templates.
```
</Accordion>
<Accordion title="Code review checklist">
**Description:** When the user asks to review code, a pull request, or wants feedback on code quality
**Instructions:**
```markdown
Follow this checklist for every code review:
1. Check for security issues (XSS, injection, hardcoded secrets)
2. Look for performance problems (N+1 queries, unnecessary re-renders)
3. Verify error handling is present and meaningful
4. Check that naming is clear and consistent
5. Look for missing tests for new logic
Format your review as a list of findings with severity: Critical, Warning, or Suggestion.
Always start with what the code does well.
```
</Accordion>
</AccordionGroup>
## Managing Skills
From the Skills page, you can:
- **Enable or disable** a skill using the toggle switch. Disabled skills are not loaded by the agent.
- **Edit** a skill's name, description, or instructions by clicking the edit icon.
- **Delete** a skill by clicking the trash icon. This removes the skill permanently.
## Skill File Format
Under the hood, each skill is stored as a `SKILL.md` file following the [Agent Skills specification](https://agentskills.io/specification):
```markdown
---
name: morning-status-report
description: When the user wants to read status updates from work
metadata:
display-name: Morning Status Report
enabled: "true"
---
Always look for updates in 3 sources:
1. Notion - Check the team updates page
2. Linear - Look at assigned issues updated in the last 24 hours
3. Slack - Check #team-updates and #engineering channels
Summarize everything in a single report grouped by source.
```
The file uses YAML frontmatter for metadata and Markdown for the instructions.
### Frontmatter fields
| Field | Required | Description |
|---|---|---|
| `name` | Yes | Lowercase, hyphenated identifier (e.g., `morning-status-report`) |
| `description` | Yes | When and how the agent should use this skill |
| `license` | No | License for the skill |
| `compatibility` | No | Environment requirements |
| `metadata` | No | Extra fields like `display-name`, `enabled`, `version` |
| `allowed-tools` | No | Restrict which tools the skill can use (experimental) |
### Supporting files
A skill can include additional directories alongside `SKILL.md`:
- **`scripts/`** for executable code the agent can run
- **`references/`** for detailed documentation loaded on demand
- **`assets/`** for templates, images, or data files
```
morning-status-report/
├── SKILL.md
├── scripts/
│ └── format-report.py
└── references/
└── REFERENCE.md
```
The agent loads the main `SKILL.md` first. Supporting files are only loaded when the instructions reference them, keeping context usage efficient.
## Where Skills Live
Skills are stored as folders inside your BrowserOS configuration directory:
| OS | Path |
|---|---|
| macOS | `~/.browseros/skills/` |
| Windows | `%USERPROFILE%\.browseros\skills\` |
| Linux | `~/.browseros/skills/` |
Each skill gets its own folder named after the skill's `name` field.
## Tips for Writing Good Skills
<CardGroup cols={2}>
<Card title="Be specific in descriptions" icon="crosshairs">
Include keywords the agent can match against. "When the user asks about PDFs, forms, or document extraction" is better than "Helps with documents."
</Card>
<Card title="Keep instructions focused" icon="scissors">
A skill should do one thing well. Split complex workflows into multiple skills rather than one large one.
</Card>
<Card title="Include examples" icon="lightbulb">
Show the agent what good output looks like. Examples reduce ambiguity and improve results.
</Card>
<Card title="Use supporting files" icon="folder-tree">
Move detailed references to separate files. The agent loads them only when needed, saving context space.
</Card>
</CardGroup>
<Note>
Skills follow the open [Agent Skills specification](https://agentskills.io/specification). Skills you create in BrowserOS work with any agent that supports the standard.
</Note>

View File

@@ -0,0 +1,117 @@
---
title: "Smart Nudges"
description: "BrowserOS suggests app connections and task scheduling at the right moment"
---
Smart Nudges are context-aware suggestions that appear as interactive cards during a conversation. The agent detects opportunities to connect an app or schedule a task, and shows you a card at the right moment. You decide whether to act on it or skip it.
There are two types of nudges: **App Connection** and **Schedule Suggestion**.
## App Connection
When you ask the agent to do something that involves an external app (like sending an email or checking your calendar), it checks whether that app is connected. If it is not, the agent shows a connection card before starting the task.
<Steps>
<Step title="You make a request">
For example: "Send Sarah an email with the meeting notes."
</Step>
<Step title="The agent detects an unconnected app">
Gmail is not connected yet, so the agent cannot send emails through the integration.
</Step>
<Step title="A connection card appears">
The card explains why connecting the app would help and gives you two choices: **Connect** or **Do it manually**.
</Step>
<Step title="You choose">
- **Connect**: Opens a sign-in page for the app. Once you authorize, the agent continues with full integration access.
- **Do it manually**: The agent skips the integration and uses browser automation instead (navigates to the website directly).
</Step>
</Steps>
### What happens after you choose
<CardGroup cols={2}>
<Card title="Connected" icon="circle-check">
The app is added to your connected list. The agent uses the integration for this and all future conversations. You can manage connected apps in [Connect Apps](/features/connect-mcps).
</Card>
<Card title="Declined" icon="forward">
The agent remembers your choice and will not ask about this app again. It uses browser automation to complete the task instead.
</Card>
</CardGroup>
<Tip>
If you declined an app but change your mind later, you can connect it anytime from the [Connect Apps](/features/connect-mcps) settings page.
</Tip>
### Supported apps
The agent can suggest connections for all 40+ built-in integrations, including Gmail, Google Calendar, Slack, Notion, GitHub, Linear, Jira, Figma, Salesforce, and many more. See [Connect Apps](/features/connect-mcps) for the full list.
## Schedule Suggestion
After the agent completes a task that could run on a recurring schedule, it shows a scheduling card. This helps you turn one-time tasks into automated routines without leaving the conversation.
<Steps>
<Step title="The agent completes a task">
For example: "Here are the top 5 tech headlines from today."
</Step>
<Step title="The agent recognizes a schedulable task">
News gathering, price monitoring, report building, data tracking, and similar tasks that do not need your real-time input are good candidates.
</Step>
<Step title="A scheduling card appears">
The card suggests a name and schedule. For example: "Run this automatically? 'Morning News Briefing' - daily at 09:00."
</Step>
<Step title="You choose">
- **Schedule this task**: Opens the Scheduled Tasks page with the details pre-filled. Review and confirm to create the task.
- **Maybe later**: Dismisses the card. You can always create the scheduled task manually later.
</Step>
</Steps>
### You can also ask directly
You do not have to wait for the agent to suggest it. Just tell the agent you want to schedule the task:
<AccordionGroup>
<Accordion title="Example prompts" icon="message">
- "Schedule this to run every morning"
- "Can this run daily at 8am?"
- "Automate this task"
- "Run this every hour"
The agent will infer the task name, schedule type, and timing from your conversation and show the scheduling card immediately.
</Accordion>
</AccordionGroup>
### What gets scheduled
The scheduling card pre-fills the [Scheduled Tasks](/features/scheduled-tasks) dialog with:
- **Task name**: A short description based on the conversation
- **Prompt**: The original query you asked the agent
- **Schedule type**: Daily or hourly, based on what makes sense for the task
- **Time**: A suggested time (for daily tasks)
You can adjust any of these before confirming.
## When Nudges Appear
Nudges are designed to appear at the right moment without interrupting your workflow:
| Nudge | When it appears | How often |
|---|---|---|
| App Connection | Before the agent starts working, when it detects an unconnected app | Once per app per conversation |
| Schedule Suggestion | After the agent finishes a task that could be automated | Once per conversation |
Nudges do not appear in:
- **Scheduled tasks** running in the background
- **Chat mode** (read-only, no browser automation)
## Privacy
<CardGroup cols={2}>
<Card title="Nothing is sent without your approval" icon="shield-check">
The agent only suggests a connection. No data is shared with the app until you explicitly authorize it.
</Card>
<Card title="Your choices are remembered locally" icon="hard-drive">
Declined apps are stored on your device. The agent will not ask about them again unless you reconnect from settings.
</Card>
</CardGroup>

126
docs/features/soul.mdx Normal file
View File

@@ -0,0 +1,126 @@
---
title: "SOUL.md"
description: "Give your AI assistant a personality that grows with you"
---
Every time you start a new conversation, the BrowserOS assistant reads a file called `SOUL.md`. This file defines who the assistant is: how it talks, what it prioritizes, and how it behaves. Over time, it evolves based on your interactions, making the assistant feel less like a tool and more like _your_ assistant.
## What is SOUL.md?
SOUL.md is a plain text file that lives on your machine. It contains your assistant's personality, tone, communication style, rules, and boundaries.
Think of it as a personal guide the assistant reads before every conversation. It shapes how the assistant responds to you, not what it knows. Facts about you (your name, projects, preferences) are stored separately in [memory](#soul-vs-memory).
<Tip>
The SOUL.md concept was pioneered by [OpenClaw](https://openclaw.ai/) and inspired by [soul.md](https://soul.md/), which explore the idea of giving AI systems a persistent identity through written documents. BrowserOS builds on this concept with a file that the assistant can read and rewrite on its own.
</Tip>
## How It Works
When you first use BrowserOS, the assistant starts with a simple default personality:
> _Be genuinely helpful. Have opinions when asked. Be resourceful before asking. Earn trust through competence._
As you chat, the assistant picks up on how you like to communicate. If you prefer direct answers, it notices. If you set a boundary ("never send emails without asking me first"), it writes that into SOUL.md. Over time, the file becomes a reflection of how you and your assistant work together.
<Steps>
<Step title="First conversation">
The assistant starts with a default template. It watches for cues about your preferred style, tone, and boundaries.
</Step>
<Step title="The assistant learns your style">
Based on your interactions, the assistant rewrites SOUL.md to reflect your preferences. It will briefly tell you when it makes a change.
</Step>
<Step title="Every future conversation">
The assistant reads the updated SOUL.md before responding, so your preferences carry over across sessions.
</Step>
</Steps>
You do not need to write or edit SOUL.md yourself. The assistant handles it. But you can always view it or ask the assistant to change it.
## Viewing Your SOUL.md
Open **Agent Soul** from the sidebar to see what your assistant's personality file looks like right now. The page shows the current contents of SOUL.md in a read-only viewer.
{/* <Frame caption="View your assistant's personality in Settings">
<img src="/images/features/soul-settings.png" alt="Agent Soul settings page" />
</Frame> */}
## Shaping Your Assistant
You do not need to edit the file directly. Just talk to your assistant. Here are some ways to shape its personality:
<CardGroup cols={2}>
<Card title="Set the tone" icon="comment">
"Be more casual and direct. Skip the formalities."
</Card>
<Card title="Add a boundary" icon="shield">
"Never post to Slack or send emails without confirming with me first."
</Card>
<Card title="Change the personality" icon="masks-theater">
"Be more opinionated. If you think my approach is wrong, say so."
</Card>
<Card title="Start fresh" icon="rotate">
"Reset your personality to the default."
</Card>
</CardGroup>
The assistant will update SOUL.md based on your instructions and let you know what changed.
## Where SOUL.md Lives
SOUL.md is stored locally on your machine, inside the BrowserOS data folder:
| Operating System | Path |
|-----------------|------|
| **macOS** | `~/.browseros/SOUL.md` |
| **Windows** | `%APPDATA%/.browseros/SOUL.md` |
| **Linux** | `~/.browseros/SOUL.md` |
The file is plain Markdown, limited to 150 lines. You can open it in any text editor if you want to make manual edits, though we recommend letting the assistant manage it through conversation.
## SOUL vs Memory
BrowserOS keeps personality and knowledge separate on purpose.
<Columns cols={2}>
<Card title="SOUL.md" icon="heart">
**How the assistant behaves.** Personality, tone, communication style, rules, and boundaries. One file, updated by rewriting the whole thing.
</Card>
<Card title="Memory" icon="brain">
**What the assistant knows about you.** Your name, projects, tools, preferences, and recent events. Stored as core facts and daily notes.
</Card>
</Columns>
When the assistant learns that you prefer bullet points over paragraphs, that goes in SOUL.md. When it learns that you work at Acme Corp on a project called Atlas, that goes in memory.
This separation means the assistant can have a consistent personality even when its factual knowledge changes, and vice versa.
## Example SOUL.md
Here is what an evolved SOUL.md might look like after a few conversations:
```markdown
# SOUL.md
## Personality
- Direct and concise. No filler phrases.
- Have opinions and share them when relevant.
- Use humor sparingly but naturally.
## Communication Style
- Default to bullet points for lists and options.
- Keep status updates to one or two lines.
- When explaining something technical, use analogies.
## Boundaries
- Never send emails or post messages without explicit confirmation.
- Do not make purchases or financial transactions.
- Ask before modifying any file outside the current project.
## Preferences
- When researching, prioritize primary sources over summaries.
- For code tasks, prefer simple solutions over clever ones.
- Always explain trade-offs when suggesting approaches.
```
Your SOUL.md will look different because it is shaped by your conversations. No two are the same.

Some files were not shown because too many files have changed in this diff Show More