Repository navigation
feat(hermes_agent): give Hermes the task's own MCP servers and skills - #6865
Draft
giuliolovisotto wants to merge 1 commit into
Draft
giuliolovisotto wants to merge 1 commit into
giuliolovisotto wants to merge 1 commit into
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
giuliolovisotto
force-pushed
the
glovisotto/hermes-task-tools
branch
from
November 30, 2026 10:53
dfaa24f to
ccd6de5
Compare
giuliolovisotto
force-pushed
the
glovisotto/hermes-task-tools
branch
from
November 30, 2026 11:47
ccd6de5 to
7314348
Compare
A Harbor task can declare `[[environment.mcp_servers]]` and `skills_dir`. The `harbor` environment server leaves them in `/tmp/.nemo-gym/task.json` and refuses the task to a harness that does not declare `supports_task_tool_context`, so Hermes could not take such a task: two of the 66 Terminal-Bench 4.1 tasks. A Hermes session now reads that file at seed and declares the capability. Each MCP server of the task is added to the session's Hermes configuration as a required server (a URL over streamable HTTP, or SSE when the task says so; stdio started by Hermes in the sandbox) and checked by the worker like a required grant. `skills_dir` is added to `skills.external_dirs`. A declaration Hermes cannot be given refuses the seed, and a file that cannot be read fails it, rather than run the task without its tools. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Giulio Lovisotto <glovisotto@nvidia.com>
giuliolovisotto
force-pushed
the
glovisotto/hermes-task-tools
branch
from
November 30, 2026 13:52
7314348 to
7c2d239
Compare
This branch has not been deployed
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.
What does this PR do?
Lets Hermes take a Harbor task that declares tools of its own.
A Harbor task can declare
[[environment.mcp_servers]]andskills_dir. Theharborenvironment server leaves them in/tmp/.nemo-gym/task.jsonin the agent's sandbox and refuses the task to a harness that does not declaresupports_task_tool_context. Hermes did not, so it could not take such a task: two of the 66 Terminal-Bench 4.1 tasks.A borrowed-sandbox Hermes session now reads that file at seed and declares the capability:
urlserver over streamable HTTP, or SSE when the task says so; astdioserver started by Hermes in the sandbox. It is required and checked by the worker like a required grant. A server that a grant already names keeps the grant's connection.skills_diris added toskills.external_dirs; with a restricted toolset list the task's servers and theskillstoolset are enabled for that session.skills_dir) refuses the seed. A file that cannot be read fails the seed, rather than run the task without its tools.No issue linked: the gap is described here.
Validation
Run on macOS:
pytest responses_api_agents/hermes_agent/tests, run together with the OpenCode tests andtests/unit_tests/data/tasks/harbor/test_harbor_entries.pyon the top branch of this stack, which contains this commit: 1574 passed, 152 skipped.tests/test_task_tool_context.py(15 cases) andtask_context.py: the mapping of a declaration to Hermesmcp_serversentries andskills.external_dirs, the required-server list of the worker payload, the seed refusals, and the unreadable file.tests/test_app.pycount the sandbox commands at seed; they now include the read of the file.ruff checkandruff format --checkonresponses_api_agents/hermes_agent: clean.Rollouts
A six-task run of Terminal-Bench 4.1 on the Harbor environment server (the two tasks that declare tools among them, 30-minute agent limit): all six seeded and graded, no failures. In
medical-claims-processingthe task's Playwright server connected (the worker's required-server check passed) and its tools were in the model's tool list; incumulative-layout-shiftthe skills toolset was enabled and the task'sSKILL.mdcontent reached the model. Full 63-task runs are in progress.Compatibility and benchmark impact
None for a task without declarations: the seed runs one more sandbox command and the Hermes configuration is unchanged. A Harbor task with declarations is no longer refused to Hermes.
Checklist
pre-commit run --all-files) (so CI lint/format checks pass). Onlyruff checkandruff format --checkwere run on the changed packages.git commit -s) (so the DCO check passes).🤖 Generated with Claude Code