How epiccoleman/claude-automator works
This small automation library attaches to a running Claude Desktop session over CDP, sends a message through the chat UI, and returns detected response text. Its main workflow is exposed by ClaudeDesktopAutomation; connection management and chat-page interactions are internal responsibilities in the same source file. The README also documents starting a new conversation and querying page status. The graph reflects the sampled implementation; it does not model the separate example, debug, or test scripts.
Main entry points: claude-automation.js Automation API
Components 6
Other components
- API caller
- Automation API
claude-automation.js - Playwright CDP
- Claude Desktop
- Chat UI actions
claude-automation.js - Response detection
claude-automation.js
Connections 7
- API caller → Automation API: calls API
README.md - Automation API → Playwright CDP: connects via CDP
claude-automation.js - Playwright CDP → Claude Desktop: attaches to
README.md - Automation API → Chat UI actions: sends message
claude-automation.js - Chat UI actions → Response detection: waits for reply
claude-automation.js - Response detection → Automation API: returns text
claude-automation.js - Automation API → Chat UI actions: starts conversation
claude-automation.js