Create maintain_agent.cpp