build_agents_md


Description:

public string build_agents_md (string project_path)

Loads AGENTS.md / CLAUDE.md for the system prompt (uncapped).

Order: ~/.local/share/ollmchat/AGENTS.md, then parent dirs from outermost under $HOME to project root. Empty string when nothing found.

Parameters:

project_path

active project path (may be empty)

Returns:

markdown block for {agents_md}, or empty