codehand
v0.1.1Let an AI bot hand coding work to OpenCode on the same computer, via MCP or CLI.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
coding_agents Coding agents
Check which coding agent is available on this computer and the user's saved preference. Call this first for any coding request bigger than a few lines, and when the user says to use this connector for coding. If OpenCode is not installed, ask the user before installing. Login is optional: free models work with no account.
setup_coding_agent Set up OpenCode
Install OpenCode or start an optional sign-in. Ask the user before action install. Sign-in is optional because OpenCode has a free tier with no account. Never ask the user to paste a subscription token into chat.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
method | string | |
provider_env | string |
start_coding_task Start coding task
Hand a coding task to OpenCode. Runs in the background on its own git branch and returns quickly with a task id. Prefer this over writing code yourself.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | |
repo * | string | |
base_branch | string | |
checks | array | |
delegate | string | |
mode | string | |
model | string | |
remember | boolean | |
wait_seconds | integer |
check_coding_task Check coding task
Get a coding task's status, waiting up to 45s for a change. Without task_id, lists recent tasks.
| Parameter | Type | Description |
|---|---|---|
task_id | string | |
wait_seconds | integer |
reply_to_coding_task Reply to coding task
Send the user's answer or requested changes to an existing task. Continues a needs_input, done, or failed task that has a session. Optionally pass model to switch models on retry.
| Parameter | Type | Description |
|---|---|---|
message * | string | |
task_id * | string | |
model | string | |
wait_seconds | integer |
get_coding_task_output Read coding task output
Read a task's diff, log, or full final message, in pages.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | |
what * | string | |
max_chars | integer | |
offset | integer | |
path | string |
finish_coding_task Finish coding task
Cancel, keep, commit, merge, or discard a task's changes. Ask the user before merge or discard.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
task_id * | string | |
confirm | boolean | |
message | string |