Skip to main content

Module environment

Module environment 

Source
Expand description

Environment context collector for system prompt injection.

Mirrors Python’s opendev/core/agents/components/prompts/environment.py. Collects git status, tech stack, and project structure at startup, then formats it for inclusion in the system prompt.

Structs§

EnvironmentContext
Collected environment context for system prompt injection.
InstructionFile
A project instruction file discovered from the hierarchy.

Functions§

discover_instruction_files
Discover project instruction files by walking up from working_dir.
resolve_instruction_paths
Resolve config instructions entries (file paths, glob patterns, ~/ paths, URLs) into InstructionFile entries.