Skip to content
Français

createHarnessSearchTools

import { createHarnessSearchTools } from "@elie-laloum/outpost/harness";

Create the search toolset: search runs git grep with an extended regular expression over tracked and non-ignored text files and returns path:line:text matches, 200 at most per call. It is read-only and declares its path for permission rules.

Complete example and detailed rules.

  • optionsOptional
    FileSelectionOptions | undefined
    Choose Git-aware or plain-filesystem search.
  • options.selectionOptional
    "git" | "filesystem" | undefined
    Defaults to git for legacy calls; filesystem performs bounded sandbox traversal without Git or .gitignore filtering.

HarnessToolset

export declare function createHarnessSearchTools(
  options?: FileSelectionOptions,
): HarnessToolset;