I have turned Radek's excellent wiki page (https://github.com/matahari/matahari/wiki/How-to-create-agent) into a Git repository you can clone with a test agent you can build. Hopefully this should be a good resource for developers creating their own agents. More improvements will follow, so please feel free to contribute suggestions and/or patches.
You can find the repository here:
https://github.com/matahari/matahari-agent-example
regards, Zane.