Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

verify-agent-server

БесплатноБез исполняемых скриптовНе проверен

This skill should be used to "verify Agent Server APIs", "test the REST or WebSocket API like an agent would", "drive the agent-server", "check an API change…

OpenHandsот OpenHands★ 1 439 звёзд на GitHub

Об этом скилле

Verify the Agent Server through its real API

Prove what an API consumer observes, not that a handler returned or CI passed. The consumers are agents and the programs that carry them: the SDK's RemoteConversation/RemoteWorkspace, the TypeScript client, Agent Canvas and automations. Three parts work together:

  1. control-agent-server (scripts/) is the lever. It launches this checkout as an isolated real server (private HOME, persistence dir, config file, session key, secret key, port), and turns every API step into a command you can rerun: REST calls, WebSocket captures, LLM-backed conversations, fixtures, SDK programs.
  2. The feature map (references/feature-map/) lists every agent-facing behavior with stable IDs, the routes each family owns, entry points (REST, WebSocket, SDK and TypeScript client methods), exact control-agent-server recipes, observable results and gotchas.
  3. Evidence: saved request/response exchanges, WebSocket frames, webhook deliveries and program transcripts, plus a pass/fail/blocked/not-run ledger that survives cleanup.

Neither this skill nor the map authorizes external writes, paid models beyond the budget you were given, or product fixes the user did not ask for.

The CLI comes first

Put it on PATH and read its help before anything else:

export PATH="$PWD/.agents/skills/verify-agent-server/scripts:$PATH"
control-agent-server --help              # then: control-agent-server <command> --help

Requirements: make build (or uv sync --dev) in the repository root; the CLI runs on the repository's .venv and needs nothing else. git is needed for fixtures, tmux for bash and terminal tools, and a DeepSeek key for model-backed recipes. Every command prints one JSON object; exit 0 ok, 1 action failed, 2 usage, 3 environment.

In a container whose PID 1 does not reap children, run the entire map run --fresh or test command under a subreaper such as tini -s -- (Docker's docker-init -s -- is also suitable). For manual runs, wrap the shell containing launch, drive and stop; wrapping launch alone exits the supervisor too early. Otherwise exited descendants can remain zombies, causing cleanup checks to mistake them for live work. Keep the original failure evidence and report this environment difference; do not weaken the cleanup assertions.

If an agent-facing path cannot be driven with the CLI, that is a harness gap: extend scripts/control_agent_server.py (document the verb in its --help with examples and in this file), prove it live, then write the recipe. Never work around a gap with an untracked one-off script the next agent cannot rerun. api and ws reach every route, so most gaps are about waiting, fixtures or observing side effects, not about calling an endpoint. Other agents may be running the same script: edit a copy, run its tests and map check, then move it into place in one step.

Launch → doctor → drive → evidence → cleanup

export AGENT_SERVER_VERIFY_RUN=$(control-agent-server launch --new --print-run)
control-agent-server doctor                     # read-only; must be ok before driving
control-agent-server llm preset deepseek        # deepseek-flash (active) + deepseek-pro from $DEEPSEEK_API_KEY,
                                                # or, with $LLM_BASE_URL and $LLM_API_KEY, deepseek-flash through that LiteLLM proxy
CID=$(control-agent-server conversation start --prompt 'Create hello.txt containing hi' --wait --print-id)
control-agent-server conversation events "$CID" --kinds ObservationEvent --contains hello.txt
control-agent-server api GET "/api/conversations/$CID" --expect 200 --save F03.get/after-run
control-agent-server evidence add --feature F03.get --result pass --entry "GET /api/conversations/{id}" \
  --expected "execution_status finished" --actual "finished" --artifact evidence/F03.get/after-run.json
control-agent-server stop                       # stops only this run; evidence stays
  • Which run. Commands use --run DIR (anywhere on the line), else $AGENT_SERVER_VERIFY_RUN, else the only live run. With several live runs they refuse to guess, so export AGENT_SERVER_VERIFY_RUN in every shell when other agents share the machine: an agent that drives someone else's run corrupts both evidence ledgers. Never pkill -f or killall by pattern; control-agent-server stop ends only your run's process groups.
  • Launch runs python -m openhands.agent_server from the checkout in its own process group, with cwd, HOME, OH_PERSISTENCE_DIR, the config file (OPENHANDS_AGENT_SERVER_CONFIG_PATH), tmux dir, worktree root, session key (OH_SESSION_API_KEYS_0) and secret key (OH_SECRET_KEY) all private to the run. The caller's OH_*, LLM and cloud variables are not inherited; pass what a recipe needs with --env K=V or --pass-env NAME. Useful variants: --no-auth (unauthenticat
Полный SKILL.md на GitHub

Установить verify-agent-server в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/adaptation.mdreferences/daily.mdreferences/feature-map/F01-server-status.mdreferences/feature-map/F02-auth-and-sessions.mdreferences/feature-map/F03-deferred-init.mdreferences/feature-map/F04-conversation-lifecycle.mdreferences/feature-map/F05-run-pause-interrupt.mdreferences/feature-map/F06-conversation-events.mdreferences/feature-map/F07-session-socket.mdreferences/feature-map/F08-confirmation-security-secrets.mdreferences/feature-map/F09-model-switching-plugins.mdreferences/feature-map/F10-fork-navigate-condense-ask.mdreferences/feature-map/F11-goals.mdreferences/feature-map/F12-runtime-and-credentials.mdreferences/feature-map/F13-bash.mdreferences/feature-map/F14-files.mdreferences/feature-map/F15-git.mdreferences/feature-map/F16-workspace-serving-and-vscode.mdreferences/feature-map/F17-workspaces-registry.mdreferences/feature-map/F18-settings-and-secrets.mdreferences/feature-map/F19-mcp.mdreferences/feature-map/F20-llm-profiles.mdreferences/feature-map/F21-agent-profiles.mdreferences/feature-map/F22-meta-profiles.mdreferences/feature-map/F23-llm-catalog-and-connections.mdreferences/feature-map/F24-openai-subscription.mdreferences/feature-map/F25-skills.mdreferences/feature-map/F26-plugins.mdreferences/feature-map/F27-hooks-subagents-tools.mdreferences/feature-map/F28-canvas-extensions.mdreferences/feature-map/F29-app-backend-bridge.mdreferences/feature-map/F30-openai-gateway.mdreferences/feature-map/F31-persistence-and-limits.mdreferences/feature-map/F32-webhooks-and-telemetry.mdreferences/feature-map/F33-sdk-remote-client.mdreferences/feature-map/F34-typescript-client.mdreferences/feature-map/F36-projects.mdreferences/feature-map/F37-reactions.mdreferences/feature-map/F38-conversation-mentions.mdreferences/feature-map/F39-message-edits.md

FAQ

Что делает скилл verify-agent-server?

This skill should be used to "verify Agent Server APIs", "test the REST or WebSocket API like an agent would", "drive the agent-server", "check an API change against a real server", "create or update the agent-server feature map", or "run the weekly API audit". Ships control-agent-server (launch, doctor, api, ws, llm, conversations, fixtures, exec, assert, evidence, map) and the maintained map of every agent-facing feature.

Как установить скилл verify-agent-server?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл verify-agent-server запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить verify-agent-server с