Skip to content

feat(pipeline): add --target and --targets flags to pipeline run and pipeline input#1108

Merged
christso merged 3 commits intomainfrom
fix/pipeline-target-flag
Apr 15, 2026
Merged

feat(pipeline): add --target and --targets flags to pipeline run and pipeline input#1108
christso merged 3 commits intomainfrom
fix/pipeline-target-flag

Conversation

@christso
Copy link
Copy Markdown
Collaborator

@christso christso commented Apr 15, 2026

Summary

Adds --target and --targets flags to agentv pipeline run and agentv pipeline input, mirroring the options already available on agentv eval run.

Problem

agentv pipeline run <eval> --target wtalms previously failed with Unknown arguments even though agentv eval run <eval> --target wtalms works fine. This made it impossible to reuse the same eval.yaml across different targets in pipeline mode without duplicating the file.

Changes

Both pipeline run and pipeline input now accept:

  • --target <name> — override the target name from targets.yaml
  • --targets <path> — path to targets.yaml (overrides discovery)

These values are forwarded to selectTarget() via cliTargetName and explicitTargetsPath, the same pathway already used by eval run.

Testing

# Previously failed, now works:
agentv pipeline run evals/ace-search-subset/n1.eval.yaml --target wtalms --grader-type code
agentv pipeline input evals/ace-search-subset/n1.eval.yaml --target wtalms

Closes #1107

…pipeline input

Mirrors the --target / --targets options already available on \�gentv eval run\.
Allows reusing the same eval.yaml across different targets without duplicating files.

Both commands now accept:
  --target <name>    Override target name from targets.yaml
  --targets <path>   Path to targets.yaml (overrides discovery)

These values are forwarded directly to selectTarget() via cliTargetName and
explicitTargetsPath, the same pathway used by eval run.

Fixes #1107
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 15, 2026

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 07b0f83
Status:⚡️  Build in progress...

View logs

@christso christso merged commit 0703e1c into main Apr 15, 2026
3 of 4 checks passed
@christso christso deleted the fix/pipeline-target-flag branch April 15, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pipeline run/input: add --target flag to match eval run

1 participant