AI agent setup for Roc programming. Makes Claude write code in a loop until:
roc check
runs without errors or warnings.- All top level expect tests pass with
roc test
. roc dev
finishes 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_text
andsystem_prompt
in main.roc to fit your purpose. - Get an Anthropic API key
- Run with:
$ export ANTHROPIC_API_KEY=YOURAPIKEY $ roc main.roc