Skip to content

harbor: tasks that declare [environment] skills_dir are refused for Claude Code, Codex and OpenCode #5639

Open

Description

@qiaochuz-nv

Found while running SkillEvaluator's Tier 3 task folders on Gym. Gym cc8991e4 (main, 2026-11-04), Docker sandbox.

Summary. The Harbor environment server refuses a task that declares [environment] skills_dir unless the harness declares supports_task_tool_context; only miniswe_sandboxed_agent and harbor_oracle_agent do. Every task SkillEvaluator's Tier 3 generates declares skills_dir = "/workspace/skills", so none runs on Gym with Claude Code, Codex or OpenCode.

Repro (the failure comes before any model call):

gym dataset init local/repro --root .
# Claude Code refuses workdir "/", so build from an image with a WORKDIR, as SkillEvaluator's tasks do.
sed -i '/^docker_image/d' repro/hello/task.toml
mkdir -p repro/hello/environment
printf 'FROM python:3.12-slim\nWORKDIR /workspace\n' > repro/hello/environment/Dockerfile
sed -i 's|^\[environment\]$|[environment]\nskills_dir = "/workspace/skills"|' repro/hello/task.toml
gym eval run repro --agent claude_code_agent --sandbox docker \
  --model-type openai_model --model unused --model-url http://127.0.0.1:9/v1 --model-api-key unused \
  ++model_endpoint_readiness_timeout_seconds=0 ++anthropic_api_key=unused \
  ++harbor_repro_agent.responses_api_agents.claude_code_agent.claude_code_version=2.1.292

Observed. Exit 76. results/harbor/repro/rollouts_run_summary.json: "status": "failed", failure Task 'hello' declares MCP servers or a skills directory, which the agent 'harbor_repro_agent' does not support (skills_dir); run it with a harness that declares supports_task_tool_context in its seed response. codex_agent and opencode_agent are refused with the same message on SkillEvaluator-generated tasks.

Expected. Claude Code, Codex and OpenCode run a task that ships skills in skills_dir, and each agent discovers them through its native skill mechanism, as Harbor's agents do.

Proposed fix. A supports_task_skills capability in the seed response. Each CLI harness reads the task's skills_dir at seed (/tmp/.nemo-gym/task.json) and copies it to where its runtime discovers skills: Claude Code <CLAUDE_CONFIG_DIR>/skills (and no --bare for that session), Codex <CODEX_HOME>/skills, OpenCode its skills directory with tools.skill = true. The gate in environment_servers/harbor/app.py:1224 then admits a skills-only task for those harnesses.

Removing skills_dir from the task is not an equivalent workaround. The task runs, but the per-session config roots and --bare hide the skills the image installs under /root/..., so the agent finds the skill only by browsing /workspace/skills.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions