Another thing you can control here is the mode of this chat.
By default, it's typically agent these days.
But at the point of time where I'm recording this, there also
plan, background, and ask. Now, ask is the most
straightforward mode here. If you switch to that...
And by the way, you can also switch by pressing shift tab
If you switch to ask mode, it's really just a chat that
answers questions. So if I ask, "What does the
code in this demo.py file do?"
It'll answer this. And it'll know about this file because it
project, so it can find this file, especially if you have the file open.
It typically has a lot of knowledge about that anyways, and it will then try
to answer your question. So in my case, it describes what the different functions
in this file do, and it suggests that I open this in
agent window, which I don't wanna do here. So that's the ask mode.
You can ask questions about your code.
You can also have discussions about your code and how you could potentially improve
it. So I could ask, "How could I improve this
code?" And it won't make any changes, but it'll answer this
question. It'll first do some internal thinking
such a smart model, such a brain model, a deep think model selected, and
then it'll give me an answer. And here it suggests, uh,
that I might wanna add error handling, type hints, and it even gives me an
improved version. But it doesn't apply that here, it just
suggests it here. Now, if you want to use that
suggestion, you can always, of course, copy it though, and then
manually replace your code with it.
I'll not do that here though, but you could do that.
You also got some controls down here to, for example, copy the
entire chat here, rate it, or also
duplicate it and so on. So that's the ask mode.
It's a nice mode, but most of the time you'll probably use
mode instead.