fix: extract CLI wrapper, remove AGENT_EVAL_MODE from .env#800
Merged
Conversation
…EVAL_MODE from .env AGENT_EVAL_MODE was a workflow preference stored alongside API keys in .env — wrong place for non-secret config. Eval mode is now determined by user instruction, defaulting to agent mode. Also deduplicated _find_agentv() / _find_env_key() from three scripts into a shared agentv_cli.py module that handles CLI resolution deterministically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Deploying agentv with
|
| Latest commit: |
a2e2e8c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://afa322ba.agentv.pages.dev |
| Branch Preview URL: | https://fix-move-eval-mode-out-of-en.agentv.pages.dev |
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.
Summary
AGENT_EVAL_MODEfrom.env.example— workflow preferences don't belong with secretsscripts/agentv_cli.pyas a shared deterministic CLI resolver (env var → .env → PATH)_find_agentv()/_find_env_key()fromrun_tests.py,run_code_graders.py,bench.pyagentCloses #799
Test plan
uv run agentv_cli.py eval --helpresolves CLI correctly with/withoutAGENTV_CLIsetuv run run_tests.pystill works (imports from shared module)uv run run_code_graders.pystill worksuv run bench.pystill works🤖 Generated with Claude Code