Skip to main content

Module context

Module context 

Source

Structs§

AgentContext
Fully assembled agent context for a unit.
DepProvider
Information about a sibling unit that produces an artifact this unit requires.
FileEntry
A file referenced by the unit with its content and structural summary.

Functions§

assemble_agent_context
Assemble full agent context for a unit — the structured data needed to build any output format (text, JSON, agent prompt).
extract_file_structure
Extract a structural summary (signatures, imports) from file content.
format_attempt_notes
Format the attempt_log and notes field into a combined notes string.
load_rules
Load project rules from the configured rules file.
merge_paths
Merge explicit unit.paths with paths regex-extracted from the description. Explicit paths come first, then regex-extracted paths fill gaps.
resolve_dependency_context
Resolve dependency context: find sibling units that produce artifacts this unit requires, and load their descriptions.