Expand description
Repository context, ported for parity with wcgw’s repo_context.py.
The flow mirrors wcgw exactly:
- Walk the workspace (gitignore-aware) collecting candidate files.
- For git repos, pull recently-changed files from history (topological).
- Rank every file with the embedded path-probability model.
- Build the shown set: active files first, then recent git files, then the statistically-ranked remainder, up to a size that scales with the repo.
- Render it as a partially-expanded directory tree.
Functions§
- get_
repo_ context - Build the workspace context string and the list of shown files.