Repository navigation
feat(sdk): let Agent Profiles select public skills, read them locally and use the global critic key - #5981
Merged
Conversation
- OpenHandsAgentProfile.public_skills: null = every public-catalog skill (unchanged behavior), [] = none, a list = only those names. User and project skills are unaffected and disabled_skills still applies. - LaunchStores.public_skill_names names the public tier; the agent-server derives it from the same public and user loaders as the catalog, so a user skill shadowing a public one stays a user skill. - EXTENSIONS_PATH reads public skills from a local copy of the extensions repository, such as an installed @openhands/extensions package, instead of cloning it. - /server_info reports profile_public_skills_v1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
REST API breakage checks (OpenAPI) — ✅ PASSEDResult: ✅ PASSED |
7 tasks
Contributor
Coverage Report •
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A profile stays secret-free, so the critic key saved in the server's global verification settings now reaches every OpenHands profile launch through LaunchStores.critic_api_key, instead of the critic falling back to the LLM key. It is applied at resolve time, so a Docker host forwards it encrypted to the conversation container, and materialize keeps redacting it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
simonrosenberg
marked this pull request as ready for review
October 14, 2026 10:11
all-hands-bot
approved these changes
Oct 14, 2026
all-hands-bot
left a comment
Collaborator
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
APPROVE — feat(sdk): let Agent Profiles select public skills, read them locally and use the global critic key
Reviewed head 37110ec7b25f19b30125ff666a5edbf80e72e66b. All check runs completed with no failures (sdk-tests, agent-server-tests, tools-tests, cross-tests, integration-test, pre-commit, OpenAPI/REST breakage, endpoint-audit, validate-acp-providers, windows/macos binary builds, security).
What I verified against the diff:
public_skillssemantics._select_skillstreatsnullas the whole catalog,[]as none, and a list as an allow-list applied only to the public tier; a name absent from the catalog is a no-op, so the #4017 no-dangle property is preserved.disabled_skillsstill applies to every tier.- Tier separation is sound.
discover_public_skill_namescomputespublic_names - user_namesover the sameload_available_skillsloaders, so a user skill that shadows a public one stays user-tier, andkeep()keeps non-public skills unless explicitly denied. Covered bytest_a_user_skill_shadowing_a_public_one_is_not_publicand the tiered cases intest_resolve.py/test_resolver.py. - Critic key. The value comes from the server's global verification settings via
LaunchStores.critic_api_key, never from the profile (ProfileVerificationSettingsstays secret-free). It reaches the resolved agent and the in-container launch, andtest_the_global_critic_key_reaches_profile_launches_but_no_responseasserts it appears in neither the forwarded payload nor the materialize response.test_field_ownership.pywas extended with aStoresowner so this is enforced structurally. EXTENSIONS_PATH._local_public_skills_pathreturns a path only for the defaultPUBLIC_SKILLS_REPO, so a customrepo_urlkeeps cloning; the cache key includes the local path. Both branches are tested.- Contract surface. The REST change is additive and optional (
public_skillsonOpenHandsAgentProfileandAgentProfileDiagnostics), plus theprofile_public_skills_v1capability, and preview/dry-run apply the same selection as the real launch.
The clients/typescript models are not updated; the PR states this explicitly and those hand-written profile models already lag main, so I do not treat it as a blocking gap here.
No material correctness, security, compatibility, or acceptance-criterion defect found.
This was referenced Oct 14, 2026
Open
This was referenced Oct 16, 2026
2 of 13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HUMAN:
Needed so Agent Canvas can launch its
defaultprofile by id (OpenHands/OpenHands#17991). I checked it end to end on my machine with Canvasdev:minimaland the mock LLM: an inlinedefaultlaunch and the same profile launched by id gave the model the same skills and tools. The global critic key now also reaches profile launches.AGENT:
Why
Agent Canvas still launches its seeded
defaultprofile from inlineagent_settings, because a profile launch cannot express Canvas's skill selection (OpenHands/OpenHands#17991). Canvas allow-lists public-catalog skills and deny-lists user and project skills. A profile launch keeps the server's whole catalog minus a deny-list, and that catalog is a clone ofextensions@mainrather than the package Canvas ships.Measured on
mainwith the Canvas mock LLM: inlinedefaultgets 17 skills, and an identical profile launched by id gets 72.Summary
OpenHandsAgentProfile.public_skills:nullkeeps every public-catalog skill, as today;[]keeps none; a list keeps only those names, and unknown names are ignored. User and project skills are unaffected, anddisabled_skillsstill applies to everything.LaunchStores.public_skill_namestells the resolver which catalog skills are public. The agent-server derives it from the same loaders as the catalog, so a user skill that shadows a public one stays a user skill. It is read only for a profile that setspublic_skills. Materialize, preview and the legacyresolve_agent_profile/ dry-run apply the same selection.EXTENSIONS_PATHmakesload_public_skills()read a local copy of the extensions repository, such as an installed@openhands/extensionspackage, instead of cloning it. A customrepo_urlis unaffected.LaunchStores.critic_api_key. Before, the critic fell back to the LLM key. Profiles stay secret-free. The key is applied when the profile is resolved, so a Docker host forwards it encrypted to the conversation container. Materialize still redacts it./server_inforeportsprofile_public_skills_v1.A skill a single launch adds, such as one invoked by slash command, already rides
agent_launch_additions.skillsfrom #4960.REST API contract changes
Compared with base OpenAPI
c3ecd82c7807for public/api/**paths.Issue Number
Closes #5980
How to Test
Unit tests: the new cases cover tier filtering,
null/[]/list, user shadowing, the dry-run and preview reports, the server launch with and withoutagent_launch_additions.skills, andEXTENSIONS_PATHwith and without a custom repository. For the critic key, a server test saves it globally and launches a profile. It checks that the key reaches the resolved agent and the container side of a Docker hand-off, and that it appears in neither the forwarded payload nor the materialize response. That test fails when the server stops passing the key.That command fails the same 18 macOS-environment tests on this branch and on
main(6e7a8532e), and nothing else. 4,518 pass on the branch.End to end, I ran Agent Canvas
dev:minimalwithOH_AGENT_SERVER_LOCAL_PATHset to this branch andEXTENSIONS_PATHset to Canvas's installed@openhands/extensions0.30.0, using the Canvas mock LLM. For each case:default, sent as inlineagent_settings.public_skillsto the Skills page allow-list anddisabled_skillsto its user deny-list. B is launched byagent_profile_id, with A's suffix inagent_launch_additions.system_message_suffix_appendand any invoked skill inagent_launch_additions.skills./agent-creator(off by default)The system prompts are identical except that one user skill is listed in a different position. No clone appeared under the server's persistence directory.
Video/Screenshots
API-level change.
Type
Notes
clients/typescriptis not updated. Its hand-written profile models already lagmain.🤖 Generated with Claude Code
🐳 Agent Server images for this PR — GHCR package, pull/run commands, and all pushed tags (click to expand)
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdkpython-node-runtimepython-node-runtimepython-node-runtimegolang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:37110ec-pythonRun
All tags pushed for this build
About Multi-Architecture Support
37110ec-python) is a multi-arch manifest supporting both amd64 and arm6437110ec-python-amd64) are also available if needed