Start rewriting the agent provider