feat(agent): Make agent ttl configurable