An autonomous coding agent for Rivet engineers.
npm install @rivet-health/agentAn autonomous coding agent for Rivet engineers.
The agent continuously monitors Notion tickets across three states:
1. Up Next: Creates new branches and implements features from pending tickets
2. In Development: Continues work on active tickets and creates pull requests
3. In Review: Addresses PR feedback, resolves comments, and fixes CI failures
The agent runs in a continuous loop, processing tickets in priority order:
``mermaid`
flowchart TD
A[Start Main Loop] --> B{Check tickets marked 'In review'}
B -->|PRs with unaddressed comments or failing CI checks| C[Process review feedback, fix CI failures, resolve comments]
C --> D[Continue loop]
B -->|No pending review comments or failing CI checks| E{Check tickets marked 'In development'}
E -->|Active tickets needing continued implementation| F[Continue implementation, create pull request, update status to 'In review']
F --> D
E -->|No active development| G{Check tickets marked 'Up next'}
G -->|New tickets ready to be started| H[Move ticket to 'In development', create branch, implement features, create PR]
H --> D
G -->|No available work| I[Wait 60 seconds]
I --> D
D --> B
Run npx @rivet-health/agent` in your repository directory. The agent will walk you through the setup process and begin looking for work to do immediately.