use correct Agent API for patch. Add __init__ file.