Skip to content

feat(pipeline): support executor subagents for non-CLI targets#804

Merged
christso merged 4 commits intomainfrom
feat/797-executor-subagent-mode
Mar 28, 2026
Merged

feat(pipeline): support executor subagents for non-CLI targets#804
christso merged 4 commits intomainfrom
feat/797-executor-subagent-mode

Conversation

@christso
Copy link
Copy Markdown
Collaborator

Summary

  • Add subagent_mode_allowed field to target definitions in targets.yaml
  • Non-CLI providers (openai, claude, copilot, etc.) default to executor subagent mode; set subagent_mode_allowed: false to force CLI invocation
  • Extract ResolvedTargetBase interface to reduce duplication in the ResolvedTarget union type
  • Update pipeline input to write invoke.json kind and manifest.json based on provider + flag

Closes #797

Test plan

  • All 1610 existing tests pass (1194 core + 63 eval + 353 cli)
  • TypeScript typecheck passes
  • Biome lint passes
  • Manual verification: run agentv pipeline input with CLI and non-CLI targets, verify invoke.json output

🤖 Generated with Claude Code

christso and others added 2 commits March 28, 2026 06:12
Add subagent_mode_allowed field to target definitions so non-CLI providers
(openai, claude, copilot, etc.) can be executed via executor subagents in
subagent mode. CLI providers always use CLI invocation. Non-CLI providers
default to agent mode unless subagent_mode_allowed: false is set in
targets.yaml.

- Add subagent_mode_allowed to BASE_TARGET_SCHEMA and ResolvedTarget
- Extract ResolvedTargetBase interface to reduce duplication in union type
- Update pipeline input to write invoke.json kind based on provider + flag
- Include subagent_mode_allowed in manifest.json target info

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 28, 2026

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2cb501a
Status: ✅  Deploy successful!
Preview URL: https://376468be.agentv.pages.dev
Branch Preview URL: https://feat-797-executor-subagent-m.agentv.pages.dev

View logs

christso and others added 2 commits March 28, 2026 06:27
Without this, the validator warns about unknown property and the field
gets ignored during target resolution.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Extract COMMON_TARGET_SETTINGS array from targets.ts and import it in
targets-validator.ts. Adding a new cross-provider field to the schema
now automatically makes it valid in the validator — no separate update.

Also add security comment on resolveOptionalString explaining why
literal values are rejected by default (prevents plaintext secrets in
targets.yaml).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@christso christso merged commit 89b6e91 into main Mar 28, 2026
2 checks passed
@christso christso deleted the feat/797-executor-subagent-mode branch March 28, 2026 08:07
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.

feat: agent mode should support agent targets

1 participant