r/coding • • Apr 28 '26

@agent — inline annotations to make cross-project relationships explicit for AI agents

https://github.com/codebasedlearning/agent-annotations-spec.git
0 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/Pretty-Skill925 Apr 28 '26

Yes, you’re right. Both spelling errors and misattributed contextual relationships are a problem that such an agent might either recognize, ignore, or misinterpret. To put this problem into perspective, however, I’d like to briefly highlight the initial situation I’ve observed in many projects. Agents are now being deployed not only in new projects but also in large existing ones for all kinds of tasks, from bug fixing to feature implementation. And they work on the codebase they find, figuring out the context from the structure and the code (and the comments) themselves — hopefully. Then they implement the assigned tasks, and only in an ideal world is the code reviewed in its entirety. If my tests run, that’s already half the battle, so my observation goes.

My primary goal with this approach was to provide some assistance so that it becomes easier for the agent to grasp the big picture. Especially when the codebase uses different technologies or relations are implicit. In doing so, I chose the simplest and most loosely coupled option in code, grouping/naming the relationships (<ident>) as well as characterizing the type (<command>). And in doing so, I take the risk that the information/tag might be incorrect/misspelled. That was my assessment. Maybe it won't turn out to be such a smart move... we'll see.