Skip to content

Claude keeps getting stuck adding minimal hardcoded implementations #60

@cahaseler

Description

@cahaseler

Maybe this is just me and Claude missing something fundamental about TDD, but I can't figure out the answer.

I'm trying to implement a function that calls the OpenAI API. We write a test with an example input and output. It fails. Claude tries to implement with AI, TDD says no, you're overengineering, just return minimal code. Claude hardcodes the exact response we expect. Tests pass. Claude tries to implement with AI. No, can't edit until you've made another failing test. Add a second test case. Test fails. Try to implement with AI. No, overengineering, just create a minimal response. Claude hardcodes a different response. Repeat forever?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions