Skip to main content

Module graph_context

Module graph_context 

Source
Expand description

Graph-driven context loading — automatically includes related files based on Property Graph proximity and token budgeting.

Used by ctx_read (task mode) to surface a small, budgeted set of related files (deterministic ordering; no output spam).

Structs§

GraphContext
GraphContextOptions
RelatedFile

Enums§

Relationship

Functions§

build_graph_context
build_related_hint
Lightweight one-line hint of the top related files from the Property Graph. Returns None if no graph is available or no neighbors found.
build_related_paths_csv
Comma-separated repo-relative paths for dependency-cluster hints (e.g. CCP XML).
format_graph_context
graph_neighbor_ranks_for_recent_files
Repo-relative paths (same style as BM25 chunks / property graph) ranked for RRF graph proximity.