Repository navigation
Closed
Description
エージェント(Claude Code / Codex)が Web 画面とデスクトップアプリを操作できるよう,agent-browser と agent-desktop を Nix で導入し,skill として配布する.
両者はサンドボックス外で動かす必要があるため,agent-config の excludedCommands と承認ルールも追加する.
ユーザーの判断事項は,承認ルールの粒度と,Ghostty へのアクセシビリティ許可の付与.
flowchart LR
A[Claude Code / Codex] -->|skill を読む| S[agent-browser / agent-desktop skill]
A -->|承認ルール + excludedCommands| B[agent-browser CLI]
A -->|承認ルール + excludedCommands| D[agent-desktop CLI]
B -->|CDP, 別プロファイル| C[Google Chrome]
D -->|アクセシビリティ API| M[macOS アプリ]
| 項目 | 現在 | 変更後 |
|---|---|---|
| Web 画面の操作 | WebFetch で読むだけ | agent-browser で snapshot → ref で操作 → 再 snapshot |
| デスクトップアプリの操作 | 不可 | agent-desktop で同様に操作 |
| 使い方の知識 | なし | 各 CLI の内蔵 skill をビルド時に生成して配布(herdr --skill と同じ方式) |
| サンドボックス | — | 両 CLI を excludedCommands に追加し,承認ルールで制御 |
受け入れ条件
-
agent-browserが Home Manager で入り,AGENT_BROWSER_EXECUTABLE_PATHで既存の Google Chrome を使って headless で起動できる -
agent-desktopが Home Manager で入り,agent-desktop --versionが通る - 両 CLI の skill が CLI と同じバージョンからビルド時に生成され,agent-harness 経由で Claude Code と Codex に配布される
- agent-config で両 CLI が
excludedCommandsに入り,承認ルールがcommand_permissions.jsonに追加され,テストが通る - ユーザーが Ghostty にアクセシビリティ許可を付けた後,
agent-desktop snapshotが Finder などで動く(手動確認)
範囲・除外・前提・出典
範囲
- dotfiles:
llm-agents.packages.<system>.agent-browser(0.41.0)を追加,nix/packages/agent_desktop.nix(GitHub Releases の aarch64-darwin バイナリ)を追加,両 skill を生成してprograms.agent-harness.skillsに渡す,agent-config input の更新 - agent-config:
agents/claude/settings.jsonのexcludedCommands,agents/command_permissions.jsonの承認ルールとテスト
除外
- Playwright Test などプロジェクト側の E2E テスト(各プロジェクトの devDependencies で扱う)
- Chrome DevTools MCP,Cua(必要になったら別 Issue)
- agent-desktop の Renovate 自動更新(今は手動更新)
- macOS のアクセシビリティ許可の付与(ユーザーが手動で行う.エージェントは行わない)
前提
- nixpkgs の agent-browser は 0.27.0 と古いため,llm-agents.nix 版(0.41.0)を使う
- llm-agents.nix 版は macOS ではブラウザを同梱しないため,nix-darwin の Homebrew cask で入っている Google Chrome を使う
- agent-desktop は nixpkgs にも llm-agents.nix にもない
excludedCommandsのコマンドはサンドボックスのネットワーク許可リストの外で動く.agent-browser は任意のサイトへ接続できるため,承認ルールで制御する
出典
- https://github.com/vercel-labs/agent-browser
- https://github.com/vercel-labs/agent-desktop
- https://github.com/numtide/llm-agents.nix/tree/main/packages/agent-browser
Metadata
Metadata
Assignees
Labels
No labels
Activity
furedea-agent commentedon Nov 3, 2026
実装計画
agent-config で承認ルールとサンドボックス除外を先に入れ,その後に dotfiles で CLI と skill を入れる.2 レーン構成で,2 つ目のレーンは 1 つ目のマージ後に agent-config input を更新する.
変更履歴
レーン 1:
agent-config(ブランチfeat/browser-desktop-automation,PR furedea/agent-config#63 を修正)agents/hooks/lib/session_grants.py,verification_session.pyとhooks.jsonの追加分,pyproject.tomlの追加分,関連テスト)agents/claude/settings.jsonのexcludedCommandsにagent-browser *とagent-desktop *(現状のまま)agents/command_permissions.jsonでagent-browserとagent-desktopを allow にする.PR fix(herdr): make plugin activation reliable #63 のサブコマンド許可リストは残し,許可リストにないサブコマンドは ask のままfile:/chrome:URL,agent-desktop のターミナル類・システム設定・キーチェーンアクセス・パスワード・1Password・スクリプトエディタ・Automator・ショートカット--cdp,--auto-connect,connect,プロファイル・状態・保存セッション系,--args,--config,--executable-path,--extension,--init-script,--allow-file-access,upload / download.agent-desktop の--appなしの snapshot,--window-id,--headed,フォーカス中のウィンドウや座標への入力,batch,launchレーン 2:
dotfiles(ブランチfeat/agent-browser-desktop,レーン 1 のマージ後に開始)llm-agents.packages.<system>.agent-browserをhome.packagesに追加し,AGENT_BROWSER_EXECUTABLE_PATHを Google Chrome に向けるnix/packages/agent_desktop.nixをdevin_cli.nixと同じ形で追加(v1.1.0,versionCheckHook)herdrSkillと同じ方式で,agent-browser skills get coreとagent-desktop skills getから skill をビルド時に生成し,programs.agent-harness.skillsに追加nix flake checkとビルドで確認(switch はユーザーが行う)確認方法
nix flake check,Home Manager 構成のビルド,生成された skill の中身の確認agent-browser open https://example.com→snapshot -iが確認なしで動く,Ghostty にアクセシビリティ許可を付けた後にagent-desktop snapshot --app Finder判断事項(ユーザー)
前提・未確認事項
--app指定に絞って対処するagent-desktop skills getがビルドのサンドボックス内で動くかはレーン 2 で確認する.動かなければ,リリースアーカイブ内の skill ファイルを使うfix(security): list agent-browser subcommands and match grant forms u…
fix(security): ask for every app launch and saved browser session res…
feat(security): allow agent-browser and agent-desktop except named ri…
feat(security): allow agent-browser and agent-desktop except named ri…
fix(security): require absolute paths for files the agent-browser dae…
fix(security): treat every unlisted word after a browser path form as…
fix(security): match browser path forms across interleaved options
fix(security): keep agent-browser and agent-desktop files inside the …
fix(security): ask for files agent-browser's daemon reads by option
fix(security): keep agent-browser and agent-desktop calls inside the …
fix(security): ask for agent-desktop --surface
fix(security): ask for agent-desktop --root and deny schemes split by…
fix(security): ask for agent-browser inspect
fix(security): ask for agent-browser profiles
fix(security): keep agent-browser and agent-desktop calls inside the …
feat(nix): install agent-browser and agent-desktop with their skills (#…
fix(nix): prepend local usage rules to the automation CLI skills (#385)