TIL 5/27/2026

TIL 5/27/2026

Spin up from FirstDraft Co-pilot. It’s been a while since I’ve done this, so I’ll outline the process. Include devise gem on gemfile bundle install devise gem run rails generate file from co-pilot with users line check generated migration file run rails db:migrate Change config.sign_out_via = :get on the config/initializers/devise.rb file Spin up app, check that /users/sign_up and /users/sign_in screens work.

使用 FirstDraft Co-pilot 启动项目。我已经有一段时间没这么做了,所以我会梳理一下流程:在 Gemfile 中添加 devise gem,运行 bundle install,通过 Co-pilot 生成带有 users 的文件,检查生成的迁移文件,运行 rails db:migrate,将 config/initializers/devise.rb 文件中的 config.sign_out_via 修改为 :get,启动应用,并检查 /users/sign_up 和 /users/sign_in 页面是否正常工作。

First go through was successful I began working off of Claude Code window to help run the rest of the files Files ran, and routes began to be built out, but I learned that tokens ran out quickly because Claude was re-reading the whole file and making changes which is very expensive.

第一次尝试很成功。我开始使用 Claude Code 窗口来协助运行其余文件。文件运行了,路由也开始构建,但我发现 Token 消耗得非常快,因为 Claude 在不断重新读取整个文件并进行修改,这非常昂贵。

Next step was to get claude to recommend a path forward (build out habit route), then leverage first draft study buddy to help me build out that code. New plan of attack - write out as much code using study buddy, build out the basic RCAV functionality by hand Leverage Claude once credits are available to work out bugs.

下一步是让 Claude 推荐后续路径(构建 habit 路由),然后利用 First Draft Study Buddy 协助我编写代码。新的行动计划是:尽可能多地使用 Study Buddy 编写代码,手动构建基础的 RCAV(Route, Controller, Action, View)功能,并在额度可用时利用 Claude 来修复 Bug。