A wrapper tool that automates interactions with the Claude CLI by automatically handling common prompts and responses.
npm install auto-claudeA wrapper tool that automates interactions with the Claude CLI by automatically handling common prompts and responses.
- Spawns and manages a Claude CLI process
- Automatically responds to common prompts like "Yes, proceed" and "Yes"
- Streams output with prefixed logging for better visibility
- Handles terminal resizing for proper PTY management
- Filters and processes ANSI control characters
``bash`
bun install
`bash`
bun run index.ts
The tool will:
1. Clear the terminal
2. Spawn a Claude CLI process
3. Forward your input to Claude
4. Automatically respond to confirmation prompts
5. Display output with "sflow |" prefix
- build - Build the project and create UMD bundletest
- - Run testsrelease
- - Build, test, and publish a new version
- node-pty - For spawning and managing the Claude CLI processsflow
- - For stream processing and data flow managementfrom-node-stream` - For converting Node.js streams to web streams
-
MIT