codehand

v0.1.1
codehand Checked 1 day ago Published 9 days ago

Let 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.

ParameterTypeDescription
action *string
methodstring
provider_envstring

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.

ParameterTypeDescription
prompt *string
repo *string
base_branchstring
checksarray
delegatestring
modestring
modelstring
rememberboolean
wait_secondsinteger

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.

ParameterTypeDescription
task_idstring
wait_secondsinteger

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.

ParameterTypeDescription
message *string
task_id *string
modelstring
wait_secondsinteger

get_coding_task_output Read coding task output

Read a task's diff, log, or full final message, in pages.

ParameterTypeDescription
task_id *string
what *string
max_charsinteger
offsetinteger
pathstring

finish_coding_task Finish coding task

Cancel, keep, commit, merge, or discard a task's changes. Ask the user before merge or discard.

ParameterTypeDescription
action *string
task_id *string
confirmboolean
messagestring