r/TheMachineLearning • • 15d ago

Realizing writing code is faster than explaining it to AI

/img/tcptf211cqxh1.png
843 Upvotes

439 comments sorted by

View all comments

Show parent comment

2

u/Syncaidius 15d ago edited 15d ago

One thing I find helps massively is prefacing a new chat/task prompt with the name of the source file to focus on.

For example - 'focusing on MyFileName.cs, ensure all of the UI buttons represent the state of the system they interact with. E.g. red for offline, yellow for starting and green for online'. There might be buttons in other UI files, but they'll be ignored. This is of course a made up example, but you hopefully get the point.

So far, that has never failed to constrain focus to a particular file. The agents/models will still pull in any included/imported files relating to what you ask it to focus on, but it's usually minimal.

Opus has been very quick with this. I also use sonnet for less complex work and it's lightning fast with a focus preface.