Replies: 4 comments
-
|
Also just want to say. Amazing little tool, it makes claude code a bit slower, but the output is so much cleaner and things just work in one go. Thanks!!! |
Beta Was this translation helpful? Give feedback.
-
|
Excellent point, this is definitely an area worth exploring! |
Beta Was this translation helpful? Give feedback.
-
|
Hi again! I have started experimenting with this idea and here is what I found:
To my knowledge, we can't modify the agent's todos directly, but we can prompt it to make the changes we want. I had it explicitly state "following strict TDD principles" for development tasks and added explicit refactoring steps. "todos": [
{
"content": "Implement cart add operation following strict TDD principles",
"status": "pending",
"priority": "high",
"id": "1"
},
{
"content": "Refactor cart and tests after implementing add functionality",
"status": "pending",
"priority": "high",
"id": "2"
},
{
"content": "Implement cart remove operation following strict TDD principles",
"status": "pending",
"priority": "high",
"id": "3"
},
{
"content": "Refactor cart and tests after implementing remove functionality",
"status": "pending",
"priority": "high",
"id": "4"
}
]I see two approaches:
Option 2: We implement opt-in functionality that automatically guides the agent when it modifies todos
Option 2 is straightforward to implement: We already listen to todoWrite operations and can respond with guidance to ensure desired structure. The challenges:
Potential solution: Since we already store todos in What are your thoughts on this approach? :) |
Beta Was this translation helpful? Give feedback.
-
|
I would personally go for option 2. I was also thinking that it would have been the similar validation process as with the other hooks. And those sub agents become again another thing to maintain. Think the beauty of this tool is, that it is super easily to implement. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The hook is currently checking the todo list before executing and saving the output, but it is not reinforcing TDD in the to do list. If we would already enforce it on this level, then we would save a lot of back and forth with claude.
Beta Was this translation helpful? Give feedback.
All reactions