Where is AGI implementation?

Where can I find the AGI implementation source files in Asterisk and what is the filename? I have found the ManagerAPI but cant locate the AGI.

Thanks
Gerhard.