File Summary Instructions¶
Use these maintained surfaces for repository-wide file summaries:
FILES.md: human-readable inventory of tracked repository files.FILES.csv: machine-readable export of the same inventory for scripts and diffs.
Required Workflow¶
- Regenerate both files with
make files-syncoruv run repo-rag sync-file-summaries --root .. - Run that command after tracked file adds, removals, renames, or material role changes.
- Treat
FILES.mdandFILES.csvas generated outputs. Do not hand-edit them. - Keep hooks installed with
make hooks-install; the managed pre-commit hooksync-file-summaries-pre-commitrefreshes the inventory before commit when it drifts. - If the hook rewrites either file, restage the generated files and rerun the commit.
Narrative Summaries¶
- Start repo-wide file summarization from
FILES.mdandFILES.csv, then use the repo-bound utilities such asmake utility-summary,make ask QUESTION="...",make rust-lookup QUERY="...",make ask-dspy QUESTION="...", andmake ask-live QUESTION="..."for higher-level synthesis. - When the question is about exact files, path discovery, or likely local evidence, refresh the
Rust SQLite index with
make rust-lookup-indexand runmake rust-lookup QUERY="..."before escalating tomake ask-dspy. - The inventory generator itself is deterministic and does not require secrets.
- If LM-backed synthesis is needed, source
.envfirst without echoing values:set -a; source .env; set +a. - Expected LM configuration comes from the existing repository environment surfaces:
DSPY_*,AZURE_OPENAI_*, orOPENAI_API_KEY. - Never print secret values from
.env; reference variable names only.
Maintenance Notes¶
- Keep this instruction file aligned with the inventory workflow whenever commands, hook behavior, or environment expectations change.
- If a repo-local file-summary skill is added under
.codex/skills/, keep it aligned with this guide and the repo-nativemake files-sync/repo-rag sync-file-summariessurfaces. - When verification or repo-health reporting is part of the task, also follow
repo-verification-audit-loop. - After each push, follow
post-push-gh-run-logging.