r/coding • u/Pretty-Skill925 • 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
View all comments
Show parent comment
1
u/Pretty-Skill925 Apr 28 '26
Fair point. My honest response is: yes, regular comments can carry the same information — nothing in @ agent technically impossible to express in prose. The difference is that @ agent is structured enough to be systematically searchable (grep), uses a shared vocabulary that both humans and agents can recognize, and signals intent unambiguously. A comment saying 'keep this in sync with the Kotlin client' is easy to miss or misinterpret; '@agent sync "error-codes"' is a typed relationship with a named anchor that links two files and two code parts across two languages.
Your argument applies to every annotation system, e.g. '@deprecated' is just a comment, '@param' is just a comment, '# pylint: disable' as well. The value comes from convention and shared interpretation, not from a technical mechanism. @ agent uses the same idea, i.e. a consistent vocabulary used across a codebase. For me it is worth more than ad-hoc prose even if the underlying mechanism is identical.
So, if your codebase has disciplined, consistent prose comments that already capture cross-project relationships, @ agent adds less. It's most valuable where that discipline breaks down (often the case) or it annotates high-risk, non-obvious relationships.
Thanks for your comment – I really appreciate it.