So, we're now in Agent mode, which is the most powerful mode because
it's this mode where it can create directories, files, edit files
and autonomously work on your code base.
Now, we started this Agent mode session here
do that. You could just start a new session,
prompt and go from there. Now, here we're in a running session
based on that plan as mentioned, and you see a couple of things going on
For one, it wrote some code in main.py and just as before, you get
a preview of what's about to change and you can keep or undo
these changes. You can also do this on a per block base,
I could keep those changes down here and undo those changes up
here. That doesn't make too much sense though.
Or with that bar here, you can keep and undo the changes for the
entire file. You can also cycle through the different,
here because it changed more than one file, because that's what agents can
do. And you can also keep and undo here.
Here, you also get a list of all the files
switch between them and see what was changed.
Now, you also see this here though, it asks me whether
it may create a virtual environment, because even though Agent mode
can do a lot, it's by default not allowed to do
everything. It needs your permission for certain
So for example, if it wants to run certain commands in the
can do in theory, but they're not all enabled by default
for security reasons, of course, so that it doesn't delete your
computer. So here it wants to create a virtual
Now, I don't need that because the tool I'm using, UV,
will create that for me. So I will actually not allow that,
though we could do it, and click skip.
Now, if I wanted to allow it, I could just allow it like this
in this session, so in this chat but not in other chats, in this
workspace, so for all sessions, or always in general, for all
sessions in all my projects. But here, I'll skip
this and I could also write a short explanation if I
would've denied something that blocks the agent from continuing.
But here, of course, it can write the code without
everything's fine. Now, it gives me some commands
execute, which I know are all wrong because I'm using
managing this project. But if we would tell it about that tool,
give us the right commands. But that's not too important here.
So now you can review those changes on a per file
basis or a per block and file basis, and
then accept them change by change or all together, which is what
I'll do here. And that is my project here.
So now if I run this file, UV will set up that envvar
for me and will install all missing dependencies and it generated
this one fake person for me. So, the program works and
it was entirely written by AI.