Skip to main content

Module project_context

Module project_context 

Source
Expand description

Project Context Discovery & Ingestion

Auto-discovers and ingests AI instruction files from the market ecosystem:

  • CLAUDE.md (Claude Code)
  • AGENTS.md (Various AI agents)
  • .cursorrules (Cursor IDE)
  • .github/copilot-instructions.md (GitHub Copilot)
  • .aider.conf.yml (Aider)
  • GEMINI.md (Gemini tools)
  • .windsurfrules (Windsurf IDE)
  • CONVENTIONS.md (General)

Creates a universal AI project context layer with:

  • Parent memory for each file (type: Context)
  • Child memories for each section (linked via cross-references)
  • Idempotent updates based on content hashing
  • Search boost for current project context

Structs§

DiscoveredFile
A discovered instruction file
MarkdownParser
Markdown parser - extracts sections by headings
ParsedInstructions
Parsed instructions from a file
ParsedSection
A parsed section from an instruction file
PlainTextParser
Plain text parser - treats whole file as single section
ProjectContextConfig
Configuration for project context discovery
ProjectContextEngine
Engine for discovering and ingesting project context
ScanResult
Result of a project scan
YamlParser
YAML parser - treats whole file as single section, extracts keys as metadata

Enums§

FileFormat
File format for parsing
InstructionFileType
Type of instruction file

Constants§

CORE_INSTRUCTION_FILES
Known instruction file patterns

Traits§

InstructionFileParser
Trait for parsing instruction files