Urgent.News

What's breaking now, across thousands of outlets.

AI

Give Your Coding Agent Eyes

Every coding-agent session starts blind: your agent rediscovers how your features work, and sometimes guesses wrong. AGENTS.md is the usual fix, but it loads every fact into every session — too thin to answer real questions, or too fat to afford. So give the agent a catalog instead. Each feature in your project gets one small note. At startup the agent loads only a table of paths and descriptions…

Coding agents usually start blind when a new session begins, requiring them to rediscover how features work. The AGENTS.md file is typically used to load all relevant information into each session, but it can be too sparse or too resource-intensive. A better approach is to use a catalog system where each feature in the project has a small note associated with it.

At startup, the agent loads only a table of paths and descriptions for each feature, without loading the actual content. When the agent encounters a task that matches a feature's description, it then reads the corresponding note for more details. The catalog needs to be regenerated periodically, such as every 20 commits or at the end of each sprint, to ensure it remains up-to-date with the current codebase.

The agent receives contextual information from a pi extension called pi-context, which hooks into the agent's startup routine. This extension walks up from the current working directory to find the project root via AGENTS.md or CLAUDE.md files, recursively scans directories for Markdown files, and keeps only those with a description frontmatter field. The catalog is then formatted and injected into the system prompt.

Each note in the catalog is organized by feature and limited to around 5 KB in size. The description acts as a trigger condition, determining when the agent should load the note based on the task at hand. This approach minimizes the amount of information the agent needs to process and allows for efficient retrieval of relevant information when needed.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Backtest 63.7%, production AUC 0.51 - a postmortem

Originally published at nbaproplab.com/learn/model-postmortem . A model that looks excellent offline and random in production is usually blamed on the serving code.

  • Model achieved 63.7% hit rate and 0.56 AUC in offline testing
  • Performance degraded to coin flip (AUC of 0.51) in production
  • Missing calibration snapshot caused train-serve mismatch

More from Saturday 5 September →