run_task
Execute coding tasks with a local LLM by submitting a task and working directory, then poll for status. Handles questions during execution and flags results needing review.
Instructions
Run a coding task using a local LLM (default: qwen3-coder:30b). Immediately returns {status:'running', task_id}; poll with check_task(task_id). Return values: {status:"running", task_id} — task is running. {status:"waiting", task_id, question, options} — HermitAgent is asking a question. Reply with reply_task(task_id, message). {status:"done", result} — task completed. {status:"needs_review", result} — execution finished but Hermit found a likely issue.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| task | Yes | ||
| model | No | ||
| strategy | No | single | |
| max_turns | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |