Skip to content
Merged
Show file tree
Hide file tree
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
25 changes: 25 additions & 0 deletions evals/cli_help_delegation.eval.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { describe, expect } from 'vitest';
import { evalTest } from './test-helper.js';

describe('CliHelpAgent Delegation', () => {
evalTest('USUALLY_PASSES', {
name: 'should delegate to cli_help agent for subagent creation questions',
params: {
settings: {
experimental: {
enableAgents: true,
},
},
},
prompt: 'Help me create a subagent in this project',
timeout: 60000,
assert: async (rig, _result) => {
const toolLogs = rig.readToolLogs();
const toolCallIndex = toolLogs.findIndex(
(log) => log.toolRequest.name === 'cli_help',
);
expect(toolCallIndex).toBeGreaterThan(-1);
expect(toolCallIndex).toBeLessThan(5); // Called within first 5 turns
},
});
});
2 changes: 1 addition & 1 deletion packages/core/src/agents/cli-help-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const CliHelpAgent = (
kind: 'local',
displayName: 'CLI Help Agent',
description:
'Specialized in answering questions about how users use you, (Gemini CLI): features, documentation, and current runtime configuration.',
'Specialized agent for answering questions about the Gemini CLI application. Invoke this agent for questions regarding CLI features, configuration schemas (e.g., policies), or instructions on how to create custom subagents. It queries internal documentation to provide accurate usage guidance.',
Comment thread
abhipatel12 marked this conversation as resolved.
inputConfig: {
inputSchema: {
type: 'object',
Expand Down
Loading