AGENT SKILL

software-agent-sdk

Router for using and maintaining the OpenHands Software Agent SDK, including local agents, tools, AgentSkills, agent-server runtimes, GitHub automation, and repository development workflows.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
software-agent-sdk
license
MIT
metadata
{ "disco-role": "operating" }
description
Router for using and maintaining the OpenHands Software Agent SDK, including local agents, tools, AgentSkills, agent-server runtimes, GitHub automation, and repository development workflows.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

OpenHands Software Agent SDK

Use this repo skill when a task involves the OpenHands software-agent-sdk packages or source repository: building code agents, selecting built-in tools, loading AgentSkills/plugins/hooks/MCP, running local or remote conversations, using the agent-server and workspace backends, automating GitHub workflows, or maintaining this monorepo.

The runtime packages are:

  • openhands-sdk: core agent, LLM, conversation, settings, skills, MCP, hooks, plugins, and workspace interfaces.
  • openhands-tools: built-in tool implementations and default presets.
  • openhands-workspace: Docker, Apptainer, cloud, and runtime-API remote workspace implementations.
  • openhands-agent-server: FastAPI REST/WebSocket server for remote conversations, workspace routes, deferred init, and local/hosted runtimes.

First checks

For an installed package environment:

python -m pip install openhands-sdk openhands-tools openhands-workspace openhands-agent-server
python - <<'PY'
import openhands.sdk, openhands.tools, openhands.workspace, openhands.agent_server
print("OpenHands SDK packages import successfully")
PY
python -m openhands.agent_server --help

For a source checkout, run make build before package tests. Use uv run pytest ... and uv run pre-commit run --files <changed-file> for focused validation.

Run scripts/check_env.py for a safe import/tool/server capability report.

Route map

agent-core

Use sub-skills/agent-core/SKILL.md for local SDK agent construction, LLM configuration, Agent, Conversation, LocalConversation, RemoteConversation, callbacks, async/sync execution, persistence, interruption, condensation, settings, security analyzers, and title generation.

Read it when the request mentions LLM, Agent, Conversation, AgentContext as prompt context rather than skill loading mechanics, local runs, remote conversation factory routing, events, metrics, cancellation, or model/provider behavior.

extensions

Use sub-skills/extensions/SKILL.md for AgentSkills, project/user/public skill loading, plugins and marketplaces, hooks, MCP server maps, memory, secrets, prompt suffixes, and other extension points.

Read it when the request mentions SKILL.md, .agents/skills, .openhands/skills, AGENTS.md, load_project_skills, registered_marketplaces, .mcp.json, HookConfig, LookupSecret, or plugin lazy loading.

built-in-tools

Use sub-skills/built-in-tools/SKILL.md for openhands-tools, default tool presets, tool registration, usable-tool filtering, terminal/file-editor/browser/task/workflow/grep/glob/planning/delegate/TOM tools, custom tool classes, and sub-agent tool wiring.

Read it when the request asks which tool names to use, how to register or resolve tools, how browser availability is detected, how workflow scripts work, or why a tool is missing from /server_info.

remote-runtime

Use sub-skills/remote-runtime/SKILL.md for openhands-agent-server, REST/WebSocket routes, RemoteWorkspace, Workspace(host=...), Docker/Apptainer/API/cloud workspaces, deferred init, session API keys, custom tool import modules, and local server helpers.

Read it when the request mentions python -m openhands.agent_server, /api/conversations, /api/init, X-Session-API-Key, WebSockets, Docker workspace images, OH_EXTRA_PYTHON_PATH, or warm-pool/dormant server behavior.

github-automation

Use sub-skills/github-automation/SKILL.md for SDK-powered GitHub Actions examples, prompt-driven task runners, TODO scanning, examples-report rendering, and automation scripts that run agents from CI.

Read it when the request involves GitHub workflow YAML, PROMPT_STRING, prompt files/URLs, LLM_API_KEY, automated TODO management, routine maintenance actions, PR automation, or example-run summaries.

repo-development

Use sub-skills/repo-development/SKILL.md for maintaining this monorepo: package boundaries, import rules, tool registration linting, settings compatibility, SDK/REST API deprecation policy, test selection, examples runner, release PR checks, pre-commit, and CI workflows.

Read it when editing source code, tests, examples, settings models, public APIs, REST routes, tools, workspace backends, Docker image publishing, or repository automation.

Cross-cutting references

Boundary rules for future agents

  • Use this skill as operating guidance; do not import it into live router state unless a user explicitly approves managed import.
  • Runtime guidance is self-contained in this skill tree. Do not require access to the original generation checkout to use it.
  • When maintaining a fresh checkout of software-agent-sdk, confirm current code and nearby AGENTS.md files before editing because repo policies may have changed after the provenance snapshot.
  • Use generated scripts from this skill tree for diagnostics and helper workflows; when editing a live checkout, run that checkout's native tests and scripts from its repository root.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351