So we have our little chat session here, and
we could now build up on that in plan or agent mode, but I'll
instead start a new session, which we can do by clicking this plus,
uh, button here or using the appropriate
You can also use the dropdown here to start a
chat in a separate window or in the editor area, as I showed you
before, or to use different kinds of agents,
later. You also have various configuration
explore later. For now, I'll just start a new session.
Now, I then see my old session here.
Again, I could archive it, or if you don't want to see it up here,
this button to have it at the side. That's another option.
So then you see all your chat sessions here, and you can go back to them
anytime, but you can go back to your new session
side. So now I want to build that CLI program
I mentioned. For that, I'll go to plan mode here actually,
typically a good idea to use plan mode if you're tackling a more
complex feature because you can think of plan mode as a
prompt improvement mode. You give the AI some prompts, some
task, and the plan mode then tries to refine
tries to increase your chances of getting a good result.
You don't need it for simple changes, but for more complex changes,
idea. So here I'll say, "I want to build a CLI tool
user data." Again, we could have just built up on
but here, we'll start from scratch.
Now, I'll use a different model here, and before I hit
enter or press this button, please notice that there is this settings
icon here. You can tweak this mode, this
plan mode, and the same is true for other modes.
To be precise, you can tweak which tools are available to this mode
because all these chats, all these agents here in
the chat mode, have access to various tools they
can use to provide better results.
For example, a read tool to read files in your
workspace, and you can expand this to have more
fine-tuned access to subtools or the specific tools that are
available here to check for errors, to read a file,
to see your last commands in terminal and so on.
And you see which tools your agent, the plan agent in this case,
has access to. And, of course, you can change these tools too,
noting that, for example, this plan agent does not have access to
tool to edit files. The ask agent we used before also
doesn't have this access. It can't create files,
can't create directories. It can do none of that.
It can search, for example, in your code
base to find relevant context, for
example. It can also do web search to find
documentation, for example, and therefore it has some tools that
help it be a useful planning agent in the
end. You could also enable Python-specific
from my Python extension or MCP tools, which we'll also explore
later. Now, I won't change any tools here, but it's worth noting that you can
configure those tools that are available to the agent,
configure custom agents means. You can build your own agents with
exactly the tools you want it to have.
So let's now hit enter and start planning.
Now, as you see, during the planning phase,
It gathers relevant context, and you can click on each of these steps
details. You see it found some files it wants to
look at to understand which Python version we're, for example,
using and whether certain third-party libraries are
available, and then it generates this plan.
So here, it wants to start by adding some
third-party packages it wants to use, and then edit my file
to, well, implement this program.
Now, as you see, it asks me some questions here,
questions, but depending on the task you gave the AI,
mode, you might get some because the whole idea
build a solid plan, and if you did not provide enough information
initial prompt, it might ask for clarification.
So here, I'll provide these answers.
I wanna use argpars, only have basic fields, and
I'm fine with using standard output, uh, and this output
flag for file export. So I'll send that response so that it
can refine the plan based on my responses,
and I should now get that final plan, which is the same plan as before with
my responses incorporated. Now, it has a follow-up
question, if I wanna support different languages
I don't need that, so I'll answer that as well, and you can go back
sometimes until it has that final
plan. But now it's ready for
implementation, and now there are a couple of options.
You could switch to agent mode because remember, in plan mode, it can't
edit anything, so you need to switch to a mode where it
files, and agent mode is the most powerful mode regarding
that. But you don't have to. There is this start
implementation button, which you can press to automatically
agent mode and start the plan. If you wanna do it manually,
say, "Do it," or something like this, eh, but alternatively,
you can click start implementation, or you could switch to a different
agent that should execute it, but we'll ignore that for now.
I'll just start implementation like this.
Well, and technically here, I then still have to hit enter.
You can also do that if it still has a question for you,
still give you some result, but the result might then not be perfect
as good as possible because you didn't answer all questions, but you can
start implementing at any point in time.
But now in agent mode, which is that third and arguably most
important mode, it goes ahead and edits the project.
It adds files and edits files. It can do all these
things.