Skip to content

grep tool with output_mode Anthropic like #698

@srtab

Description

@srtab

Anthropic Claude Code grep tool has a parameter called output_mode that allow the model choose the kind of output is more effective for the task. It support three types "files_with_matches", "content" and "count".

For now, DAIV grep tool only support one output_mode: "files_with_matches". This is ok for the most of the tasks DAIV deal, but some of them could be optimized and save some tokens. For instance: count output mode is useful when a task includes counting occurrences, the llm don't need to read the files to count.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions