1. Conduid
  2. Agents
  3. Code CLI
MCP server · Agents

Code CLI

Open-source terminal coding agent. Use 15+ model providers, local models or your own key. Plan mode before edits. Imports your Codex, Cursor, Claude Code setup.

79Good

Scored 20 hours ago · breakdown

About Code CLI

Code CLI is an MCP server published by autohandai in the Agents category: open-source terminal coding agent. Use 15+ model providers, local models or your own key. Plan mode before edits. Imports your Codex, Cursor, Claude Code setup. Conduid read 143 tools from its source: add_dependency, add_teammate, analyze_experiments, append_file, apply_patch, ask_followup_question and 137 more. It is published to npm as autohand-cli and starts with npx.

The repository has 219 stars and 41 forks, is licensed Apache-2.0, and its last commit was on 2 Dec 2026. The latest release is v0.9.8 (22 Sep 2026): Hey there! We've been busy making Autohand better. Here's what's new since v0.9.7: Updates Merge pull request #612 from autohandai/ahtraces Finish Ink teardown before wr… It is the only release Conduid has on record for this repository. It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include ai-agents-cli, ai-coding-agent, ai-coding-agents, autonomous-agents, byok and code-cli.

Install

Claude Code
claude mcp add code-cli -- npx -y autohand-cli
npx
npx -y autohand-cli
From source
git clone https://github.com/autohandai/code-cli

Tools (143)

