A coding agent that uses WarpGrep to search code on a remote machine via SSH. The repo is cloned on the remote host, and WarpGrep executes ripgrep, sed, and find remotely via remoteCommands over an SSH connection.
The remote host must have the following installed:
gitripgrep(rg)- Standard Unix tools (
sed,find)
npm installSSH_HOST=your-host SSH_USER=your-user SSH_KEY_PATH=~/.ssh/id_rsa MORPH_API_KEY=your-key ANTHROPIC_API_KEY=your-key npx tsx agent.tsAsk a specific question:
SSH_HOST=your-host SSH_USER=your-user SSH_KEY_PATH=~/.ssh/id_rsa MORPH_API_KEY=your-key ANTHROPIC_API_KEY=your-key npx tsx agent.ts "How does streaming work?"- Connects to the remote host via SSH using
node-ssh - Clones
anthropics/anthropic-cookbookon the remote host - Creates a WarpGrep tool with
remoteCommandsthat execute over SSH viassh.execCommand() - Runs a Claude agent loop — when Claude calls the tool, WarpGrep searches the remote repo
- Cleans up the cloned repo and disconnects when done
The agent loop runs up to 5 turns, giving Claude multiple chances to search and refine its understanding.