WEBVTT

00:00:00.080 --> 00:00:03.960
So, we're now in Agent mode, which
is the most powerful mode because

00:00:04.000 --> 00:00:07.640
it's this mode where it can create
directories, files, edit files

00:00:07.680 --> 00:00:10.980
and autonomously work on your code base.

00:00:11.000 --> 00:00:14.830
Now,
we started this Agent mode session here

00:00:14.900 --> 00:00:18.820
do that.
You could just start a new session,

00:00:18.860 --> 00:00:22.520
prompt and go from there. Now,
here we're in a running session

00:00:22.740 --> 00:00:26.400
based on that plan as mentioned,
and you see a couple of things going on

00:00:26.440 --> 00:00:30.390
For one, it wrote some code in main.py
and just as before, you get

00:00:30.440 --> 00:00:34.240
a preview of what's about to change
and you can keep or undo

00:00:34.280 --> 00:00:37.970
these changes.
You can also do this on a per block base,

00:00:38.080 --> 00:00:41.860
I could keep those changes down here
and undo those changes up

00:00:41.940 --> 00:00:44.650
here.
That doesn't make too much sense though.

00:00:44.740 --> 00:00:48.420
Or with that bar here, you can keep
and undo the changes for the

00:00:48.430 --> 00:00:52.200
entire file.
You can also cycle through the different,

00:00:52.280 --> 00:00:55.990
here because it changed more than one
file, because that's what agents can

00:00:56.000 --> 00:00:58.970
do. And you can also keep and undo here.

00:00:59.020 --> 00:01:02.700
Here,
you also get a list of all the files

00:01:02.820 --> 00:01:05.700
switch between them and see what
was changed.

00:01:05.740 --> 00:01:09.640
Now, you also see this here though,
it asks me whether

00:01:09.680 --> 00:01:13.480
it may create a virtual environment,
because even though Agent mode

00:01:13.560 --> 00:01:17.120
can do a lot,
it's by default not allowed to do

00:01:17.240 --> 00:01:21.040
everything.
It needs your permission for certain

00:01:21.050 --> 00:01:24.390
So for example,
if it wants to run certain commands in the

00:01:24.440 --> 00:01:27.650
can do in theory,
but they're not all enabled by default

00:01:28.180 --> 00:01:31.980
for security reasons, of course, so
that it doesn't delete your

00:01:32.000 --> 00:01:35.650
computer.
So here it wants to create a virtual

00:01:35.680 --> 00:01:39.540
Now, I don't need
that because the tool I'm using, UV,

00:01:39.580 --> 00:01:43.520
will create that for me.
So I will actually not allow that,

00:01:43.580 --> 00:01:46.740
though we could do it, and click skip.

00:01:46.760 --> 00:01:50.540
Now, if I wanted to allow it,
I could just allow it like this

00:01:50.600 --> 00:01:54.280
in this session, so in this chat
but not in other chats, in this

00:01:54.340 --> 00:01:58.060
workspace, so for all sessions,
or always in general, for all

00:01:58.100 --> 00:02:01.480
sessions in all my projects. But here,
I'll skip

00:02:01.540 --> 00:02:05.370
this and I could also write a short
explanation if I

00:02:05.740 --> 00:02:08.720
would've denied something
that blocks the agent from continuing.

00:02:08.740 --> 00:02:11.840
But here, of course,
it can write the code without

00:02:11.900 --> 00:02:15.640
everything's fine. Now,
it gives me some commands

00:02:15.700 --> 00:02:19.400
execute, which I know
are all wrong because I'm using

00:02:19.440 --> 00:02:23.420
managing this project. But
if we would tell it about that tool,

00:02:23.460 --> 00:02:26.760
give us the right commands.
But that's not too important here.

00:02:26.820 --> 00:02:30.500
So now you can review those changes on a
per file

00:02:30.520 --> 00:02:33.950
basis or a per block and file basis, and

00:02:33.980 --> 00:02:37.700
then accept them change by change
or all together, which is what

00:02:37.820 --> 00:02:40.560
I'll do here. And that is my project here.

00:02:40.600 --> 00:02:44.520
So now if I run this file,
UV will set up that envvar

00:02:44.640 --> 00:02:48.580
for me and will install all missing
dependencies and it generated

00:02:48.590 --> 00:02:52.580
this one fake person for me. So,
the program works and

00:02:52.600 --> 00:02:55.920
it was entirely written by AI.
