Catalog-Based Context System Helps Coding Agents Load Only Relevant Code Notes
A developer has proposed replacing the all-or-nothing AGENTS.md approach for AI coding agents with a lightweight catalog system called pi-context. Instead of loading all project documentation at session start, the agent receives only a table of file paths and short trigger-style descriptions, then selectively reads individual notes when their description matches the current task. Each feature in a project gets its own small markdown note stored in a dedicated folder, and the catalog is regenerated every 20 commits or at sprint end to stay current with the codebase. The system uses a strict description format — phrases like 'Load when working on…' rather than summaries — so the language model can make precise, reliable decisions about which notes to pull. The author reports that indexing 20 features costs roughly 300 tokens at startup, making the approach significantly more token-efficient than loading full documentation into every session.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in