1Password used AI agents to help refactor a massive codebase. The project taught us several lessons about where agents are useful and where they fall short at each stage of the process.