I have developed a very efficient method that has helped me a lot:
-
Make sure the system has an active Trace (which generates a log of the execution sequence, try/catch wherever possible)
-
Find the resulting trace file and the errors made or recorded by the trace from the last program execution.
-
Select the lines from the log (good and bad), copy them, go to your favorite AI (Sonnet in my case) in your browser, and say:
“I want you to do an in-depth analysis of these log entries and tell me exactly what errors you can identify. Please summarize the critical points, vulnerabilities, and blind spots that you perceive. Keep in mind that I use [your technology (.net, java, etc.)] technology.”
I know there is no enough context, but wait... (that is the trick...)
4 Then take the final summary with the recommendations, select only the recommendations (not all only the recommendations), copy the lines, and paste them. (even it would sound “weird” or “alucinations” and again, I say just wait….)
5 Go to Cursor Editor in your project, and chat:
"I want you to do an in-depth analysis of this other analysis, determine its consistency, validation, and degree of effectiveness.
Identify possible vulnerabilities not considered or blind spots:"
<Paste the lines here>
(Ask: “Sonnet” is much better, but you can use whichever you want)
6 After returning a result, you can apply the suggestions in agent mode or continue.
“I do this counter-analysis or cross-analysis to eliminate any possible ”bias" and as a kind of peer review. I want you to tell me what conclusion you can draw from this process, not from the analysis I provided from another source, but from other possible clues that this process may have helped to discover or identify. And please tell me what you think cross-analysis processes can do to help even more."
(Ask: “Sonnet” is much better, but you can use whichever one you want.)
7 Then in “Ask” mode say “prepare a roadmap with well-defined numbered phases so that I can follow up” (do this in “Ask” mode, copy and paste into another editor, e.g., Notepad++, and name it roadmap.txt).
8 Look for your roadmap.txt en Cursor and in “Agent” mode (not “Sonnet” so as not to use expensive tokens, e.g., ‘Auto’ is less expensive), ask it to do “phase 0, and compile” and so on with the other phases.
9 You’ll be amazed at the things your AI discovers.
I think: “Sonnet” (in Ask mode) as the Software Enginer Chief (the main head to think hard things) the “Auto” (in Agent mode) as the worker or the software developer
Usually I create a roadmap of the suggets or advices of Sonnet (only spend 1% of token qouta per request) and then performed the roadmap with “Auto”
Tell me your experiences with that recipe and what do you think!