@agent-sh/harness-glob
v0.2.0
Published
Glob tool for AI agent harnesses — ripgrep-backed filename pattern search with structured output, pagination, .gitignore respect, and mtime sort
Maintainers
Readme
@agent-sh/harness-glob
File discovery by pattern. Ignore-aware, mtime-sorted, workspace-fenced.
Part of the @agent-sh/harness-* monorepo — see the top-level README for architectural context and the full tool surface.
Install
npm install @agent-sh/harness-globRequires Node ≥ 20.
Usage
import { glob } from "@agent-sh/harness-glob";
const r = await glob(
{ pattern: "**/*.ts", head_limit: 100 },
{ cwd: process.cwd(), permissions: { roots: [process.cwd()], sensitivePatterns: [] } },
);Contract
The full contract — input shape, output discriminated-union, error codes, permission model, and acceptance tests — lives in agent-knowledge/design/glob.md. Changes to this package must stay in sync with that spec.
License
MIT © Avi Fenesh
