About Ahpd
Ahpd is an MCP server published by softov in the Blockchain category: an Agent Host Protocol server for Claude, pi, ACP agents such as Codex, and any agent a plugin adds, on Node, Bun or Deno - and the parts to build your own with sessions, automations, resources, terminal, containers, vms and bots. Conduid read 22 tools from its source: ahp_resource, ahp_terminals, archive_chat, ask_user, create_chat, create_session and 16 more. No package is published for it, so it installs from a source checkout.
The repository has 28 stars and 6 forks, and its last commit was on 2 Dec 2026. Conduid has no tagged release on record for it. Its topics include agent-host-protocol, deepseek-harness, openrouter, pi-harness and pi-sdk.
Install
git clone https://github.com/softov/ahpdTools (22)
ahp_resourceRead a resource by URI, including one a connected client serves and this machine has no copy of - a plugin’s virtual files, an editor’s unsaved buffers. Addressed as vscode-agent-client://<client>/<scheme>/<authority>/<path>, with - for an empty authority.| Parameter | Type | Description |
|---|---|---|
| uri * | string |
ahp_terminalsThe terminals this host has open, with what each is running and where. These are the terminals the person can see, which is not the same as a shell run from a tool.archive_chatArchive a chat, or a whole session, so it no longer appears among active sessions. Use it when the user asks to archive a chat or session or to mark it done. Archiving a nested session archives only that chat. Archiving a session's main session (`main: true` in `chats`, or a session link without a chat id) archives the whole session with all of its nested sessions, and removes its isolated worktree after committing the worktree's changes. Archived chats keep their history and can be unarchived. To remove a session permanently, use `delete_session` instead. Refuses the chat this tool runs in and the main session of its own session.| Parameter | Type | Description |
|---|---|---|
| chat * | string | The chat to archive: an `agent-host-session://` chat link from `list_sessions`, `get_current_session` or `create_session`. A session link without a chat id targets that session's main session, which archives the whole session. |
ask_userAsk the user one or more questions and wait for the answers. Use options for choices; leave options out for free text.| Parameter | Type | Description |
|---|---|---|
| questions * | array |
create_chatCreate a new chat in an existing session and start it with an initial prompt. The chat shares the session's workspace, lifecycle and aggregate diff. Omit `session` to add the chat to the session this tool runs in.| Parameter | Type | Description |
|---|---|---|
| model | string | Optional model ID or display name, belonging to the session's provider. |
| prompt * | string | Initial prompt to send to the new chat. |
| session | string | The session to add the chat to: a session URI from `list_sessions` or an `agent-host-session://` link. Omit for the current session. |
| title | string | Short title for the new chat. |
create_sessionCreate delegated work and start it with an initial prompt, either in a new chat sharing the current session's workspace, lifecycle, and aggregate diff, or in an independent session. Only supply `worktree` when the user explicitly requests working with or without a new worktree; never combine it with `currentSession`.| Parameter | Type | Description |
|---|---|---|
| agent | string | Optional provider id of the agent to run, such as one `list_sessions` shows. Defaults to the model's provider, then the current chat's. |
| config | object | Optional settings for the new session, as the agent's config schema names them. Defaults to what the current chat's agent says a new chat inherits. |
| model | string | Optional model ID or display name. Defaults to the current chat's model. For `currentSession`, the model must belong to the current session's provider; for `independent`, the model selects the new session's provider. |
| prompt * | string | Initial prompt to send to the new session. |
| relationship * | string | Whether this work belongs to the current session or is independently managed. Use `currentSession` for tasks from the current plan or deliverable, including parallel or delegated tasks, unless the user explicitly requests a worktree. Use `independent` for a separate deliverable that needs its own workspace, provider, or top-level lifecycle, or for an explicitly requested worktree. |
| title * | string | Short title for the new chat or independent session. |
| workspace | string | For `independent` work: unique project name, project/workspace URI, absolute folder path, or working directory from an existing session. Required for `independent` and invalid for `currentSession`. |
| worktree | boolean | Override isolation for the new independent session. Set true only when the user explicitly asks to create a worktree, or false only when the user explicitly asks to work without one. Omit to preserve the existing isolation behavior: inherit the creating session's isolation for the same project, otherwise use worktree isolation. Only valid with relationship `independent`; omit for `currentSession`. |
delete_sessionPermanently delete a session (identified by a session URI from `list_sessions`), including its stored data. This cannot be undone. Refuses to delete the current session.| Parameter | Type | Description |
|---|---|---|
| session * | string | The session to delete: a session URI from `list_sessions` or an `agent-host-session://` link (e.g. from `create_session`). |
get_current_sessionGet metadata and the open link for the session this conversation is running in. Use this to reference the current session (for example before adding a chat to it).get_session_contextRead the recent conversation of an existing session or chat and your pending messages there. Use this to see what a session you created is doing, recover message IDs and revisions before replacing or cancelling pending work, or gather context before sending a message. Returns bounded excerpts at every detail level. For a shortened assistant reply, pass its responseTurnId and follow nextResponseOffset until truncated is false to read the complete reply. For session metadata (status, working directory, changes, …) use `list_sessions` with the `session` argument.| Parameter | Type | Description |
|---|---|---|
| detail | string | How much conversation detail to return. `summary` (default): status and a short per-turn gist. `digest`: longer reply excerpts and tool-call names. `full`: longer excerpts and tool-call inputs. All levels are bounded; use responseTurnId to page through a shortened reply. At `digest` and `full`, each tool call also says its `status`, with `ok`, `reason` or `error` where the call has one; `full` adds its `input`. |
| responseOffset | integer | Character offset for responseTurnId, initially 0. Continue with the returned nextResponseOffset. Requires responseTurnId. |
| responseTurnId | string | Read one completed turn's complete assistant reply in pages of up to 8000 characters instead of a transcript. Use the exact responseTurnId returned for a shortened reply. Follow nextResponseOffset until truncated is false before treating the reply as fully read. |
| session * | string | The session or chat to read: a session URI from `list_sessions`, or an `agent-host-session://` link. A link carrying a chat id targets that specific chat. |
| transcriptLimit | number | Maximum number of most-recent turns to include. Defaults to 10; capped at 50. |
hoursThe opening hoursisolate_sessionMove only the current chat to a new Git worktree when the user wants to continue this task without changing its current checkout. This preserves the chat and its history; it does not create a separate task or move other chats, even those sharing the same folder. The session workspace will include the new worktree. The original folder is unchanged, and uncommitted edits are not copied except configured worktree include-files. Requires a chat working in one local Git folder. Follow the tool confirmation flow. Make this the final tool call and end the turn after it succeeds; the host then moves this chat and continues its task automatically. Do not poll or repeat the request.list_agentsList the agents a new session may be started on, each with the `agent` id `create_session` and `list_sessions` take, the name a person reads, the settings its `config` accepts, and its first five models. Use this before `create_session` to choose the agent, its model and its settings.list_modelsList the models the agents offer, in the order the host learned them. Pass `agent` for one agent's models; omit it for every agent's. Each model answers the `id` and `name` that `create_session` and `create_chat` take as `model`, under the `agent` it belongs to.| Parameter | Type | Description |
|---|---|---|
| agent | string | Only return this agent's models: a provider id from `list_agents`. Omit to return every agent's. |
list_sessionsList sessions and their compact metadata (status, activity, working directory, project, worktree changes, git/GitHub info, timestamps). Each result includes `session` for identity and tool inputs and `openLink` for clickable Markdown links; do not use `session` as a link target. A session with nested sessions also lists `chats`: its main session (`main: true`) and its nested sessions in order, each with a `title` and an `openLink` that names that chat in `send_message`, `get_session_context`, `rename_chat` and `archive_chat`. Pass `session` to fetch a single known session by URI. By default archived sessions are omitted. Optionally filter by `status`, `workspace`, `agent`, `title`, `path`, `withChanges`, `unread`, `withPullRequest`, `includeArchived`, `createdAfter`, `createdBefore`, `modifiedAfter`, or `modifiedBefore`. Rows are answered newest first by `modifiedAt`; pass `limit` for only the newest ones, and the answer says `truncated: true` when the limit cut rows.| Parameter | Type | Description |
|---|---|---|
| agent | string | Only return sessions of this agent: the provider id a row answers as `agent`, matched exactly. |
| createdAfter | string | Only return sessions created at or after this time (ISO-8601 timestamp, e.g. `2025-01-31T00:00:00Z`). |
| createdBefore | string | Only return sessions created at or before this time (ISO-8601 timestamp). |
| includeArchived | boolean | Whether to include archived sessions. Defaults to false; set true to also return archived sessions. |
| limit | number | Maximum number of rows to return, the newest first. All matching rows are returned when omitted, and the answer says `truncated: true` when the limit cut some. |
| modifiedAfter | string | Only return sessions last modified at or after this time (ISO-8601 timestamp). |
| modifiedBefore | string | Only return sessions last modified at or before this time (ISO-8601 timestamp). |
| path | string | Only return sessions with a working directory that contains this text, in any case. |
| session | string | Return only the session with this URI or `agent-host-session://` link (a direct lookup that ignores the other filters). Use this to fetch one known session's metadata. |
| status | array | Only return sessions whose status matches one of these (e.g. `inputNeeded` for sessions awaiting a reply, `inProgress` for running ones, `archived` for sessions marked Done/completed, which implies `includeArchived`). Omit to return every status. |
| title | string | Only return sessions whose title contains this text, in any case. |
| unread | boolean | When true, only return sessions with updates the user has not seen yet. |
| withChanges | boolean | When true, only return sessions that have pending worktree changes. |
| withPullRequest | boolean | When true, only return sessions that have a linked GitHub pull request. |
| workspace | string | Only return sessions for this project name, project URI, or working directory path/URI. |
move_sessionMove a nested session or a whole session when the user asks to reorganize sessions: reorder a nested session within its session, move it into another session, make it its own session (`independent`), or move a session that has no nested sessions into another session as a nested session. Pass `into` for every move except `independent`, which takes neither `into` nor `after`. Use this only when the user asks to move or reorganize sessions; never to tidy up sessions on your own. To start new work, use `create_session` instead. A moved session keeps its history, folders and running work, including a session without a workspace; both sessions must use the same agent. Get links from `list_sessions` or `get_current_session`: a session's `openLink`, or for a nested session the `openLink` listed for it in the session's `chats`. The user is asked to confirm every move. When it moves the chat this tool runs in, the move happens after this turn ends: make it your final tool call.| Parameter | Type | Description |
|---|---|---|
| after | string | Only with `into`; forbidden with `independent`: an `agent-host-session://` link to a nested session of `into`, or to `into`'s main session, to place it after. Omit to place it at the end. |
| into | string | Required unless `relationship` is `independent`, which forbids it: the session to move it into, as a session URI from `list_sessions` or an `agent-host-session://` link. Pass its current session to reorder it there. |
| relationship | string | Use `independent` to make a nested session its own top-level session; `into` and `after` must then be omitted. Otherwise omit it; defaults to `nested`. |
| session | string | What to move: an `agent-host-session://` link or a session URI from `list_sessions`. A link carrying a chat id moves that nested session; a session without one moves the whole session, which must have no nested sessions. Omit to move the chat this tool runs in. |
release_computerRemove a disposable computer. Nothing on it survives.| Parameter | Type | Description |
|---|---|---|
| id * | string | The name from its computer:// URI. |
rename_chatRename one specific chat so it is easy to find later. Renaming the default chat also names its owning session, while peer-chat titles remain independent. Use a short, human-friendly chat name in sentence case (1-4 words). Pass an `agent-host-session://` session or chat link to target another chat, or omit `chat` to rename the chat in which this tool is running. Name a fresh chat once its scope is clear. Call this tool again whenever the user explicitly asks to rename the chat; every invocation replaces the current title.request_disposable_computerStart a disposable computer and answer its computer:// URI. It runs until it is released.| Parameter | Type | Description |
|---|---|---|
| cpus | string | CPU limit, for example 2. Default is this host's. |
| image | string | What to make it from. Default ${options.image}. |
| memory | string | Memory limit, for example 2g. Default is this host's. |
| name | string | A name for it. One is generated when this is left out. |
run_in_computerRun a shell command inside a disposable computer and answer what it printed and what it exited with.| Parameter | Type | Description |
|---|---|---|
| command * | string | The command line to run, through `sh -lc` inside the machine. |
| id * | string | The name from its computer:// URI. |
schedule_wakeupBegin a new turn in this chat after a delay, with the given prompt. Use this to come back to work that is waiting on something, such as a build or a review. The chat holds one wakeup: a new call replaces the one held, and `stop: true` cancels it. The wakeup is kept by the host, so it survives this session going to sleep and the daemon restarting, and the session is woken for it when it is due. The delay is 60 seconds to 30 days; a wait under 60 seconds belongs inside the turn, not in a wakeup.| Parameter | Type | Description |
|---|---|---|
| delaySeconds | number | Seconds from now until the wakeup begins its turn, 60 to 2592000 (30 days). |
| prompt | string | The message the new turn begins with. Say what to check or continue, since the turn starts from this text. |
| stop | boolean | When true, cancel the wakeup this chat holds and schedule nothing. `delaySeconds` and `prompt` are not needed. |
send_messageSend, replace, or cancel your message in an existing session or chat. Use `delivery: "steer"` only to update an active turn; steering is handed to the provider immediately and cannot be replaced or cancelled. Use `delivery: "queue"` for a separate turn. Replace and cancel require the message ID and revision returned by an earlier call and succeed only while that queued message is pending. If it already started, the result reports `processing` or `completed`; decide whether to send a steering correction or a queued follow-up. Delivery is asynchronous; this tool does not wait for or return a reply.| Parameter | Type | Description |
|---|---|---|
| delivery | string | For `send`, use `steer` to update an active turn or `queue` for a separate turn. Defaults to `queue`. |
| expectedRevision | number | For `replace` or `cancel`, the revision returned with a pending queued message. The operation fails if the message changed or started processing. |
| message | string | The complete message text. Required for `send` and `replace`; omit for `cancel`. |
| messageId | string | For `replace` or `cancel`, the ID returned when this chat sent the message. |
| operation | string | `send` (default) creates a message, `replace` updates one of your pending queued messages, and `cancel` removes one of your pending queued messages. |
| session * | string | The session or chat to message: a session URI from `list_sessions`, or an `agent-host-session://` link. A link carrying a chat id targets that specific chat. |
set_workspaceSet the current chat's workspace while preserving its identity and history. If a workspace is already attached, use this tool only when the user explicitly asks to change this chat's workspace. Do not infer a workspace change from a file path, a request to inspect another repository, or ordinary work in the current workspace. If `isolation` is false and the requested folder is already this chat's effective working directory, skip this tool and the confirmation question; tell the user the chat already uses that workspace and continue normally. Compare against this chat's working directory, not its session's project root. Creating a new worktree from the same folder is a real change, not a no-op. For a workspace-less quick chat, attach a workspace only to modify its files or run commands requiring its project environment; not for self-contained scratch work on attachments, pasted/generated content, or throwaway/exportable artifacts. Other chats keep their workspaces. Set `isolation` to true for a new managed Git worktree or false to use the selected folder directly; files are not moved or copied to the selected folder. Immediately before every call, use the available user-input tool to ask one question confirming both workspace and isolation, even if already specified; tool approval is not confirmation. Make this the turn's final tool call and end the turn; the host changes the workspace and continues the original task automatically. Do not repeat the request.| Parameter | Type | Description |
|---|---|---|
| isolation * | boolean | Whether to create an isolated Git worktree and use it as the workspace. Include this choice in the required user confirmation immediately before calling this tool. |
| workspaceFolder * | string | Absolute local folder path or file URI to set as the current chat's workspace. Use an exact path from the user or `list_sessions`; do not guess. |
Security checks
6 checks have not been run yet.