Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions apps/cli/src/commands/pipeline/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ export const evalInputCommand = command({
metadata: test.metadata ?? {},
});

// invoke.json — CLI targets get command info; non-CLI targets get agent
// mode unless subagent_mode_allowed: false forces CLI-based evaluation.
// invoke.json — CLI targets get command info; non-CLI targets get agent mode.
// The manifest carries subagent_mode_allowed so consumers (the bench skill)
// can decide whether to dispatch executor subagents or use `agentv eval`.
if (targetInfo) {
await writeJson(join(testDir, 'invoke.json'), {
kind: 'cli',
Expand All @@ -140,20 +141,11 @@ export const evalInputCommand = command({
timeout_ms: targetInfo.timeoutMs,
env: {},
});
} else if (subagentModeAllowed) {
} else {
await writeJson(join(testDir, 'invoke.json'), {
kind: 'agent',
instructions: 'Execute this task in the current workspace. The agent IS the target.',
});
} else {
// Non-CLI provider with subagent_mode_allowed: false — use agentv eval
// CLI runner instead of executor subagents.
await writeJson(join(testDir, 'invoke.json'), {
kind: targetKind,
subagent_mode_allowed: false,
instructions:
'This target has subagent_mode_allowed: false. Use `agentv eval` CLI to run this target.',
});
}

// criteria.md
Expand Down
Loading