* refactor(agent): replace root with index * refactor(agent): use simple export * refactor(agent): replace function with class * refactor(agent): replace promise with async