You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: claude-code trials always fail in Tier 3 local mode (agent prompt is dropped) #245
In --env-mode local, every claude-code trial exits right away with:
Error: Input must be provided either through stdin or as a prompt argument when using --print
so no attempt is scored and the run ends as INCOMPLETE.
Harbor's claude-code agent passes the task prompt in an env var named HARBOR_CLAUDE_CODE_INSTRUCTION_<hex> (harbor 0.24.0, agents/installed/claude_code.py:1944). In local mode, SkillEvaluatorLocalEnvironment._filter_command_env removes every HARBOR_* command env var except HARBOR_DECLARED_PORTS (src/skillevaluator/tier3/harbor/local_environment.py:1673), so the prompt never reaches claude --print.
Expected: the agent gets its prompt and the trial is scored. Harbor path variables like HARBOR_WORKSPACE_DIR should still be filtered.
codex and opencode are not affected as far as I can tell, since Harbor puts their prompt directly on the command line. I only ran claude-code.
Same filter as #132, but a different variable, and it still happens on current main.
I have a small fix with regression tests and can open a PR.
Reproduction steps
Create a minimal skill:
repro-skill/SKILL.md
---
name: repro-skill
description: Answers argparse questions. Use when asked about argparse.
---
# repro-skill
Answer the question in two lines.
repro-skill/evals/evals.json
{"skill_name": "repro-skill", "evals": [{"id": "q1",
"prompt": "What does nargs='?' mean in argparse?",
"expected_output": "Zero or one value; const when the flag has no value."}]}
Run (with ANTHROPIC_API_KEY set and SKILL_EVAL_LLM_PROVIDER=anthropic):
Ubuntu Linux (kernel 6.8), Python 3.12.13, installed from source with pip install -e ".[all]", harbor 0.24.0, Claude Code 2.1.312, bubblewrap sandbox. Judge: anthropic provider with an API key. Docker mode not tested.
Activity
psvaggelis commentedon Oct 29, 2026
Confirmed fixed on my side. Same machine, same skill, claude-code in
--env-mode local(Harbor 0.24.0, Claude Code 2.1.312):d9fa4b4(before fix(tier3): preserve local Claude Code instruction variables #252): INCOMPLETE, 0/2 scored, both trials fail withInput must be provided3d6a63a(with fix(tier3): preserve local Claude Code instruction variables #252): completes, 2/2 scoredThanks for the quick fix.