Skip to main content

Module agents_md_parser

Module agents_md_parser 

Source
Expand description

AGENTS.md Parser

This module provides functionality to parse AGENTS.md files and inject their content into system prompts. It supports:

  • Searching for AGENTS.md in project root and .kiro directory
  • Parsing markdown content and extracting instructions
  • Extracting file references from markdown links
  • Injecting parsed content into system prompts

§Example

use aster::context::agents_md_parser::AgentsMdParser;

let config = AgentsMdParser::parse("/path/to/project").await?;
if let Some(config) = config {
    println!("Found AGENTS.md with {} file references", config.files.len());
}

Structs§

AgentsMdParser
AGENTS.md parser for extracting project-specific instructions.