AI agent setup for Roc programming. Makes Claude write code in a loop until:
roc checkruns without errors or warnings.- All top level expect tests pass with
roc test. roc devfinishes with exit code 0.
The above options are configurable by setting the Bools run_roc_test and run_roc_dev.
Note: the roc-agent can currently only work with a single .roc file.
- Alter
prompt_textandsystem_promptin main.roc to fit your purpose. - Get an Anthropic API key
- Run with:
$ export ANTHROPIC_API_KEY=YOURAPIKEY $ roc main.roc