You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
adf context --files: route modules from the file's own path tokens #442
area:adfADF parser/bundler/patcher packageenhancementNew feature or requestepic:preflightPreflight answer: make every AI agent want Charter's governancepriority:p1Should ship this cycletype:featureNew capability or extension point
Agents think in files ("I'm about to edit X"), but routing only works on task words. filePathToKeywords (adf-context.ts:26-48) maps only generic extensions and directory names (tsx, api, auth, ...) and never uses the path's own tokens. charter adf context --files packages/adf/src/manifest.ts resolves only core.adf, state.adf.
In the review, 2 of 4 natural phrasings of "change how ADF modules are selected" also missed adf-dev.adf, so a file seed is the more reliable signal, for every agent and vendor.
Proposed
Split the path into tokens (packages/adf/src/manifest.ts → adf, manifest, ...), drop generic segments (packages, src, lib, index, extensions), and feed the rest to the existing trigger matcher alongside the current signals.
Simulated with today's --keywords (review, pinned 5412100):
File
Routed module
packages/adf/src/manifest.ts
adf-dev.adf
packages/cli/src/commands/adf-migrate.ts
adf-dev.adf
packages/cli/src/commands/validate.ts
governance.adf
packages/blast/src/index.ts
analysis.adf
serve.ts, context-refresh.ts, ci.yml
Defaults only (no module covers them, which is correct)
area:adfADF parser/bundler/patcher packageenhancementNew feature or requestepic:preflightPreflight answer: make every AI agent want Charter's governancepriority:p1Should ship this cycletype:featureNew capability or extension point
Activity
fix(cli): relativize --files paths before deriving path tokens
fix(cli): take every --files signal from the repo-relative path
feat(cli): preflight answer, first slice (#447) (#455)