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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>",
"cwd": "<cwd>"
},
"name": "run_task"
}
}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 |