API Reference¶
CLI argument types, serialization helpers, and command entry points.
Argument types¶
-
class agentgrep.FindArgs¶class agentgrep.FindArgs¶
Bases:
objectTyped arguments for
agentgrep find.fd-shaped:
pattern_modedefaults to regex like fd does.-Fselects literal-substring (which was the previous default before the fd alignment landed);-gselects glob;--exactselects exact adapter_id matching.type_filterconstrains by record kind;extensionsrestricts to paths with matching suffixes.
Serialization¶
-
agentgrep.serialize_search_record(record)¶agentgrep.serialize_search_record(record)¶
Serialize a search record to a JSON-compatible mapping.
- Parameters:
record (
SearchRecord)- Return type:
SearchRecordPayload
-
agentgrep.serialize_find_record(record)¶agentgrep.serialize_find_record(record)¶
Serialize a find record to a JSON-compatible mapping.
- Parameters:
record (
FindRecord)- Return type:
FindRecordPayload
-
agentgrep.serialize_source_handle(source)¶agentgrep.serialize_source_handle(source)¶
Serialize a source handle to a JSON-compatible mapping.
- Parameters:
source (
SourceHandle)- Return type:
SourceHandlePayload
Entry points¶
-
agentgrep.run_find_command(args)¶agentgrep.run_find_command(args)¶
Execute
agentgrep find.Routes through either the live streaming path (
stream_find_results(), used for text / NDJSON /--print0) or the eager list path (print_find_results(), used for--jsonand--list-details). See_find_path_is_eager()for the routing decision.The
--uioverlay translates the find filters into aSearchQueryseeded with the same agent / type narrowing, then opens the Textual explorer. This mirrors thetigmodel: same query semantics, different presentation.