When the following data structure is returned, Hawa Code will end normally:
{"ok":true}
When the following data structure is returned, Hawa Code will continue working and send the reason to the model as the reason for continuing:
{"ok":false,"reason":"your explanation"}
Exit Code Format
Exit code 0: Success, Hawa Code will stop the task
Exit code 2: Failure, Hawa Code will continue working and send stderr to the model as the reason for continuing
Configuration Methods
Prompt Method
Configure Prompt using the $ARGUMENTS placeholder:
{ "hooks":{ "Stop":[ { "hooks":[ { "type":"prompt", "prompt":"Evaluate if Hawa Code should stop: $ARGUMENTS. Check if all tasks are complete." } ] } ] } }