add_dependencyAdd a package dependency (supports dev flag)
ParameterTypeDescription
devbooleanInstall as dev dependency
name *stringPackage name
versionstringVersion specifier
add_teammateAdd a teammate process to the active team using a registered agent.
ParameterTypeDescription
agent_name *stringRegistered agent name to run
agent_sourcestringResolved agent source
modelstringOptional model override for that teammate
name *stringHuman-readable teammate name
providerstringOptional provider override for that teammate
requested_rolestringOriginal requested specialist role
analyze_experimentsInspect immutable history, rescore, compare, compute Pareto candidates, pin artifacts, or preview/apply retention.
ParameterTypeDescription
allbooleanRescore every persisted candidate
attemptIdstringPrimary attempt id for rescore, compare, pin, or unpin
dryRunbooleanPreview retention without deleting objects (default: true)
operation *stringLedger analysis operation
otherAttemptIdstringSecond attempt id for compare
yesbooleanExplicitly approve pruning, including protected artifacts when required
append_fileAppend text to a file
ParameterTypeDescription
contents *stringText to append
path *stringRelative path to the file
apply_patchApply a single-file patch using numbered unified hunks or context-anchored @@ hunks. Example: @@\n-old line\n+new line. A single *** Update File: path envelope is also supported. Include enough unchanged context to identify one location; no-op or ambiguous patches fail.
ParameterTypeDescription
patch *stringUnified diff or context-anchored patch content for one file
path *stringPath to the file; a single Update File envelope can supply it when omitted
ask_followup_questionAsk the user a follow-up question to gather clarification or preferences. Use when you need specific information to proceed. Include suggested answers when possible to guide the response. Only available in interactive and plan mode.
ParameterTypeDescription
question *stringThe specific question to ask the user
suggested_answersarrayOptional list of 2-4 suggested answers to guide the user response
auto_commitAutomatically stage all changes and create a commit. In interactive mode, user can accept/edit/reject the message. In yes/non-interactive mode, commits immediately with the suggested or provided message.
ParameterTypeDescription
messagestringOptional commit message (auto-generated if not provided)
stage_allbooleanStage all changes before committing (default: true)
browser_clickClick an element on the current browser page by CSS selector. Scrolls the element into view first. Only available when the Chrome extension is connected.
ParameterTypeDescription
selector *stringCSS selector of the element to click
browser_close_tabClose a specific tab or the scoped browser tab.
ParameterTypeDescription
tabIdnumberOptional Chrome tab id
browser_dragDrag one stable target to another without automatic retries.
ParameterTypeDescription
destination *any
source *any
browser_execute_jsExecute JavaScript code in the current browser page context. Use for DOM queries, data extraction, or page manipulation that other tools cannot achieve. Only available when the Chrome extension is connected.
ParameterTypeDescription
code *stringJavaScript code to execute in the page context. Use return statements for values.
browser_fill_formResolve and fill form fields sequentially. Returns per-field outcomes and never submits the form.
ParameterTypeDescription
assignments *arraySequential text, checked, option, or files assignments
browser_find_elementFind elements on the current browser page by CSS selector, visible text content, or ARIA role. Returns up to 20 matches with their selectors. Only available when the Chrome extension is connected.
ParameterTypeDescription
rolestringARIA role to match
selectorstringCSS selector to match
textstringText content to search for
browser_get_elementGet detailed properties of a DOM element on the current browser page: bounding rect, computed styles, attributes, value, disabled state. Only available when the Chrome extension is connected.
ParameterTypeDescription
selector *stringCSS selector of the element
browser_get_page_contextExtract the current browser page title, URL, headings, metadata, and body text content. Only available when the Chrome extension is connected.
ParameterTypeDescription
max_charsnumberMax body text characters (default: 7000, max: 12000)
browser_group_tabsCreate or update a Chrome tab group.
ParameterTypeDescription
collapsedbooleanCollapse the group
colorstringChrome tab-group color
tabIdsarrayChrome tab ids
titlestringGroup title
browser_handle_dialogInspect, accept, or dismiss the current JavaScript dialog. Acceptance and dismissal are never retried.
ParameterTypeDescription
action *stringDialog operation
promptTextstringOptional prompt value when accepting a prompt dialog
browser_hoverHover one ref, CSS selector, or semantic role/name target.
browser_inspect_formInspect one form and return ref-addressable controls, labels, types, requirements, native options, and redacted values.
browser_navigateNavigate the active Chrome browser tab to a URL. Only available when the Chrome extension is connected.
ParameterTypeDescription
url *stringURL to navigate to
browser_open_tabOpen a browser tab and make it the scoped target when active.
ParameterTypeDescription
activebooleanWhether the new tab is active
url *stringURL to open
windowIdnumberOptional Chrome window id
browser_press_keyPress a keyboard key on the current browser page. For modifier combos use ctrl/shift/alt/meta params. Only available when the Chrome extension is connected.
ParameterTypeDescription
altstringHold Alt (true/false)
ctrlstringHold Ctrl (true/false)
key *stringKey name (e.g. Enter, Escape, Tab, a, 1)
metastringHold Cmd/Meta (true/false)
shiftstringHold Shift (true/false)
browser_read_consoleRead captured console log messages from the current browser page. Includes errors, warnings, and info messages. Useful for debugging. Only available when the Chrome extension is connected.
ParameterTypeDescription
levelstringFilter by level
limitnumberMax messages to return (default: 50)
browser_read_networkRead captured network requests from the current browser page. Shows URLs, methods, status codes, sizes. Requires debugger to be attached first. Only available when the Chrome extension is connected.
ParameterTypeDescription
limitnumberMax requests to return (default: 50)
methodstringFilter by HTTP method (GET, POST, etc.)
statusstringFilter by status code prefix (e.g. "4" for 4xx errors)
urlPatternstringFilter requests by URL substring
browser_reset_formReset one browser form to its initial values.
browser_screenshotCapture a screenshot of the page currently visible in the Chrome browser tab. Returns a base64 PNG image. Only available when the Chrome extension is connected.
ParameterTypeDescription
filenamestringOptional .png filename for the downloaded capture.
formatstringImage format
qualitynumberJPEG quality 0-100 (default: 80)
savebooleanDownload the capture as a real PNG to Chrome's configured download folder.
browser_scrollScroll the browser page in a direction, or scroll a specific element into view. Only available when the Chrome extension is connected.
ParameterTypeDescription
amountnumberPixels to scroll (default: 500)
directionstringScroll direction
selectorstringCSS selector to scroll into view (overrides direction)
browser_select_optionSelect a native option by value, label, or index and verify the resulting selection.
ParameterTypeDescription
indexnumberZero-based option index
labelstringVisible option label
valuestringOption value
browser_snapshotCapture interactive page structure across frames and open shadow DOM. Returns short-lived opaque refs, form metadata, visibility, enabled state, and redacted values.
ParameterTypeDescription
maxElementsnumberMaximum interactive elements per frame (default 200, maximum 500)
browser_submit_formValidate first, then submit exactly once with requestSubmit. Invalid forms remain blocked; an optional typed post-submit wait can collect evidence.
ParameterTypeDescription
submitterany
timeoutnumberPost-submit wait timeout in milliseconds
waitany
browser_switch_tabSwitch the scoped browser target by id, URL pattern, or title pattern.
ParameterTypeDescription
activebooleanActivate the matched tab
tabIdnumberChrome tab id
titlePatternstringTitle substring
urlPatternstringURL substring
browser_take_full_page_screenshotCapture the entire page in the current Chrome tab in one screenshot, including content outside the visible viewport. Use this instead of scrolling and stitching screenshots. Only available when the Chrome extension is connected.
ParameterTypeDescription
filenamestringOptional .png filename for the downloaded capture.
formatstringImage format
qualitynumberJPEG quality 0-100 (default: 80)
savebooleanDownload the capture as a real PNG to Chrome's configured download folder.
browser_typeType text into an input, textarea, or contenteditable element on the current browser page. Only available when the Chrome extension is connected.
ParameterTypeDescription
clearbooleanClear the field before typing (default: false)
selector *stringCSS selector of the input element
text *stringText to type
browser_upload_fileUpload absolute local paths through Chrome DevTools. Results expose basenames only.
ParameterTypeDescription
paths *arrayAbsolute local paths resolved by the CLI
browser_validate_formValidate a form with checkValidity and ValidityState without opening native validation UI.
browser_wait_forWait deterministically for an element, text, value, URL, page load, or network-idle condition. Defaults to 10 seconds and is capped at 25 seconds.
ParameterTypeDescription
condition *any
timeoutnumberTimeout in milliseconds (default 10000, maximum 25000)
browser_wait_for_downloadWait for a matching Chrome download to complete or be interrupted, returning basename-only evidence.
ParameterTypeDescription
downloadIdnumberOptional Chrome download id
filenamePatternstringOptional basename substring
timeoutnumberTimeout in milliseconds (default 10000, maximum 25000)
browser_wait_for_elementWait for an element matching a CSS selector to appear on the current browser page. Only available when the Chrome extension is connected.
ParameterTypeDescription
selector *stringCSS selector to wait for
timeoutnumberMax wait time in ms (default: 5000)
cancel_scheduleCancel an active recurring scheduled job by its ID. When reporting the result to the user, tell them they can also cancel jobs with the slash command: /repeat cancel <job-id>
ParameterTypeDescription
schedule_id *stringThe job ID to cancel (from list_schedules)
capture_test_evidenceCapture actual local browser evidence using an existing project Playwright installation. Produces PNG frames, a trace, animated WebP, and a report. Only the requested localhost HTTP(S) origin is allowed; no packages or browsers are installed. Capture success is not test assertion success or visual inspection. Open retained frames before claiming visual confirmation. Interaction steps may modify the local application and require approval.
ParameterTypeDescription
max_framesnumberMaximum PNG frames (2–24, default 6)
stepsarrayUp to 20 local UI interaction steps; omit for capture only. Do not include optional fields unused by an action.
timeout_msnumberTotal capture duration limit (1000–60000 milliseconds, default 30000)
url *stringExplicit local app URL (localhost, 127.0.0.1, or [::1]); remote/file/credentialed URLs are rejected
checksumCompute a checksum for a file
ParameterTypeDescription
algorithmstringHash algorithm (default: sha256)
path *stringRelative path to the file
code_reviewPerform a staff-engineer-level code review. Analyzes code quality, architecture, security, performance, and maintainability. Returns 10 prioritized actionable findings with specific file paths, line numbers, and suggested fixes. Use when the user asks to review code, audit quality, or find improvements.
ParameterTypeDescription
instructionsstringAdditional review focus areas from the user (e.g., "focus on error handling", "check for memory leaks").
pathstringFile or directory to review. Defaults to workspace root.
scopestringReview scope: "full" analyzes the entire path, "diff" reviews only uncommitted changes, "file" reviews a single file.
compose_teamAnalyze a task, rank candidate sub-agents by role fit and repository context, and produce a recommended roster with a dependency-linked task graph.
ParameterTypeDescription
objective *stringThe concrete objective the team should accomplish
team_namestringOptional short team name
coordinate_resourceCoordinate a capacity-one resource without killing running commands. status requires resource; request requires resource and reason; grant/release/cancel_request require requestId; set_controller requires resource, controller, participants and profile. Grants and policy changes require separate control authority. A running or starting reservation remains occupied until its process lifetime is resolved.
ParameterTypeDescription
controllerstringExact authorized controller peer ID for set_controller.
epochintegerOptional expected policy epoch for grant or set_controller.
operation *stringDiscriminated coordination operation; only fields for that operation are accepted.
participantsarrayExact enrolled peer IDs for set_controller.
profilestringstrict gates every participating process launch; build gates documented build/test commands.
reasonstringRequired nonempty explanation for request.
requestIdstringStable request ticket for request retries, grant, release or cancellation.
resourcestringCanonical machine/name or repository/common-directory-id/name.
copy_pathCopy a file or directory
ParameterTypeDescription
from *stringSource relative path
to *stringDestination relative path
create_directoryCreate a directory
ParameterTypeDescription
path *stringRelative path for new directory
create_goalCreate a persistent goal only when the user explicitly asks for durable goal tracking or long-running goal pursuit. If a non-terminal goal is already active, the new goal is queued. Do not infer goals from ordinary tasks.
ParameterTypeDescription
acceptance_criteriaany
min_time_seconds_before_wrap_upnumberOptional minimum time in seconds before normal completion is allowed
min_tokens_before_wrap_upnumberOptional minimum tokens before normal completion is allowed
objective *stringExplicit user-requested goal objective
time_budget_secondsnumberOptional positive time budget in seconds
token_budgetnumberOptional positive token budget
create_goal_from_templateResolve a reusable .pi-goals template and create the resulting persistent goal when the user explicitly requests a template/workflow goal. If a non-terminal goal is already active, the new goal is queued.
ParameterTypeDescription
acceptance_criteriaany
argsstringTrailing template arguments
flagsobjectTemplate flag values
min_time_seconds_before_wrap_upnumberOptional minimum time in seconds before normal completion is allowed
min_tokens_before_wrap_upnumberOptional minimum tokens before normal completion is allowed
template *stringTemplate name or alias
time_budget_secondsnumberOptional positive time budget in seconds
token_budgetnumberOptional positive token budget
create_hookCreate a lifecycle hook from a plain-English request ONLY when the user asks for persistent automation. Generates a workspace-scoped Node.js script, reviews it with the user, and saves the hook. Never run the script to test it automatically. Autohand AI only.
ParameterTypeDescription
eventstringOptional lifecycle event; otherwise infer it from the request.
levelstringWhere the hook is saved: project (shared .autohand/config), local (this machine only), or user (every workspace, default).
prompt *stringThe user-requested trigger and script behavior in plain English.
create_meta_toolCreate a new reusable tool that persists across sessions. Use for automating repetitive shell commands or extending capabilities.
ParameterTypeDescription
description *stringClear description of what the tool does
handler *stringShell command template with {{param}} placeholders (e.g., "grep -E {{pattern}} {{path}}")
name *stringTool name in snake_case (e.g., analyze_imports, count_lines)
parameters *objectJSON Schema defining tool parameters
scopestringWhere to persist the tool: "user" for all workspaces or "project" for this repository only
create_taskCreate a team task that can be assigned to an idle teammate.
ParameterTypeDescription
blocked_byarrayOptional prerequisite task IDs that must complete first
description *stringDetailed task description
subject *stringShort task title
create_teamCreate or reuse a teammate coordination group for multi-agent work.
ParameterTypeDescription
name *stringTeam name
cron_createCreate a recurring scheduled job using an explicit interval and prompt. Use this for structured schedule creation instead of natural-language slash command parsing.
ParameterTypeDescription
expires_instringOptional expiry duration shorthand like 7d, 2h, or 30m
interval *stringRepeat interval shorthand like 5m, 2h, 1d, or 30s
max_runsnumberOptional maximum number of times to trigger before auto-cancel
prompt *stringThe prompt/instruction to run on each schedule trigger
cron_deleteCancel an active recurring scheduled job by its ID.
ParameterTypeDescription
schedule_id *stringThe job ID to cancel
custom_commandDefine and execute a one-off command (saved for reuse)
ParameterTypeDescription
argsarrayCommand arguments
command *stringShell command
dangerousbooleanMark as dangerous
descriptionstringCommand description
name *stringCommand name for reuse
delegate_parallelDelegate multiple independent tasks to specialized sub-agents in parallel.
ParameterTypeDescription
maxIterationsintegerOptional lower model-request cap for all workers; entries may lower it further. Includes the final summary.
research_onlybooleanRestrict all workers to read-only research.
tasks *arrayIndependent agent tasks to run in parallel
delegate_taskDelegate a focused task to a specialized sub-agent. Use for broader exploration, verification, or work you want to keep out of the main context.
ParameterTypeDescription
agent_name *stringRegistered agent name to delegate to
maxIterationsintegerOptional lower model-request cap, bounded by the agent definition or agent.subagentMaxIterations (default: 30); includes the final partial-work summary.
research_onlybooleanExplicit read-only research pool task; withholds write, command and delegation tools.
task *stringConcrete task for the delegated agent
delete_memoryDelete an obsolete memory by ID. The deletion is retained as a canonical event so projections can be rebuilt without resurrecting it.
ParameterTypeDescription
id *stringMemory ID returned by recall_memory or /memory.
levelstringMemory level. Defaults to project.
delete_pathRemove files or directories from the workspace
ParameterTypeDescription
path *stringRelative path to delete
dequeue_goalRemove the first queued goal after it is truly satisfied or the user explicitly authorized removing it. Requires audit rationale and authority.
ParameterTypeDescription
authority *stringUser authorization or completion evidence for dequeuing
rationale *stringWhy this queue head is being dequeued now
enqueue_goalAdd a persistent goal to the FIFO queue only when the user explicitly asks to queue later goal work.
ParameterTypeDescription
acceptance_criteriaany
min_time_seconds_before_wrap_upnumberOptional time floor in seconds
min_tokens_before_wrap_upnumberOptional token floor
objective *stringGoal objective to queue
time_budget_secondsnumberOptional positive time budget in seconds
token_budgetnumberOptional positive token budget
enter_worktreeCreate and enter an isolated git worktree for the current session. Subsequent file, git, and command tools operate in that worktree until exit_worktree is called.
ParameterTypeDescription
namestringOptional branch/worktree name to use for the new session worktree
exit_plan_modePresent the current plan to the user for approval and exit the planning phase. Call this ONLY after you have created a plan using the `plan` tool and are ready for the user to review it. Do NOT call this tool before creating a plan.
ParameterTypeDescription
summarystringA brief summary of the plan you created, highlighting the key changes and approach.
exit_worktreeReturn to the original workspace. Worktrees with edited or untracked files or commits not on the original branch are kept automatically. Discarding changes requires explicit deletion approval.
ParameterTypeDescription
discard_changesbooleanExplicitly discard worktree changes after deletion approval. Default false; keep takes precedence.
keepbooleanWhen true, keep the worktree and branch instead of removing them
fetch_urlFetch and extract text content from a URL. Useful for reading documentation, changelogs, release notes, or any web page.
ParameterTypeDescription
max_lengthnumberMaximum characters to return (default: 30000)
url *stringURL to fetch
fff_findPath and filename search with frecency ranking when native FFF is available, plus a ripgrep-backed fallback. Use this for file path discovery.
ParameterTypeDescription
limitnumberMaximum results (default: 50)
query *stringFilename or path pattern to search
file_statsReturn file statistics and metadata
ParameterTypeDescription
path *stringRelative path to the file
find_agent_skillsSearch the community skills registry for agent skills that match a query. Returns skills with name, description, category, languages, and frameworks. Use this to discover skills that could help with the current task or project.
ParameterTypeDescription
categorystringOptional category filter (e.g. "languages", "frameworks", "workflows", "testing")
limitnumberMaximum results to return (default: 10, max: 20)
query *stringSearch terms — skill name, language, framework, or use-case (e.g. "react testing", "python api", "docker deployment")
find_grepContent search with frecency ranking and definition detection when native FFF is available, plus a ripgrep-backed fallback. Use this for content search.
ParameterTypeDescription
afterContextnumberLines of context after match (default: 2)
beforeContextnumberLines of context before match (default: 2)
caseSensitivebooleanForce case-sensitive matching
classifyDefinitionsbooleanPrioritize code definitions (default: true)
excludestringExclude patterns (comma/space separated)
limitnumberMaximum results (default: 50)
pathstringOptional subdirectory to search in
query *stringSearch pattern (regex auto-detected)
find_mcp_serversSearch config-compatible entries in the Official MCP Registry. Returns exact server IDs and prerequisites without exposing executable configuration. Use this before requesting an MCP installation when the user has not named a server ID.
ParameterTypeDescription
categorystringOptional exact catalog category filter
limitnumberMaximum results to return (default: 10, max: 20)
query *stringMCP capability or server name to search for, such as "PostgreSQL" or "browser automation"
find_sub_agentsSearch the default Autohand sub-agent catalog (autohandai/awesome-sub-agents) for installable specialized agents. Use this when the current task would benefit from a missing specialist before delegating or creating a team.
ParameterTypeDescription
categorystringOptional exact category filter (e.g. "01-core-development", "04-quality-security")
limitnumberMaximum results to return (default: 10, max: 20)
query *stringSearch terms - agent name, role, category, tools, language, or use-case (e.g. "backend api", "security review", "react")
format_fileFormat a file with a named formatter
ParameterTypeDescription
formatter *stringFormatter name (prettier, eslint, etc.)
path *stringRelative path to the file
git_addStage files for commit
ParameterTypeDescription
pathsarrayPaths to stage (default: all)
git_apply_patchApply a git patch to the working tree
ParameterTypeDescription
patch *stringGit patch content
git_branchList or create/delete branches
ParameterTypeDescription
branch_namestringBranch name (omit to list)
deletebooleanDelete the branch
forcebooleanForce delete
git_checkoutRestore a file from git
ParameterTypeDescription
path *stringRelative path to the file
git_cherry_pickCherry-pick commits onto current branch
ParameterTypeDescription
commits *arrayCommit SHAs to cherry-pick
mainlinenumberParent number for merge commits
no_commitbooleanApply without committing
git_commitCreate a commit with the staged changes
ParameterTypeDescription
allow_emptybooleanAllow empty commit
amendbooleanAmend previous commit
message *stringCommit message
git_diffShow git diff. When path is provided, shows diff for that file only. When omitted, shows all uncommitted changes in the workspace.
ParameterTypeDescription
pathstringRelative path to a specific file (optional). Omit to diff the entire workspace.
git_diff_rangeShow git diff for a range or staged files
ParameterTypeDescription
pathsarraySpecific paths to diff
rangestringCommit range (e.g., HEAD~3..HEAD)
stagedbooleanShow staged changes only
git_fetchFetch from remote repository
ParameterTypeDescription
branchstringBranch to fetch
remotestringRemote name (default: origin)
git_logShow commit history
ParameterTypeDescription
allbooleanShow all branches
graphbooleanShow branch graph
max_countnumberMaximum commits to show
onelinebooleanOne line per commit
git_mergeMerge a branch into current branch
ParameterTypeDescription
branch *stringBranch to merge
messagestringMerge commit message
no_commitbooleanMerge without committing
no_ffbooleanNo fast-forward
squashbooleanSquash commits
git_pullPull changes from remote
ParameterTypeDescription
branchstringBranch to pull
remotestringRemote name (default: origin)
git_pushPush changes to remote
ParameterTypeDescription
branchstringBranch to push
forcebooleanForce push
remotestringRemote name (default: origin)
set_upstreambooleanSet upstream tracking
git_rebaseRebase current branch onto another (non-interactive)
ParameterTypeDescription
autosquashbooleanAuto-squash fixup commits
ontostringNew base commit
upstream *stringUpstream branch to rebase onto
git_resetReset HEAD and/or working tree (soft/mixed/hard)
ParameterTypeDescription
modestringReset mode: soft, mixed, or hard
refstringCommit reference to reset to
git_stashStash current changes (supports message, include-untracked, keep-index)
ParameterTypeDescription
include_untrackedbooleanInclude untracked files
keep_indexbooleanKeep staged changes
messagestringStash message
git_stash_applyApply a stash without removing it
ParameterTypeDescription
stash_refstringStash reference (e.g., stash@{0})
git_stash_dropDrop a stash entry
ParameterTypeDescription
stash_refstringStash reference (e.g., stash@{0})
git_stash_popApply and remove the most recent stash (or specified stash)
ParameterTypeDescription
stash_refstringStash reference (e.g., stash@{0})
git_switchSwitch to a branch (can create with -c flag)
ParameterTypeDescription
branch_name *stringBranch to switch to
createbooleanCreate new branch
git_worktree_addAdd a git worktree (may modify git state)
ParameterTypeDescription
path *stringPath for the new worktree
refstringBranch or commit to checkout
git_worktree_cleanupFind and clean up stale/merged worktrees
ParameterTypeDescription
dry_runbooleanPreview without removing
remove_mergedbooleanRemove merged branches
remove_stalebooleanRemove stale worktrees
git_worktree_create_for_prCreate a worktree for reviewing a specific PR
ParameterTypeDescription
pr_number *numberPR number
remotestringRemote name (default: origin)
git_worktree_create_from_templateCreate a worktree using a template (feature, hotfix, release, review, experiment)
ParameterTypeDescription
base_branchstringBase branch to branch from
branch *stringBranch name for the worktree
run_setupbooleanRun setup commands
template *stringTemplate name
git_worktree_removeRemove a git worktree
ParameterTypeDescription
forcebooleanForce removal
path *stringPath of the worktree to remove
git_worktree_run_parallelRun a command in parallel across all worktrees
ParameterTypeDescription
command *stringCommand to run
max_concurrentnumberMax parallel executions
timeoutnumberTimeout in ms
git_worktree_syncSync changes from main branch to all worktrees (rebase or merge)
ParameterTypeDescription
dry_runbooleanPreview without syncing
main_branchstringMain branch name
strategystringSync strategy: rebase or merge
init_experimentCreate or reset an auto-research session in the .auto/ directory. Defines the benchmark metric and optimization direction.
ParameterTypeDescription
checksScriptstringOptional shell script written to .auto/checks.sh for correctness checks after a passing benchmark
constraintsarrayOptional hard metric constraints that fail closed
direction *stringWhether lower or higher metric values are better
environmentAllowlistarrayExplicit non-secret environment variable names to fingerprint for replay drift
filesInScopearrayOptional workspace paths or globs that the experiment may edit
maxIterationsnumberMaximum number of experiment iterations (default: 30)
measureScript *stringShell script that prints METRIC <metricName>=<number> to stdout
metricName *stringMetric key printed by the benchmark, e.g. total_ms
metricUnit *stringDisplay unit, e.g. ms or KB
name *stringShort session name
retentionobjectOptional content-addressed artifact limits; metadata remains permanent
samplingobjectAdaptive robust-sampling policy (defaults to 3-9 samples and confidence 2.0)
secondaryObjectivesarrayOptional advisory objectives used for Pareto ranking
subagentsobjectOptional phases that should use existing delegate_task or delegate_parallel subagent tools
timeoutMsnumberBenchmark, checks, and local hook timeout in milliseconds (default: 600000)
inspect_memoryInspect canonical memory through a bounded hierarchical outline, zoom into a summary node, invalidate derived summaries, or rebuild JSON projections from the event log.
ParameterTypeDescription
levelstringMemory level. Defaults to project.
max_charsnumberMaximum characters in outline or zoom output.
max_linesnumberMaximum lines in outline or zoom output.
node_idstringSummary node identifier returned by outline. Required for zoom.
operation *stringOperation to perform: outline, zoom, forget derived summaries, or rebuild materialized JSON from canonical events.
snapshot_idstringStable snapshot identifier returned by outline. Required for zoom; optional for forget.
inspect_work_mapInspect the privacy-safe local Work Map derived from opted-in coding-agent traces. Returns bounded aggregates only; it does not expose prompts, responses, commands, paths, or raw trace content.
ParameterTypeDescription
agentsarrayOptional coding-agent harness IDs
sincestringBounded lookback such as 30d, 24h, or 60m (default: 30d)
install_agent_skillInstall a community skill by exact skill id or name, then optionally activate it for the current session. Prefer asking the user before using this unless they explicitly requested installation or started with --auto-skill.
ParameterTypeDescription
activatebooleanActivate the installed skill for the current session (default: true)
name *stringExact community skill id or name to install
scopestringInstall scope (default: project)
install_mcp_serverInstall one exact, config-compatible server from the Official MCP Registry. This saves catalog-controlled configuration and attempts to start or connect a third-party MCP server. It never accepts arbitrary commands, URLs, headers, or secret values.
ParameterTypeDescription
overwritebooleanReplace an existing configuration with the same catalog server ID
required_argsarrayValues for the catalog-declared required arguments, in catalog order
server_id *stringExact ID returned by find_mcp_servers or explicitly requested by the user
install_sub_agentInstall an exact sub-agent from the default Autohand catalog into the user agents directory so it can be used by delegate_task, delegate_parallel, or team tools in this session.
ParameterTypeDescription
name *stringExact sub-agent name from find_sub_agents, such as "backend-developer" or "reviewer"
overwritebooleanReplace an existing installed agent with the same name (default: false)
list_peersDiscover live local root sessions and exact child runs within the authorized scope. Returns opaque peer IDs and safe display metadata. Defaults to the workspace; explicitly select repository or machine scope when authorized.
ParameterTypeDescription
cursorstringOpaque continuation cursor from the same scope and query.
querystringFilter aliases, project names and peer IDs.
scopestringAuthorized directory scope; default workspace.
list_treeList a directory tree for the workspace
ParameterTypeDescription
depthnumberMaximum depth (default: 2)
pathstringRelative path (default: workspace root)
log_experimentProject a persisted ledger decision into .auto/log.jsonl. For replayable sessions pass attemptId; model-supplied metric/status cannot override the engine.
ParameterTypeDescription
attemptIdstringImmutable attempt id returned by run_experiment
commitstringGit commit hash that preserves this run, when status is kept
description *stringWhat was tried
hypothesisstringHypothesis that led to the change
learnedstringWhat the result teaches us
metricnumberMeasured metric value
nextFocusstringSuggested next focus area
outputstringBenchmark/check output to store as a bounded excerpt in .auto/log.jsonl
statusstringOutcome of the run
notebook_editEdit a Jupyter notebook cell without treating the .ipynb file as plain text. Supports replace, insert, and delete by cell index or cell ID.
ParameterTypeDescription
cell_idstringOptional cell ID to target instead of cell_index
cell_indexnumber0-based cell index to target. For insert, inserts after this index; omit to append.
cell_typestringCell type for insert operations
edit_modestringNotebook edit mode
new_sourcestringNew source for replace or insert operations
path *stringRelative path to the .ipynb notebook file
package_infoGet detailed information about a package from npm, PyPI (Python), crates.io (Rust), Go modules, or RubyGems. Auto-detects registry or specify explicitly.
ParameterTypeDescription
package_name *stringPackage name (e.g., "react", "requests", "serde", "github.com/gin-gonic/gin")
registrystringPackage registry: npm, pypi, crates, go, rubygems (auto-detected if not specified)
versionstringSpecific version to get info for (default: latest)
peer_messagesRead your own durable inbox and receipt/resource events. Reading message content records consumption. An optional event-driven wait lasts at most 30 seconds, consumes no provider calls and returns a normal timedOut result. Never reads another principal’s inbox.
ParameterTypeDescription
afterstringDurable event cursor from the previous result.
fromstringFilter by exact sender peer ID.
messageIdstringFilter one message and its events.
replyTostringFilter replies to an original message.
waitMsintegerZero for an immediate read; up to 30000 for a bounded wait.
planCreate a structured implementation plan with detailed numbered steps before executing a task. Always break the task into concrete, actionable steps (e.g. "1. Read existing auth code 2. Create JWT utility module 3. Add login endpoint"). Each step should be a single clear action. Aim for 3-10 steps depending on complexity. You may call this tool multiple times to refine the plan. When you are satisfied with the plan, call `exit_plan_mode` to present it to the user for approval.
ParameterTypeDescription
notesstringA numbered step-by-step plan. Each step on its own line starting with "N. " (e.g. "1. Read existing code 2. Create new module 3. Write tests"). Be specific and actionable - avoid single vague descriptions.
project_trackerQuery issues and pull requests for the current project via gh CLI. Requires gh CLI installed and authenticated (https://cli.github.com). If a GitHub MCP server is connected with equivalent tools, prefer those instead. Actions: - list_issues: List issues (filter by state, assignee, labels) - get_issue: Get full issue details with comments - list_prs: List pull requests (filter by state, author, base branch) - get_pr: Get full PR details with checks and review status - get_user: Get the authenticated GitHub username
ParameterTypeDescription
action *stringThe operation to perform
assigneestringFilter issues by assignee username. Use @me for the authenticated user.
authorstringFilter PRs by author username
basestringFilter PRs by base branch
labelsstringComma-separated label names to filter by
limitnumberMax results to return (default: 20)
numbernumberIssue or PR number (required for get_issue, get_pr). Must be a positive integer.
repostringowner/repo override (default: detected from git remote)
statestringFilter by state (default: open). "merged" is only valid for list_prs.
read_fileRead a bounded, line-numbered file window. Use offset and limit to continue large files.
ParameterTypeDescription
limitintegerNon-negative maximum number of lines to read. Values above the tool ceiling are clamped.
offsetintegerNon-negative, 0-indexed line number to start reading from.
path *stringRelative path to the file to read
recall_memoryRecall stored memories and preferences ranked by content, tags, and recency. Use to check what preferences are already saved or to find specific information.
ParameterTypeDescription
levelstringFilter by level: "user" (global) or "project" (workspace-specific). If omitted, returns both.
querystringOptional search query to filter memories. If omitted, returns all memories.
remove_dependencyRemove a package dependency (supports dev flag)
ParameterTypeDescription
devbooleanRemove from dev dependencies
name *stringPackage name
remove_queued_goalRemove a specific queued goal by queue ID only when the user explicitly asks.
ParameterTypeDescription
queueId *stringQueue ID to remove
rename_pathRename a file or directory
ParameterTypeDescription
from *stringCurrent relative path
to *stringNew relative path
replay_experimentReconstruct a persisted candidate in a detached temporary Git worktree and evaluate it without changing the user branch or working tree.
ParameterTypeDescription
attemptId *stringImmutable candidate attempt id
evaluatorstringUse the frozen original evaluator by default or the current session evaluator
request_directory_accessRequest access to a directory outside the current workspace. Use this when the user mentions a folder or path that is not within the allowed directories. In yolo/auto-mode, access is granted automatically. In interactive mode, the user will be asked to approve. Returns the resolved path if access was granted, or an error message if denied.
ParameterTypeDescription
path *stringThe directory path to request access to (absolute or relative to cwd)
reasonstringOptional reason why access is needed (shown to user in interactive mode)
run_commandExecute a shell command using the configured command shell and dialect, with full pipe, redirect, and environment variable support. Supports POSIX shells, Windows cmd/PowerShell, and native Git Bash. Prefer dedicated tools for file operations (read_file, write_file, find_grep, fff_find). For most commands, prefer the `shell` tool instead - it shows real-time output. Use this only for quick commands where you don't need progress monitoring.
ParameterTypeDescription
argsarrayLiteral arguments passed to the command. Put shell syntax such as pipes and redirects in the command field.
backgroundbooleanRun process in background (returns PID, useful for dev servers)
command *stringCommand to execute. Supports pipes (|), redirects (>), env vars ($HOME), globs (*), and chaining (&&).
descriptionstringBrief description of what this command does (shown to user)
directorystringDirectory relative to workspace root to execute in
run_experimentCapture the current candidate, sample every objective adaptively, persist the engine decision, and retain only accepted working-tree changes.
ParameterTypeDescription
description *stringShort description of the change being measured
save_memorySave a fact or preference to memory for recall in future sessions. Use for important user preferences, project conventions, or key information worth remembering.
ParameterTypeDescription
fact *stringThe fact or preference to remember. Should be a clear, self-contained statement.
levelstringStorage level: "user" (global across projects) or "project" (specific to current workspace)
search_replaceApply precise text replacements using SEARCH/REPLACE blocks. SEARCH must match exactly. Multiple blocks applied in sequence.
ParameterTypeDescription
blocks *stringSEARCH/REPLACE block content
path *stringFile path
send_peer_messageSend external collaboration input to an exact peer ID from list_peers. This is a side effect. Returns durable acceptance, not proof of consumption or execution. Sender identity and retry ID are runtime-owned. A reply must reference a message received from the exact target.
ParameterTypeDescription
content *stringNonempty message, at most 8000 UTF-8 bytes.
replyTostringOriginal incoming message ID when replying.
to *stringOpaque peer ID from discovery; no PIDs, paths or broadcast.
topicstringOptional conversation label.
send_team_messageSend a direct message from the lead agent to a teammate.
ParameterTypeDescription
content *stringMessage content
to *stringTeammate name
set_hook_enabledEnable or disable one config hook when explicitly requested. Obtain its event and zero-based index from list_hooks. Plugin hooks are managed with /extensions. Autohand AI only.
ParameterTypeDescription
enabled *booleanWhether the hook should be enabled.
event *stringExact config event returned by list_hooks.
index *numberZero-based index within config hooks for this exact event.
set_lifecycle_hookInstall or update a lifecycle hook that runs a shell command when the user asks for automation such as "run lint after every tool call". Prefer this over create_hook whenever a single command does the job. The user reviews the event, command, and level before it is saved; a hook with the same event and description at that level is updated in place. Autohand AI only.
ParameterTypeDescription
asyncbooleanRun without blocking the agent; default false.
command *stringShell command to run, executed from the workspace root, for example "bun run lint".
description *stringShort label shown in /hooks; reuse it to update the same hook later.
enabledbooleanSave the hook disabled when false; default true.
event *stringLifecycle event that triggers the command, for example post-tool or session-end.
filterobjectOptional limits on when the hook fires.
levelstringproject (shared .autohand/config, default), local (this machine only), or user (every workspace).
matcherstringOptional regular expression matched against the event target, such as a tool name.
timeoutnumberMilliseconds before the command is stopped; default 5000.
shellExecute a shell command with real-time output displayed in a live, isolated box in the TUI. Use this as the DEFAULT for running shell commands - it shows stdout/stderr in real-time while keeping the CLI input responsive. Ideal for tests, builds, installs, dev servers, and any command where you want to see progress. For quick one-liners where output monitoring isn't needed, you can use run_command instead.
ParameterTypeDescription
argsarrayLiteral arguments passed to the command. Put shell syntax such as pipes and redirects in the command field.
backgroundbooleanRun process in background (detached). Returns immediately with PID. Use for dev servers, long-running processes, or when you don't need to wait for completion.
command *stringCommand to execute. Supports pipes (|), redirects (>), env vars ($HOME), globs (*), and chaining (&&).
descriptionstringBrief description of what this command does (shown to user)
directorystringDirectory relative to workspace root to execute in
skillSearch authorized local skills, inspect an exact reference, or select/deactivate task instructions. Activation is selection; loading is confirmed by request receipts.
ParameterTypeDescription
command *stringSkill operation to perform
namestringSkill name for info, activate, or deactivate
sleepPause execution for a short time when waiting for another system or process to settle. Use sparingly and prefer explicit polling when possible.
ParameterTypeDescription
reasonstringOptional short reason for the wait
seconds *numberNumber of seconds to wait (maximum 300)
smart_context_cropperTrim conversation history when context is full
ParameterTypeDescription
crop_amount *numberNumber of messages to crop
crop_direction *stringDirection: top or bottom
deleted_messages_summarystringSummary of cropped content
need_user_approvebooleanAsk user for approval
task_getGet a single team task by ID from the active team task list.
ParameterTypeDescription
task_id *stringTask ID to retrieve
task_listList tasks from the active team task list, optionally filtered by status or owner.
ParameterTypeDescription
ownerstringOptional owner filter
statusstringOptional status filter
task_outputStore or update the latest output/progress note for a task in the active team task list.
ParameterTypeDescription
output *stringLatest progress note, result, or output summary for the task
task_id *stringTask ID to update
task_stopStop an active or queued team task and mark it cancelled.
ParameterTypeDescription
task_id *stringTask ID to stop
task_updateUpdate a task in the active team task list.
ParameterTypeDescription
blocked_byarrayUpdated prerequisite task IDs
descriptionstringUpdated task description
statusstringUpdated task status
subjectstringUpdated short task title
task_id *stringTask ID to update
todo_writePersist and update the todo list. Send the COMPLETE updated todo list each time (not incremental changes).
ParameterTypeDescription
tasks *arrayThe complete updated todo list with all tasks and their current statuses
tool_searchSearch available tools by capability, name, or description. Use this when you need to discover the best built-in or meta tool for a task instead of guessing.
ParameterTypeDescription
limitnumberMaximum matching tools to return (default: 10)
query *stringSearch terms for the capability or tool you need (e.g. "delegate agent", "git worktree", "browser screenshot")
update_goalUpdate the current goal when the user explicitly asks to edit, pause, resume, complete, or adjust budgets.
ParameterTypeDescription
checkpointobjectSave current progress without claiming completion
completion_evidenceany
min_time_seconds_before_wrap_upnumberOptional time floor in seconds
min_tokens_before_wrap_upnumberOptional token floor
objectivestringOptional replacement objective
resume_whenstringConcrete condition required before an explicit resume, at most 4000 characters
statusstringOptional status; blocked and waiting require a stop reason and resumption condition
stop_reasonstringWhy the goal is blocked or waiting, at most 4000 characters
time_budget_secondsnumberOptional positive time budget in seconds
token_budgetnumberOptional positive token budget; use clear_goal for removal requests
web_repoBrowse GitHub and GitLab repositories. Supports three operations: - 'info': Get repo metadata (description, stars, language, license, default branch) - 'list': List directory contents (files and folders at a path) - 'fetch': Get raw file content (defaults to README.md) Repo formats: HTTPS or schemeless URLs, .git clone URLs, SSH clone URLs, GitHub tree/blob URLs, or shorthand (owner/repo, github:owner/repo, gitlab:group/project). Examples: { repo: "github:openai/codex", operation: "info" } { repo: "gitlab:inkscape/inkscape", operation: "list", path: "src" } { repo: "github:openai/codex", operation: "fetch", path: "codex-cli/src/utils.ts" }
ParameterTypeDescription
branchstringBranch name (default: repo default branch)
operation *stringOperation to perform
pathstringFile/directory path (default: root for list, README.md for fetch)
repo *stringRepository URL or shorthand (github:owner/repo, gitlab:group/project)
web_searchSearch the web for up-to-date information about packages, libraries, frameworks, documentation, changelogs, and more. Use this when you need current information that may have changed after your training data. If a daily limit is returned, relay the complete upgrade and reset sentence verbatim and finish using the evidence already available.
ParameterTypeDescription
max_resultsnumberMaximum results to return (default: 5)
query *stringSearch query (e.g., "react 19 new features", "zod changelog latest")
search_typestringType of search: general, packages, docs, changelog
write_fileWrite full contents to a file
ParameterTypeDescription
contents *stringFull file contents to write
path *stringRelative path to the file

Security checks

Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 5.3K words.
  • ✓License declaredThe repository declares the Apache-2.0 license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by bun.lock.
  • !No dynamic code executionScanned 784 source files and found 18 calls to eval or shell execution, in src/auth/ensureAuth.ts:39, src/auth/ensureAuth.ts:144 and src/commands/about.ts:35 among others. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

What the source scan found

Transport
stdio, Streamable HTTP and HTTP with SSEsrc/config.ts:1777, src/config.ts:1777, src/config.ts:1777
Starts other programs
96 callssrc/actions/command.ts:183, src/actions/filesystem.ts:991, src/actions/git.ts:14
Outbound network calls
82 callssrc/actions/webRepo.ts:181, src/actions/webRepo.ts:506, src/auth/AuthClient.ts:421
Writes or deletes files
93 callssrc/actions/filesystem.ts:368, src/actions/filesystem.ts:890, src/actions/filesystem.ts:934
Lockfile
bun.lock

Pattern matches on the source text of 784 files: places to read, not proof of what the code does at run time.

Releases

v0.9.8Release v0.9.8 · 22 Sep 2026Hey there! We've been busy making Autohand better. Here's what's new since v0.9.7: Updates Merge pull request #612 from autohandai/ahtraces Finish Ink teardown before writing session summaries Build the Autohand traces sub agent from its…

README

The repository's README runs to about 5.3K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Code CLI

How do I install Code CLI?

In Claude Code, run claude mcp add code-cli -- npx -y autohand-cli. Other MCP clients take the command after "--" in their server configuration.

Is Code CLI safe to use with an AI agent?

Its trust score is 79 out of 100 (good). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Conduid's scan of 784 source files found that it serves MCP over stdio, Streamable HTTP and HTTP with SSE, starts other programs (96 calls), makes outbound network calls (82 calls) and writes or deletes files (93 calls). Its dependencies are pinned by bun.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Code CLI still maintained?

Yes — the latest release is v0.9.8 (22 Sep 2026), and the last commit was yesterday. The repository has 219 stars and 41 open issues.

What tools does Code CLI provide?

Conduid read 143 tools from the source: add_dependency, add_teammate, analyze_experiments, append_file, apply_patch, ask_followup_question, auto_commit, browser_click and 135 more. 139 of them publish their parameters, listed under Tools above.

What license is Code CLI released under?

The repository declares the Apache-2.0 license. That applies to the latest release, v0.9.8, as well.