repogrammar_context
Find code analogues, explain deviations, and check conformance across repository pattern families. Inspect queryability readiness with bounded, source-free reports.
Instructions
Read-only RepoGrammar pattern-family context. For find_analogues, explain_deviation, and check_conformance, pass the path, symbol/member id, framework role, or pattern question you have; RepoGrammar discovers candidate families internally and returns family ids as follow-up handles. Use show_family only with an exact family id. Use inspect_readiness (no target) for a bounded, source-free capability report: a summary token, per-dimension states (repository, active index, family evidence freshness, prevalence, retrieval, static alignment, providers, autosync, measurement), the top blocking-unknown mechanisms, and one executable recovery action. Add an optional target and/or within (a directory/module scope) to inspect_readiness for a bounded, source-free SCOPED queryability report over just that scope: a summary token, a resolvability verdict, scoped indexing coverage and file count, languages/providers present, resolvable family count, freshness, and one recovery action — with no source-span hydration and no family-query telemetry. Start with compact mode and do not request include_source_spans by default. Use read_plan before editing, and fall back on UNKNOWN/FALLBACK/stale/omitted/insufficient results. Do not run repogrammar stats in normal agent loops. No silent setup; run setup/resync/autosync only when user or project policy permits machine integration and repo-local analysis state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| target | No | ||
| within | No | Optional directory/module scope. Consumed only by inspect_readiness to request a bounded, source-free scoped queryability report over that scope. | |
| against | No | Optional comparison-family scope for explain_deviation and check_conformance: an exact family: id, framework role, or pattern that pins the single comparison family. Omitted, the comparison family is inferred from the target unit's membership or its (language, kind, role) key. Ambiguous or unmatched against abstains with candidate handles; it never false-selects. | |
| operation | Yes | ||
| verbosity | No | Response field density. Additive under product-schemas.v1: `standard` (default) is the current shape, `minimal` opts into the lean shape, `full` retains every diagnostic field. Orthogonal to `mode`. | |
| token_budget | No | ||
| include_exceptions | No | ||
| include_variations | No | ||
| include_source_spans | No | Explicit opt-in for bounded, line-numbered, hash-checked source spans selected from the read_plan. Defaults to false. |