How to write agent rules?

Hi @Jiuka,
I would like to extend my question: now I’m writing an extension that needs to deploy a special binary that gets called by the actual agent plugin. I’ve copied the binary to local/share/check_mk/agents/bin as this sounds reasonable to me. Now I suppose I have to mention it in my bakery plugin. How would I do this?
Carsten

Note: actually I have another topic for this question: Plugin development: were to put additional binaries
But it contains much less context and reflects an older knowlege level of myself.