{"id":31886863,"url":"https://github.com/marimo-team/use-acp","last_synced_at":"2026-01-16T02:45:04.771Z","repository":{"id":313810309,"uuid":"1052823157","full_name":"marimo-team/use-acp","owner":"marimo-team","description":"React hooks for connecting to Agent Client Protocol (ACP) servers.","archived":false,"fork":false,"pushed_at":"2025-09-15T21:51:32.000Z","size":191,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-05T03:58:19.233Z","etag":null,"topics":["acp","agent-client-protocol","mcp"],"latest_commit_sha":null,"homepage":"https://marimo-team.github.io/use-acp/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marimo-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-08T15:43:14.000Z","updated_at":"2025-09-23T09:17:33.000Z","dependencies_parsed_at":"2025-09-08T17:03:56.871Z","dependency_job_id":null,"html_url":"https://github.com/marimo-team/use-acp","commit_stats":null,"previous_names":["marimo-team/use-acp"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/marimo-team/use-acp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marimo-team%2Fuse-acp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marimo-team%2Fuse-acp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marimo-team%2Fuse-acp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marimo-team%2Fuse-acp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marimo-team","download_url":"https://codeload.github.com/marimo-team/use-acp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marimo-team%2Fuse-acp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013711,"owners_count":26085394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acp","agent-client-protocol","mcp"],"created_at":"2025-10-13T05:51:33.953Z","updated_at":"2026-01-16T02:45:04.762Z","avatar_url":"https://github.com/marimo-team.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use-acp\n\nReact hooks for [Agent Client Protocol](https://agentclientprotocol.com/) (ACP) over WebSockets.\n\n## Features\n\n- WebSocket connection management\n- Reactive state management\n- Notifications timeline for ACP events\n- Permission request/response handling\n- Full TypeScript support\n\n## Installation\n\n```bash\nnpm install use-acp\n# or\npnpm add use-acp\n```\n\n## Usage\n\n### Basic Usage\n\n```tsx\nimport { useAcpClient } from 'use-acp';\n\nfunction App() {\n  const {\n    connect,\n    disconnect,\n    connectionState,\n    notifications,\n    pendingPermission,\n    resolvePermission,\n  } = useAcpClient({\n    wsUrl: 'ws://localhost:8080',\n    autoConnect: true\n  });\n\n  return (\n    \u003cdiv\u003e\n      \u003cdiv\u003eStatus: {connectionState.status}\u003c/div\u003e\n      \u003cbutton onClick={connectionState.status === 'connected' ? disconnect : connect}\u003e\n        {connectionState.status === 'connected' ? 'Disconnect' : 'Connect'}\n      \u003c/button\u003e\n\n      {pendingPermission \u0026\u0026 (\n        \u003cdiv\u003e\n          \u003ch3\u003ePermission Request\u003c/h3\u003e\n          {pendingPermission.options.map((option) =\u003e (\n            \u003cbutton key={option.optionId} onClick={() =\u003e resolvePermission(option)}\u003e\n              {option.name}\n            \u003c/button\u003e\n          ))}\n        \u003c/div\u003e\n      )}\n\n      \u003cdiv\u003eNotifications: {notifications.length}\u003c/div\u003e\n      \u003cul\u003e\n        {notifications.map((notification) =\u003e (\n          \u003cli key={notification.id}\u003e{JSON.stringify(notification)}\u003c/li\u003e\n        ))}\n      \u003c/ul\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\n## API Reference\n\n### `useAcpClient({ wsUrl, autoConnect?, reconnectAttempts?, reconnectDelay? })`\n\n**Returns:** `{ connect(), disconnect(), connectionState, notifications, clearNotifications(), pendingPermission, resolvePermission(), rejectPermission(), agent }`\n\n### Utils\n\n```tsx\nimport { groupNotifications, mergeToolCalls } from 'use-acp';\n\n// Group notifications by their type\n// This helps when displaying notifications in a timeline\nconst groupedNotifications = groupNotifications(notifications);\n\n// Merge tool calls with the same toolCallId\nconst mergedToolCalls = mergeToolCalls(toolCalls);\n```\n\n## Development\n\n```bash\npnpm install\npnpm test      # run tests\npnpm build     # build library\npnpm dev       # run demo, http://localhost:5173\n```\n\n### Example Agents\n\n```bash\n# Gemini ACP\nnpx -y stdio-to-ws \"npx @google/gemini-cli --experimental-acp\"\n\n# Claude Code ACP\nnpx -y stdio-to-ws \"npx @zed-industries/claude-code-acp\"\n\n# Codex ACP\nnpx -y stdio-to-ws \"npx @zed-industries/codex-acp\"\n```\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarimo-team%2Fuse-acp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarimo-team%2Fuse-acp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarimo-team%2Fuse-acp/lists"}