You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
- Added "Provide Context for New Libraries" to Coding section
- Added "Ask the Agent to Review Its Own Code" to Testing & QA section
- Added "One Writes, Another Reviews" to Testing & QA section
- Added "Edit Code in the Diff" to Testing & QA section
- Added "Start Cheap, Escalate When Stuck" to Cross-Stage Techniques section
- Added "Use Strong Emphasis in Prompts" to Cross-Stage Techniques section
## Test plan
- [x] Verified all new techniques are unique and not duplicated
- [x] Maintained consistent formatting with existing content
- [x] Placed techniques in appropriate sections based on their scope
- [x] Included supporting quotes and author attributions
Copy file name to clipboardExpand all lines: README.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,13 @@ Delegate boring, systematic, and time-consuming tasks to AI - from small variabl
169
169
> "The best example I've found for the agent was migrating a huge app from one UI library to another. It's not hard work, but it takes a huge amount of time and is completely uninteresting."
170
170
> — [Between the Prompts](https://betweentheprompts.com/design-partner/#:~:text=The%20best%20example%20I%27ve%20found%20for%20the%20agent%20was%20migrating%20a%20huge%20app%20from%20one%20UI%20library%20to%20another.%20It%27s%20not%20hard%20work%2C%20but%20it%20takes%20a%20huge%20amount%20of%20time%20and%20is%20completely%20uninteresting.)
171
171
172
+
### Provide Context for New Libraries
173
+
174
+
When using libraries outside the AI's training data, feed it recent examples and documentation to teach it how the library works.
175
+
176
+
> "LLMs can still help you work with libraries that exist outside their training data, but you need to put in more work—you'll need to feed them recent examples of how those libraries should be used as part of your prompt."
Give AI extremely precise, detailed instructions like you would to an intern - provide exact function signatures and let it handle implementation.
@@ -218,6 +225,27 @@ Have AI write comprehensive tests based on expected behavior, then iterate on im
218
225
> "Ask Claude to write tests based on expected input/output pairs. Be explicit about the fact that you're doing test-driven development so that it avoids creating mock implementations, even for functionality that doesn't exist yet in the codebase. Tell Claude to run the tests and confirm they fail. Ask Claude to commit the tests when you're satisfied with them. Ask Claude to write code that passes the tests, instructing it not to modify the tests."
Have one agent write code, then use a fresh agent to review and find problems.
238
+
239
+
> "Use Claude to write code. Run `/clear` or start a second Claude in another terminal. Have the second Claude review the first Claude's work. Start another Claude (or `/clear` again) to read both the code and review feedback. Have this Claude edit the code based on the feedback. This separation often yields better results than having a single Claude handle everything."
Review changes in diff view and type corrections directly into the diff before committing.
245
+
246
+
> "I manually review all AI-written code and test cases. I'll add test cases for anything I think is missing or needs improvement, either manually or by asking the LLM to write those cases (which I then review)."
@@ -251,13 +279,27 @@ Create tools that respond quickly, provide clear error messages, and protect aga
251
279
> "Tools need to be fast. The quicker they respond (and the less useless output they produce) the better. Crashes are tolerable; hangs are problematic. Tools need to be user friendly! Tools must clearly inform agents of misuse or errors to ensure forward progress. Tools need to be protected against an LLM chaos monkey using them completely wrong. There is no such thing as user error or undefined behavior!"
Begin with faster/cheaper models for routine tasks, then escalate to more powerful models only when you hit complex problems.
285
+
286
+
> "Sonnet 4 handles 90% of tasks effectively. Switch to Opus when Sonnet gets stuck. Recommend starting with Sonnet and providing comprehensive context."
Reset the AI's context window between unrelated tasks to prevent confusion and improve performance on new problems.
257
292
258
293
> "During long sessions, Claude's context window can fill with irrelevant conversation, file contents, and commands. This can reduce performance and sometimes distract Claude. Use the `/clear` command frequently between tasks to reset the context window."
Use IMPORTANT, NEVER, ALWAYS liberally in prompts to steer AI away from common mistakes - it's still the most effective approach.
299
+
300
+
> "Unfortunately CC is no better when it comes to asking the model to not do something. IMPORTANT, VERY IMPORTANT, NEVER and ALWAYS seem to be the best way to steer the model away from landmines. I expect the models to get more steerable in the future and avoid this ugliness. But for now, CC uses this liberally, and so should you."
301
+
> — [Vivek (MinusX AI Team)](https://minusx.ai/blog/decoding-claude-code/#:~:text=Unfortunately%20CC%20is%20no%20better)
302
+
261
303
### Interrupt and Redirect Often
262
304
263
305
Don't let AI go too far down the wrong path - interrupt, provide feedback, and redirect as soon as you notice issues.
0 commit comments